Rooms still reloading after load
Closed this issue · 4 comments
Gankra commented
Go to second room, open chest at entrance. Save. Load. Chest is still open. Leave room and come back. Chest is now closed again.
Rooms are still being reloaded secretly. Just not re-downloaded, I guess?
Gankra commented
Issue is because a superfluous "/" is being appended to the levelPath variable. All paths after you've loaded look like:
levels/openbound//firstRoomDialog.xml
Need to add a check to avoid this.
Gankra commented
This might also be a problem for resourcePath and asset loading.
FugiTech commented
According to Sburb.assetManager.blobs, all paths being passed to the asset manager seem to be fine. Likely because the asset manager handles path normalization internally?
Gankra commented
Okay cool.