Author Topic: Game Expansion  (Read 5611 times)

Offline Punboy

  • Moderator
  • Full Member
  • *****
  • Posts: 142
Game Expansion
« on: May 31, 2004, 10:34:05 PM »
I think i'm going to make the system expandable by making a plugin system. There can be plugins that can expand gameplay, add units, buildings, technologies... add options (like being able to play MP3's during the game), voice chat... etc...

What do you guys think?
Help control the human population. Have your spouse spayed or neutered.

xfir

  • Guest
Game Expansion
« Reply #1 on: June 01, 2004, 12:42:00 AM »
Sounds like Total Annihilation.. just not so direct.

Offline Kramy

  • Full Member
  • ***
  • Posts: 173
Game Expansion
« Reply #2 on: June 01, 2004, 01:50:00 AM »
What language will the plugins have to be made in? Or will they be dlls?(Then they could be made in any language, and just have an editable ini that the the game sifts through, and calls of the functions(items) in dlls(groups) listed in there?)

OT: Xfir's sig has my IP in it. :P Never seen such a big IP sig before.
-Kramy
001011000100101001110001011000000110110001111000

Offline Punboy

  • Moderator
  • Full Member
  • *****
  • Posts: 142
Game Expansion
« Reply #3 on: June 01, 2004, 10:23:35 AM »
They can be in any language that can accessed from Python. In Windows, I believe I can access any module supported by .NET with the proper package, and in Linux/MacOS X its C/C++. As well as python, of course.

The python route, IMHO, would be easiest to develop with. Especially with a well laid-out template and tutorials people can learn with.
« Last Edit: June 01, 2004, 10:24:14 AM by Punboy »
Help control the human population. Have your spouse spayed or neutered.

Offline Kramy

  • Full Member
  • ***
  • Posts: 173
Game Expansion
« Reply #4 on: June 01, 2004, 12:27:43 PM »
You're probably right about that, for cross-platform compatability. Jamascript is the easiest language out there though....Sucks that it's 3D engine is so lacking.

Hey, I got an idea! Tell me to make a routine in Jamascript, and we can compare it to python! :)
 
-Kramy
001011000100101001110001011000000110110001111000

Offline Punboy

  • Moderator
  • Full Member
  • *****
  • Posts: 142
Game Expansion
« Reply #5 on: June 01, 2004, 12:29:17 PM »
Hmm, ok, write a routine in Jamascript that does.... erm...


I dunno, write something I'll redo it in python.

And this is getting *ghasp* off topic! :-p *starts new Program Lange Debate topic*
« Last Edit: June 01, 2004, 12:30:05 PM by Punboy »
Help control the human population. Have your spouse spayed or neutered.

Offline Kramy

  • Full Member
  • ***
  • Posts: 173
Game Expansion
« Reply #6 on: June 01, 2004, 12:36:05 PM »
Ahh, I don't know what to code. :P Jamascript is best for more complex things.

myWindow = New Window(640,480);

While(1)
{
ShiftPressed = Keyboard.IsKeyDown(Keyboard.SHIFT);

If(ShiftPressed) myWindow.WriteLn("Shift is pressed");
Program.Wait(50);
}
-Kramy
001011000100101001110001011000000110110001111000

Offline Punboy

  • Moderator
  • Full Member
  • *****
  • Posts: 142
Game Expansion
« Reply #7 on: June 01, 2004, 12:42:30 PM »
import pygame, sleep
while 1:
   e = pygame.pygame.event.get(KEYDOWN)
   if e is pygame.constant.K_RSHIFT or pygame.constant.K_LSHIFT:
      sleep(50)  
 
 
Help control the human population. Have your spouse spayed or neutered.

Offline Kramy

  • Full Member
  • ***
  • Posts: 173
Game Expansion
« Reply #8 on: June 01, 2004, 09:55:25 PM »
Does that open a window?

While(1) If(Keyboard.IsKeyDown(Keyboard.SHIFT)) Program.Wait(50);

Or...

While(1) If(Keyboard.IsKeyDown(Keyboard.SHIFT)) Wait(50);

 
-Kramy
001011000100101001110001011000000110110001111000

Offline Punboy

  • Moderator
  • Full Member
  • *****
  • Posts: 142
Game Expansion
« Reply #9 on: June 01, 2004, 10:00:45 PM »
To open a window in mine, do:
display.set_mode((xres,yres))

where xres and yres are the dimensions you want
Help control the human population. Have your spouse spayed or neutered.

Offline Kramy

  • Full Member
  • ***
  • Posts: 173
Game Expansion
« Reply #10 on: June 01, 2004, 10:18:19 PM »
Ahh, how interesting. In Jamascript display refers to the display(monitor)

Display.SetDisplayInterface(Display.DIRECT3D);
Display.SetDisplayInterface(Display.OPENGL);
Display.SetDisplayInterface(Display.SOFTWARE);
Display.SetDisplayInterface(Display.SOFTWARE_DIRECTDRAW);

I think what makes jamascript easier to understand for newbies is the lack of any abbreviations that are so common in C++. :P
-Kramy
001011000100101001110001011000000110110001111000

Offline Punboy

  • Moderator
  • Full Member
  • *****
  • Posts: 142
Game Expansion
« Reply #11 on: June 01, 2004, 10:49:02 PM »
lol
Help control the human population. Have your spouse spayed or neutered.

Offline PlayingOutpost0-24

  • Hero Member
  • *****
  • Posts: 537
    • http://op3np.xfir.net
Game Expansion
« Reply #12 on: June 26, 2004, 06:16:43 AM »
Kramy: (IP) xfir's IP is my IP too :P

I think that "New Unit Plugins" are good idea... (I think you should make this game as editable as GTA)
Great news for OP2 fans... OP3 in progress.
Official Site
Outpost 3: A New Power progress
OP3:NP Discussion

Progress in OP3:NP[/size][/font]
PLANNING[|||||||||-]
GRAPHICS [||||------]
SOUNDS [|---------]
MAP DESIGNING [|||||-----]
CODING [----------]
Going slowly... Very slow.