Bay 12 Games Forum

Dwarf Fortress => DF General Discussion => Topic started by: Riemann on December 05, 2007, 05:40:00 pm

Title: Hacking in rock crystal trade?
Post by: Riemann on December 05, 2007, 05:40:00 pm
Is it possible to edit the raws to make traders sell raw rock crystal? How about other kinds of raw gems?

Going a step further, is it possible to edit the raws to make it possible to request raw gems from the output liason?

Title: Re: Hacking in rock crystal trade?
Post by: Torak on December 05, 2007, 05:56:00 pm
Or you could simply put the [GLASS] tag onto all gems in matgloss_stone_gem.txt in C:\xxxx\dwarffortress\raw\objects\
Title: Re: Hacking in rock crystal trade?
Post by: Karlito on December 05, 2007, 05:56:00 pm
traders sell gems already.
Title: Re: Hacking in rock crystal trade?
Post by: Riemann on December 05, 2007, 05:58:00 pm
Not, as far as I know, raw gems.
Title: Re: Hacking in rock crystal trade?
Post by: Torak on December 05, 2007, 06:01:00 pm
quote:
Originally posted by Karlito:
<STRONG>traders sell gems already.</STRONG>

Not raw gems. Only those of the "large" variety.

Title: Re: Hacking in rock crystal trade?
Post by: Zurai on December 05, 2007, 07:08:00 pm
No, they sell normal cut gems as well.
Title: Re: Hacking in rock crystal trade?
Post by: Riemann on December 05, 2007, 07:13:00 pm
Yes, they sell small and large cut gems. I want to know if it is possible to mod in raw gems for trade.
Title: Re: Hacking in rock crystal trade?
Post by: Zurai on December 05, 2007, 07:16:00 pm
The answer to almost any "can I mod in..." question is "No."

You can add in new types of already existing things, but you cannot change the functionality of the game through modding.

Of course, the easy answer was the very first response to your post. Just add [GLASS] to every common gem type (I doubt you want to use diamonds for glassmaking...).

[ December 05, 2007: Message edited by: Zurai ]

Title: Re: Hacking in rock crystal trade?
Post by: AlanL on December 05, 2007, 08:12:00 pm
Make a smelter reaction that uncuts the cut rock crystal.
Title: Re: Hacking in rock crystal trade?
Post by: Vanigo on December 05, 2007, 09:06:00 pm
I was just about to say that. This should work:

[REACTION:UNCUT_ROCK_CRYSTAL]
[NAME:uncut rock crystal]
[SMELTER]
[REAGENT:1:SMALLGEM:NO_SUBTYPE:STONE:CRYSTAL_ROCK]
[PRODUCT:1:ROUGH:NO_SUBTYPE:STONE:CRYSTAL_ROCK]

You'll have to generate a new world, unfortunately.

Title: Re: Hacking in rock crystal trade?
Post by: Zurai on December 05, 2007, 09:33:00 pm
Yeah, there's a few things you can do if you want to generate a new world. Adding [GLASS] and restarting DF is the only thing I know of that works mid-fortress, though.
Title: Re: Hacking in rock crystal trade?
Post by: Karlito on December 06, 2007, 01:14:00 am
If we're all about adding in the [GLASS] tag, couldn't you just trade for your crystal glass and save yourself this hassle.  Or can we not trade for crystal glass?
Title: Re: Hacking in rock crystal trade?
Post by: Greenwolf on December 06, 2007, 02:40:00 am
hmm, my solution to lack of rock crystal was slightly different.

added this to the entry for rock crystal in the raws

[ENVIRONMENT_SPEC:MICA:CLUSTER_SMALL:100]
[ENVIRONMENT_SPEC:PERICLASE:CLUSTER_SMALL:100]
[ENVIRONMENT_SPEC:ORTHOCLASE:CLUSTER_SMALL:100]
[ENVIRONMENT_SPEC:MICROCLINE:CLUSTER_SMALL:100]
[ENVIRONMENT_SPEC:CALCITE:CLUSTER_SMALL:100]

I usually plant fortresses in granite/marble areas, and I wind up with lots of big O's of these lesser stones, with nothing interesting in them.  Adding these lines adds 1-2 clusters of rock crystal in almost all of those O's of lesser rock.  You can add any stone type you want, just make sure it's a type of stone that never contains metal ore, otherwise the ore take precedence over gems.

Title: Re: Hacking in rock crystal trade?
Post by: Zurai on December 06, 2007, 10:47:00 am
quote:
Originally posted by Karlito:
<STRONG>If we're all about adding in the [GLASS] tag, couldn't you just trade for your crystal glass and save yourself this hassle.  Or can we not trade for crystal glass?</STRONG>

You can't trade for glass of any sort. And moods require RAW crystal glass anyhow.

Title: Re: Hacking in rock crystal trade?
Post by: Sean Mirrsen on December 07, 2007, 04:35:00 pm
Yours or mine, Greenwolf?   ;)

Diamonds and Rock Crystals mod.

This has been lying around for a while. People don't seem to like to use it though. Maybe it's just me..

Heh, now that I look at your post, I realise I probably forgot periclase...  or not?..  I think I checked thoroughly enough...

[ December 07, 2007: Message edited by: Sean Mirrsen ]

Title: Re: Hacking in rock crystal trade?
Post by: Greenwolf on December 09, 2007, 12:34:00 am
great minds think alike?
i didn't fix diamonds though.. but then, I just went and completely redid the stone raws, tore out all but a handful of rocks and gems, and set it up so I can have lots of everything in one fort.. anywhere.
Title: Re: Hacking in rock crystal trade?
Post by: Durnheist on December 10, 2007, 01:28:00 pm
I just replaced the cluster small tag with cluster one tag and I got plenty of rock crystal as well.