Bay 12 Games Forum

Please login or register.

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

Author Topic: Bars vs. Wafers, how civs use them  (Read 952 times)

Walkaboutout

  • Bay Watcher
    • View Profile
Bars vs. Wafers, how civs use them
« on: November 06, 2013, 07:12:09 pm »

(Disclaimer: This thread turns out to be more about the behavior of the [DEEP_SPECIAL] tag in the raws, rather than a bars Vs. wafers usage thread. My initial thinking that the problem was related to bars and wafers was incorrect. Just FYI for those reading)

So. Had an idea to add a couple of metals to my game. Just a personal mod, and small. The original intent was to make Candy heavier, add Mithril in as a direct replacement for the original Candy, then add an alloy of the two. Candy and Mithril are both treated as original Candy, in that they're wafers, can be used to make clothing, etc. They're also both treated as Deep Specials, so they spawn up on maps like original Candy does, way down deep, in spires.

I figured the alloy, which requires one wafer of each, one steel bar (for lack of a better idea at the moment), and a flux boulder, should itself be a bar when made, rather than a wafer. That was where I ran into an issue.

I guess civs just don't make or do anything with wafers, but if you have something that is a bar, even an alloy of the otherwise never produced Candy and new Mithril wafers, the civs will still produce it at the Mountain Homes. It caught me off guard I guess.

Example: The trading caravan never, ever, makes or brings Candy items, or Candy wafers, or Raw Candy (or Mithril too, in this case). That's normal. They just don't seem make them, bring them to you to trade, etc. Even though they have the permitted reaction, it's only the player that ever does that.

However, add in a reaction to use the above materials and make an alloy BAR as the result (no raw material mineral of it that spawns of course since it's an alloy), and apparently the Mountain Homes just go nuts. I guess the solution is to simply make the alloy a wafer also, I just thought it more appropriate to make it a bar. I was also going to make a bar out of Candy, since it was becoming heavier in my mod, but then I assume I'd end up with the same problem.

I'd start seeing migrant hunters show up with Candy crossbows, just as they did with my new alloy, and the caravan bringing a ton of crafts, weapons, or anything that could be made of metal, made from the alloy and the new bar type Candy.

So, I guess the whole point of this post is to ask if there's any way to control that? I assume not. I just had figured since the Mountain Homes NEVER seem to make their own Candy, they would never have the reagents to make the alloy. Obviously the way the game abstracts the Mountain Homes out makes this untrue however, sigh. I wanted the alloy (and altered Candy bars), to be a rare thing of course, but obviously that wasn't the result.
« Last Edit: November 07, 2013, 11:50:54 am by Walkaboutout »
Logged

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: Bars vs. Wafers, how civs use them
« Reply #1 on: November 06, 2013, 07:36:54 pm »

I thought that the reason that stuff like Candy wasn't used by the Mountain Homes was because it was [DEEP_SPECIAL]

Anything with [DEEP_SPECIAL] [DEEP_SURFACE] or [SPECIAL] isn't supposed to be used by any civs during world-gen.

Does your new material have any of these tokens?

E: There's also the fact that reactions will grant a civilization access to the product, even if they cannot access the necessary reagents. This is why the dwarvern civ is always able to access steel, even if they don't have any iron or flux.
« Last Edit: November 06, 2013, 08:06:03 pm by BlackFlyme »
Logged

Walkaboutout

  • Bay Watcher
    • View Profile
Re: Bars vs. Wafers, how civs use them
« Reply #2 on: November 06, 2013, 09:29:39 pm »

I didn't realize that the reaction granted access, period. I figured it was abstracted out such that, if no sites for that civ had a particular material in their area of influence, then it would go unused. Of course, that's a moot point here, since Candy, and now my Mithril, are basically going to be at every site, deep down enough.

Now, that said, I didn't realize those three tags prevented use during world-gen. That may be all I need. Though, for a material that is only a makeable alloy of two existing [DEEP_SPECIAL] tagged mineral/metals that appear in the ground, I wonder which tag to use? I assume just the same [DEEP_SPECIAL] on the metal itself, in the inorganic_metal raw file. The only time it would spawn as a mineable mineral in the ground is if I were to add it to inorganic_mineral, with the Raw Mithril, and Raw Candy, right?

I guess, assuming my conclusion is correct, that makes perfect sense. I was not making the connection between the metal and the mineral raw files in this case. For some reason I was thinking that tag would cause it to spawn, but duh, that's only going to apply if I have a mineral entry, which of course I don't because it's an alloy. All fairly simple, and a silly oversight on my part I guess, haha. Just glad I can have my cake and eat it too in this case. Thanks much BlackFlyme for the contribution. Think this will solve my issue nicely!
Logged

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: Bars vs. Wafers, how civs use them
« Reply #3 on: November 06, 2013, 09:43:59 pm »

I think all you have to do is give it [SPECIAL]

[DEEP_SPECIAL] makes it behave just like Candy spires, and [DEEP_SURFACE] makes it function as the material that makes up the surface of the HFS.

I haven't made any of these three special material types before, I'm just going off what is on the wiki, but it should work.
Logged

Walkaboutout

  • Bay Watcher
    • View Profile
Re: Bars vs. Wafers, how civs use them
« Reply #4 on: November 06, 2013, 11:04:11 pm »

You were entirely right Black. I've added [DEEP_SPECIAL] to the alloy entry in the metals raw, and that seems to have done the trick. One caravan from the dorfs showed up, and had no alloy with it at all. Because it's a metals entry, and not a minerals entry, I'm pretty sure I won't have an issue with it appearing as generated mineable materials, like the Raw Candy and Raw Mithril mineral entries. That said, I'll do more testing. More than just one caravan, just to be sure, and of course digging down deep to ensure that the only thing that spawned down there was what I expect. For now I'll probably get some rest, but I'll report back here once I've confirmed all is working properly (and made sure I can still make the alloy at a smelter, etc.)
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Bars vs. Wafers, how civs use them
« Reply #5 on: November 07, 2013, 12:34:58 am »

Yeah, it'll show up as a mineable material.

Walkaboutout

  • Bay Watcher
    • View Profile
Re: Bars vs. Wafers, how civs use them
« Reply #6 on: November 07, 2013, 11:43:04 am »

I only had like 5 minutes this morning before going to work to dig into the lava sea, and scout around for pillars (I know, this would be far more simple if I'd just use DFHack).

So far, I only saw Candy and Mithril, as I'd expect. I think [DEEP_SPECIAL] on the alloy's entry in the inorganic_metals raw will work as expected. I don't think it will spawn, since there's no definition for the alloy in any way in the inorganic_minerals raw. Otherwise, wouldn't we see both Raw Candy spires, as WELL as actual Candy spires that would like....be the refined metal?

I think with no inorganic_minerals definitions at all for the alloy, it won't appear anywhere except as a smelter reaction, when you create the stuff from the appropriate ingredients. [DEEP_SPECIAL] seems to have the effect that Black suggested, when placed on a metal that only appears in the inorganic_metals raw. That is, among other possibilities that I might not be aware of, it seems to prevent the civ with access to the reaction for the metal, from actually making or utilizing that metal during world-gen.

I'll keep searching when I get home from work. Or rather I'll just load up DFhack and see if it appeared anywhere. Much quicker to do, haha.
« Last Edit: November 07, 2013, 12:03:55 pm by Walkaboutout »
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Bars vs. Wafers, how civs use them
« Reply #7 on: November 07, 2013, 01:32:49 pm »

What is this "Candy" material?
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Walkaboutout

  • Bay Watcher
    • View Profile
Re: Bars vs. Wafers, how civs use them
« Reply #8 on: November 07, 2013, 02:02:50 pm »

What is this "Candy" material?

I just mean the typical metal that we all avoid mentioning by name, for fear of spoilers. Probably not nearly so necessary here in the modding section, but hey, better safe than sorry. As to why I capitalize it, there's no reason, I'm just being retarded I guess.
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Bars vs. Wafers, how civs use them
« Reply #9 on: November 07, 2013, 02:19:00 pm »

I don't recall that Adamantine is still considered a spoiler, only the HFS ("Hidden Fun Stuff", in Toady's own words) contained within it.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Bars vs. Wafers, how civs use them
« Reply #10 on: November 07, 2013, 02:52:08 pm »

Yeah, Adamantine shows up in every stockpile list, so it's difficult to keep secret.

Walkaboutout

  • Bay Watcher
    • View Profile
Re: Bars vs. Wafers, how civs use them
« Reply #11 on: November 07, 2013, 09:49:28 pm »

So I got home, prospected and revealed the whole map, and waited for another caravan. Sure enough, no alloy with the caravan again, and no instances of the alloy anywhere on the map. Only Adamantine and Mithril spires in the lower levels, and of course HFS and all. It seems [DEEP_SPECIAL], applied to an inorganic_metal only entry, does indeed prevent the civs with the reaction for it from making or utilizing it during world-gen. It also does not create any anomolies of it appearing in pillars deep down (although I'm sure it would appear there if there were some corresponding entry in the inorganic_stone_minerals raw file). According to my limited tests here, at least.
« Last Edit: November 07, 2013, 09:51:53 pm by Walkaboutout »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Bars vs. Wafers, how civs use them
« Reply #12 on: November 07, 2013, 09:51:46 pm »

[SPECIAL] would get the same results without any chance of anomaly.

Walkaboutout

  • Bay Watcher
    • View Profile
Re: Bars vs. Wafers, how civs use them
« Reply #13 on: November 07, 2013, 09:52:40 pm »

[SPECIAL] would get the same results without any chance of anomaly.

Very cool. I'll use that instead, just for simplicity's sake, and to ensure no wierdness. Thanks all :D
Logged

IndigoFenix

  • Bay Watcher
  • All things die, but nothing dies forever.
    • View Profile
    • Boundworlds: A Browser-Based Multiverse Creation and Exploration Game
Re: Bars vs. Wafers, how civs use them
« Reply #14 on: November 09, 2013, 01:04:43 pm »

If you really want to keep a material 'secret', you can define it in a nonexistent creature or plant instead, and call this creature or plant material in the reaction.  This should prevent it from being used by forgotten beasts and god-given slabs as well (which normally can take any INORGANIC material, even the SPECIAL ones), as well as keeping it from showing up in most lists.  However, sometimes it won't be stockpiled correctly, depending on the item made from it, and you won't be able to work with it in a forge, so I guess it's not what you're looking for.  Works well for vaporizing stones though.
Pages: [1] 2