Jump to content

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. 

Link to comment
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. 

Link to comment
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. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...