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

I am having trouble with some of my mods, care to take a look?

PuffDragon

Member
them.jpg


Sorry I am very new to modding, I literally started three days ago. I am having trouble with some of my appended recipes. Me and my AI are both clueless as to why these mods don't work. Any and all help or critique is welcome.

Puff's Electrical Parts Recipe

And dis one...

Puff's Cheaper Flashlight Recipe

You can find the rest of my mods below. Any pointers or tips are appreciated.

Puff's Survival Recipes

And please if you appreciate my work upvote my server below.

Upvote Puff's Server

 
I shall assist with the first mod, Puff's Electrical Parts Recipe. It is possible some changes may carry over to others.
There are a lot of regular supporters in this area who will certainly assist.

1. Change the ModInfo.xml from

<Name value="Electrical Parts" />

to

<Name value="Electrical_Parts" />
since spaces are not accepted in that value, and it will not be able to load.

2. Consider using:

<configs>
    <!-- Append Electrical Parts to end of recipes -->
    <append xpath="/recipes">
    
        <recipe name="resourceElectricParts" count="1" craft_time="10">          
            <ingredient name="resourceWood" count="50"/>
            <ingredient name="resourceScrapBrass" count="5"/>
            <ingredient name="resourceScrapPolymers" count="20"/>            
        </recipe>        
        <recipe name="resourceElectricParts" count="1" craft_time="10" craft_area="workbench" tags="workbenchCrafting">           
            <ingredient name="resourceWood" count="20"/>
            <ingredient name="resourceScrapBrass" count="10"/>
            <ingredient name="resourceScrapPolymers" count="10"/>            
        </recipe>        
        <recipe name="resourceElectricParts" count="1" craft_time="10" craft_area="chemistryStation" tags="chemStationCrafting">            
            <ingredient name="resourceWood" count="10"/>
            <ingredient name="resourceScrapBrass" count="5"/>
            <ingredient name="resourceScrapPolymers" count="5"/>            
        </recipe>
        
    </append>
</configs>

Changes include.

a) resourceElectricalParts does not exist. It is localized as Electrical but the item name is resourceElectricParts.
b) Inventory is removed. Does that even exist as a recognisable class for craft_area? Items which craft in the Backpack and Workbench do not have a craft area for default items.

c) The craft area is chemistryStation and not chemistrystation with the lower case s in station. Case sensitivity is a thing.

3. Consider adding an items.xml entry with:

<configs>   
    <append xpath="/items/item[@name='resourceElectricParts']/property[@name='Group']/@value">,Chemicals</append>   
</configs>

The Electric Parts are grouped with Resources and will appear in the Backpack and Workbench Resources tab area. It will not appear on the Chemistry Station unless manually searched for. Adding the Chemicals group will allow it to appear in the list with other items in that tab menu.

Issues
Since there is a separate recipe for the Backpack, which appears in the Backpack and carries over to the Workbench by default, it will appear twice on the Workbench. The first recipe is the lower resource count. I am unfamiliar with specifically setting just the Backpack as the crafting area, and others may be familiar with that if it's a thing.

Good luck with your modding.

 
A) Thank you very much sir, I knew it was wrong just couldn't find the correct name

B) Yes apparently you just leave it blank to craft by hand craft_area "none" or "Inventory" just delete that line.

C) I see many typos than.

Thank you very much sir, I will update the mod promptly and put you in the credits.

 
Back
Top