Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Visual Studio and HTML Export Tier 1

Author
Message
Juande
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 25th Dec 2016 11:03
Hi,

I have tried to build a new UWP app using HTML5 Export in Tier 1. I have impoted HTML5 Files from my project in Visual Studio (I have followed the instructions in https://forum.thegamecreators.com/thread/217231). However, when I run the app without debugger, the app is closed after a few seconds (it doesn't show the game). When I run the app with debugger, I get this error: "Exception in line 3, column 12096 in ms-appx-web://6b10f84a-bee6-4038-9ea1-750949915c3f/AGKPlayer.js 0x80070057 JavaScript runtime error: invalid argument"

What am I doing wrong?

Greetings!

And... Merry Christmas!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 25th Dec 2016 12:05 Edited at: 25th Dec 2016 12:07
find this file and look what is there at line 3, column 12096
did your game run at windows without problems?
you can try remark blocks of code to find the part that cause it.

Merry Christmas too
AGK (Steam) V2.0.22 : Windows 10 Pro 64 Bit : AMD (16.12.1) Radeon R7 265 : Mac mini OS Sierra (10.12)
Juande
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 25th Dec 2016 13:39
Hi Markus

At line 3, you can see this, from the column 12046:
Module.printErr("exception thrown: "+[e,e.stack]);throw e

In red, I have showed the problem (column 12096).

The game is a demo of AGK. It is working perfectly at Windows.

Thank you very much
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 25th Dec 2016 21:24
hmm, can you see a try catch block there?
e is just the exception object after the error occurred.
i believe it is something to investigate by tgc developer paul.
AGK (Steam) V2.0.22 : Windows 10 Pro 64 Bit : AMD (16.12.1) Radeon R7 265 : Mac mini OS Sierra (10.12)
Juande
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 26th Dec 2016 22:39
Hi,

In line 3, Column 11835
try{var ret=Module["_main"](argc,argv,0);exit(ret,true)}catch(e)

I don't konw if it can help.

Thank you
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 27th Dec 2016 11:08
maybe try the debugger in firefox browser to get more details.
https://developer.mozilla.org/en-US/docs/Tools/Debugger
AGK (Steam) V2.0.22 : Windows 10 Pro 64 Bit : AMD (16.12.1) Radeon R7 265 : Mac mini OS Sierra (10.12)
Juande
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 27th Dec 2016 13:41
Hi,

In Visual Studio and without the debugger, the app is stopped after few seconds. In Mozilla, the app works fine.

The problem of the debugger is not very important for me... but I can't make the app to work fine without mozilla.

Thank you
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 27th Dec 2016 14:15
ah sorry, i forgot that u using it in universal windows platform.
but i guess than this error occur in edge browser?
u can remark code parts until the error disappear.
or try #option_explicit to get cleaner code / good programming style.
because this name AGKPlayer.js was mentioned i think only paul can help.
AGK (Steam) V2.0.22 : Windows 10 Pro 64 Bit : AMD (16.12.1) Radeon R7 265 : Mac mini OS Sierra (10.12)
apocolyp4
14
Years of Service
User Offline
Joined: 10th Jun 2010
Location:
Posted: 28th Dec 2016 20:46
I can confirm it appears to be an issue on the AppGameKit side. Ive tried exporting a blank project and get the same errors about AGKPlayer.js. I guess the changes made for AppGameKit 2.0.22 are the cause of the issue. Ive check with the previous AppGameKit build (2.0.21) and that works fine, so I suggest that you export to HTML using that version.

Login to post a reply

Server time is: 2024-11-24 22:45:55
Your offset time is: 2024-11-24 22:45:55