Deleting XML Beginner Question

markusbeutel

NiGHTS
Joined
Sep 26, 2010
Messages
1,976
Location
Vancouver BC Canada
I'm coming from a non-modding background so bear with me if my questions seem vague or incomplete.

Regarding UI files like SocialPolicyPopup.xml - is it possible to delete xml code, (for aesthetic purposes), from files like this and then incorporate the edited file into a mod so that it replaces the original SocialPolicyPopup.xml?

My changes work as is but I don't know how/if it's possible to integrate them into a mod.
 
Yes you can override the whole file. Just put it into a mod and set VFS to true. It's not possible to partially replace things like in the DB, though.
 
Yes you can override the whole file. Just put it into a mod and set VFS to true. It's not possible to partially replace things like in the DB, though.

Thanks for the quick reply alpaca.

Does this mean you can only add things to files like SocialPolicyPopup.xml and not delete things if you choose to override the whole file?

Also, does the override have to be done through InGameUIAddin or through OnModActivated?
 
Thanks for the quick reply alpaca.

Does this mean you can only add things to files like SocialPolicyPopup.xml and not delete things if you choose to override the whole file?

Also, does the override have to be done through InGameUIAddin or through OnModActivated?

If you replace the file, the vanilla version might as well be non-existent so you can do anything you like with your new file.

You don't have to set any actions or anything, just make sure you don't change the filename and the game will use your file automatically
 
Back
Top Bottom