TIP: Tidy up your GameStudio work folder!

Posted By: MegaMarioDeluxe

TIP: Tidy up your GameStudio work folder! - 04/16/09 00:27

In case you didn't know, you can tidy up your GameStudio working directory.

Here's an example:

. (GameStudio work folder)
|
- scripts/ (Holds your scripts, eg. custom actions, etc).
|
- music/ (Holds your music, MP3s, etc)
|
- gfxdata/ (Holds sprites, images, panel overlays, etc).

In this layout, I did this in my main WDL script:

Code:
include <movement.wdl> //A5 Move Scripts
include <scripts\\actions.wdl> //My Actions, HENCE double backslash.


I hope this helps you tidy up your GameStudio files. If you want to get music, you'd just do play_mp3(music\\mysong.mp3) for example.
Posted By: Germanunkol

Re: TIP: Tidy up your GameStudio work folder! - 04/16/09 00:59

yes, always use multiple folders. makes your life much easier smile
Posted By: flits

Re: TIP: Tidy up your GameStudio work folder! - 04/16/09 15:54

and add the path

PATH "files\\models";
ore lite-c
#define PRAGMA_PATH "files\\models";

there must be a standard because my map names are always different

and the models do i put always under the map levels becuase you can load them white wed to
Posted By: VeT

Re: TIP: Tidy up your GameStudio work folder! - 04/16/09 22:42

I want to add my 5 penny and said, that i had some errors with path
F.E, if i wrote

#define PRAGMA_PATH "models";
***
ent_create("model.mdl",***);

i got errors... but
ent_create("models\\model.mdl",***);
helped me in that case
Posted By: flits

Re: TIP: Tidy up your GameStudio work folder! - 04/17/09 19:32

you made a litle mistake
after #define dont use the ;

else i dont know where the problem coms from
maby you will need the whole root to the folder
Posted By: VeT

Re: TIP: Tidy up your GameStudio work folder! - 04/18/09 08:04

Ah yes, i just copypasted text to show general idea.

The whole root isnt good for end user... as i say, ent_create("models\\model.mdl",***); works nice
Posted By: flits

Re: TIP: Tidy up your GameStudio work folder! - 04/18/09 14:07

yeah i tought that

i dont rember how but you can get the root of .exe that is started and then you will need to add the folder
Posted By: VeT

Re: TIP: Tidy up your GameStudio work folder! - 04/19/09 11:04

%EXE_DIR% smile
Posted By: MegaMarioDeluxe

Re: TIP: Tidy up your GameStudio work folder! - 04/21/09 07:56

Heh, yeah.

I don't think Panels like this layout too much. I've added a health bar image, but it won't show up, so I'll put it in my ROOT folder.
© 2024 lite-C Forums