• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

I need help with a small modlet

Kev123

New member
My game version is 1.3 (b9). I already managed to load the mod but is not changing anything.

You can check it here:Public, if you just make the mod yours I don't care, what i want to do is give all mobs in the game the damage that they would do in insane difficulty but have their hp values in scavenger difficulty.

 
My game version is 1.3 (b9). I already managed to load the mod but is not changing anything.

You can check it here:Public, if you just make the mod yours I don't care, what i want to do is give all mobs in the game the damage that they would do in insane difficulty but have their hp values in scavenger difficulty.


Hi Kev123

Checking your mod code, I've never seen a setting like this: set (100), I don't really know all the forms of xpath code.
Maybe you should change this set(100) value to this 100, do it in all the codes.
It should work for you.

Regards
Gouki

 
ah okay, that is fine, chatgpt is actually quite versed in unity game engine and 7 days to die. But yes it still gets stuff wrong.

which difficulty are you playing on? from what I read, you want to play on scavenger, but have zombies hit like you are on insane difficulty. is that right?

Zombie attack damage is actually stored in items.xml . you can see in the entityclasses.xml under the handitem

<property name="HandItem" value="meleeHandZombie01"/>




here we can see the value you are trying to edit

<item name="meleeHandZombie01">
<property name="Extends" value="meleeHandMaster"/>
<property name="CreativeMode" value="None"/>
<property class="Action0">
<property name="DamageEntity" value="10"/>




you would also just use the value you want to set, not include set(100) just 100.

This is just one example of a the entity class for your zombie, how its hand item controls the damage it outputs.

You could send this data back to chet and tell him he's wrong. works all the time.

you would need to a do a xpath edit using name contains zombie / Action0 / damageentity

There is more to learn here, but you are almost there. you have learned how to create a mod folder structure and xpath edits. you just need to convert your current solution to target the the right place.

in this case, items.xml and "meleeHandZombie01"

there may be more. To find out what to use, open up the entityclasses.xml in a notepad program, I recommend Sublime text. And cntrl+F for handitem and build a list of items to edit.

you can take all this info to Chet, and he should be able to help you more.

 
ah okay, that is fine, chatgpt is actually quite versed in unity game engine and 7 days to die. But yes it still gets stuff wrong.

which difficulty are you playing on? from what I read, you want to play on scavenger, but have zombies hit like you are on insane difficulty. is that right?

Zombie attack damage is actually stored in items.xml . you can see in the entityclasses.xml under the handitem

<property name="HandItem" value="meleeHandZombie01"/>




here we can see the value you are trying to edit

<item name="meleeHandZombie01">
<property name="Extends" value="meleeHandMaster"/>
<property name="CreativeMode" value="None"/>
<property class="Action0">
<property name="DamageEntity" value="10"/>




you would also just use the value you want to set, not include set(100) just 100.

This is just one example of a the entity class for your zombie, how its hand item controls the damage it outputs.

You could send this data back to chet and tell him he's wrong. works all the time.

you would need to a do a xpath edit using name contains zombie / Action0 / damageentity

There is more to learn here, but you are almost there. you have learned how to create a mod folder structure and xpath edits. you just need to convert your current solution to target the the right place.

in this case, items.xml and "meleeHandZombie01"

there may be more. To find out what to use, open up the entityclasses.xml in a notepad program, I recommend Sublime text. And cntrl+F for handitem and build a list of items to edit.

you can take all this info to Chet, and he should be able to help you more.
I tried different solutions from chatGpt for around an hour, nothing worked tho :(. Do you know where are those options stored?, i would like to see their code. (scavenger, adventurer, nomad, etc)

 
Hi Kev123

Have you tried using this code?

<set xpath="/items/item[@name='meleeHandZombie01']/property[@class='Action0']/property[@name='DamageEntity']/@value">100</set>

Regards
Gouki

 
E

Hi Kev123

Have you tried using this code?

<set xpath="/items/item[@name='meleeHandZombie01']/property[@class='Action0']/property[@name='DamageEntity']/@value">100</set>

Regards
Gouki
Even if it worked, that wouldn't cover all potential enemies

 
Back
Top