javascript 'type' error

Bugs will be moved here once resolved.

Post » Mon Mar 24, 2014 3:18 pm

Problem Description
I just updated to 164.2 and now my game, which worked fine before, throws out this error.

Javascript error!
Uncaught Type error: Cannot read property 'type' of undefined http://localhost:50000/eveng.js, line 2039(col undefined)

I believe it occurs when all picked family instances have been destroyed.

@Ashley Please fix asap as i can't do anything until it's fixed.
You do not have the required permissions to view the files attached to this post.
B
43
S
23
G
21
Posts: 735
Reputation: 12,132

Post » Tue Mar 25, 2014 9:49 am

Please can you release an interim update with a fix, i'm completly scuppered until then.
B
43
S
23
G
21
Posts: 735
Reputation: 12,132

Post » Tue Mar 25, 2014 8:21 pm

Why do you try to compare a string with lowest/highest?
Are you rather trying to compare the length of the string?

Anyway, I gave it a look, and it seems to be a real bug.
If you are really in a hurry you can try replacing C:/..../construct2/exporter/html5/eveng.js with this one :
eveng.js

Use this at your own risk (: (in any case it will be replace by a new update)

The only thing I added in it was on line 1868 :
replace:
Code: Select all
               this.get = this.get_familyvar;
by:
Code: Select all
               this.get = function() {
                        return this.get_familyvar(this.index);
                    };


Note that it's not enough, you also have to check that instances are present, doing this (else you'll also get an error):
Image
B
68
S
22
G
14
Posts: 1,485
Reputation: 16,561

Post » Wed Mar 26, 2014 8:29 am

I didn't wan't to post my game and this was an easy way to get the bug message to appear.

Thanks for the quick fix, but i'll roll back a version and wait for an official update.
B
43
S
23
G
21
Posts: 735
Reputation: 12,132

Post » Thu Mar 27, 2014 4:50 pm

Should be fixed in next build.
Scirra Founder
B
399
S
236
G
89
Posts: 24,546
Reputation: 195,436


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests