Ludeon Forums

Ludeon Forums

  • November 30, 2022, 03:17:29 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [ Help ] Adding new facility  (Read 739 times)


  • Muffalo
  • *
  • Posts: 2
  • Refugee
    • View Profile
[ Help ] Adding new facility
« on: July 16, 2018, 04:14:12 AM »

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:
Code: [Select]
<?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]


  • Colonist
  • ***
  • Posts: 753
  • Refugee
    • View Profile
Re: [ Help ] Adding new facility
« Reply #1 on: July 16, 2018, 11:07:41 AM »

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?
« Last Edit: July 17, 2018, 10:55:35 PM by AileTheAlien »


  • Muffalo
  • *
  • Posts: 2
  • Refugee
    • View Profile
Re: [ Help ] Adding new facility
« Reply #2 on: July 17, 2018, 04:16:49 AM »

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