HumanGamer / WASharpIssues

1 stars 0 forks source link

[WA2] Game crashes when entering "Locked Up" #16

Open vPubneutral opened 2 years ago

vPubneutral commented 2 years ago

Like the title says

Steps to reproduce, done on WA# 11.0.0.beta.1:

  1. Use a floing orb on the 3rd block from left in second row to unlock "Locked Up"
  2. Enter the level
  3. Game crashes after continuing from the adventure description

This issue does not occur in Vanilla WA, or OpenWA 10.3.2. I've correctly installed WA# using the instructions in the "washarp_readme.txt" (Install on top of a fresh copy of the vanilla WA editor, without archive) and the issue occurs on copies of the game installed to WA# using both the Hub Manager and the manual installation detailed in "how_to_gameswitch.txt".

Player profile with save for testing: save.zip

Log: wg.log

Temp workaround for players: Save at any point before entering the level, copy your profile in "[WA# directory]\GameData\WA2\Player Profiles\[profile name]" to an instance of OpenWA 10.3.2 at "[OpenWA directory]\GameData\WA2\Player Profiles\[profile name]", then load the save in OpenWA and complete the adventure. Once you have finished, save, exit, then copy the OpenWA save back to your WA# instance,

Aryan807 commented 2 years ago

This bug is actually due to the fact that a turtle triggering the teleporter is placed at (109, 88) the location out of the max range of width and height of level being 101. Game stores object tile logics as two-dimensional arrays with said max. Blitz3D is lenient in checking bounds of arrays and so arrays can get out of bounds without any error, but same is not true for C#.

I'll look into this issue, thanks for reporting.