Joubarbe wrote: ↑Sat, 21. Sep 19, 20:25
Hairless-Ape wrote: ↑Sat, 21. Sep 19, 18:15
I know it's not what you asked for, but if you just want more perks, you can do this.
Open \Mayhem\Changed Scripts\addon\scripts\Mayhem.GetMaxPerks.xml
Modify:
$maxPerks = $maxPerks + $permanentEnemies
to look like:
$maxPerks = $maxPerks + $permanentEnemies + 3 (This shows 3 extra perks, but use however many you want)
Recommend you use X-Studio to edit the file, but you could edit the XML directly with a text editor if you feel brave.
Yeah, don't do that, you will break things. Use X3\addon\9972-L044.xml. Lots of custom values, "max perks per Sanctuary" is ID 70, line 56.
I stand corrected in the proper methodology of the change. The static initialization value in 9972-L044.xml is the
proper place to make the change without question. Why make an initialization data file and a loader routine if you don't actually use it huh..
I would respectfully argue however, that given the
single place in your code-base where you load this value happens to be in Mayhem.GetMaxPerks.xml,
that the outcome is identical in function to the one I suggested. And of course, being old and slow, I could have missed some other place where it is loaded, but for now I don't see one.
If you can point it out and then gloat with rampant glee, I would at the very least cry a little, beg for forgiveness, and maybe use more vodka in my mix. If I'm right however, and it would not 'break things' as I suspect, in that case I would
ask that you implement any changes I want for the next week. To start with, I want a custom M6 ship added called "Heavy Hairless".
Out of my mind. Back in 5 minutes.