WhatPumpkin/Sburb-Legacy

Rooms still reloading after load

Closed this issue · 4 comments

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?

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.

This might also be a problem for resourcePath and asset loading.

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?

Okay cool.