Adventure Game Studio

Community => General Discussion => Topic started by: Kinoko on Wed 16/03/2005 01:39:16

Title: How big is YOUR global script?
Post by: Kinoko on Wed 16/03/2005 01:39:16
I was desperately trying to neaten my global script up recently, noticing it was over 6000 lines long or something. I've gotten it down to the 4600s from that, but it's no doubt going to skyrocket again soon seeing as the game has so long to go.

Cirque's global script was ~2500 total. This got me wondering what other people's completed game global script line counts were like. So, people, if you've -completed- a game, how big is your global script?
Title: Re: How big is YOUR global script?
Post by: Gregjazz on Wed 16/03/2005 05:08:25
Apprentice 1: 2304
Apprentice 2: 5892
The Find (so far): 180 (I'm keeping it nice and super neat!)

I tend to keep most of the stuff in the room files rather than in the global script, for example, the village room in Apprentice 2 has 1715 lines. But I wouldn't say the amount lines of code in my games is anything to be proud of. I'm a messy coder. Except for in The Find. The code in there is art, I must say. :)
Title: Re: How big is YOUR global script?
Post by: Radiant on Wed 16/03/2005 08:02:38
I do the reverse - I stick everything in the global script, keeping all my room scripts to 20-50 lines. My global probably weighs in at about 3000 lines.
Title: Re: How big is YOUR global script?
Post by: Phemar on Wed 16/03/2005 08:05:43

Flaccid Carnage: 976

It's kinda small, but that's only because I don't indent my work. (It's a FREEKIN holocaust out there!!!)

Oh yeh and I don't use comments either.
Title: Re: How big is YOUR global script?
Post by: AGA on Wed 16/03/2005 08:11:48
Dead Man's Political Party (http://games.agagames.com/?game=dmpp): 1015
I Spy II (http://games.agagames.com/?game=ispyii): 563
Alien Rape Escape (http://games.agagames.com/?game=are): 819
Jon Stickman (http://games.agagames.com/?game=js) (in progress): 1209
Spring Fever (in progress): 586
ATC entry (in progress): 835

I'm an obsessively neat coder, and use functions (and modules now) to save space.
Title: Re: How big is YOUR global script?
Post by: SSH on Wed 16/03/2005 09:36:03
Pixel Hunt: 687

FOY Demo (last time I looked, in January probably bigger by now) : 1960

AOTS Demo: 988

Of course, Pixel Hunt has a bunch of stuff in the new script module system, which should make for better organisation all round.
Title: Re: How big is YOUR global script?
Post by: YOke on Wed 16/03/2005 10:10:46
FoY Demo is now actually down to 1810 lines.

Two of a Kind is at 4572, but the scripting there is a bit iffy since it was done in a hurry. Will probably be able to squeeze it down quite a bit. But I also comment my code and use a lot of empty lines to get things organized and good looking.
Title: Re: How big is YOUR global script?
Post by: SSH on Wed 16/03/2005 10:14:18
AS the old saying goes:

Any program always has at least one redundant line of code and at least one bug, therefore, all programs can ultimately be reduced to one line that doesn't work.
Title: Re: How big is YOUR global script?
Post by: Timosity on Wed 16/03/2005 10:26:03
LSL3 global = 4567

dumping just the text scripts and pasting them into an open office doc = 523 pages @ 52 lines per page = 27,196 lines

I may just get motivated to finishing it some time.

game size = 48.2MB
compressed size inno setup= 2.87MB
compressed zip = 4MB


average steps I walk per day for work = 33,000
Title: Re: How big is YOUR global script?
Post by: Rui 'Trovatore' Pires on Wed 16/03/2005 10:54:45
Incidently, Tim, how IS development on LSL3? I'm really looking forward to it! Maybe I can help you in any way? After all, it's the only thing between complete Leisure Suit Larry Point and Clickness! :=
Title: Re: How big is YOUR global script?
Post by: MillsJROSS on Wed 16/03/2005 17:34:17
I'm suprised by some of the lenghts of your Global Scripts. Is it a matter of making your code neat, and adding comments and spaces? What are some of the functions that take up soo many lines. AQ1 only has about 100 lines in the global script. AQ2 is nearing 400 with 20+ rooms. So what makes the brunt of most of your code? Or rather, what functionality did you add to your game to boost the global script lines so much?

-MillsJROSS
Title: Re: How big is YOUR global script?
Post by: Sam. on Wed 16/03/2005 17:46:18
I would post mine, but i wouldn't want to boast










sorry
Title: Re: How big is YOUR global script?
Post by: Kweepa on Wed 16/03/2005 18:27:35
Quote from: MillsJROSS on Wed 16/03/2005 17:34:17
So what makes the brunt of most of your code? Or rather, what functionality did you add to your game to boost the global script lines so much?

Here's what's taking up most of my global script:
Non-default GUI and inventory system.
All interactions with characters and inventory items.
Dialog requests.
That comes to about 2000 lines so far
Title: Re: How big is YOUR global script?
Post by: Sam. on Wed 16/03/2005 18:51:32
steve, is that for the game in your sig? i clicked the link and liked what  I saw, unfortunatley, no updates :(
Title: Re: How big is YOUR global script?
Post by: Andail on Wed 16/03/2005 19:09:15
mine is 26 centi...

oh, I mean...some thousand lines
Title: Re: How big is YOUR global script?
Post by: Captain Mostly on Wed 16/03/2005 19:21:55
vegetable patch extreem turbo 2 has only 2151 lines of global script. But the script for "room 1" is 2590 lines long, and that's where most of the actual action takes place.

This seems pretty small really.
Title: Re: How big is YOUR global script?
Post by: Kweepa on Wed 16/03/2005 21:23:38
Quote from: Zooty on Wed 16/03/2005 18:51:32
steve, is that for the game in your sig? i clicked the link and liked what  I saw, unfortunatley, no updates :(

Yup, still working on it.
I'd say it's only about 30% done unfortunately.
I've completed scripting on the first chapter (15 or so rooms).
The slowest thing is animation of course...