Page 1 of 2

my projects.

PostPosted: Thu Aug 21, 2008 1:53 am
by j2graves
I have to say, it may seem that I am not doing anything cause I havn't posted any games. however, I have finally started getting something going. it will be worked on for a while, but instead of 30 levels like I had said before, I am reducing it to 15 because every 2 levels would have been the same theme anyway, and it takes up memory. but before I start, I want to know how to make seperate .dat files for different levels so that I can have each accessed at any time and have the same variables updated all the time. if I can't understand anything you guys post, I'll just make all the levels in the same file.

Re: my projects.

PostPosted: Thu Aug 21, 2008 2:49 am
by BlarghNRawr
on a level completion(collision on end of level, or whatever), use the loadgame() function and put in the name of the next level (ex. Level 2)...... i think thats what you want

P.S. it will only open the file after both are exported... ithink

Re: My Projects.

PostPosted: Thu Aug 21, 2008 4:07 am
by desertgamer
Yeah, I'd love to know how to make separate .dat files for each individual level. That way you wouldn't have to program the general game elements in every single level (think of having 15 levels levels to attend to individually if you wanted to update some global thing in the game!?? Ugh...). :roll:

So, would it be courtesy of the more professional to give us the standard information for loading the player from one main file into the currently active level upon loading? That's kind of what has been hindering my games, not having an universal file...

Re: my projects.

PostPosted: Thu Aug 21, 2008 7:18 am
by Thanx
Here's how it goes:
at the level's end, as blarghnrawr (phew what a hard name! :lol: no offence) said you will use the loadgame function.
Before it, if you want some variables to be transfered to the next level, then have those variables in a save group, and use Savevars before you use loadgame. Note you'll need to use the exact same variable names in the other dat files.

To actually create a dat file, as I think most of ya know, just export the same way you'd otherwise do. just select game data only, for export type.

If in loadgame you use the exe or dat name of the level to go on to, then both have to be exported. If you're only testing, then don't export anything, and temporarily use the ged name of the files in the loadgame.

:wink: Hope that helps! :)

Re: my projects.

PostPosted: Thu Aug 21, 2008 2:38 pm
by j2graves
thanks! +1!

Re: my projects.

PostPosted: Thu Aug 21, 2008 8:58 pm
by desertgamer
Yeah, the variables I know of, but is there any way to actually LOAD actors from a source file into a level when it starts? An example would be the player. You could just update the player's scripts in that main file, which will be loaded into the level files when played. I'm putting it this way: it's basically copying actors when starting the game (not in geds), so you could have flexibility over the player's scripts in the main file.

Example:

player.dat
This file would contain the player's structure and only the player's structure.

level.dat
This file is the level. The player's attributes would be loaded from player.dat when the game starts.

level2...level15.... same goes here. The player is taken from the main file when the level is loaded.

Anyone who knows how this works really would be appreciated!

Re: my projects.

PostPosted: Thu Aug 21, 2008 9:42 pm
by Thanx
What you are talking about, is that we create one ged file with something in it, and when we fire up another exe, then it loads this dat's stuff in it, but continues with the exe.
Well actors cannot be loaded in such way. You'll have to have the codes and animations in the exe. The only thing you can transfer are the variables, which you know of.
BUT
This'd be a really cool feature request. Having actors among the savable "variables"!!! So an actor and all its codes can be loaded and saved like other variables. and then used in game. Cool idea!!!

Re: my projects.

PostPosted: Thu Aug 21, 2008 10:03 pm
by BlarghNRawr
Thanx wrote: as blarghnrawr (phew what a hard name! :lol: no offence)


hehe

Re: my projects.

PostPosted: Thu Aug 21, 2008 10:11 pm
by j2graves
how do you remember it when you log in xD

Re: my projects.

PostPosted: Thu Aug 21, 2008 10:48 pm
by BlarghNRawr
me and my friends use it all the time as an alternative for a curse word...
so people dont get mad at us...
(and i have it set to "log me in atomatically each visit")

Re: my projects.

PostPosted: Fri Aug 22, 2008 12:24 am
by j2graves
interesting you'd use that as your username xD

Re: my projects.

PostPosted: Fri Aug 22, 2008 12:27 am
by BlarghNRawr
hehe
i was going to use captainCORNBREAD, (thats my account name on conquer) but when i made that one it wouldnt let me on, and when i tried to make a new one that name was already taken, so this was all i could think of...

:lol:

Re: my projects.

PostPosted: Fri Aug 22, 2008 12:40 am
by j2graves
I wasn't that good at making usernames when I joined ge

Re: my projects.

PostPosted: Fri Aug 22, 2008 2:04 am
by BlarghNRawr
at least ur better at avatars than me...
the smash ball... really... :D

Re: my projects.

PostPosted: Fri Aug 22, 2008 2:34 am
by j2graves
thanx..