Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Disabling Default Workshops  (Read 1649 times)

Rayeneth

  • Bay Watcher
    • View Profile
Disabling Default Workshops
« on: January 09, 2015, 11:01:48 pm »

Good evening, modders. I was wondering if it is yet possible to disable default workshops, or somehow remove them from build menus? I am creating a full conversion style mod and they really break the flow.

Thanks.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Disabling Default Workshops
« Reply #1 on: January 10, 2015, 12:38:34 am »

no, except with DFHack

Rayeneth

  • Bay Watcher
    • View Profile
Re: Disabling Default Workshops
« Reply #2 on: January 10, 2015, 05:19:14 am »

How with DFhack? Does it have to be active? Or can I run it once to disable it?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Disabling Default Workshops
« Reply #3 on: January 10, 2015, 03:10:14 pm »

Code: [Select]
local eventful=require('plugins.eventful')
eventful.removeNative(shop_name) < repeat this until they're all gone

You can run that script once per load, I would put it in onLoad.init.

But DFHack has to be active to use DFHack scripts, yeah.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Disabling Default Workshops
« Reply #4 on: January 10, 2015, 03:16:49 pm »

 :o
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 :::

Teneb

  • Bay Watcher
  • (they/them) Penguin rebellion
    • View Profile
Re: Disabling Default Workshops
« Reply #5 on: January 10, 2015, 04:09:01 pm »

:o
I am not one to use emotes. So I will just quote Meph.

Do we have a list of all the workshop names as they appear in DF's files?
Logged
Monstrous Manual: D&D in DF
Quote from: Tack
What if “slammed in the ass by dead philosophers” is actually the thing which will progress our culture to the next step?

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Disabling Default Workshops
« Reply #6 on: January 10, 2015, 04:17:08 pm »

I was just at a loss for words. Thats huge to TCs and deon should be told. ^^
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 :::

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Disabling Default Workshops
« Reply #7 on: January 10, 2015, 05:16:33 pm »

dammit i thought you all knew

seriously it's all here...

Roses

  • Bay Watcher
    • View Profile
Re: Disabling Default Workshops
« Reply #8 on: January 10, 2015, 05:24:15 pm »

Yep, that combined with addReactionToShop(reaction_name,shop_name) is amazing.

That being said, I have only managed to find a couple of the default shop names through trial and error. Is there a list somewhere?
« Last Edit: January 10, 2015, 06:02:39 pm by Roses »
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Disabling Default Workshops
« Reply #9 on: January 10, 2015, 06:47:03 pm »

Wow, its in some randomly named github link.  ;) How should people know?  I read the readme, its not mentioned at all. (I just checked to make sure that I'm not blind, but the dfhack main thread doesnt even link to the page you linked to. So... people really cant know about it. What would compell them to click on one of many links on the github project page thats titled "Lua API.rst"?)

Sorry for ranting a bit. ;)
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 :::

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Disabling Default Workshops
« Reply #10 on: January 10, 2015, 06:53:09 pm »

The Lua API is kind of how all the programmatic super-modders (a term I just made up) do their thing.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Disabling Default Workshops
« Reply #11 on: January 10, 2015, 07:26:53 pm »

And is there a list of workshop names? LEATHERWORKS is not something that's mentioned on wiki.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Disabling Default Workshops
« Reply #12 on: January 10, 2015, 07:45:19 pm »

I can only assume that its the ingame names?
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 :::

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Disabling Default Workshops
« Reply #13 on: January 10, 2015, 07:57:29 pm »

That would be cool, if there's no answer I will just try it myself and see if it works.
Thank you very much for the info, guys.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

scamtank

  • Bay Watcher
    • View Profile
Re: Disabling Default Workshops
« Reply #14 on: January 23, 2015, 04:54:26 am »

Yo I found them. Common sense dictated that eventful.lua would know what kind of hooks to look for and what do you know.
Logged
Pages: [1] 2