EasyRPG / Player

RPG Maker 2000/2003 and EasyRPG games interpreter
https://easyrpg.org/player/
GNU General Public License v3.0
1.01k stars 194 forks source link

Captain Novolin RPG (2k3) - Crashes while trying to load panorama during intro #1821

Closed NovemberJoy closed 5 years ago

NovemberJoy commented 5 years ago

Name of the game: Captain Novolin RPG

Download link: Here

Player platform: Windows 10 Home 1709 64-bit

Attach files (as a .zip archive or link them)

Describe the issue in detail and how to reproduce it: Start a new game and select either difficulty setting. During the intro, after the first couple of lines past the difficulty selection, it will crash before displaying a panorama every time.

fmatthew5876 commented 5 years ago

This is caused by Change Parallax Back commands which set auto scrolling. Processing one of these causes a divide by 0 exception when updating the parallax BG.

Likely a 6.0 regression caused by moving Parallax update after the foreground interpreter but haven't verified.

Will fix.

fmatthew5876 commented 5 years ago

Test Cases 1 - Panorama commands

Create map with 100x100 tiles

  1. EV01 autostart
    Change Panorama: Horiz Loop (+1) Vert Loop (+1)
    Loop:
    OpenSaveMenu
Save pan_x pan_ y
1 20478 15358
2 20476 15356
  1. Change EV01 to parallel
Save pan_x pan_ y
1 0 0
2 20478 15358
3 20476 15356
  1. Change EV01 to parallel and add Wait 0.0s as the first command
Save pan_x pan_ y
1 20478 15358
2 20476 15356

Conclusion

fmatthew5876 commented 5 years ago

Test Cases 2 - Preset panoramas

Setup the Map with cosmos panorama. Horiz scroll, auto, +1, vert scroll, auto, +1

  1. EV01 parallel
Loop:
  OpenSaveMenu
Save pan_x pan_y
1 512 512
2 510 510

Conclusion

Ghabry commented 5 years ago

This crash affected 8 users on Android btw. :+1: