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

10 years ago by Roubjon

Hey all,

I've suddenly ran into a problem with Weltmeister that previously was non-existent. One day everything was loading fine, but now Weltmeister doesn't load up any level whenever I go to choose one. I think it has something to do with JQuery updates or something like that after doing some online research and getting nowhere. I was wondering if any of you guys know anything about this or why it might even be happening

The problem seems to be within jquery-1.7.1.min.js, as it is the file listed when the error pops up using Web Console.

When using the console in Chrome I get these errors:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.

Uncaught TypeError: undefined is not a function


When using the console in FireFox I get these errors:

Use of getUserData() or setUserData() is deprecated. Use WeakMap or element.dataset instead. requestNotifier.js:64

Use of getPreventDefault() is deprecated. Use defaultPrevented instead.

Any help would be much appreciated, thanks.

10 years ago by Joncom

It's unlikely that jQuery is the culprit here. Try removing all the entities from your entities folder (have backups of course). Sometimes malformed entities can cause issues. If this doesn't fix the problem, then try copying all the Impact files back into your library from the official ZIP file. It's possible some of the source code was accidentally altered.

10 years ago by Roubjon

Sure, I'll try that for sure. Thanks! It's good to know jQuery is most likely not the problem.

10 years ago by FelipeBudinich

Actually I ran into a similar problem problem today. (I use sync Ajax calls to load JSON files)

Currently you get a warning with the same message on non-dev builds of Chrome, there may be a synchronous call somewhere on weltmeister's code and it will stop working in the near future if it doesn't get fixed. (I'm currently fixing all my games that use Sync Ajax calls)

10 years ago by Joncom

I use sync Ajax calls to load JSON files
You do this where and for what? Just curious why someone would be doing extra AJAX loading beyond what Weltmeister already does.

10 years ago by fox1t

Hi all. I searched in code directy becasue i had this issue too and it will become a problem. Debuging the editor i found that the problem is on the line 6 of entities.js.

var req = $.ajax({
url: path,
method: 'get',
dataType: 'json',

// MUST load synchronous, as the engine would otherwise determine that it
// can't resolve dependencies to weltmeister.entities when there are
// no more files to load and weltmeister.entities is still not defined
// because the ajax request hasn't finished yet.
// FIXME FFS!
async: false,


They are also other places where this occurs. So this is an editor bug that needs to be fixed...

10 years ago by fox1t

Actually all the ajax calls are with async set to false...

10 years ago by Rungo73

I've found that WM will chuck a wobbly occasionally when it doesn't like something eg some Tween events or if you are dynamically loading textures etc

I tend to wrap suspect code in an if..
if(!ig.global.wm) 

so when I load up WM the code is ignored.

Hope this helps.
Page 1 of 1
« first « previous next › last »