How can I send this response to the server?

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

IdanMasas
Posts: 11
Joined: 10 Jul 2016, 16:05

How can I send this response to the server?

Postby IdanMasas » 24 Jul 2020, 12:21

Hey.
So I want to send this response to the server when a user is making a loginRequest.

{"t":"xt","b":{"r":-1,"o":{"rank":4,"userName":"idan0sh","list":"[{\"id\":4,\"name\":'test2,\"ip\":'213.8.147.198',\"port\":443,\"capicity\":5.0,\"dt\":202007241520},{\"id\":2,\"name\":'test3',\"ip\":'213.8.147.196',\"port\":443,\"capicity\":3.4,\"dt\":202007241520},{\"id\":6,\"name\":'test4',\"ip\":'213.8.147.200',\"port\":443,\"capicity\":2.1,\"dt\":202007241520},{\"id\":8,\"name\":'test5.',\"ip\":'213.8.147.202',\"port\":443,\"capicity\":4.2,\"dt\":202007241520},{\"id\":7,\"name\":'test6',\"ip\":'213.8.147.201',\"port\":443,\"capicity\":2.5,\"safe\":true,\"dt\":202007241520},{\"id\":1,\"name\":'test7',\"ip\":'213.8.147.195',\"port\":443,\"capicity\":2.6,\"dt\":202007241520},{\"id\":10,\"name\":'test8',\"ip\":'213.8.147.214',\"port\":443,\"capicity\":0.6,\"dt\":202007241520}]",
"safeChat":false,"_cmd":"server_list"}}}.

I tried something, but I can't find how to make it the same exact thing.
I made everything correct, except the "list", I can't find a way to make it String with all the "\" because this is a json response and this is fucking up.

How can I send this response exactly? (I need it to be the same)
Thanks!
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How can I send this response to the server?

Postby Lapo » 25 Jul 2020, 17:54

It looks like you're trying to reverse engineer some existing game protocol.
We can't help you with this, sorry.
Lapo
--
gotoAndPlay()
...addicted to flash games
IdanMasas
Posts: 11
Joined: 10 Jul 2016, 16:05

Re: How can I send this response to the server?

Postby IdanMasas » 25 Jul 2020, 19:08

Lapo wrote:It looks like you're trying to reverse engineer some existing game protocol.
We can't help you with this, sorry.


I'm not trying to reverse engineer some existing game protocol, There is an old game that not exist anymore and I'm trying to make it alive.
Please help me, I want to increase my knowledge.

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 18 guests