Jagger
AGEod Grognard
Posts: 949
Joined: Sat Mar 18, 2006 2:31 pm

Event not firing

Sat Oct 27, 2007 7:48 pm

Can anyone see any problems with the structure of the event below?

It changes the manpower modifiers for volunteers in 1863. I set the event to fire on May 1, 1861 for testing purposes. Unfortunately, the new modifier values are not replacing the original values.

I set the event as a one time event. Even though I will change the modifiers three times during the game, each time the event fires, I want the modifiers permanently changed until a new one-time event modifies them again in the future.

Anybody see any problems that might prevent the event from firing?

I am also attaching at the bottom the XLS scenario file ad the US Events file with the source data. (nevermind...the attachment function claims both are invalid files and refuses to upload either of them.)


SelectFaction = $USA
StartEvent = evt_nam_USA_Volunteer_Draft1863PBEM|1|2|evt_txt_USA_Volunteer_Draft1863PBEM|NULL|NULL|124

Conditions
FixedDate = 1861/05/01

Actions
DescEvent = evt_desc_USA_Volunteer_Draft1863PBEM
ChangeActorPool = $gmaFreeVolunteers;MaxUse;1;ResetFreq;12;ImageID;mdl_CSA_Mil5.png;Title;strFreeVolunteersTitle;MsgString;strFreeVolunteers;ToolString;strFreeVolunteersTool;Param1;-62
ChangeActorPool = $gmaLowPayVolteers;MaxUse;1;ResetFreq;12;ImageID;mdl_CSA_Mil5.png;Title;strPaidVolunteersTitle;MsgString;strPaidVolunteers;ToolString;strPaidVolunteersTool;Money;1;Morale;0;Param1;-56
ChangeActorPool = $gmaMedPayVolteers;MaxUse;1;ResetFreq;12;ImageID;mdl_CSA_Mil5.png;Title;strPaidVolunteersTitle;MsgString;strPaidVolunteers;ToolString;strPaidVolunteersTool;Money;2;Morale;1;Param1;-50
ChangeActorPool = $gmaHighPayVolteers;MaxUse;1;ResetFreq;12;ImageID;mdl_CSA_Mil5.png;Title;strPaidVolunteersTitle;MsgString;strPaidVolunteers;ToolString;strPaidVolunteersTool;Money;3;Morale;2;Param1;-47

EndEvent

User avatar
McNaughton
Posts: 2766
Joined: Wed Mar 21, 2007 8:47 pm
Location: Toronto, Canada

Sat Oct 27, 2007 8:23 pm

Try this...

replace the

;

with

|

(you can only attach graphcis and zip files from the forum attachment system)

Also, ensure you don't have spaces throughout (unless the mdl files have spaces as well) I believe events and such are very case sensitive, even with spaces (yet try the first solution before messing with spaces).

Check the log files (found in the script and log directories) after running a turn, and it will show which events triggerd, and if not why (either a criteria met, or an error is shown).

Jagger
AGEod Grognard
Posts: 949
Joined: Sat Mar 18, 2006 2:31 pm

Sat Oct 27, 2007 8:33 pm

McNaughton wrote:Try this...

replace the

;

with

|

(you can only attach graphcis and zip files from the forum attachment system)

Also, ensure you don't have spaces throughout (unless the mdl files have spaces as well) I believe events and such are very case sensitive, even with spaces (yet try the first solution before messing with spaces).

Check the log files (found in the script and log directories) after running a turn, and it will show which events triggerd, and if not why (either a criteria met, or an error is shown).


Actually I used "|" in the spreadsheet. When I used the CSV splitter to create the events file, the "|" were converted to ";". I believe it is correct because there is an existing use of the "changeactorpool" command within the events file which also uses ";".

I will doublecheck for spaces. And I will check the logs files also.

Thanks!

Jagger
AGEod Grognard
Posts: 949
Joined: Sat Mar 18, 2006 2:31 pm

Sat Oct 27, 2007 9:57 pm

No spaces that I spotted. The log is not showing any event firing nor any error. Perhaps it is not being recognized at all.

I also tried adding in the Prince George region after select faction. No luck.

I see absolutely nothing wrong with the event. It is basically the same as other ChangeActorPool events.

User avatar
McNaughton
Posts: 2766
Joined: Wed Mar 21, 2007 8:47 pm
Location: Toronto, Canada

Sat Oct 27, 2007 10:04 pm

Did you create a completely new event file or did you tag this onto an existing event file?

How about instead of 'FixedDate' try 'MinDate' as it could be some problem with the date in question.

MinDate means it will trigger any time AFTER this event, while FixedDate means it will happe only ON this date. Could be, that this day is in the middle of the turn, and the game might just recognize the day of the turn that you are on inbetween turns (i.e., after the 15 day turn).

Jagger
AGEod Grognard
Posts: 949
Joined: Sat Mar 18, 2006 2:31 pm

Sat Oct 27, 2007 10:38 pm

McNaughton wrote:Did you create a completely new event file or did you tag this onto an existing event file?

How about instead of 'FixedDate' try 'MinDate' as it could be some problem with the date in question.

MinDate means it will trigger any time AFTER this event, while FixedDate means it will happe only ON this date. Could be, that this day is in the middle of the turn, and the game might just recognize the day of the turn that you are on inbetween turns (i.e., after the 15 day turn).


No, I added the events to the existing US Events file. First I used the CSV splitter. But then, I worked directly with the events file to troubleshoot.

I am using the 1st day of May. That shouldn't be a problem. Fixed date should also work as no action is taking place. I am simply changing the values of modifiers which then should be reflected in the number of conscripts per volunteer selection. The actual volunteer and draft choices are left to the player.

I am going to think about it but the only real possibility I spotted was adding in the region. Everything else looks pretty straightforward.

I don't know and I already spent a lot of time trying to troubleshoot this thing. I am going to take a break.

User avatar
Primasprit
Posts: 1614
Joined: Mon Jun 19, 2006 7:44 pm
Location: Germany

Sun Oct 28, 2007 12:15 am

Maybe that is a bug?

I tried to turn all options off via event. The event fired and the script report also told me that it worked:

Code: Select all

Line 2343:  ChangeActorPool United States of America Actor entry 5102 has been deleted
Line 2344:  ChangeActorPool United States of America Actor entry 5101 has been deleted
Line 2345:  ChangeActorPool United States of America Actor entry 5100 has been deleted
Line 2346:  ChangeActorPool United States of America Actor entry 5103 has been deleted
Line 2347:  ChangeActorPool United States of America Actor entry 5000 has been deleted
Line 2348:  ChangeActorPool United States of America Actor entry 5001 has been deleted
[...]

But nothing happened. The options are still all available.
Version 1.07f Beta

Jagger
AGEod Grognard
Posts: 949
Joined: Sat Mar 18, 2006 2:31 pm

Sun Oct 28, 2007 3:05 am

Primasprit wrote:Maybe that is a bug?

I tried to turn all options off via event. The event fired and the script report also told me that it worked:

Code: Select all

Line 2343:  ChangeActorPool United States of America Actor entry 5102 has been deleted
Line 2344:  ChangeActorPool United States of America Actor entry 5101 has been deleted
Line 2345:  ChangeActorPool United States of America Actor entry 5100 has been deleted
Line 2346:  ChangeActorPool United States of America Actor entry 5103 has been deleted
Line 2347:  ChangeActorPool United States of America Actor entry 5000 has been deleted
Line 2348:  ChangeActorPool United States of America Actor entry 5001 has been deleted
[...]

But nothing happened. The options are still all available.
Version 1.07f Beta


Ummm...maybe. I know I have tried all sorts of little changes to make it work and nothing.

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Mon Oct 29, 2007 4:07 pm

This was a bug, the option would refuse to be altered, sorry for the inconvenience (modders are great for bug-hunting!). The next version will have the fix, I successfully removed the options in my test.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 18 guests