Jump to content
Sign in to follow this  
Viralbunny

Editing files question

Recommended Posts

So seems release version is pretty close, been tinkering with the files getting ready so i can add some more minor changes to my playthroughs. Thing is i`m having some issues finding the weight values of items. 

Anyone happen to know the location of the values? 

Before anyone mentions it, i`m not wanting easier games, I actually want to specialize my troops more and its easier if i have no choice due to weight limitations, so i want to make things like medic bags much heavier, pistols next to nothing, rifles heavier, magazines carry slightly more and so on. But i`m struggling to find the files with the values.

Range, TU cost for weapons, % to hit, all easy to find. 

Also cant find the unit recruitment stats and TU cost for movements and using things on the combat maps, like doors and so on, really want to make it much harder, borderline bdsm :) 

Would be great if anyone knows and they could point me in the right direction. Its possible i`ve overlooked something obvious, but you never know. 

Share this post


Link to post
Share on other sites

I'm pretty sure some of that data is hidden behind the files in the /assets/ folder. I have no idea how to unpack those files, but if you check the .manifest files you can see there are quite a few .json files bundled together. For unit recruitment stats I think the correct file is in /strategy/masters/actor/combatant/human/xenonauts/.  Always bear in mind that files follow an object-oriened approach. Each child file inherits the properties of the parent. To find the weight of something, you may have to follow back up the parent-child string until you get to the data. E.g. in the strategy section, pistols have a generic weight which is established in /masters/items/weapon_secondary.json, the parent of ballistic.pistol.json. If you want to change this weight, you change the weight value in the file you want to change (ballistic.pistol.json), this will override the value they inherit from the parent file. Also remember that common values like weight are duplicated across strategy and ground combat. If you change the value in one, you must change the value in the other. 

Share this post


Link to post
Share on other sites
14 hours ago, Max_Caine said:

I'm pretty sure some of that data is hidden behind the files in the /assets/ folder. I have no idea how to unpack those files, but if you check the .manifest files you can see there are quite a few .json files bundled together. For unit recruitment stats I think the correct file is in /strategy/masters/actor/combatant/human/xenonauts/.  Always bear in mind that files follow an object-oriened approach. Each child file inherits the properties of the parent. To find the weight of something, you may have to follow back up the parent-child string until you get to the data. E.g. in the strategy section, pistols have a generic weight which is established in /masters/items/weapon_secondary.json, the parent of ballistic.pistol.json. If you want to change this weight, you change the weight value in the file you want to change (ballistic.pistol.json), this will override the value they inherit from the parent file. Also remember that common values like weight are duplicated across strategy and ground combat. If you change the value in one, you must change the value in the other. 

Thanks, this is what i figured, very helpful sir, and i tried taking apart the assets (i know existing asset unpackers exist, but i prefer making my own) , still working on an effective method, good choice for keeping your game from being ripped off, bad for modding though ;) , i shall persist. 

 

You guys did excellent work getting 2 improved over 1, its excellent work. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×