direct canvas not loading in app mobi

Bugs will be moved here once resolved.

Post » Wed Aug 08, 2012 2:57 pm

Hey tere im trying to develop a game for use on a phone wile uploading through direct canvas i get a black screen when loading the gameplay but using it through phone browser its working fine what am i doing something wrong or is this a known issue?
B
20
S
3
Posts: 109
Reputation: 1,967

Post » Wed Aug 08, 2012 5:50 pm

Are you using any third party plugins?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Wed Aug 08, 2012 8:09 pm

no extra plugins so far just what construct came with
--
also phone gap isnt working when i export for phone gap and when i upload the game through that it tels me im missing the phone gap api script and i need to plug it into my html file so i did but it keeps saying that its missing and i went and checked the script and its there is there any other files then the index that i need to put that script into
B
20
S
3
Posts: 109
Reputation: 1,967

Post » Wed Aug 08, 2012 8:37 pm

Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Wed Aug 08, 2012 8:54 pm

whats the best way to post it?
also is there a way of editing weather it should be done in portrait only or landscape only while exporting to app mobi?
B
20
S
3
Posts: 109
Reputation: 1,967

Post » Thu Aug 09, 2012 12:27 pm

how do i add the capx file onto the forum here?
B
20
S
3
Posts: 109
Reputation: 1,967

Post » Thu Aug 09, 2012 12:28 pm

you need to upload somewhere (Dropbox as an example) and post the link here.
B
42
S
9
G
6
Posts: 437
Reputation: 5,626

Post » Thu Aug 09, 2012 12:44 pm


like i said im usingconstruct2 stable release aswell as r99
i use direct canvas an get a blank screen when i upload to my phone but it works on the xdk in the browser on app mobi in chrome. but it works with phone browser.

Then i use phone gap and im told its missing the api files so i put them in and it still telling me im missing the api script import...

Here is the bare bones file with minimal events so its easy to sift through please let me know how to fix this i wouuld love to make lots of games for phones with html5 so hopefully we can sort out the isuue on this one

drop box file
B
20
S
3
Posts: 109
Reputation: 1,967

Post » Sat Aug 11, 2012 9:34 am

I'm getting the same issue - in the console I get the following errors:

Uncaught directCanvas error: document.addEventListener is not available in directCanvas canvas.html:401
Uncaught TypeError: Cannot set property 'width' of null :58888/cow_trix_hotmail_com.rooftoprunner/3.4.0/c2runtime.js:1039

Following these breadcrumbs, I think there are two problems: some plugin is trying to use the 'addEventListener' function, which isn't supported; and (specifically in the Construct2.js file), the following piece of code:

if (this.isDirectCanvas)
          {
               this.ctx.width = w;
               Uncaught TypeError: Cannot set property 'width' of null (repeated 2 times)
               Uncaught TypeError: Cannot set property 'width' of null
               this.ctx.height = h;
          }

gets passed an null variable.
B
55
S
12
G
8
Posts: 339
Reputation: 9,314

Post » Thu Aug 16, 2012 1:13 am

hey looks like im not the only one with this bug what can i do to fix it?
B
20
S
3
Posts: 109
Reputation: 1,967

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests