Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site forums as they ran on Ultimate Bulletin Board, 1998–2001. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 2005 site & forums

  Apolyton Civilization Site Forums
  CtP2-Creation
  slic errors...

Post New Topic  Post A ReplyPost A Reply In A New Window

profile | register | preferences | faq | search next newest topic | next oldest topic bottom of page
Author
Topic:   slic errors... Format for Better Printing
kormer
Chieftain

Jan 2001
posted January 20, 2001 17:36   Click Here to See the Profile for kormerClick Here to Email kormer  send a private message to kormer
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I'm working on coding in slic events for my scenario and I've been getting this error: "...766:yacc stack overflow"

I know that means its in line 766, but what does yacc stack overflow mean? The only thing I have set so far are regard and trust. This is what 766 is:

766: LogRegardEvent(14, 16, 100, 0,ID_REGARD_EVENT, 0);
767: SetTrust(14,16,100);
768:
769: LogRegardEvent(15, 16, 100, 0,ID_REGARD_EVENT, 0);
770: SetTrust(15,16,100);


Basicly I went through, listed every nations regard for every other nation. By commenting out line 766, the next LogRegardEvent line had an error which is 769. I commented that out an it worked fine. I should also note that those are the last 4 lines in the code and all 765 lines before it look exactly the same as that, except with appropriate values for nations. None of the previous lines seem to have any syntax error either. This really wouldn't be a problem since I can comment the lines out and it works, but then I went and added some new coding after this and then the error was applying to lines in that code.

Blade Runner
Warlord
Belgium
b.02-15-99
posted January 22, 2001 05:57   Click Here to See the Profile for Blade RunnerClick Here to Email Blade Runner  send a private message to Blade Runner
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
quote:

Originally posted by kormer on 01-20-2001 05:36 PM
I'm working on coding in slic events for my scenario and I've been getting this error: "...766:yacc stack overflow"

YACC is a program language generator program. It has limits. I think your program was too long, so the stack, which is limited get full. Try to change the logic of your program. I am sure you can make this program shorter or different.

I hope this help,

Blade


Dale
Chieftain
Melbourne, Australia
Dec 2000
posted January 22, 2001 15:16   Click Here to See the Profile for DaleClick Here to Email Dale  send a private message to Dale
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Is your file more than 64KB? I believe (from experimenting) that SLIC has the 64KB filesize limitation. At 700-odd lines I'd say it's probably pretty close.

------------------
Author of Diplomod. The mod to fix diplomacy.

Rommell to a sub-commander outside Tobruk: "Those Australians are in there somewhere. But where? Let's advance and wait till they shoot, then shoot back."

kormer
Chieftain

Jan 2001
posted January 22, 2001 18:21   Click Here to See the Profile for kormerClick Here to Email kormer  send a private message to kormer
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I'm sure it was over 64kb. Kinda sucks you can't have that large a file. Oh well, just one more thing I'll email firaxis to fix.
Dale
Chieftain
Melbourne, Australia
Dec 2000
posted January 22, 2001 19:44   Click Here to See the Profile for DaleClick Here to Email Dale  send a private message to Dale
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Kormer you'll probably find firaxis can't do anything about the filesize limitation. That 64kb limit has been around since C64-basic. It's just one of those things when you program in any script language.

------------------
Author of Diplomod. The mod to fix diplomacy.

Rommell to a sub-commander outside Tobruk: "Those Australians are in there somewhere. But where? Let's advance and wait till they shoot, then shoot back."

heardie
GGS Co-Webmaster

Aug 1999
posted January 23, 2001 01:38   Click Here to See the Profile for heardieClick Here to Email heardie  send a private message to heardieSend a Message to UIN: 55652350 Visit heardie's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
ummm, the file MS_FUNC.slc is 92kb.
Locutus
Prince
Apolyton Borg Hengelo/Enschede, The Netherlands
Nov 1999
posted January 23, 2001 08:17   Click Here to See the Profile for LocutusClick Here to Email Locutus  send a private message to LocutusSend a Message to UIN: 52912776 Visit Locutus's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I don't think there's a max-size to SLIC files. I know for a fact that the Alexander scenario we're developing has several 64kB+ files and IIRC the standard script.slc file is something like 104kB as well (at least in CtP1, don't know about CtP2). If the stack overflow is related to this, then the total length of all SLIC files should have a max, not individual files (since the files are all read in and the code is parsed line-by-line, regardless of over how many files the lines are distributed) pasted. But for the Alexander scenario we probably have about 300kB SLIC code already (including script.slc and diplomacy.slc and stuff) so that seems unlikely.

I never saw this error message before so I don't know what it could mean, but I'd say the arguments for LogRegardEvent are in some way incorrect. I wouldn't know what is incorrect about them but I'd suggest you temporarily replace them with values that are certainly correct (values that you used earlier or something you copy from some other mod or scenario or whatever) to test this. If that doesn't cause any problems, you obviously did something wrong with your current values and should try to figure out what. If the problem remains, I haven't got a clue what's going on. If you can't figure this out, email me your file(s) and I'll have a look at them when I have the time.

kormer
Chieftain

Jan 2001
posted January 23, 2001 11:18   Click Here to See the Profile for kormerClick Here to Email kormer  send a private message to kormer
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Locutus, this problem is gone now, only cause I took out all the logregardevent functions. Aparently that raises or lowers regard accordingly and doesn't set it to a level. So anyways after hitting end turn once all my regard was set and there was no reason to keep it in there. As for that error, if I commented out the last 2 lines in the file it worked fine, nothing was wrong with those lines either, just a weird bug I guess.
Apolyton Civilization Site Forums
> > > CtP2-Creation Forum

next newest topic | next oldest topictop of page

All times are EDT

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A ReplyPost A Reply In A New Window
Hop to:

Contact Us
Apolyton Civilization Site

Powered by: Ultimate Bulletin Board, Version 5.44a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.

Front Page | Civilization III | Dinosaurs | Civilization II | Call to Power | Call to Power II | Alpha Centauri | Alternative Civs | Misc | Links | About ACS | GameStats
GameLeague | Scenario League | HAC | Civilization Scenario Collection | Spanish CivII Site | Clash of Civs | CtP Maps | Art of War | WesW's Ctp1/2 Site