Page 1 of 1

include

PostPosted: Mon Aug 23, 2004 10:50 pm
by zoiba
what about an INCLUDE command in GE script?
Let's say you made a game with several levels and every level is a ged file. Now, if you discover a bug (or you simply want change something) in a script used to behave a the player (or particular enemy) that is repeated on each level, it would be tedious to edit every script inside geds. If, instead, the script is included from a file on disk, changes on file will be reflected on each level.
Hope it make sense :roll:
bye :D

PostPosted: Thu Aug 26, 2004 1:13 pm
by makslane
In the current version this can be made only in the global code.

But you can create multi level games by using Activation Regions

PostPosted: Mon Jun 27, 2005 5:46 am
by jazz_e_bob
I am interested in programming games in a more modular fashion.

Interesting thread.

PostPosted: Mon Jun 27, 2005 7:34 am
by ingsan
Yes, indead that's very interesting. The proposed INCLUDE file reminds me of the MERGE module in GE.

Actually, merging files in GE is limited. For example, I have a Main_actor ged file. I merge it in another ged (call it A). I alter my Main_actor file and try to remerge it in ged A. The modifications are not considered.

Maybe when merging two or three times the same file, a MERGE panel that shows something like this : An actor in scene is already named "Main_Actor" - Rename - Delete Old - Skip could popup :wink:

PostPosted: Mon Jun 27, 2005 8:45 am
by jazz_e_bob
What she said.

A.

PostPosted: Mon Jun 27, 2005 12:35 pm
by jazz_e_bob
I would LOVE to be able to declare data definition/function libraries.

ie:

declaration of global and actor variables
constants
functions and procedures

That way if GEDs utilise the same library they should be able to merge OK.

8)

PostPosted: Tue Aug 09, 2005 4:51 pm
by jazz_e_bob
EDIT:

Perhaps the solution is simple.

A .ged may include a list of other geds.



Example:

You need an energy meter?

include quickMeter.ged

meter.value = x; // Sets the meter.

Jobs done mate.

Here is the GED too. :wink:

http://www.artsystems.com.au/game%20editor/quickMeter.zip

PostPosted: Wed Aug 10, 2005 10:09 pm
by brutalDeluxe
Elegant solution.

This idea paves the way for a library of ready-made game objects.