PDA

View Full Version : Parsing a file ...


ensiform
11-18-2004, 02:09 PM
I wrote a client command too output something like the following to a .loc file:

{
"classname" "target_location"
"origin" "4678 -2564 4"
"message" "^1Red ^7Flag"
}

The client command is \dumploc <message> where message is what is put in that field of the file and the origin is you current location.

Can someone help me with parsing this like during init or server ?

I know hex did it a different way but i wrote my dump command like this :)

razorace
11-20-2004, 08:42 AM
Check out one of the many parsing functions used by the game to load in data. I typically use the siege parsing code for my stuff.