theRAPTLab / gsgo

GEM-STEP Foundation repo migrated from GitLab June 2023
1 stars 1 forks source link

dbgOut debugging #420

Closed benloh closed 1 year ago

benloh commented 2 years ago

In GitLab by @benloh on Jul 16, 2022, 20:23

benloh commented 2 years ago

Order of Ops

  1. DEFINE
  2. INIT

PrepRound

  1. RoundInit

StartRound

  1. UPDATE
  2. RoundStop
  3. UPDATE RoundStop
  4. INIT RoundStop
  5. RoundStop
  6. UPDATE RoundStop
  7. INIT ROundStop
  8. RoundStop
  9. ...
  10. EventTick
  11. InitTick
  12. UPDATE(s)...
  13. EventTick
  14. InitTick

dbgOut

pre PREP ROUND (on load)

START ROUND

onEvent

onEvent just seems to be broken. It's not firing.

PREP ROUND

START ROUND

#

benloh commented 2 years ago

Observations

# PROGRAM EVENT
onEvent Start [[
  dbgOut 'start'
  featCall agent.Costume setCostume 'square.json' 0
  dbgOut 'end start'
]]

Only the first dbgOut will run. The featCall and second dbgOut are not run!

Maybe onEvent compile is grabbing only the first consq method from the block?

benloh commented 2 years ago

mentioned in commit 07024c28cba360a34a42bd987098dbe76d9ab28d

benloh commented 2 years ago

Fixed with !254