BoomingTech / Piccolo

Piccolo (formerly Pilot) – mini game engine for games104
MIT License
5.79k stars 1.8k forks source link

Bug Report Can't enter game mode correctly after modify object location and save level #358

Open CRAFTSTARCN opened 1 year ago

CRAFTSTARCN commented 1 year ago

Describe the bug | Bug描述 If we load level, modify aobject's transform, save the level and reload it, when try get into gamemod, we'll gave the game camera locked, and not able to control anything in gamemode. If we then close the engine and open up again, select gamemode, we'll still not able to move the camera or control character.

The problem may caused by saving the level.

No log was printed in console.

Steps to reproduce | 如何复现 Steps to reproduce the behavior:

  1. Open Piccolo engine with default level and move a object's location
  2. Saving level
  3. Reload currenty level or just Reopen the engine
  4. Start gamemode

Expected behavior | 预期行为 Third person camera follow character and able to control character in this modified level.

Actual behavior | 实际行为 Camera blocked and not able to control character

Screenshots/Logs | 截图/日志

https://user-images.githubusercontent.com/24621848/191422033-8f1f9e0c-3817-4d29-879e-3f6ff1438e2c.mp4

Desktop | 桌面环境

Additional context | 补充信息 Nothing now

CRAFTSTARCN commented 1 year ago

Update: After update to new version of piccolo, if you modify save and reload, it will report an assert error(only at first time reload) if you modify, save , close and reopen, still no error report.

JK}BUVL$5%0T`19 WWQC8_B

Ol6rin commented 1 year ago

Thank you very much for reporting the bug! We'll check what's going wrong with the saving function and fix it soon.