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

Missing Category Icons

JimManDude

New member
I am having an issue with the crafting window not generating the category icons at the top of the left side of the crafting window(s). I feel I am missing a file entry, but as this is only day 4 of my journey into XML modding, I have yet to spot any code that jumps out as my problem. 

Basically I am making a stove to work like the campfire. To start with, I have copied all the code from the various game XML's that deal with the campfire and slowly change certain lines and test. Everything is working, nut the category icons do not show up. Here is a pic of what I am talking about:

https://postimg.cc/JshDCjyH

Any help pointing me in the right direction is very much appreciated.

 
Hi JimManDude,

Just fyi, its not recommended for people to click on masked links on public websites. If you are looking for someone to review your code, please post it.

Cheers

 
My apologies. That link is where I have the pic hosted. Lets see if this works:



As for the code, here is in the blocks.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<configs>
<append xpath="/blocks">
<block name="stoveModernVer1_JMD">
<property name="Class" value="Campfire"/>
<property class="Workstation">
<property name="Modules" value="tools,output,fuel,input"/>
<property name="Collide" value="melee,bullet,arrow,rocket"/>
</property>
<property name="CreativeMode" value="Player"/>
<property name="DescriptionKey" value="campfireDesc"/>
<property name="WorkstationIcon" value="ui_game_symbol_campfire"/>
<property name="CraftIcon" value="ui_game_symbol_spatula"/>
<property name="CraftActionName" value="lblContextActionCook"/>
<property name="Stacknumber" value="1"/>
<property name="Material" value="MstoneNoGlue"/>
<property name="Shape" value="ModelEntity"/>
<property name="Model" value="Entities/LootContainers/stoveElectricModern_01Prefab.prefab"/>
<property name="ImposterDontBlock" value="true"/>
<property name="WaterFlow" value="permitted"/>
<property name="ParticleName" value="campfire"/>
<property name="ParticleOffset" value="0.5,0.1,0.5"/>
<property name="CustomIcon" value="cntStoveModernVer1Closed"/>
<property name="Place" value="TowardsPlacer90"/>
<property name="Collide" value="movement,melee,bullet,arrow,rocket"/>
<property name="IsTerrainDecoration" value="true"/>
<property name="StabilitySupport" value="false"/>
<property name="EconomicValue" value="5"/>
<property name="EconomicBundleSize" value="1"/>
<property name="SellableToTrader" value="false"/>
<property name="MaxDamage" value="100"/>
<property name="HeatMapStrength" value="5"/>
<property name="HeatMapTime" value="5000"/>
<property name="HeatMapFrequency" value="1000"/>
<property name="BuffsWhenWalkedOn" value="buffBurningEnvironment"/>
<property name="ActiveRadiusEffects" value="buffCampfireAOE(3)"/>
<property name="OpenSound" value="campfire_open"/>
<property name="CloseSound" value="campfire_close"/>
<property name="CraftSound" value="campfire_cook_click"/>
<property name="CraftCompleteSound" value="campfire_complete_item"/>
<property class="RepairItems">
<property name="resourceRockSmall" value="5"/>
</property>
<drop event="Destroy" name="resourceRockSmall" count="3"/>
<property name="SortOrder1" value="B281"/>
<property name="SortOrder2" value="0000"/>
<property name="Group" value="Basics,Food/Cooking,Building,advBuilding"/>
<property name="FilterTags" value="MC_playerBlocks,SC_decor"/>
<property name="SoundPickup" value="campfire_grab"/>
<property name="SoundPlace" value="campfire_place"/>
</block>
</append>
</configs>




And this is for the  xui.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<configs>
<append xpath="/xui/ruleset">
<window_group name="workstation_stoveModernVer1_JMD" controller="XUiC_WorkstationWindowGroup" open_backpack_on_open="true" close_compass_on_open="true" defaultSelected="bp.content">
<window name="windowCraftingList"/>
<window name="craftingInfoPanel"/>
<window name="windowCraftingQueue"/>
<window name="windowToolsCampfire" />
<window name="windowFuel" />
<window name="windowOutput" />
<window name="windowNonPagingHeader" />
</window_group>
</append>
</configs>




I guess I'm needing to know if there are any other files I need to update?

 
Also here is an example of the recipes for the stove (all recipes follow this format):

Code:
<?xml version="1.0" encoding="UTF-8" ?>
<configs>
<append xpath="/recipes">
<recipe name="foodPumpkinPie" count="1" craft_area="stoveModernVer1_JMD" craft_tool="toolCookingPot" tags="perkMasterChef,learnable">
	<ingredient name="foodCropPumpkin" count="2"/>
	<ingredient name="foodEgg" count="1"/>
	<ingredient name="foodCornMeal" count="1"/>
	<ingredient name="resourceAnimalFat" count="1"/>
	<ingredient name="drinkJarBoiledWater" count="1"/>
</recipe>
</append>
</configs>
 
When you add a new station you need to add a crafting_category_list entry in ui_display.xml. Can look at the campfire on how it should look.

 
Back
Top