1
General Discussion / Making new variants for simulator
« on: September 23, 2022, 04:40:49 AM »
So I wanted a different Conquest variant in the sim.
So I made one in campaign refit screen, opened the savefile in notepad++, and searched for the name I had given it. After finding the proper variant XML element in the savefile, I then duplicated a variant file in \starsector-core\data\variants\conquest. I then sort of pasted various strings from the XML, to the cloned .variant file (which had a json format.) I then added the variantId to \starsector-core\data\campaign\sim_opponents.csv. And this worked. But it was rather tedious. I also tried using the in-game variant editor by enabling devMode in settings.json, but my edits didn't modify the variant file, despite me pressing save? So that was out.
And now I wonder how you're "supposed" to do it?
So I made one in campaign refit screen, opened the savefile in notepad++, and searched for the name I had given it. After finding the proper variant XML element in the savefile, I then duplicated a variant file in \starsector-core\data\variants\conquest. I then sort of pasted various strings from the XML, to the cloned .variant file (which had a json format.) I then added the variantId to \starsector-core\data\campaign\sim_opponents.csv. And this worked. But it was rather tedious. I also tried using the in-game variant editor by enabling devMode in settings.json, but my edits didn't modify the variant file, despite me pressing save? So that was out.
And now I wonder how you're "supposed" to do it?