Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Debugging Events

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [World War II] >> Norm Koger's The Operational Art Of War III >> Scenario Design >> Debugging Events Page: [1]
Login
Message << Older Topic   Newer Topic >>
Debugging Events - 6/17/2013 7:54:59 PM   
murphstein


Posts: 26
Joined: 8/3/2006
Status: offline
I understand this is jumping into the deep end of the pool...

I'm trying to fix an event problem in Autumn Fog 44 (WWII - West Front), mostly as a learning exercise.

The designer's intention was pretty clear:
- Starting on T52, the German player gets 11 TOs to send 11 Pzr formations to the Eastern Front
- If the German player doesn't withdraw formations, he is penalized 10VPs per formation per turn
- Once a formation is withdrawn, the 10VP/turn penalty for that formation stops being assessed

The problem I'm trying to fix is that the penalties start in the same turn as the TOs become active.

This means that the German player gets dinged for 110VPs on T52 (before the TOs can be exercised) and again on T53 (because the units seem to get withdrawn after the penalty events kick in).

I thought this would be a simple fix: edit the TO events to trigger on T50 and leave the penalty events set to trigger on T52. No joy.

Here's the event sequence for one formation, dumped from the AF44 scenario:


Event: 867, 1. SS Pz LSAH not withdrawn, Allies +10VP.
Trigger turn: 52 (PM, January 10th, 1945).
Effect: Victory 1+ (Allies).
Value: 10.

Event: 868, 1.  Pz LSAH is sent to the East Front.
Trigger: Event activated.
Effect: News only.
Trigger Event 868 (1. SS Pz LSAH is sent to the East Front.).

Event: 869, [no news]
Trigger: Event activated.
Effect: Cancel event.
Trigger Event 868 (1. SS Pz LSAH is sent to the East Front.).
Affected Event 870 ().

Event: 870, [no news]
Trigger: Event activated.
Effect: Enable event.
Delay: 1.
Trigger Event 867 (1. SS Pz LSAH not withdrawn, Allies +10VP.).
Affected Event 867 (1. SS Pz LSAH not withdrawn, Allies +10VP.).

Event: 871, Withdraw 1. SSPz LSAH
Trigger turn: 52 (PM, January 10th, 1945).
Effect: Theater Option 2 (867).

Clearly I'm missing something important about how the event engine processes these instructions.

The actual unit withdrawal events are all triggered by 868, in this case.

If someone wants to point me to a post describing all this in detail (yes, I am a programmer), cool.

dpm


_____________________________

Dan Murphy
Post #: 1
RE: Debugging Events - 6/17/2013 8:38:13 PM   
Telumar


Posts: 2236
Joined: 1/3/2006
From: niflheim
Status: offline
Clearly you didn't paste the whole event sequence. Without having looked at the original events the whole sequence for one formation should look like the following (starting with event #1 for demo purposes):

#1 Turn 52, Theater Option 1, Activate Event #2 (Withdraw Formation X)
#2 Turn 999, news only
#3 Event Activated (#2), Cancel Event #4, delay=0
#4 Turn 53, Victory 2+ (10 VPs)
#5 Event Activated (#4), Enable Event (#4), delay=0

The formation(s)/units will be wihdrawn by activation of event #2 which will trigger the following:

#6 Event activated (#2), withdraw unit (formation X, unit a)
#7 Event activated (#2), withdraw unit (formation X, unit b)
etc.


_____________________________


(in reply to murphstein)
Post #: 2
RE: Debugging Events - 6/18/2013 1:20:15 AM   
ogar

 

Posts: 297
Joined: 9/6/2009
Status: offline
@Murphstein,

Have you visited Telumar's site ?  I found his series on Struggling with the Event Editor very helpful - after my tracing through and tracing again, the actual processes and drawing ugly diagrams with arrows and ellipses and as-sordid other yuck.

Here's a link to part 3, and I recommend the earlier posts as well.
http://thetoawbeachhead.wordpress.com/2012/07/02/struggling-with-the-evil-ed-part-3-masaf/

(in reply to Telumar)
Post #: 3
Page:   [1]
All Forums >> [Current Games From Matrix.] >> [World War II] >> Norm Koger's The Operational Art Of War III >> Scenario Design >> Debugging Events Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.920