View Full Version : Parsing a file ...

11-18-2004, 01: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 :)

11-20-2004, 07: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.