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 gxxaxx

How to duplicate the symptom:

Take any working level/game.

In weltmeister click + to add a layer.
Do not select the tileset.
Save the level.

Try to load the game.
The game will partially load than go into the void.
No errors, no messages, no nuttin. It just quites.

The problem is caused by how the loader handles "tilesetName":"",

Obviously no one should have a layer with no tileset.
But, since one only needs click + then save the level (no apply changes required) this could happen without much trouble.

Also, because of the nature of the error there is zero javascript bug output. Nothin.

Makes this a little hard to debug. Once, you see the error you go "duh, what an idiot for not setting a tileset." But, getting from game will not load with zero explanation to knowing what the cause is can be a challenge.

I tried poking around to see where and what and how to put in a throw or message etc. But, this level of poking in the engine is beyond my skill set.

Just thought you'd like to know for inclusion in the next rev.

1 decade ago by lucascaro

Hi, I agree that it would be great to have some error handling for this.
Page 1 of 1
« first « previous next › last »