Can't manage to parse an XML on IPAD

Discussion and feedback on Construct 2

Post » Wed Sep 12, 2012 5:11 am

Hi guys! It's me again :P

I manage to find the cause of a huge problem on my project. I had to debug by test/error for like 6 hours exporting every test to appMobi until found out what my problem was.

I can't understand why this:



Doesn't work on IPAD (1 & 2) with appMobi export and crases the game (the "XML Parsed" and any event you put after that won't work).
Works PERFECT on "Run Layout", HTML 5 export and appMobi IPAD emulator.

Here is the minifiead cap file.

http://dl.dropbox.com/u/10318013/xmltest.capx

Am I doing something wrong?

Please help!

:(

Thank you guys.

(Construct 2 r103 BTW, but I don't think it is a C2 bug)GamerGon2012-09-12 05:35:47
B
29
S
6
G
5
Posts: 148
Reputation: 5,084

Post » Wed Sep 12, 2012 6:48 am

... it worked without Direct Canvas :(
B
29
S
6
G
5
Posts: 148
Reputation: 5,084

Post » Wed Sep 12, 2012 12:46 pm

Looks like directCanvas doesn't support XML parsing... hmm... I'll talk to appMobi about this.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Wed Sep 12, 2012 1:06 pm

Thank you @Ashley. XML parsing is a must.
B
29
S
6
G
5
Posts: 148
Reputation: 5,084

Post » Tue Sep 18, 2012 2:25 pm

Hey Ashley. I talked with our DC team and I'm not completely sure, but we may be able to add support for this. However I don't know when that would be added to the dev list for DirectCanvas.

The other solution is tweaking the C2 parsing code when running under DC to do the parsing on the webview side and then have the data passed down to the canvas side.

I wish I had a better answer for this but to my understanding those are our two options.
B
19
S
4
G
5
Posts: 116
Reputation: 4,369

Post » Tue Sep 18, 2012 8:35 pm

Thank you @tap! :D
@Ashley ?GamerGon2012-09-18 20:36:43
B
29
S
6
G
5
Posts: 148
Reputation: 5,084

Post » Tue Sep 18, 2012 8:37 pm

I think we use browser-provided features here so it could possibly be fixed by communicating across to the web view. It's really quite ugly to code though, so adding it to the DC side would be a lot nicer...
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to Construct 2 General

Who is online

Users browsing this forum: mullock and 14 guests