Skip to content

Required Files

Ashley Bennett edited this page Mar 5, 2024 · 2 revisions

For ToolCore to recognise and load your tool definition, you will need to point it at the definition file. You do this by creating a file called ToolCoreFiles.txt in your mod's Data folder. In this file, you will want to specify the filenames of the SBC or XML files containing your tool definitions, one per line like so:

TestTool1.sbc
TestTool2.sbc

Ensure this file and your definition files are all directly in the Data folder of your mod.

If you want your tool to appear in the Block Tools ship category and support left/right click control, you will need to add the tool to the ShipTools Block Category, like so:

<?xml version="1.0"  encoding="utf-8"?>
<Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <CategoryClasses>
        <Category xsi:type="MyObjectBuilder_GuiBlockCategoryDefinition">
            <Id>
                <TypeId>GuiBlockCategoryDefinition</TypeId>
                <SubtypeId/>
            </Id>
            <DisplayName>DisplayName_Category_ShipTools</DisplayName>
            <Name>ShipTools</Name>
            <SearchBlocks>false</SearchBlocks>
            <IsShipCategory>true</IsShipCategory>
            <IsBlockCategory>false</IsBlockCategory>
            <IsToolCategory>true</IsToolCategory>
            <ItemIds>
                <string>ConveyorSorter/TestTool1</string>
                <string>ConveyorSorter/TestTool2</string>
            </ItemIds>
        </Category>
    </CategoryClasses>
</Definitions>
Clone this wiki locally