Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > CtP2-Creation/AI/Mods/Scenarios-Archive > slic errors...
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
kormer is offline kormer
Chieftain

Jan 2001
time: 05:14
Post  Old Post 21-01-2001 03:36
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
slic errors... Support Apolyton buy from Amazon

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 is offline Blade Runner
Prince
Belgium
Jan 1970
time: 06:14
Lightbulb  Old Post 22-01-2001 15:57
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Enter the AD-FREE zone

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 is offline Dale
King
Sir! Why do you keep clicking on me?
Dec 2000
time: 15:14
Post  Old Post 23-01-2001 01:16
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton or Terrorists Win

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 is offline kormer
Chieftain

Jan 2001
time: 05:14
Post  Old Post 23-01-2001 04:21
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Remove this text

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 is offline Dale
King
Sir! Why do you keep clicking on me?
Dec 2000
time: 15:14
Post  Old Post 23-01-2001 05:44
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Get a bigger avatar today!

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 is offline heardie
Prince

Aug 1999
time: 15:14
Post  Old Post 23-01-2001 11:38
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Help yourself to an AD-FREE life

ummm, the file MS_FUNC.slc is 92kb.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:14
Post  Old Post 23-01-2001 18:17 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Put an end to popups!

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 is offline kormer
Chieftain

Jan 2001
time: 05:14
Post  Old Post 23-01-2001 21:18
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

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.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:14.
Apolyton Time is 00:14.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0307 seconds (88.55% PHP - 11.45% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net