Nilex Posted January 15, 2016 Share Posted January 15, 2016 (edited) Lets say I wish to change the PSI power of Preators by making a mod. Does my aiprops.xml look good? <?xml version="1.0" ?><AIProps> <AI MODMERGEATTRIBUTE="race" MODMERGE="update" race="Praetor"> <Rank MODMERGEATTRIBUTE="type" MODMERGE="update" type="Leader"> <Props PsionicPower="xx" /></Rank> <Rank MODMERGEATTRIBUTE="type" MODMERGE="update" type="Commander"> <Props PsionicPower="xx" /></Rank> </AI></AIProps> I am asking because it's hard for me to say this actually works. logfile.txt only mentions updates from Excel XMLs but for plain XML changes there are no such logs. The only way I know how to test is to simply play the game and notice the difference. So in order not to just rely on my gut feeling I thought it would be better if I just ask the pros. {EDIT: Correction, logfile does mention plain XML changes (albeit vague) only when those changes become needed by the game (e.g. loading savegame)!} "xx" values are just a placeholder, the real file has actual values. The rest of the file is purposely left out to make the mod affect only PSI, making it compatible with other non-PSI changing racial attributes, all while keeping this mod compact in size. Technical documentation is pretty crap but I was lucky enough to find an existing example from hold the line mod by Kabill which I changed for my own needs afterwards. Btw, are the CAPSPARTS="blabla" really needed? Edited January 26, 2016 by Nilex Quote Link to comment Share on other sites More sharing options...
kabill Posted January 15, 2016 Share Posted January 15, 2016 I'm a bit out of practice but that looks like it should work, yes. If you mean what I think you mean, yes, things like MODMERGEATTRIBUTE="[whatever]" are needed as they tell the game how to load the information in the file. Quote Link to comment Share on other sites More sharing options...
Nilex Posted January 15, 2016 Author Share Posted January 15, 2016 The mod author himself lol Thanks man, appreciate the feedback. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.