Page 1 of 1

Event Bug?

Posted: Mon Dec 29, 2008 8:15 am
by Sean E
Playing as the Central powers I played the mutinies event and pressed button for Russia. But it came out as Austria! Not fair.



Image
Image

Posted: Mon Dec 29, 2008 2:42 pm
by vonRocko
This happened to me in earlier games. It was supposed to have been fixed in an earlier patch. Apparently it wasn't. :confused:

Posted: Mon Dec 29, 2008 3:58 pm
by Forezjohn
vonRocko wrote:This happened to me in earlier games. It was supposed to have been fixed in an earlier patch. Apparently it wasn't. :confused:


Or maybe unfixed by another patch :D

Posted: Mon Dec 29, 2008 9:44 pm
by calvinus
Old savegame are not fixed. The wrong event scripts are "inside" the .SAV file. New games will not show the problem.

Posted: Tue Dec 30, 2008 9:32 am
by Sean E
It was a new game started under 1.05c. With a total reinstall of the game under 1.05c.

Posted: Sun Jan 04, 2009 10:39 pm
by calvinus
Ok, I will check this stuff on next week.

Btw, I fixed the "repetitive" AI events bug (ie: Torpedoing).

Posted: Tue Jan 06, 2009 11:59 am
by calvinus
I just did a test with a savegame (started with 1.05c) gently provided by a player (I do not remember who... :( ), and the Mutinies event works perfectly against Russia, playing on the side of CP... :confused:

Make sure the event (Id 9064) is properly scripted inside the .SAV file:

BeginEvent
Id=9064
Tag=SEC_018
TagOriginal=
TitleEvent=Mutinies
Description=This event will generate desertions and mutinies in one of the following countries: Austria, Russia or Turkey.
HistoricalNotes=The deprivations of the war were manifold and both soldiers at the front and people in the homeland considerably suffered from them. As the pitcher goes often to the well, but is broken at last, some people finally decided to put this suffering to an end...
Image=0
Icon=3
Sound=36
Public=No
Mandatory=No
Played=No
Success=No
Undisclosed=No
MultipleApply=No
Difficulty=4
Duration=0
DeadlineTurn=0
DeadlineTurnLast=0
BeginModifier
Type=EM_CheckYear
Modifier=1
Parameters=1,1917
EndModifier
BeginCondition
Type=EC_DateCheck
Parameters=1,1915,Start
EndCondition
ConditionsFormula={1}
BeginEffect
Type=EE_DoSocialTest
ParametricalEffectsText=social unrests are going to be checked in %n
Parameters=AUS,0,1,0,0,0
EndEffect
BeginEffect
Type=EE_DoSocialTest
ParametricalEffectsText=social unrests are going to be checked in %n
Parameters=RUS,0,1,0,0,0
EndEffect
BeginEffect
Type=EE_DoSocialTest
ParametricalEffectsText=social unrests are going to be checked in %n
Parameters=TUR,0,1,0,0,0
EndEffect
FirstOptionTitle=Mutinies in Austria-Hungary!
FirstOptionEffectsDesc=%t The following consequences are going to be applied: %c.
FirstOptionEffects=1
FirstOptionAI={EAI_OffensiveTarget;AUS;1;3;;0;0}
SecondOptionTitle=Mutinies in Russia!
SecondOptionEffectsDesc=%t The following consequences are going to be applied: %c.
SecondOptionEffects=2
SecondOptionAI={EAI_OffensiveTarget;RUS;1;3;;0;0}
ThirdOptionTitle=Mutinies in Turkey!
ThirdOptionEffectsDesc=%t The following consequences are going to be applied: %c.
ThirdOptionEffects=3
ThirdOptionAI={EAI_OffensiveTarget;TUR;1;3;;0;0}
PlayedOptionIndex=-1
DefaultOptionIndex=1
OccurrencesMax=-1
Occurrences=0
OwningPlayer=2000
Cloned=No
ExecutionPhase=TP_Military
ExecuteAtPhaseStart=No
EndEvent


I have highlighted in bold the elements to be double-checked... ;)

If your script is different (except for the language), it means you are working with an old savegame.