dsb_party_coords() and sys_enter_level()...?
Posted: Sat Sep 15, 2018 3:47 am
This really simple function override does some very odd things:
If I start on level 0, it writes 0.
When I go to level 1, it writes 0 again.
Returning to level 0, it writes 1.
I've tested this across multiple levels and it gets completely out of sync.
Why isn't dsb_party_coords() updating the current level correctly? Or am I doing something wrong?
(Also notice this when called in other functions, such as sys_game_load().)
Code: Select all
function sys_enter_level(level)
local lev, px, py, pface = dsb_party_coords()
dsb_write({222, 222, 222}, lev)
end
When I go to level 1, it writes 0 again.
Returning to level 0, it writes 1.
I've tested this across multiple levels and it gets completely out of sync.
Why isn't dsb_party_coords() updating the current level correctly? Or am I doing something wrong?
(Also notice this when called in other functions, such as sys_game_load().)