New C2 Update still breaks Win10 exports? (WinJS)

Discussion and feedback on Construct 2

Post » Wed Aug 31, 2016 10:43 am

Hi. Just updated C2 and tried to create a app pack for Win10 in Visual Studio but it shows this error:

Unhandled exception at line 5, column 2 in ms-appx://microsoft.advertising.javascript/ad.js
0x800a1391 - JavaScript runtime error: 'WinJS' is undefined

This happened in the beta and I was told by @Ashley it will be fixed when its released as stable version. But it seems its still broken?
When I disable the JS Ad SDK I get another error but I need it to show ads.

Unhandled exception at line 521, column 118 in ms-appx://9064ac0d-c2b3-486f-b2cf-21086a86a3a4/c2runtime.js
0x803f6107 - JavaScript runtime error: Unknown runtime error

Any ideas?

PS: Do I need to add another reference to make it work on Xbox One? I cant enable it in dev center with the last app package before udpating C2.
B
54
S
16
G
6
Posts: 719
Reputation: 9,207

Post » Wed Aug 31, 2016 11:32 am

We removed WinJS from the C2 export since we didn't need it for anything, but Microsoft's own ad SDK apparently requires it. They said they are working on an update to remove the dependency too. I asked MS for an update on the status of the ad SDK before the stable release and they never got back to me. I didn't want to hold up the stable release over some unspecified release date for an MS component, so it's out anyway. Hopefully MS will update the ad SDK soon and remove the WinJS dependency. Until then you can roll back to the last stable if it's a problem.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Wed Aug 31, 2016 12:12 pm

@Ashley, That's a bummer. Do the older releases work with Xbone?
ImageImage
B
46
S
13
G
2
Posts: 253
Reputation: 6,352

Post » Wed Aug 31, 2016 2:28 pm

How can I use the old version with Steam? :?:

PS: I want to know this too. :)
My "old" app pack does not allow me to enable Xbox One. Does this only work with the new updated WinStore Plugin?
Or do I just have to add another reference to make it work for Xbox? Would be nice to submit my apps for Xbox. :)
B
54
S
16
G
6
Posts: 719
Reputation: 9,207

Post » Wed Aug 31, 2016 4:02 pm

Steam makes it really hard to use specific versions. Maybe your best bet there is just to add WinJS back in to the Visual Studio project.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Thu Sep 01, 2016 9:16 am

Ok. I will try it. I downloaded it from here: http://try.buildwinjs.com/download/GetWinJS/
I try if it works after putting the winjs folder in the project folder.
B
54
S
16
G
6
Posts: 719
Reputation: 9,207

Post » Sat Sep 17, 2016 4:54 pm

I put the WinJS folder in the output folder but could not add it to the solution explorer in Visual Studio. I tried drag and drop and add folder but it said there is already a folder called WinJS. I renamed it and then added every single file and folder from older exports with "Add Existing File" so it has the same structure but now this error appears:

Unhandled exception at line 521, column 118 in ms-appx://9064ac0d-c2b3-486f-b2cf-21086a86a3a4/c2runtime.js
0x803f6107 - JavaScript runtime error: Unknown runtime error

vs studio shows this at the position mentioned above: this.iq.licenseInformation.addEventListener("licensechanged",function()

Any ideas how to fix this?
B
54
S
16
G
6
Posts: 719
Reputation: 9,207

Post » Tue Sep 20, 2016 9:44 am

I just tested it with a new project and when I add the WinStore Plugin I get an error, but in a different line. I create a bug report for it. Dont know if it is t he same here and hope it can be fixed soon. Cant update my apps. :(
B
54
S
16
G
6
Posts: 719
Reputation: 9,207


Return to Construct 2 General

Who is online

Users browsing this forum: Darknessed and 3 guests