my projects.

Talk about making games.

my projects.

Postby j2graves » Thu Aug 21, 2008 1:53 am

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.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: my projects.

Postby BlarghNRawr » Thu Aug 21, 2008 2:49 am

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
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: My Projects.

Postby desertgamer » Thu Aug 21, 2008 4:07 am

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...
Do newbies want to experiment or get started right away? Take the source template:
viewtopic.php?f=6&t=6175
desertgamer
 
Posts: 47
Joined: Sun Dec 09, 2007 6:49 pm
Score: 5 Give a positive score

Re: my projects.

Postby Thanx » Thu Aug 21, 2008 7:18 am

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! :)
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: my projects.

Postby j2graves » Thu Aug 21, 2008 2:38 pm

thanks! +1!
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: my projects.

Postby desertgamer » Thu Aug 21, 2008 8:58 pm

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!
Do newbies want to experiment or get started right away? Take the source template:
viewtopic.php?f=6&t=6175
desertgamer
 
Posts: 47
Joined: Sun Dec 09, 2007 6:49 pm
Score: 5 Give a positive score

Re: my projects.

Postby Thanx » Thu Aug 21, 2008 9:42 pm

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!!!
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: my projects.

Postby BlarghNRawr » Thu Aug 21, 2008 10:03 pm

Thanx wrote: as blarghnrawr (phew what a hard name! :lol: no offence)


hehe
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: my projects.

Postby j2graves » Thu Aug 21, 2008 10:11 pm

how do you remember it when you log in xD
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: my projects.

Postby BlarghNRawr » Thu Aug 21, 2008 10:48 pm

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")
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: my projects.

Postby j2graves » Fri Aug 22, 2008 12:24 am

interesting you'd use that as your username xD
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: my projects.

Postby BlarghNRawr » Fri Aug 22, 2008 12:27 am

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:
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: my projects.

Postby j2graves » Fri Aug 22, 2008 12:40 am

I wasn't that good at making usernames when I joined ge
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: my projects.

Postby BlarghNRawr » Fri Aug 22, 2008 2:04 am

at least ur better at avatars than me...
the smash ball... really... :D
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: my projects.

Postby j2graves » Fri Aug 22, 2008 2:34 am

thanx..
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Next

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest