[Plugin] jcw_trace (raycast)

Post your work in progress addons and get feedback

Post » Tue Nov 15, 2016 4:20 pm

Johncw87 wrote:
Mirlas wrote:I found that the error only occurs in Internet Explorer 11.
In Chrome it works well.


That... actually helps. I re-created the error, and now see it in English.
Javascript error!
Object doesn't support property or method 'sign'


Apparently Internet Explorer doesn't support Math.sign(). At all. This is the kind of thing that makes web developers hate IE.

This is from MSDN:
Supported in Microsoft Edge (Edge browser). Also supported in Store apps (Microsoft Edge on Windows 10). See Version Information.

Not supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards, Internet Explorer 11 standards. Not supported in Windows 8.1.


I'm not really sure what I'm gonna do about that. I'm leaning heavily towards "screw Microsoft and their non-standards-compliant browser".


Hello! I again have the same error but this time it is in Android 4.2.2.

Chrome Version: 31.0.1650.59

Can you do something about it for compatibility?

Image
B
30
S
13
G
21
Posts: 837
Reputation: 14,654

Post » Thu Nov 17, 2016 5:55 am

B
109
S
27
G
276
Posts: 4,479
Reputation: 154,418

Post » Sat Nov 26, 2016 5:40 am

Mirlas wrote:-quote snip-

Hello! I again have the same error but this time it is in Android 4.2.2.

Chrome Version: 31.0.1650.59

Can you do something about it for compatibility?

-image snip-


I've updated the plugin with a fallback implementation of Math.sign from here:
https://developer.mozilla.org/en-US/doc ... /Math/sign

I tested Internet Explorer very briefly, and it appears to work. It will probably also work on that outdated chrome for android, too. Download link is the same Dropbox link as always.
B
54
S
19
G
13
Posts: 97
Reputation: 10,146

Post » Sat Nov 26, 2016 3:42 pm

What does Trace.HitFrac return please?
B
10
S
4
G
4
Posts: 25
Reputation: 3,174

Post » Sat Nov 26, 2016 4:59 pm

Johncw87 wrote:
Mirlas wrote:-quote snip-

Hello! I again have the same error but this time it is in Android 4.2.2.

Chrome Version: 31.0.1650.59

Can you do something about it for compatibility?

-image snip-


I've updated the plugin with a fallback implementation of Math.sign from here:
https://developer.mozilla.org/en-US/doc ... /Math/sign

I tested Internet Explorer very briefly, and it appears to work. It will probably also work on that outdated chrome for android, too. Download link is the same Dropbox link as always.



Hi, thanks for the update !.
I installed the new version and suddenly now I have this error when I open my project.
This error did not exist before, will it be due to the update of the plugin ?.

Image
B
30
S
13
G
21
Posts: 837
Reputation: 14,654

Post » Sat Nov 26, 2016 9:15 pm

Mirlas wrote:
Johncw87 wrote:
Mirlas wrote:-quote snip-

Hello! I again have the same error but this time it is in Android 4.2.2.

Chrome Version: 31.0.1650.59

Can you do something about it for compatibility?

-image snip-


I've updated the plugin with a fallback implementation of Math.sign from here:
https://developer.mozilla.org/en-US/doc ... /Math/sign

I tested Internet Explorer very briefly, and it appears to work. It will probably also work on that outdated chrome for android, too. Download link is the same Dropbox link as always.



Hi, thanks for the update !.
I installed the new version and suddenly now I have this error when I open my project.
This error did not exist before, will it be due to the update of the plugin ?.

-image snip-


I highly doubt that this is related to updating my plugin, as I didn't change the edittime.js file at all. The only way I could see an editor bug being related is if you had previously modified my plugin's edittime.js (maybe to un-comment the incomplete "Trace Box" action), since re-installing it would undo those changes.
B
54
S
19
G
13
Posts: 97
Reputation: 10,146

Post » Sat Nov 26, 2016 9:22 pm

@Johncw87


I'm not sure I understand you correctly but I will say that I have not modified the plugin at all!

Should I reinstall C2 ?.
B
30
S
13
G
21
Posts: 837
Reputation: 14,654

Post » Sat Nov 26, 2016 9:58 pm

Mirlas wrote:@Johncw87


I'm not sure I understand you correctly but I will say that I have not modified the plugin at all!

Should I reinstall C2 ?.


If you install a release build instead of a beta build, the error message will probably go away, but the error itself may still be there. It would appear that somewhere in your project, you have an object with an invalid property. My guess is that the property would normally be assigned by a combobox, but the saved value doesn't match any of the possible values. Proper investigation of this error would require examining your project xml and layout xml files.
B
54
S
19
G
13
Posts: 97
Reputation: 10,146

Post » Sat Nov 26, 2016 10:09 pm

Johncw87 wrote:
Mirlas wrote:@Johncw87


I'm not sure I understand you correctly but I will say that I have not modified the plugin at all!

Should I reinstall C2 ?.


If you install a release build instead of a beta build, the error message will probably go away, but the error itself may still be there. It would appear that somewhere in your project, you have an object with an invalid property. My guess is that the property would normally be assigned by a combobox, but the saved value doesn't match any of the possible values. Proper investigation of this error would require examining your project xml and layout xml files.


Exactly, that's what happens.
I added a capx here

viewtopic.php?f=151&t=184567&p=1082579#p1082579

It is not due to the plugin :)
B
30
S
13
G
21
Posts: 837
Reputation: 14,654

Post » Sat Nov 26, 2016 10:36 pm

Casaubon wrote:What does Trace.HitFrac return please?


HitFrac is the percentage of the distance covered by the trace line where the hit took place. So, if I start a trace at (0, 0), ended it at (4, 0), and an object's side was at (2, 0), HitFrac would be 0.5, because the hit was halfway between the start and end points. If the object's side was at (1, 0), the HitFrac would be 0.25, and if the object's side was at (3, 0), HitFrac would be 0.75
B
54
S
19
G
13
Posts: 97
Reputation: 10,146

PreviousNext

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests