Adventure Game Studio

Community => General Discussion => Topic started by: Da_Elf on Sun 07/01/2007 16:57:40

Title: Game size
Post by: Da_Elf on Sun 07/01/2007 16:57:40
whats the average amount of line wold you find int he global script in a biggish game

EDIT

Sorry i didnt realise the amount of typoes there were there..

Im asking how many lines of code are people getting in their "global script" for a faily large game (as said in a follow up post. a game around the size of apprentice 2). Im up to 600 lines and i can easily see that being trippled or more before my game is finished. Im just wondering if im using excessive amounts of code when there might be simpler ways to do thing. Its a fairly harmless question
Title: Re: Game size
Post by: Gilbert on Sun 07/01/2007 17:02:37
This mainly depends on how "big" a game is and how it rely on scripts, and it's more like an "ask for opinion" question which definitely doesn't fit in the Tech. forum. So I'm moving it.
Title: Re: Game size
Post by: Da_Elf on Sun 07/01/2007 17:13:59
yeah. sory about that i wasnt sure where to put it. lets say a game the length of apprenticeII
Title: Re: Game size
Post by: Gregjazz on Sun 07/01/2007 17:38:37
I don't have the source of App2 handy, but Super Jazz Man has 4845 lines in the global script, and an average of 500-700 lines in each room.

Apprentice 3 already has 605 lines in the global script, and I'm scripting it a lot cleaner and condensed than our previous Apprentice games.
Title: Re: Game size
Post by: Da_Elf on Sun 07/01/2007 17:41:37
ah ok. i dont feel bad then about the size of my game
Title: Re: Game size
Post by: ManicMatt on Sun 07/01/2007 17:43:56
Secrets only has 373 by comparison. I manually script only when it's neccesary. Limbo currently has 268, and isn't anywhere near finished..
Title: Re: Game size
Post by: Mr Flibble on Sun 07/01/2007 17:48:12
Quote from: Geoffkhan on Sun 07/01/2007 17:38:37
Apprentice 3

*Walks calmly into kitchen*
*Makes cup of tea*
*Returns with cup of tea*
*Leisurely looks at screen*
*Spits out tea in shocked fashion* 
: D

(On topic, I'd be more concerned about the actual size of the final exe than the length of the code.)
Title: Re: Game size
Post by: Da_Elf on Sun 07/01/2007 17:50:50
its currently at 40mb. I'm thikning it will top off at about 100mb mabye i should have done it at 320x240 rather than 640x480
Title: Re: Game size
Post by: Vince Twelve on Mon 08/01/2007 00:24:22
Sounds fun!  I'm checking...

Anna had only 55 lines in the global script.  I put pretty much all the code in the room file.  It uses only one room, but that room includes 4866 lines of code.

Spooks' global script ran 1462 lines with the average room ranging from 50 to 200 lines.

Linus Bruckman has 7104 lines in the global script with very little code in the room files.
Title: Re: Game size
Post by: woodz on Mon 08/01/2007 21:36:56
i must admit i worry more about the actual file size, than the global script.. its suprising how many people still use dialup :-\
Title: Re: Game size
Post by: Da_Elf on Mon 08/01/2007 21:56:21
the good thing is it compresses decently. my 40mb file compresses to 13mb
Title: Re: Game size
Post by: Erenan on Mon 08/01/2007 23:09:09
Yeah, you'll find that script and graphics tend to compress pretty well, whereas music and sound don't compress quite as much. So the easiest way to make a download really big is to include lots of digital sounds and music.
Title: Re: Game size
Post by: Da_Elf on Tue 09/01/2007 00:15:34
i would assume midi music would compress very well due to the nature of midi code
Title: Re: Game size
Post by: LimpingFish on Tue 09/01/2007 00:26:36
Midi music is tiny anyway, so you wouldn't benefit much from compressing it. Anything that's already in a compressed file format (MP3, OGG, etc) doesn't compress beyond a few bytes in filesize, though, and can add a lot to the resulting zipped game file.
Title: Re: Game size
Post by: Erenan on Tue 09/01/2007 01:24:49
Right. MIDI files contain no sound information, but merely instructions that your sound card uses to create the music, so they're very small. I was just talking about digital audio.
Title: Re: Game size
Post by: Nikolas on Tue 09/01/2007 15:52:33
Quote from: Vince Twelve on Mon 08/01/2007 00:24:22
Linus Bruckman has 7104 lines in the global script with very little code in the room files.
And all that for 1 puzzle actually!

Imagine making a proper full lenght adventure game! The number would be around 7,841,127,332... :P

Why is the lenght of the script important? I guess the EXE file is more important no?