1. Open map editor from main menu
2. run
Code: Select all
/c global.player = game.player
3. Click "Save and play"
4. Results (current.log) in:
Selecting a tree (or something else i guess) in step 2 and using2946.087 Failed to deserialize mod data for "level". Error: Deserialization error, LuaObject targets to wrong object. Save file is probably corrupted.
2946.098 Error AppManagerStates.cpp:1426: Failed to load saved data for following mods:
level
Save file is probably corrupted.
Code: Select all
/c global.player = game.player.selected
Original bug report (from my mod): https://github.com/Choumiko/FARL/issues/99
I save the player in the global table during script.on_init()