Is there a tutorial for dummies on how to make a new troop type using this library? I desire to make mech troops and giant crab troops
sadly, i know of no crew replacer guides other then my own. thankfully, crew replacer is relatively simple. provided you already know the basics of moding. if you don't know the basics of starsector moding, im not up for explaining that, but you should be able to find some help with setting up the basics on the
unofficial discord, or in
Misc modding questions that are too minor to warrant their own thread. or at least directions to somewhere to set up the basics.
you are going to need to be-able to run a few lines of code in onApplicationLoad(), as well as set up a commodity in data\campaign\commodities.csv in your mod.
i can walk you through how to use the commodities.csv, but i have forgetting how to set up code for your mod. (dont judge me we all forget things now and then)
anyhow, once you got the very basics of your mod set up, if you dont already, you only need to do 3 things to create a crew.
1) set up the commodity
2) make crew replacer a libary for your mod
3) run the following line of code in onApplicationLoad() (for every job you want a given crew to do):
'crewReplacer_Main.getJob("job name goes here").addNewCrew("the commodity id of you crew",power,defence,priority);'
a description of the values showed in this line of code:
"job name goes here" is the jobID that you want this crew to do. i have a list of them somewere ask me about it.
"the commodity id of you crew" is the commodityID of your crew. this should be a thing after step 1.
power is how strong your crew is. 1 is the default.
defence is how many losses your crew tends to take. the default is 1.
priority is what order your crew is used in. higher numbers go first. the default is 10
its possible i overcomplicated step 3. if your new to moding and code that is. but ya, ask the people in the discord and in the forum how to set up the basics if you need to. i can walk you through how to set up crew replacer from there.