When you download Solar Conquest, it comes with a file called planet_classes.txt, which is a modifiable XML file that hosts can use to adjust the style of their gameplay a bit. However, when a new update is available and the host downloads it, it overrides their planet_classes.txt file with the new one, which restores everything to default again.
Any good ways to get around this?
ID:160923
![]() Jul 10 2008, 2:19 pm
|
|
![]() Jul 10 2008, 2:26 pm
|
|
You could have the game itself create the file upon first run if it doesn't exist already. Also, you could instead ship a planet_classes.txt.default, and instruct the host to save it without the .default extension.
|
I keep separate content files, tell creators to make their own, and read a config file to figure out which ones to load.
|
I'm not sure about this but I'll suggest it anyway.
1. Place planet_classes.txt in the "Defaults" directory. 2. When the world runs, use the fexists proc to locate a file of the same name in the "Config" directory. If the file does not exist make a copy of planet_classes.txt in that directory. 3. Use /Config/planet_classes.txt (You may use /Defaults/planet_classes.txt to 'Restore Default') |