You must be logged in to post messages.
Please login or register

Caesar IV: Game Help
Moderated by kach, Gweilo

Hop to:    
Welcome! You are not logged in. Please Login or Register.4 replies
Caesar IV Heaven » Forums » Caesar IV: Game Help » Anomaly when editting a tutorial scen
Bottom
Topic Subject:Anomaly when editting a tutorial scen
Gordon Farrell
VIP
posted 03-24-08 21:27 ET (US)         
By way of teaching myself the basics of modding, I decided to try to tweak the Brundisium map from the Kingdom campaign. Everything's going pretty well but I've hit a glitch I can't figure out, and I was wondering if someone could steer me in the right direction...

Whenever I load up the scn in the editor and alter the victory conditions, even just slightly, I run into a problem. To whit: no victory ever fires, even when the conditions have been met.

I can alter everything else, and as long as I don't touch the vc, it runs fine.

Anybody got an idea what in the Brundisium.cs file could be missing, that it doesn't recognize the altered victory conditions?

Thanks in advance!

President and Creative Director, Alternate Worlds (2011 - present) http://alternate-worlds.com/
Lead Writer, Reverie World Studios, (2008 - present)
Director of Voice Acting, Reverie World Studios, (2014 - present)
AuthorReplies:
Pecunia
CBH Seraph
posted 03-25-08 13:04 ET (US)     1 / 4       
All the scenarios in the Kingdom campaign (Verona, Capua, Genoa, Brundisium and Arretium) are heavily dependent on scripting, and do not allow victory if the player hasn't done certain things in a certain order, so that's probably what's holding your victory back.

There are two possible solutions:
1. Remove the script file (.cs) entirely
2. Alter the script such that the "game.ScriptDone" flag is set to "true" somewhere: if it's set to false (the default), the game won't allow victory.

Angel Pecunia | HG Downloads programmer and techie
Caesar IV Heaven | Children of the Nile Heaven | Citadel of Poseidon (Zeus/Poseidon) | The Great Wall (Emperor)
Gordon Farrell
VIP
posted 03-25-08 23:28 ET (US)     2 / 4       
"There are two possible solutions:
1. Remove the script file (.cs) entirely
2. Alter the script such that the "game.ScriptDone" flag is set to "true" somewhere: if it's set to false (the default), the game won't allow victory."

1. Heh, yeah, it might work to completely rebuild the cs from scratch, but actually I'm wondering if the problem isn't in the scn file itself, hmm...

2. The "game.ScriptDone" flag is being set to "true." Otherwise, the scenario wouldn't end when I reach the victory goals set in the shipped scn file. However, if I just alter the victory goals in the scn file and nothing else, the scenario doesn't end.

Oh well...

President and Creative Director, Alternate Worlds (2011 - present) http://alternate-worlds.com/
Lead Writer, Reverie World Studios, (2008 - present)
Director of Voice Acting, Reverie World Studios, (2014 - present)
Gordon Farrell
VIP
posted 03-25-08 23:32 ET (US)     3 / 4       
Okay, I solved it -- I was writing the victory conditions wrong in the editor... ergh!

Btw, Pecunia...I LOVE your new addition to the tutorial dealing with cs scripting. Really clear and thoughtfully done. Great work!

President and Creative Director, Alternate Worlds (2011 - present) http://alternate-worlds.com/
Lead Writer, Reverie World Studios, (2008 - present)
Director of Voice Acting, Reverie World Studios, (2014 - present)

[This message has been edited by Gordon Farrell (edited 03-26-2008 @ 02:49 AM).]

Pecunia
CBH Seraph
posted 03-26-08 16:02 ET (US)     4 / 4       
Victory conditions can be a little confusing, yes

Glad you got it solved and I'm happy you like my scripting pages

Angel Pecunia | HG Downloads programmer and techie
Caesar IV Heaven | Children of the Nile Heaven | Citadel of Poseidon (Zeus/Poseidon) | The Great Wall (Emperor)
You must be logged in to post messages.
Please login or register

Hop to:    

Caesar IV Heaven | HeavenGames