Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Parsing a file ...

Page: 1 of 1
 ensiform
11-18-2004, 2:09 PM
#1
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, 8:42 AM
#2
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.
Page: 1 of 1