Author Topic: [WIP] FS1 Upgrade  (Read 19538 times)

0 Members and 1 Guest are viewing this topic.

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
In situations like this, it helps greatly to temporarily add an event to the mission that gives you the variables you want to check as subtitles.

To do that you need a) a message like so:
Code: [Select]
$Name: DEBUG - slot1
$Team: -1
$MessageNew:  XSTR("Slot 1 - $h_slot-1", -1)
$end_multi_text
$[variable name] will be replaced with the current value of the variable.

and b) an event that like this:
Code: [Select]
$Formula: ( when
   ( true )
   ( show-subtitle-text
      "DEBUG - slot1"
      20
      20
      ( false )
      ( false )
      1000
   )
   ( show-subtitle-text
      "DEBUG - slot2"
      20
      22
      ( false )
      ( false )
      1000
   )
   ( show-subtitle-text
      "DEBUG - slot3"
      20
      24
      ( false )
      ( false )
      1000
   )
   ( show-subtitle-text
      "DEBUG - slot4"
      20
      26
      ( false )
      ( false )
      1000
   )
   ( show-subtitle-text
      "DEBUG - slot5"
      20
      28
      ( false )
      ( false )
      1000
   )
   ( show-subtitle-text
      "DEBUG - anchor slot gr 0"
      40
      20
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - anchor slot gr 1"
      40
      22
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - anchor slot gr 2"
      40
      24
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - anchor slot gr 3"
      40
      26
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - anchor slot gr 4"
      40
      28
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - anchor slot gr 5"
      40
      30
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - anchor slot gr 6"
      40
      32
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - anchor slot gr 7"
      40
      34
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - anchor slot gr 8a"
      40
      36
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - anchor slot gr 8b"
      40
      38
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - turn"
      15
      15
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - next group"
      15
      17
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - signals send"
      30
      15
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - signals limit"
      30
      17
      ( false )
      ( false )
      1000
      1
      100
   )
   ( show-subtitle-text
      "DEBUG - timer actual"
      45
      15
      ( false )
      ( false )
      1000
      1
      100
   )
)
+Name: DEBUG display
+Repeat Count: -1
+Trigger Count: 99999999
+Interval: 1

This should help you to track if and when the variable check occurs and if anything interferres with it.

Oh, and before I forget one of the basics: you are running the missions as a small campaign for testing? - because persistent variables will never work in the mission simulator
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Thanks.  I'm gonna try that, though I'll limit the number of listed messages to one per variable.
The Trivial Psychic Strikes Again!

  

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
That's prudent. I just pulled the shortest example I had (which is a mission with up to 6 groups of targets picked from 8 different configrations arriving each in 1 of 5 possible locations; creating replayability through variation needs a lot more stuff)
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."