[ Help ] Adding new facility

Started by Flammable, July 16, 2018, 04:14:12 AM

Previous topic - Next topic


Hi everyone. I'm trying to make a mod that adds a new facility to the game. It is supposed to increase the joy of using a tv etc. but i don't know why when I build it, it says 'inactive' next to entertainment strength factor.  :-\  Code below:
<?xml version="1.0" encoding="utf-8" ?>
    <ThingDef Name="BuildingBase" Abstract="True">

    <ThingDef ParentName="BuildingBase">
        <label>games console</label>
        <description>Increases work speed. Needs to be placed near workbench. One workbench can be simultaneously linked to only two tools cabinets.</description>
            <li Class="CompProperties_Facility">

I've also added screen in the attachment.

[attachment deleted due to age]


The only two things I see that might be problems, are:
- You're overriding the BuildingBase definition that everything else in the game uses. You don't want to do that if you just want to add a new building.
- You've got the <linkableBuildings> defined in your game-console building, rather than in the TV / other buildings that will hook up to it. Maybe it's bi-directional, but the tool-cabinet you're copying off of has the stat bonus defined in the tool-cabinet, and the linkable defined in the benches. Maybe putting that into the TV will work?


You're right. I've added it to linkable facilities in tv and everything seems to be working! Thank you.