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

Homemade Modded Perk working incorrectly.

DiggityDan

Refugee
Good Afternoon,

I used Google Gemini to design a perk under the General Perks Tab. It "works", but not as intended. The perk is designed to reduce the player's crafting time. It does reduce the crafting, but you don't even need to assign a skill point to this "Reduced Crafting Time" perk, you automatically have it. does anyone know a fix? Code and screenshots below for reference.

you can see below i dont have a skill point into the new perk. I don't have any other mods. This is mod is being uploaded to a server for testing. Also, how can i change where it says "Crafting Time 0%"?




<?xml version="1.0" encoding="UTF-8"?>
<configs>
<!--
This mod adds a new perk called "Reduced Crafting Time" to the game.
This perk is designed to instantly reduce crafting time by 100% (making it instant)
at its single level.

It is now correctly placed under the "attGeneralPerks" attribute,
which corresponds to the "General Perks" tab in the game's UI,
as found in your provided progression.xml.
-->
<append xpath="/progression/perks">
<perk name="Reduced Crafting Time" parent="skillGeneralPerks" max_level="1" icon="meleeToolRepairT1ClawHammer"
desc_key="Reduces crafting time by 100%" title_key="Reduced Crafting Time">
<!-- Level 1: Reduces Crafting Time by 100% -->
<effect_group level="1">
<passive_effect name="CraftingTime" operation="perc_add" value="-1.0"/>
<!-- A value of -1.0 means 100% reduction in crafting time. -->
<display_text_key name="dCraftingSpeedBonus" value="100"/>
</effect_group>
</perk>
</append>

<!--
NOTE: Localization phrases are handled solely by the 'en.txt' file
in the 'Localization' folder, and are no longer appended directly in this XML.
-->
</configs>
1751650159984.png
1751649865234.png
1751650524405.png
 
If you move the level requirement from the group to inside the passive_effect it should work. If you use a ui_game_symbol_xxxx icon you'll get an icon. Here I've used the workbench. The 0% is apparently because the field is only 2 characters wide. At 50 percent it shows ok.

Code:
<append xpath="/progression/perks">
<perk name="Reduced Crafting Time" parent="skillGeneralPerks" max_level="1" icon="ui_game_symbol_workbench" desc_key="Reduces crafting time by 100%" title_key="Reduced Crafting Time">
    <effect_group>
        <passive_effect name="CraftingTime"  level="1" operation="perc_add" value="-.5"/>
        <display_text_key name="dCraftingSpeedBonus" value="100"/>
    </effect_group>
</perk>
</append>
 

Attachments

  • ct1.jpg
    ct1.jpg
    101.7 KB · Views: 4
  • ct2.jpg
    ct2.jpg
    94.4 KB · Views: 3
If you move the level requirement from the group to inside the passive_effect it should work. If you use a ui_game_symbol_xxxx icon you'll get an icon. Here I've used the workbench. The 0% is apparently because the field is only 2 characters wide. At 50 percent it shows ok.

Code:
<append xpath="/progression/perks">
<perk name="Reduced Crafting Time" parent="skillGeneralPerks" max_level="1" icon="ui_game_symbol_workbench" desc_key="Reduces crafting time by 100%" title_key="Reduced Crafting Time">
    <effect_group>
        <passive_effect name="CraftingTime"  level="1" operation="perc_add" value="-.5"/>
        <display_text_key name="dCraftingSpeedBonus" value="100"/>
    </effect_group>
</perk>
</append>
Perfect, thank you so much. Also, where can I find a list of the ui game symbols?
 
You're welcome. I think there was a list of the UI icons in the guides section before the forum rework, but not sure. Maybe search a bit. I have an old graphic from A19 that I've used. I don't recall where I got it. I think many of the icons are still the same. There's also a mod for A20 that shows the icons. I never used it, and don't know if it still works. https://7daystodiemods.com/ui-game-symbols/
 

Attachments

  • ui_game_symbol_PREVIEW_2.png
    ui_game_symbol_PREVIEW_2.png
    1,015.8 KB · Views: 3
Back
Top