Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Mod a Custom Building so that it can only be Built Outside?  (Read 813 times)

Rogue Yun

  • Bay Watcher
  • Beware of the Carp
    • View Profile
Mod a Custom Building so that it can only be Built Outside?
« on: December 06, 2014, 01:03:31 am »

I want to create a custom 5x5 "Lumber Mill" to create "Planks" and generate infinite logs >.>. (Yes, I am a dirty cheater).

But to make myself less of a dirty cheater (or feel a little bit better about it) I thought that maybe I could limit the building so that it could only be built outside. Is that possible?
Logged

.:Simple Mood 16x16 ASCII:.
Keep it Simple. Keep it Safe.

scamtank

  • Bay Watcher
    • View Profile
Re: Mod a Custom Building so that it can only be Built Outside?
« Reply #1 on: December 06, 2014, 01:07:01 am »

DFHack has a thing for that. Don't ask me how it works.
Logged

samanato

  • Bay Watcher
  • @ Gardevoirite
    • View Profile
Re: Mod a Custom Building so that it can only be Built Outside?
« Reply #2 on: December 06, 2014, 01:31:01 am »

It's the DFHack script "outside-only". You use it like this (taking an example from my coal-furnace):

Code: [Select]
modtools/outside-only -building FURNACE_COAL -type OUTSIDE_ONLY
After "-building" obviously comes the raw name of your building, and the type can be specified EITHER (default), OUTSIDE_ONLY or INSIDE_ONLY.
Logged

Rogue Yun

  • Bay Watcher
  • Beware of the Carp
    • View Profile
Re: Mod a Custom Building so that it can only be Built Outside?
« Reply #3 on: December 06, 2014, 01:42:44 am »

I'll give it a go! Thank you very much :D
Logged

.:Simple Mood 16x16 ASCII:.
Keep it Simple. Keep it Safe.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Mod a Custom Building so that it can only be Built Outside?
« Reply #4 on: December 06, 2014, 10:33:19 pm »

It can still be build inside, but will deconstruct instantly. Sadly without any feedback for the player.

Might I ask why a lumber mill can only be outside? :P
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

samanato

  • Bay Watcher
  • @ Gardevoirite
    • View Profile
Re: Mod a Custom Building so that it can only be Built Outside?
« Reply #5 on: December 07, 2014, 04:21:42 am »

The building job automatically cancels in the latest version (don't know, if it worked the same before)

I just named my building "Coal Furnace (outside)" for the lack of a cancellation message.
Logged

Rogue Yun

  • Bay Watcher
  • Beware of the Carp
    • View Profile
Re: Mod a Custom Building so that it can only be Built Outside?
« Reply #6 on: December 07, 2014, 10:59:49 am »

It can still be build inside, but will deconstruct instantly. Sadly without any feedback for the player.

Might I ask why a lumber mill can only be outside? :P

The idea was to make cheating more difficult. By putting it outside it has less protection, placing the woodcutter at risk.
Logged

.:Simple Mood 16x16 ASCII:.
Keep it Simple. Keep it Safe.