Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by littlefoot

I'm getting an issue in Weltmeister where if I scroll slightly to the right, portions of my layers disappear (and some entire layers). The JS console says:

Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1

I've had this problem before where it seemed to be an entity or tile size issue and to fix it have had to make sure that my tile and player entity dimensions are powers of two (though for some entities this seemed to not be required :/) Anyway, now my main tile size is 64px, but I also have a layer with 32px tiles and my collision layer uses 8px tiles.

I noticed that the collision tiles are not being resized to 8px like they seemed to be before, so I've had to use small portions of collision tiles to put into the layer in Weltmeister. This wasn't ideal but has worked so far. Now however when I scroll to the right in Weltmeister a portion of the collision layer and another 64px tile layer disappears. I am also not able to select any tiles by pressing space (nothing appears), though entities still appear to work fine.

As soon as I scroll back to the left everything begins behaving as normal, can select tiles etc.

Has anyone experienced this before? Any idea of how to fix it/what I broke?

1 decade ago by Arantor

I've not had a problem with this before - but after you set the size for a given layer, you did then press apply changes to make sure it gets updated before doing anything else?

1 decade ago by littlefoot

Thanks for your reply Arantor. I did press apply (I also just went back and re-applied each layer just to be 100% sure). The game itself isn't throwing any errors like this when run, just Weltmeister (whereas before I had the issue in the game and had to change player entity size).

1 decade ago by littlefoot

Quick update on this - I was prompted to update Chrome today, which I did, and started getting a "event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future." warning in the JS console when opening Weltmeister. I did a bit of searching and found another thread here saying it's about updating jQuery.

Attempting to update however seemed to break Weltmeister completely - wasn't able to load the level. So I reverted it and tried reloading...Weltmeister now seems to work (though I had to manually load my level again) and the layers no longer disappear. I'm still worried that something could break again at any moment as I have no idea what happened (so none of the code changed...just Chrome being updated, throwing a warning, then magically fixing itself).
Page 1 of 1
« first « previous next › last »