Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Question About Workshops  (Read 838 times)

HFS Victim

  • Bay Watcher
    • View Profile
Question About Workshops
« on: June 09, 2013, 01:03:31 am »

So, I'm trying to insert a new building into the game. I have never done this before, and naturally, I ran into trouble.
The building just doesn't want to appear on the workshop building menu.
These are the raws that I've got so far, spoilered due to length.
Spoiler (click to show/hide)
I want this workshop to be buildable only with adamant wafers. How would I go about implementing this and fixing my problem?
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Question About Workshops
« Reply #1 on: June 09, 2013, 01:05:49 am »

> doesn't want to appear on the workshop building menu

You also have to add it as a Permitted Building in the entity file.

[PERMITTED_BUILDING:ELEMENTAL_NEXUS]

Toxicshadow

  • Bay Watcher
    • View Profile
    • github
Re: Question About Workshops
« Reply #2 on: June 09, 2013, 01:22:19 am »

Add [BUILD_ITEM:150:BAR:NONE:INORGANIC:ADAMANTINE] to the building's raws. 150 = 1 Wafer, thus multiply the number of wafers you want by 150.
Logged
Quote
'ere the Chias get hungry...

HFS Victim

  • Bay Watcher
    • View Profile
Re: Question About Workshops
« Reply #3 on: June 09, 2013, 11:42:41 am »

Quote
You also have to add it as a Permitted Building in the entity file.

[PERMITTED_BUILDING:ELEMENTAL_NEXUS]
This has been done and the building appears in the list now.

Quote
Add [BUILD_ITEM:150:BAR:NONE:INORGANIC:ADAMANTINE] to the building's raws. 150 = 1 Wafer, thus multiply the number of wafers you want by 150.
First, I wanted to be sure that I could build the workshop with no material restrictions.
When I tried to build it, it suspended construction because there was a creature blocking the construction area.
This continued to happen even after I slaughtered all of my animals.
How should I fix this?
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Question About Workshops
« Reply #4 on: June 09, 2013, 12:43:45 pm »

Make sure you didn't block the worklocation:

WORK_LOCATION:2:2

BLOCK:1:0:0:0
BLOCK:1:0:1:0 ---- the "1" is the blocked location which is also where
BLOCK:1:0:0:0

That and make sure the worker doesn't have a pet that is standing on a blocked zone.
Logged

HFS Victim

  • Bay Watcher
    • View Profile
Re: Question About Workshops
« Reply #5 on: June 09, 2013, 01:05:01 pm »

Quote
Make sure you didn't block the worklocation:

WORK_LOCATION:2:2
I can build it now if I remove the material restriction. If I want to build it with a restriction though (say, only adamantine wafers can be used),
It says that I "Need 1 building material adamantine wafer", despite the fact that there's 20 lying on a stockpile 10 feet away.
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Question About Workshops
« Reply #6 on: June 09, 2013, 01:08:21 pm »

is the stockpile in a barrow? is it accessable? is the stockpile giving to a workshop?

Sorry for these really simple questions, just trying to see how your setup is.
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Question About Workshops
« Reply #7 on: June 09, 2013, 01:09:15 pm »

I don't know if adamantine wafers are a BUILDMAT (i don't recall ever seeing them in the list for generic workshop constructions), so it is possible that is a contradiction in terms. 

try removing the [BUILDMAT] tag. 

HFS Victim

  • Bay Watcher
    • View Profile
Re: Question About Workshops
« Reply #8 on: June 09, 2013, 01:27:26 pm »

Quote
is the stockpile in a barrow? is it accessable? is the stockpile giving to a workshop?

Sorry for these really simple questions, just trying to see how your setup is.
The stockpile is right out in the open, with no special properties attached to it.

Quote
try removing the [BUILDMAT] tag.
This does change the text that appears from "Need 1 building material adamantine wafer" to just "Need 1 adamantine wafer",
but otherwise I still have the same problem.
Logged

HFS Victim

  • Bay Watcher
    • View Profile
Re: Question About Workshops
« Reply #9 on: June 10, 2013, 11:04:30 pm »

Shameless Bump.
Sorry for the trouble, but I really want to get this resolved :(
Logged

vastaghen12

  • Bay Watcher
  • [BIOME_SUPPORT: ANY_COMPUTER:1]
    • View Profile
Re: Question About Workshops
« Reply #10 on: June 13, 2013, 06:47:27 pm »

Suggest you to try exchanging:

[BUILD_ITEM:150:BAR:NONE:INORGANIC:ADAMANTINE]

with

[BUILD_ITEM:1:BAR:NONE:INORGANIC:ADAMANTINE]

that should work.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Question About Workshops
« Reply #11 on: June 13, 2013, 07:33:29 pm »

No, that should break it. 150 is how bars work.

vastaghen12

  • Bay Watcher
  • [BIOME_SUPPORT: ANY_COMPUTER:1]
    • View Profile
Re: Question About Workshops
« Reply #12 on: June 13, 2013, 09:17:16 pm »

No, it really does  work, I just tested it with  a custom workshop.
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Question About Workshops
« Reply #13 on: June 13, 2013, 09:21:09 pm »

No, it really does  work, I just tested it with  a custom workshop.

did you test that 150 *doesn't* work?  Because 1 means "at least 1", so if a bar is 150 it is still at least 1

vastaghen12

  • Bay Watcher
  • [BIOME_SUPPORT: ANY_COMPUTER:1]
    • View Profile
Re: Question About Workshops
« Reply #14 on: June 13, 2013, 09:51:11 pm »

Yes, if you place 150 the game will ask for 150 adamantine wafers not one wafer with 150 size. However, the game will display that you only need one wafer. Heres a screenshot of a workshop using 150 if you still dont believe me:

Spoiler (click to show/hide)

Of coure, you cant really see much in the screenshot.
Logged