How do I pass browser.QueryParam in debug preview properly?

Get help using Construct 2

Post » Sun Aug 24, 2014 6:37 pm

I have a problem to load Browser.QueryParam with debug mode. Normal preview works fine but the debug mode does not, I think I'm missing something in the [Browser:Go To] action, please have a look and tell what I did wrong.

test room debug.capx

How to test:
1) open capx then run preview
2) click the normal preview button (first tab)> it should open a new tab saying
joined as: XXXXXX in room: master#####

XXXXXX= supposed to be random
#####=supposed to be zeropad number eg: master00001, master00005

3) go to the first tab again, click preview debug
observation wrote:joined as: XXXXXX in room: master

^ the ##### is missing
what is expected wrote:joined as: XXXXXX in room: master#####


It seems the query was not sent if I add "/debug" to the url:
Code: Select all
"http://localhost:50003/debug"&"?Room="&Room


I would like to know if my syntax is incorrect? can't seem to find info on this since it's C2 exclusive. Or is it impossible by design? Or possibly unforeseen bug? Let me know.

This won't effect my game but it is quite important for the development, because I'm attempting to create dedicated server which will create hosts for games, I need to see the debug mode since there's a lot of things going on in the gamehost. Creating text for debug monitoring can be done but, it's too much that it is not practical at all compared to having debug mode preview in separate window.

cc: @Ashley
You do not have the required permissions to view the files attached to this post.
Last edited by DuckfaceNinja on Wed Aug 27, 2014 5:25 am, edited 1 time in total.
B
28
S
8
G
4
Posts: 553
Reputation: 4,924

Post » Sat Aug 30, 2014 6:41 pm

Bump.

Guess, there's no workaround for this... tried AJAX also doesn't seems to work. Means I have to start making special layers for debug, which is quite a lot...

Well, I appreciate if somebody manage to get this right and show the way.
B
28
S
8
G
4
Posts: 553
Reputation: 4,924


Return to How do I....?

Who is online

Users browsing this forum: AndreasR, David181, karthikavnair and 8 guests