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 Joncom

I've noticed recently, a few times, across a couple different projects, that when I save a level, the level is saved with a problem.

ig.module( 'game.levels.track' )
.requires( 'impact.image','' )
.defines(function(){

Notice the .requires contains an empty string.

This then results in the error:
Failed to load resource: the server responded with a status of 404 (Not Found)
Uncaught Failed to load module at lib/.js required from game.levels.track

Any idea what I might be doing to cause this?

1 decade ago by TommyBs

I saw you replied to an earlier post of mine about a similar error around having empty tileset layers. Is it possible you've somehow managed to do something similar by adding an 'empty' entity to the game? Not sure how this would be possible. I sometimes find I hit shortcut keys by mistake when I'm in Weltmeister, is it possible you've done something similar? Line 363 of weltmeister.js has the save function in it so it might be worth adding a few breakpoints in chrome developer tools and seeing if there's any clues to what it is doing.

1 decade ago by Joncom

Thanks for the response TommyBs.
The problem seems to have mysteriously fixed itself...
Will post here again if the issue comes back.

1 decade ago by quidmonkey

More than likely you renamed a module, and the level still references the old module name. When this happens, you'll have to open the level file and manually specify the new module name; otherwise, Weltmeister will look for the associated .js file under the old module name and not be able to find it.
Page 1 of 1
« first « previous next › last »