1 decade ago
by joe
I'm getting this error all the time when loading Weltmeister. Anything obvious I'm doing wrong?
"Unresolved (circular?) dependencies: weltmeister.weltmeister, weltmeister.edit-entities, weltmeister.entities"
1 decade ago
by joe
Thanks. I don't have the line 12 bug. But I'm a noob. Maybe I'm doing something else wrong.
1 decade ago
by gosub
Are you seeing any PHP errors in the logs?
1 decade ago
by dominic
Mh, that's strange. Can you please open the following location in your browser and tell me if you see any error messages?
/lib/weltmeister/api/glob.php?glob=lib%2Fgame%2Fentities%2F*.js
It should just return an empty JS Array:
[]
1 decade ago
by joe
Sorry, been out and about and I'm just now back on.
I get this: ["lib\/game\/entities\/man.js"]
man.js is an entity I defined based off of code examples, I also added a couple lines to main.js to require it, and use it.
1 decade ago
by dominic
The response from the PHP script looks okay, but I think you've got something wrong in your module definition.
The name of the module must correspond to the path it is in, in your case it should look something like this:
ig.module(
'game.entities.man'
)
.requires(
'impact.entity'
)
.defines(function(){
// ...
});
1 decade ago
by joe
Perfect. That sorted it out. I had jacked up the structure of the module. Thanks for the help Dominic.
9 times out of 10, the circular reference for me is a missing comma in the object passed extend object, after one of the curly brackets.
Page 1 of 1
« first
« previous
next ›
last »