I've been trying to change some of the variables in the Mods folder, however they are not saving.
It seems when I run the server, it is overwriting my new custom variables.
Example; I change a log block to have 100 hp and change weapon damage to false
When I get in the server the new variables are not saved
Another example is I change the XYZ coordinates for resource nodes under resource.defaults.cfg.
I start the server and nothing has changed and when I reopen the .cfg file the variables have been changed back to default.
I tried making the files read only after I changed the variables and saved it, but they still seem to change.
I am using notepad++ to change and save the variables.
Anyone have any thoughts?
I also did a build report and it says Resources.Spawning.CrownLand.Stone Resource Node.DeterminedPoints = 'System.Collections.Generic.List`1[Vector3ModParseable]'
Is this SystemcCollections.Generic.List`1[Vector3ModParseable] some place I can access?
Changing variable in .cfg files?
Discussion in 'Reign of Kings Discussion' started by moltke20, Feb 26, 2016.
-
Your problem is is that you're editing the wrong file.
All the files with default in their name will always be overwritten to their original values.
As said by codehatch in the update featuring mods, you have to create a new file with the name of the file you want to edit values of but without ".default".
In the new file (i.e resource.cfg) you write al the values that you want to change.
You can do this by eighter copying everything from the default file and then editing the values or only copy the lines you want to change.