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 coreysnyder

I hadn't modified my level in a while and when I went back to change something and saved, I get this error when loading my level:

GET http://localhost/zc/lib/.js 404 (Not Found) impact.js:233
Uncaught Failed to load module at lib/.js required from game.levels.level1 impact.js:230

I reverted my changes, and then simply moved an existing entity by a hair, and refreshed my game, same issue. Anyone else seen this very weird bug? If so, how can I resolve it?

Any help is greatly appreciated!

Thanks,
Corey

1 decade ago by Gamma

To start off, you must first access Weltmeister through this link,

http://localhost/impact/weltmeister.html

After you have accessed Weltmeister, go ahead and click on the "LOAD" button, and load the level your looking for. You must never load the level through the .js extension, instead load it from the level editor.

[EDIT]

Nevermind, I thought typed, "I couldn't edit the level", you need help with loading it. Sorry I'm not able to help.

1 decade ago by Joncom

Quote from coreysnyder
GET http://localhost/zc/lib/.js 404 (Not Found) impact.js:233
Uncaught Failed to load module at lib/.js required from game.levels.level1 impact.js:230
ig.game.changeLevel

I&039;m guessing that #ig.game.changeLevel has something to do with it. Is there an entity in your level that tries to run that method?

1 decade ago by quidmonkey

I saw this yesterday. I happened to me too when I moved an Entity. No idea.

1 decade ago by coreysnyder

@Quid how'd you fix this?
After I got the error, I went into my source control and reverted my changes to the level thinking I'd really messed it up. I reloaded my game and it worked fine. I went into weltmeister and moved one of my enemies by a pixel, saved, and reloaded my game. Same error. I really can't proceed b/c I'm afraid I'm building off buggy code.

@Joncom Actually, That ig.game.changeLevel was code I had typed into the console and accident ally copied over. It should be disregarded. In fact I'm going to edit the post to remove that.

Thanks for the responses!

1 decade ago by coreysnyder

removed

1 decade ago by coreysnyder

I've resolved the issue by deleting items 1 by 1 from the weltmeister editor until it started working. The culprit seems to have been my virtual analog stick entity. Be sure to always include your files in the 'requires' block in your main.js file

1 decade ago by quidmonkey

The error is caused by an empty reference in the level&039;s #.requires. For example:
ig.module( 'game.levels.mylevel' )
.requires( 'impact.image','game.entities.entity-a', '', 'game.entities.entity-b' )

Those empty '' will cause the lib/.js error. I don&039;t know why an empty reference would be inserted into #.requires, but my guess is that an entity that was previous placed on a level could no longer be loaded, so its module was removed from .requires.

1 decade ago by coreysnyder

I think the root cause of the issue was laziness on my part. If you add an item to Weltmeister I believe you don't HAVE to put it in your requires in your main.js (but you should). Then I later made the analog stick be something I used spawnEntity on rather than adding it to the level itself. So in doing so it was blowing up on me.

1 decade ago by ansimuz

I had this issue recently and the culprit was an entitty with this property

_wmIgnore: true,

hope it helps
Page 1 of 1
« first « previous next › last »