Xenonauts 2

Xenonauts 2

Not enough ratings
How to Edit Soldier Stats
By Hsieh.E
General guide on how to edit soldier stats for user enjoyment.
2
3
   
Award
Favorite
Favorited
Unfavorite
Soldier Stats
Basic PT
Ever wish your soldiers underwent basic? Ever wish to have a team full of all American chads? Well now you can! This guide attempts to list common edits for folk who want to ditch balance or create interesting settings.

Navigate to: Xenonauts2\assets\assets\xenonauts\template\strategy\masters\actor\combatant\human\xenonauts

Edit files soldier_master.json and soldier_master_plus5stats with the stat ranges you desire.
Edit files in the soldier_roles with the stat ranges you desire.

Note: Incompatible with tutorial so you'll have to disable it.
Gender Inequality
Gender Inequality
Tired of looking at sweaty men and want to head canon sisters of battle or want to play as a NFL team?
"One Gender Army" https://steamcommunity.com/sharedfiles/filedetails/?id=3026290484 by CHurricane
Max Transport Capacity
Max Transport Capacity
Baffled by how fat your troops are to overload a bird with 9 guys?

Navigate to: Xenonauts2\assets\assets\xenonauts\template\strategy\aircraft\profiles\xenonaut
dropship_tier1.json

Replace Both Instances Of
{"_min":9.0,"_val":9.0,"_max":9.0,"$type"
to
{"_min":18.0,"_val":18.0,"_max":18.0,"$type"

[0.0,0.0,0.0],[0.0,0.0,1.0],[0.0,0.0,2.0],[1.0,0.0,0.0],[1.0,0.0,1.0],[1.0,0.0,2.0],[2.0,0.0,0.0],[2.0,0.0,1.0],[2.0,0.0,2.0]
with
[0.0,0.0,2.0],[1.0,0.0,2.0],[2.0,0.0,2.0],[3.0,0.0,2.0],[4.0,0.0,2.0],[5.0,0.0,2.0],[0.0,0.0,1.0],[1.0,0.0,1.0],[2.0,0.0,1.0],[3.0,0.0,1.0],[4.0,0.0,1.0],[5.0,0.0,1.0],[0.0,0.0,0.0],[1.0,0.0,0.0],[2.0,0.0,0.0],[3.0,0.0,0.0],[4.0,0.0,0.0],[5.0,0.0,0.0]

*Edits may be required before Helo spawns to take effect

Credit to "Rising Storm" https://steamcommunity.com/app/538030/discussions/0/7222135514706335087/

More Robots
Search "limit"
Raise to max number of bots you want.
Building Stats
Building Stats
Tired of slow builders? Fresh out of the Navy and miss hot bunking? Or maybe you believe the 5g radio towers should be able to cover the entire world? Now you can edit building stats!

Navigate
Xenonauts2\assets\assets\xenonauts\template\strategy\construction\building

Search
"Additive" & "AdjacencyEffectsComponent" for adjacency bonuses
"PowerUsage" for power usage
"Xenonauts.Strategy.Components.ProgressPoints" for build speed (lower means faster)
"Xenonauts.Strategy.Data.Prerequisites.OperationPointsPrerequisite" for cost
"expense" for upkeep
"detectionRadius" for radar range
"Capacity" for max personnel slots/storage

11 Comments
m.sean.gilmore Apr 13 @ 6:28pm 
You can customize the 12 starting soldiers. Hint: checkout "tutorial_pool" "Petr Ivanov", Copy paste him to one of the 12 soldiers files in "starting_pool" folder. Be sure to change the number to where he will be placed in the Skyhawk with the correct number for the soldier file he was placed in, e.g., "$content: 1". You can also customize stats, age, gender, and nationality of all the starting 12.
Alphalbatross Apr 5 @ 10:51am 
anyone figure out how to increase alloys and alenium you can get from UFOs?
F.U.D.F. Mar 26 @ 10:01pm 
hi yes, im here for the basic training lessons?

i want to be Amrikan Chad
endersblade Mar 14 @ 8:21pm 
Also, found out how to mod Research Times:
In -strategy/masters/projects/research/, there are files called research_duration0-9. Each file contains the info on research time. If you want, you can change the "_max": line to whatever you want in each file.

In -strategy/projects/research/, each research file's first line is

"$content": "xenonauts-:-Xenonauts.GameScreens.Strategy-::-masters/projects/research/research_durationX.json",

You can change the file name for the duration0-9.json. It will use whatever "_max": is in that duration file.
endersblade Mar 14 @ 8:20pm 
Anyone figure out how to make it so when you research something, then engineer it, it gives you infinite? For instance, I'd really like for Accelerated weapons to replace the base ballistic weapons.
Ichthyic Feb 9 @ 3:55am 
...and now your magnetic shotgun has a range of 12 instead of 9. again, the templates for all items past their basic versions only normally include JUST the changes made to the basic version. if you want to change something they didn't, you must add the line from the basic template for that item to the template you are modding, and then edit that. be aware... I think they did this to ever so slightly improve loading speeds (don't have to load lines that don't exist after all). It's possible if you edit enough lines in enough templates, your loading times might get ever so slightly longer. probably not noticeably though.
Ichthyic Feb 9 @ 3:49am 
1. load up the template for the standard ballistic shotgun.
2. find the line that controls the range of the weapon. In this case it is:
{"_min":0.0,"_val":9.0,"_max":3.402823E+38,"$type":"Xenonauts.GroundCombat.LongRange"},
copy that EXACTLY from the original template, including the comma at the end.
3. open the template for the magnetic shotgun (ballistic_shotgun_v2.json)
4. find where it starts listing the components for the weapon. in this case the first component listed is the one for armour penetration:
{"_min":0.0,"_val":3.0,"_max":100.0,"$type":"Xenonauts.GroundCombat.ArmourPenetration"},
5. RIGHT after the comma in the above line, paste the line for range value you copied from the basic template.
6. Now change the value 9.0 in that line to 12.0.
7. save the file and reload the game.
Ichthyic Feb 9 @ 3:49am 
All item jsons rely on basic templates, and apply changes to researched files like mods to the original template. You must copy the EXACT line you want to change from the original template, add it to the one you want to change.
Example: say you want magnetic shotguns to have 3 more range than standard ballistic.
...
endersblade Dec 17, 2024 @ 5:06pm 
Reducing cost/upkeep or Engineers/Scientists:
Navigate to: Xenonauts2\assets\assets\xenonauts\template\strategy\masters\actor\combatant\human\xenonauts
Look for Scientist_Master and Engineer_Master
Within the files, you're looking for Xenonauts.Strategy.Systems.ExpenseComponent and Xenonauts.Strategy.Components.OperationPoints
endersblade Dec 17, 2024 @ 5:06pm 
If you want to increase the amount of work space in Workshops and Labs:
Follow the above guide to get to the /construction folder
For Workshop and Laboratory, make sure you edit all three of them! Workshop, Workshop_Improved, and Workshop_Advanced, same for Labs

Search for "Xenonauts.Strategy.Components.PersonnelSlotsLink":
You'll find 5 identical entries in a row. Copy one (or more) and paste them below the ones already there, being sure to put a comma at the end of the last one currently listed

The entries look like this:
{
"$content":"xenonauts-:-Xenonauts.GameScreens.Strategy-::-construction/personnel_slot/workshop_slot.json",
"$type":"Common.Content.AssetReference`1[[Artitas.Template, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]"
},

Again, you need to do this for all three versions of each building.