-
How do you read the Player Flags and Game Flags from querying a server?
[player_flags] => 1573916676,1090
[game_flags] => 8235
I get these, and they change from gametype to gametype, and I'd like to know how to parse/read them.
Does anybody know how to?
Halo CE and Halo PC servers.
-
Re: How do you read the Player Flags and Game Flags from querying a server?
Check out the source from a Querytool: http://nikon.bungie.org/news.html?item=7667 (the release the package link).
-
Re: How do you read the Player Flags and Game Flags from querying a server?
Thanks for that! I checked the source out, but I didn't find anything in it that parsed the data received. It gets the variable, but doesn't do anything with it.
-
Re: How do you read the Player Flags and Game Flags from querying a server?
Does anybody know how to do it?
-
Re: How do you read the Player Flags and Game Flags from querying a server?
The data is parsed to the si struct in the ParseInfo function, that data is printed by the PrintBody function. I wouldn't bother that much how the data is parsed, that's a bunch of pointer operations...
What are you programming in btw?
-
Re: How do you read the Player Flags and Game Flags from querying a server?
PHP. I'm pulling the data from the server, and spitting out the relevant data.
-
Re: How do you read the Player Flags and Game Flags from querying a server?
Can't be that hard, i've seen sites do that already.
-
Re: How do you read the Player Flags and Game Flags from querying a server?
I'm pulling the data, and I get it, but I do not know how to parse the two variables I mentioned in the first post.
I get Players, Map name, etc, but I don't know the meaning of game_flags or player_flags
-
Re: How do you read the Player Flags and Game Flags from querying a server?
Ah yes... that's pretty specific and i have no idea, perhaps Korn can help you out.. if he wants to share that info when available... What more would you need anyway from all the data you're getting already?
-
Re: How do you read the Player Flags and Game Flags from querying a server?
Here's the page I got so far.
http://www.combatexpertsclan.com/ind...d=16&Itemid=70
What I'm trying to get it more information, such as flag captures to win, etc..
-
Re: How do you read the Player Flags and Game Flags from querying a server?
-
Re: How do you read the Player Flags and Game Flags from querying a server?
I'm surprised that nobody else has replied to this. Does anybody even know how to do this? Lol
I'd really appreciate the help, and will receive a thanks Easter Egg in HTML XD
-
Re: How do you read the Player Flags and Game Flags from querying a server?
The gameflags are definitely in memory. Perhaps you are looking at the wrong address?
-
Re: How do you read the Player Flags and Game Flags from querying a server?
Maybe nobody ever looked into the queried player/game-flag data, stuff like vehicle respawn time should be there of course. Maybe PM Korn to get his attention... or try to find out yourself..
-
Re: How do you read the Player Flags and Game Flags from querying a server?
Quote:
Originally Posted by
Limited
The gameflags are definitely in memory. Perhaps you are looking at the wrong address?
I'm not memory hacking here, I'm simply querying the server. Let me show you the results.
Code:
GameQuery Data:
Array
(
[host_string] => 8.6.76.127:2302
[server_info] => Array
(
[hostname] => ! =CE= [CombatExpertsClan.com] Extinction || (^_^) ||
[gamever] => 01.00.09.0620
[hostport] =>
[maxplayers] => 16
[password] => 0
[mapname] => extinction
[dedicated] => 1
[gamemode] => openplaying
[game_classic] => 0
[numplayers] => 12
[gametype] => Slayer
[teamplay] => 1
[gamevariant] => POQbum_Slayer
[fraglimit] => 75
[player_flags] => 1499840516,1090
[game_flags] => 26
)
[player_info] => Array
(
[0] => Array
(
[player_] => FRDM~Yakob
[score_] => 0
[ping_] =>
[team_] => 0
)
[1] => Array
(
[player_] => halojb1
[score_] => 0
[ping_] =>
[team_] => 0
)
[2] => Array
(
[player_] => Senator
[score_] => 2
[ping_] =>
[team_] => 0
)
[3] => Array
(
[player_] => Droid
[score_] => 0
[ping_] =>
[team_] => 1
)
[4] => Array
(
[player_] => WileECoyote
[score_] => 8
[ping_] =>
[team_] => 0
)
[5] => Array
(
[player_] => Prototype
[score_] => 14
[ping_] =>
[team_] => 1
)
[6] => Array
(
[player_] => rush
[score_] => 5
[ping_] =>
[team_] => 0
)
[7] => Array
(
[player_] => DrkOne
[score_] => 0
[ping_] =>
[team_] => 1
)
[8] => Array
(
[player_] => [Mod] King
[score_] => 7
[ping_] =>
[team_] => 1
)
[9] => Array
(
[player_] => Viper
[score_] => 0
[ping_] =>
[team_] => 1
)
[10] => Array
(
[player_] => =SCC=Badboy
[score_] => 0
[ping_] =>
[team_] => 0
)
[11] => Array
(
[player_] => Chobo101
[score_] => 5
[ping_] =>
[team_] => 1
)
)
[team_info] => Array
(
)
)
I am trying to figure out what
Quote:
[player_flags] => 1499840516,1090
[game_flags] => 26
means, and how to parse it.
-
Re: How do you read the Player Flags and Game Flags from querying a server?
Ask the Korn! If he don't know nobody does :)
-
Re: How do you read the Player Flags and Game Flags from querying a server?
I've done exactly that, but he doesn't really know. He did mention that it was documented at one time, or so he thought. I'm beginning to feel like this is going to be a fruitless effort.
-
Re: How do you read the Player Flags and Game Flags from querying a server?
I figured you would have done a search already... i just searched for 'halo gameflags' and got this:
http://cpansearch.perl.org/src/LINK/...Halo/Status.pm
There's a part for game and player flags, with the appropriate shifting and ANDing of the data... hope that helps.
-
Re: How do you read the Player Flags and Game Flags from querying a server?
I spent forever searching for it, and you find it in a matter of seconds? ... Epic fail on my part. I really appreciate it! Now, to seek help elsewhere as I'm unfamiliar with Python scriping...
-
Re: How do you read the Player Flags and Game Flags from querying a server?
If you can write in php/C i think you should be able to make sense of it...
-
Re: How do you read the Player Flags and Game Flags from querying a server?
The syntax is very similar, yes, however I don't quite understand what it's doing. I'm not an expert by PHP, by a long shot, I'm actually only an "intermediate beginner" so I don't understand some of the more complex stuff, yet.
-
Re: How do you read the Player Flags and Game Flags from querying a server?
Quote:
Originally Posted by
taterSALAD
I'm not memory hacking here, I'm simply querying the server. Let me show you the results.
:shake:
I suggest you take an interest into the code called sub decode_player_flags
-
Re: How do you read the Player Flags and Game Flags from querying a server?
Quote:
Originally Posted by
Limited
:shake:
I suggest you take an interest into the code called sub decode_player_flags
.. I saw that, did you not read the posts in between those?
Quote:
Originally Posted by
taterSALAD
The syntax is very similar, yes, however I don't quite understand what it's doing. I'm not an expert by PHP, by a long shot, I'm actually only an "intermediate beginner" so I don't understand some of the more complex stuff, yet.
Not trying to dis-respect by any means.
-
Re: How do you read the Player Flags and Game Flags from querying a server?
<< and >> is a bitshift operation, >>2 e.g. is shift right 2 bits, and & is a logical AND operation, & if >ou underst& th@ >ou'll b on ur w4>...
-
Re: How do you read the Player Flags and Game Flags from querying a server?
Thank you. I've gotten close but can't think of a decent method to implement. I really appreciate the help Vicky!