Bay 12 Games Forum

Please login or register.

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

Author Topic: Rough/cut gems for general use?  (Read 2296 times)

Zaerosz

  • Bay Watcher
  • ☼sperm whale leather thong☼
    • View Profile
Rough/cut gems for general use?
« on: May 02, 2010, 08:44:06 pm »

How would I go about modding gems to be available for general use (e.g. for rough diamond walls, or rough chrysoprase tables)?

Also, how can I enable the making of stone anvils?
Logged
くコ:彡

Grimlocke

  • Bay Watcher
  • *kobold noises*
    • View Profile
Re: Rough/cut gems for general use?
« Reply #1 on: May 02, 2010, 08:53:23 pm »

Something like this should do it.
Code: [Select]
[REACTION:GEM_TO_BOULDER]
[NAME:cut gem into boulder]
[BUILDING:JEWELER:CUSTOM_R]
[REAGENT:A:1:ROUGH:NONE:NONE:NONE]
[PRODUCT:100:1:BOULDER:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]not sure about that last NONE
[SKILL:GEM_CUTTER]
[AUTOMATIC]
Add that to your entity file amounst permitted reactions, regen a world, see if it works. If it does you should have a gem that acts like a lump of rock, letting you turn it into walls, tables and whatnot.

I think you could be able to make stone anvils by adding [ITEMS_ANVIL] to the stone template, but the masons shop might not agree with that. If thats the case just use the above reactions with BOULDER instead of ROUGH, and ANVIL instead of BOULDER. And give it an unique name of course.
Logged
I make Grimlocke's History & Realism Mods. Its got poleaxes, sturdy joints and bloomeries. Now compatible with DF Revised!

Zaerosz

  • Bay Watcher
  • ☼sperm whale leather thong☼
    • View Profile
Re: Rough/cut gems for general use?
« Reply #2 on: May 02, 2010, 11:20:03 pm »

Schweet. Thanks. And that ITEMS_ANVIL thing doesn't work. Yeah, I've modded all gems to be found in veins in sedimentary rock (i.e. modded bauxite). The world gen stops at 50, so it's sorta like a "time before time" deal. I just want the anvil to be able to satisfy any metalsmith moods (I removed inorganic_stone_mineral, but not the bars of the metal.) I'm gonna build a pyramid of gems!
Logged
くコ:彡

LucasUP

  • Bay Watcher
  • Devout Cheeseist
    • View Profile
Re: Rough/cut gems for general use?
« Reply #3 on: May 03, 2010, 02:32:34 am »

Wow that's an awesome idea. Also, yeah that reaction should work, I got a gem-to-item reaction working with pretty much that exact code.

rock anvils:
Code: [Select]
...
[REAGENT:A:1:STONE:NO_SUBTYPE:STONE:NO_MATGLOSS][WORTHLESS_STONE_ONLY]
[PRODUCT:100:1:ANVIL:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
...
like Zaerosz Grimlocke said, except using "STONE" instead of "BOULDER".
(I'm not sure if/what the difference is, but this worked for me for another reaction.)
Should work...? I'm a newbie modder though.
« Last Edit: May 03, 2010, 02:59:22 am by LucasUP »
Logged
OG founder of the Lazy Newb Pack

Zaerosz

  • Bay Watcher
  • ☼sperm whale leather thong☼
    • View Profile
Re: Rough/cut gems for general use?
« Reply #4 on: May 03, 2010, 02:48:22 am »

I probably should have mentioned I'm on 31.03. Also, the gem->boulder thing ain't workin'.
Logged
くコ:彡

LucasUP

  • Bay Watcher
  • Devout Cheeseist
    • View Profile
Re: Rough/cut gems for general use?
« Reply #5 on: May 03, 2010, 02:50:40 am »

Try changing "BOULDER" to "STONE" ?
[PRODUCT:100:1:STONE:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
Or maybe you need to make them into BLOCKS? (I'm not sure changing STONE to BLOCK would work)
EDIT: BLOCKS might work. http://df.magmawiki.com/index.php/40d:Item_token
« Last Edit: May 03, 2010, 02:58:22 am by LucasUP »
Logged
OG founder of the Lazy Newb Pack

masakhan

  • Bay Watcher
    • View Profile
Re: Rough/cut gems for general use?
« Reply #6 on: May 03, 2010, 11:18:34 am »

You are going to have to mod in a new type of stone for each gem you would want transformed. I have a few custom reactions including involving stone and gems in my mod I'm making; I'll see if I can dig something up real quick and post it.

EDIT:here is the reaction.

[REACTION:GEMSTONE]
   [NAME:turn gems into stone]
   [BUILDING:!ENTERCUSTOMBUILDINGNAMEHERE!:NONE]
   [REAGENT:A:1:ROUGH:NONE:NONE:NONE]
   [PRODUCT:100:1:STONE:NO_SUBTYPE:STONE:!ENTERNAMEOFROCKDESIREDHERE!]
   [SKILL:CUTGEM]

EDIT again:I can provide an example of making a new stone entry as well if you want.
« Last Edit: May 03, 2010, 11:40:28 am by masakhan »
Logged

Grimlocke

  • Bay Watcher
  • *kobold noises*
    • View Profile
Re: Rough/cut gems for general use?
« Reply #7 on: May 03, 2010, 02:25:41 pm »

STONE as material token is obsolete I think, use INORGANIC. And im pretty sure its completely unnecessary to mod in a new stone type for each gem. Gems are basically stone, they use the stone template only with a tag that indicates that the dug rock should produce gems, not rocks. (or course you could remove that, but that means you wont have any gems in the game).

STONE also doesnt appear in the list of .31 item tokens (got it fromt he string dump). The link posted above here links to a 40d article, thats probabaly obsolete as well.

As fort my reaction not working its probabaly the material tokens. The point was to make it get the reagents material for the boulder to produce, but apparentely it doesnt work the same way for inorganic materials as it does for organic ones. It would help if you told how it wasnt working though. Try to use the furnace or something for the reaction? Some defealt buildings accept custom reactions.
Logged
I make Grimlocke's History & Realism Mods. Its got poleaxes, sturdy joints and bloomeries. Now compatible with DF Revised!

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Rough/cut gems for general use?
« Reply #8 on: May 03, 2010, 02:27:50 pm »


Code: [Select]
[REACTION:GEM_TO_BOULDER]
[NAME:cut gem into boulder]
[BUILDING:YOURWORKSHOP:CUSTOM_R]
[REAGENT:A:1:ROUGH:NONE:NONE:NONE]
[PRODUCT:100:1:BOULDER:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]not sure about that last NONE
[SKILL:GEM_CUTTER]

This should work. Note "Yourworkshop", you should tell where it is. It was not working because JEWELER is not a workshop.

Quote
(I'm not sure if/what the difference is, but this worked for me for another reaction.)
It worked because it had "WORTHLESS_STONE_ONLY".
The correct token is BOULDER, not STONE. STONE is not even in the raw dump for items.
« Last Edit: May 03, 2010, 02:30:31 pm by Deon »
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

LucasUP

  • Bay Watcher
  • Devout Cheeseist
    • View Profile
Re: Rough/cut gems for general use?
« Reply #9 on: May 03, 2010, 04:13:41 pm »

Aha. Thanks for the correction!
hmm... work really needs to be started on the wiki

I guess this needs to be corrected too then:
http://www.bay12forums.com/smf/index.php?topic=55259.msg1189835#msg1189835
« Last Edit: May 03, 2010, 04:19:50 pm by LucasUP »
Logged
OG founder of the Lazy Newb Pack

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Rough/cut gems for general use?
« Reply #10 on: May 03, 2010, 04:30:52 pm »

Why? What's wrong in Shaostoul's guide? Do you mean the STONE part?
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: Rough/cut gems for general use?
« Reply #11 on: May 03, 2010, 04:33:15 pm »

I would like to say here as well, all the reactions I've made, I've been using in my game and all of them have been working for me. I don't have the inorganic tags or boulder. But if someone feels up to it, post an example of how stone, metal, wood and gems should all be and for the sake of it not coming up in my guide again, I'll change all of it.
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Rough/cut gems for general use?
« Reply #12 on: May 03, 2010, 04:36:03 pm »

I think in the current version "wrong" tokens work as NONE, a fool-proof mechanism.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: Rough/cut gems for general use?
« Reply #13 on: May 03, 2010, 04:37:25 pm »

Even though all my reaction products work exactly as intended and show up in the stocks menu and through the forge and masons and whatever else have you properly?
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Rough/cut gems for general use?
« Reply #14 on: May 03, 2010, 04:57:16 pm »

Did you use it as *:STONE:NONE:NONE:NONE]

There could be other tokens which define the input/output. And I am not arguing, I am guessing. :)

P.S. The easiest way would be to change STONE to something else which is not used and see how it works. If it doesn't, then STONE is a valid token.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository
Pages: [1] 2