You may have noticed me bothering random posts about the program I am working on. I want to get it finished and able to accept plug-ins asap so I can get back to learning XPath and DTDs.
[URL]
This is what the current output looks like.
Game type: Death Match
Time Limit: 0
Kill limit: 2000
Status: paused
First things first, to retrieve this information I am doing the fallowing.
1) connecting to the server
2) sending "REFRESH\n"
3) reading one byte at a time till I get to the first line break (char 10)
4) reading the first byte, then then next 24 for the players name
4.5) Repeat step 4 32 times in a row
5) Add content to the data set
6) Moving on down the list to reading the team ect.
Everything above the purple line is exactly what it should be.
What I have displayed on the image. After name value 6 for the name loop I displayed the byte values. Since there are a lot of chars below 25 displaying string values doesn't do crap. Each value is separated by the "|" char.
At the bottom of the screen you can see some text output. That is generated right after all fields where filled. Score should be the next value that is pulled. But instead it gives me eight 0s then the map name. It is set to loop to 17 but I keep getting an error at index 16.
Problems...
1) I have no problem removing the rows that have team 255 but what is all that other random crap? Shouldn't it just return the value of 0.
2) Why did every other value show up except score?
3) Whats with the 8 0s before the map name. That couldn't be scores for the players.
Any ideas?
[URL]
This is what the current output looks like.
Game type: Death Match
Time Limit: 0
Kill limit: 2000
Status: paused
First things first, to retrieve this information I am doing the fallowing.
1) connecting to the server
2) sending "REFRESH\n"
3) reading one byte at a time till I get to the first line break (char 10)
4) reading the first byte, then then next 24 for the players name
4.5) Repeat step 4 32 times in a row
5) Add content to the data set
6) Moving on down the list to reading the team ect.
Everything above the purple line is exactly what it should be.
What I have displayed on the image. After name value 6 for the name loop I displayed the byte values. Since there are a lot of chars below 25 displaying string values doesn't do crap. Each value is separated by the "|" char.
At the bottom of the screen you can see some text output. That is generated right after all fields where filled. Score should be the next value that is pulled. But instead it gives me eight 0s then the map name. It is set to loop to 17 but I keep getting an error at index 16.
Problems...
1) I have no problem removing the rows that have team 255 but what is all that other random crap? Shouldn't it just return the value of 0.
2) Why did every other value show up except score?
3) Whats with the 8 0s before the map name. That couldn't be scores for the players.
Any ideas?