Windows 8 Metro Error

Discussion and feedback on Construct 2

Post » Fri Mar 16, 2012 10:12 am

After exporting and loading into Visual Studio 11 Express Beta I get this error when trying to build:

---Popup window Error

Unhandled exception at line 24, column 124 in ms-appx://00a2416c-0463-4ac7-9c39-7bc0681efbef-efcbce7rrtyba/c2runtime.js

0x800a1391 - JavaScript runtime error: 'log' is undefined

------JavaSript Error

Unhandled exception at line 24, column 124 in ms-appx://00a2416c-0463-4ac7-9c39-7bc0681efbef-efcbce7rrtyba/c2runtime.js
0x800a1391 - JavaScript runtime error: 'log' is undefined
File: c2runtime.js, line: 24 column: 124

---Highlighted Code
log("Using Canvas 2D renderer")


Any Ideas of what I'm doing wrong?
B
12
G
1
Posts: 18
Reputation: 1,388

Post » Fri Mar 16, 2012 4:12 pm

It's a known bug in the r81 beta release. See this thread for a workaround.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Tue Jan 01, 2013 9:14 am

Hi,

Sorry to resurrect this old thread but I was trying the Windows 8 exporter and, when trying to test via Visual Studio, I get this error:

>>
Unhandled exception at line 273, column 320 in ms-appx://bad454a7-aa9f-4176-abce-676120890ec4/c2runtime.js

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'Uo'
<<

which is referring to this line:

>>
new Windows.UI.Popups.MessageDialog("Note: this Windows 8 app is in Test Mode, designed for testing purchases. Before publishing, be sure to set Test Mode to 'No' in the Windows 8 object's properties.")).Uo();
<<

Any idea how to fix this? I think I followed all the steps in the "How to make a Windows 8 app" tutorial...
BTW, I'm using C2 r114 and Visual Studio Express 2012.

Thanks in advance for any help and happy new year!roberto2013-01-01 09:30:15
Image Image Image
B
82
S
21
G
8
Posts: 163
Reputation: 11,516

Post » Sun Jan 06, 2013 4:55 am

Bump...

I get a similar error (though the method now is called nn instead of Uo...) when trying to build the sample Win 8 capx file.

Am I the only one experiencing this kind of problem? Any idea? I can't make any Win 8 game if I don't find a solution for this...

Recap: I'm using Win 8 64 bits, VS Express 2012 and C2 r114.

Thanks for any help!!

Image Image Image
B
82
S
21
G
8
Posts: 163
Reputation: 11,516

Post » Sun Jan 06, 2013 7:18 pm

@roberto - disable minify on export should fix it, looks like a C2 bug. Should be fixed in next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Mon Jan 07, 2013 5:21 am

Great, thanks! I'll try it as soon as I get back to my dev PC!
Image Image Image
B
82
S
21
G
8
Posts: 163
Reputation: 11,516

Post » Mon Jan 07, 2013 12:57 pm

Yes, that was it: now it works! thanks again!
Image Image Image
B
82
S
21
G
8
Posts: 163
Reputation: 11,516


Return to Construct 2 General

Who is online

Users browsing this forum: 99Instances2Go, Ashley, Elliott, R0J0hound, Televangelist and 17 guests