How big is YOUR global script?

Started by Kinoko, Wed 16/03/2005 01:39:16

Previous topic - Next topic

Kinoko

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?

Gregjazz

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. :)

Radiant

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.

Phemar


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.

AGA

Dead Man's Political Party: 1015
I Spy II: 563
Alien Rape Escape: 819
Jon Stickman (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.

SSH

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.
12

YOke

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.

Enlightenment is not something you earn, it's something you pay for the rest of your life.

SSH

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.
12

Timosity

#8
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

Rui 'Trovatore' Pires

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! :=
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

MillsJROSS

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

Sam.

I would post mine, but i wouldn't want to boast










sorry
Bye bye thankyou I love you.

Kweepa

#12
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
Still waiting for Purity of the Surf II

Sam.

steve, is that for the game in your sig? i clicked the link and liked what  I saw, unfortunatley, no updates :(
Bye bye thankyou I love you.

Andail

#14
mine is 26 centi...

oh, I mean...some thousand lines

Captain Mostly

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.

Kweepa

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...
Still waiting for Purity of the Surf II

SMF spam blocked by CleanTalk