Jump to content

Need help with changing armor/shield stats


statesidebeast

Recommended Posts

I successfully changed stats of the weapon I wanted to change.
mods/Mod Name/Data/Tables.pak/Libs/Tables/items/melee_Weapons.xml

When I do the same for armor/Shield. The stats do not change in game.
mods/Mod Name/Data/Tables.pak/Libs/Tables/items/armor.xml

 

I tried having all the files in one folder, and also tried having all the armor as separate folders. No matter what I do. The stats in game will not change.

I can't find anything at all on google. I know I must be doing something wrong. I just don't know what. I'm lvl noob when it comes to this type of stuff. Any help will be grateful. A link to something explaining everything in detail for be extremely awesome!

Link to comment
Share on other sites

Did you ensure that you had a 0 length .tbl file with the same name?

Shields live in 'melee_weapons', 'weapons' and related files rather than in 'armor'.
Stats for one item are shared by unique item id across multiple files, to 'completely' modify an item you need to examine and if necessary revise data in each of these.

Defence stat is in 'weapons' for example, and offence stats in 'melee_weapons'. Cost and weight in 'pickable_items'.
Armor has multiple defence stats, as well as durability in 'armor', and has links to 'pickable_items', 'clothing' and others.

It is possible to change these. I had a working mod (until a versioning error broke it, my fault) which modified prices, armour protection and weapons, as well as some aspects of combat (notably stamina as protection removed - but weapons toned down vs armour considerably).
I am currently waiting for the end of significant additions to item lists with the dlc before revisiting the mod, as it was a considerable investment in time and effort to complete the changes, and complex to identify the changes in the base game and insert the differences when almost the whole file had changes so a direct compare was ... useful but still required manual review of the entire document.

Link to comment
Share on other sites

Did you ensure that you had a 0 length .tbl file with the same name?
I have the .tbl that I copied from the main file.

 

Shields live in 'melee_weapons', 'weapons' and related files rather than in 'armor' (I did not mean to put armor. I was tired and frustrated trying to figure it out)

When I change the axe stats. It worked perfectly. So, I did the same thing with the shield. Searched for the ID. I copied weapon.xml and weapon.tbl, and changed the stats to defense="13.25" max_status="73" str_req="4"

I took the numbers from another cumin shield. I Wanted 113 defense instead of 80 for a weaker shield.
It won't change for me. I tried doing it on a piece of armor. Same results with the shield. This is the order I placed it in my KCD mod folder.

KingdomComeDeliverance\mods\MyMod\Data\Tabes.pak\Libs\Tables\item
In this folder Is:
weapon.xml
weapon.tbl
melee_weapons.xml
melee_Weapons.tbl
armor.xml
armor.tbl

Do I have to make my own .tbl or use the one from the game? The original one works with the axe I edited, so I thought doing the same with the shield/armor would be work too.

 

The only reason I have the Rar Tables.pak in the mod. I downloaded mod and that is how they had theirs. I don't know if it supposed to be like that, but again. The axe still works and not the armor/shield.

Link to comment
Share on other sites

If you have the *main* .tbl file then you have the *main* .xml file loaded in a compressed form.

You need to overwrite the main .tbl, using an edit to the mod .xml and a mod zero size .tbl file with the same name. Even just creating an .xml on it's own will not by default be used without having this .tbl file as it will load the main.tbl by preference

Link to comment
Share on other sites

  • 4 months later...

It doesn't matter what values you put in the xml, if you leave the tbl file loading.

Copy the xml into the mod structure (instead of editing the core copy).
Edit the xml.
Create an empty text file in the mod package with the same name, change the extension of this empty file to .tbl

It will load the empty .tbl instead of the main unmodified .tbl, then because this is 'null' it will load the modified .xml (if it cannot find this it will load the original xml).

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...