Auroriax / PuzzleScriptPlus

Puzzlescript Plus: Open Source HTML5 Puzzle Game Engine (with lots of extra functionality)
https://auroriax.github.io/PuzzleScript/
34 stars 4 forks source link

Logs are messy when twiddling is enabled in a project #104

Closed Auroriax closed 1 year ago

Auroriax commented 1 year ago

Describe the bug Logs are messy when twiddling is enabled in a project: 1) During AGAIN turns, sometimes twiddles will be reported multiple times, even though they only ran a single time during the actual turn. (Probably similar to #95 ) 2) With both verbose_logging and twiddle debugging enabled, some logs are dropped. (Probably need to manage the logging mode properly, there have been some changes to logging since the visual debugger was added).

There might be more underlying issues, but fixing the logging should help dig up any deeper problems.

Reproduction Steps

  1. Run a game with again & twiddles (e.g. metadata twiddle example on the conveyor belt)
  2. Enable both verbose & twiddle logging
  3. Both behaviours as described above.

What did you expect would happen? Clean logs, reported twiddles match actual twiddles

OS & Browser version, desktop/mobile Latest Firefox on Windows 10

Screenshots, example projects, other relevant issues, etc. Notice the lack of input reporting, weird newlines, etc. afbeelding