Parzival2020 Posted May 6, 2021 Share Posted May 6, 2021 I am working on a mod that will require certain server settings put a certain way for it to be played correctly. For example: <set xpath="ServerSettings\property[@name='DayNightLength']/@value">30</set> <set xpath="ServerSettings\property[@name='LootAbundance']/@value">1</set> <set xpath="ServerSettings\property[@name='DayNightLength']/@value">30</set> <set xpath="ServerSettings\property[@name='BloodMoonFrequency']/@value">1</set> I have tried adding a serverconfig.xml in to the config folder in my mod, but it is ignored. Is this possible? Link to comment Share on other sites More sharing options...
Gamida Posted May 6, 2021 Share Posted May 6, 2021 (edited) Go here... and scroll down to [*]UIMenu. I never really got it so I usually manually edit my menu but maybe you can figure it out. I am not %100 sure it still works but it may give you an idea of what to do. They may just change the single player menu but at least it may give you a start Edited May 6, 2021 by Gamida (see edit history) Link to comment Share on other sites More sharing options...
meganoth Posted May 6, 2021 Share Posted May 6, 2021 (edited) It would be a security hole to be able to change serverconfig.xml. I don't think this will ever be made possible for xml-only mods. Edited May 6, 2021 by meganoth (see edit history) 1 Link to comment Share on other sites More sharing options...
Parzival2020 Posted May 6, 2021 Author Share Posted May 6, 2021 12 minutes ago, Gamida said: Go here... and scroll down to [*]UIMenu. I never really got it so I usually manually edit my menu but maybe you can figure it out. I am not %100 sure it still works but it may give you an idea of what to do. They may just change the single player menu but at least it may give you a start Thanks I have taken a look, but dont think that helps you set default settings, just changes the options available but I am guessing the options changed since that mod was released 3 minutes ago, meganoth said: It would be a security hole to be able to change serverconfig.xml. I don't think this will ever be made possible for xml-only mods. I did wonder that seeing as you could add yourself to server admins, change server password etc, but wasnt sure if certain things like day/night length and difficulty were possible. thanks for the reply though Link to comment Share on other sites More sharing options...
Gamida Posted May 6, 2021 Share Posted May 6, 2021 Sorry it didn't help. Don't forget to add a solution here if you do find out how to do this. Others may be trying the same thing. Or if you get it working you could even upload your mod. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now