Outpost Universe Forums

Projects & Development => Inactive Projects => GORF => Outpost: A New Beginning => Topic started by: Punboy on May 31, 2004, 10:34:05 PM

Title: Game Expansion
Post by: Punboy 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?
Title: Game Expansion
Post by: xfir on June 01, 2004, 12:42:00 AM
Sounds like Total Annihilation.. just not so direct.
Title: Game Expansion
Post by: Kramy 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.
Title: Game Expansion
Post by: Punboy 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.
Title: Game Expansion
Post by: Kramy 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! :)
 
Title: Game Expansion
Post by: Punboy 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*
Title: Game Expansion
Post by: Kramy 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);
}
Title: Game Expansion
Post by: Punboy 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)  
 
 
Title: Game Expansion
Post by: Kramy 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);

 
Title: Game Expansion
Post by: Punboy 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
Title: Game Expansion
Post by: Kramy 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
Title: Game Expansion
Post by: Punboy on June 01, 2004, 10:49:02 PM
lol
Title: Game Expansion
Post by: PlayingOutpost0-24 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)