Ajax and music requests consistently failing in preview

Discussion and feedback on Construct 2

Post » Wed Sep 03, 2014 6:27 pm

Hi. I think I've reported this issue before, but here goes.

My game is designed around loading in information through Ajax pretty regularly accompanied with music. However my game has for a very long time been needlessly frustrating to test as Ajax and music streaming has proved to be extremely unstable in preview.

The catch is this never happens when using FIrefox. Firefox always flawlessly loads both music and ajax requests (so I know my code ain't broken). Chrome & Node Webkit both consistently only get one batch of requests right, then refuses to load anything else for the rest of the session, forcing me to restart. This has been the case ever since the project began development well over a year ago, where I barely had any assets in the project.

I've been using FIrefox for a while, but I find that Chrome & Node Webkit has much better performance in preview. However I can't really use them as the ajax and music doesn't load consistently.

When compiled to node-webkit, everything also works smoothly

I use windows 7 64-bit if that's any help.

Any tips on how to get this to work would be very appreciated!
B
29
S
9
Posts: 355
Reputation: 2,936

Post » Wed Sep 03, 2014 7:20 pm

Update: The ajax and music is also a problem on Opera. Just checked.
B
29
S
9
Posts: 355
Reputation: 2,936

Post » Fri Oct 03, 2014 9:05 am

If you hadn't posted this, I probably would have gone insane looking for a solution. I had the exact same problem. And of course, Construct won't let you switch preview browser mid-development, which means that I really have to hold off on music until the end of development. Luckily, all I had to do was toggle my music disabled for the time being, and I'll re-enable it at a later date.

Hopefully it will work when I'm ready to export the game.
B
6
S
2
Posts: 6
Reputation: 871

Post » Fri Oct 03, 2014 6:28 pm

I see. I'll do some experiments with it. Bit of a bummer since I kinda need both the music and successful ajax requests at the same time. NIce to know though. :)
B
29
S
9
Posts: 355
Reputation: 2,936

Post » Fri Oct 03, 2014 6:42 pm

ajax-in-local-preview-on-localhost50000

And of course, Construct won't let you switch preview browser mid-development

Of course you can???? I change my default browser constantly. Especially with Multiplayer (chrome crashes a lot, whilst firefox seems more stable)
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708


Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests