Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Stone types changed to "rock" [solved - bug?]  (Read 723 times)

kaapelikala

  • Bay Watcher
    • View Profile
Stone types changed to "rock" [solved - bug?]
« on: November 13, 2010, 02:59:04 pm »

Ok, so I downloaded the new version .31.17 and went on to change the colours and remove aquifers. All is well with the colours but all potentially aquifer bearing stones are changed to "rock". For example my sand bags were now rock bags. With the contents of one "rock". Changing them back doesn't solve the problem. Have you noticed the same?
« Last Edit: November 13, 2010, 05:57:23 pm by kaapelikala »
Logged

Fayrik

  • Bay Watcher
    • View Profile
Re: Stone types changed to "rock"
« Reply #1 on: November 13, 2010, 03:03:19 pm »

Rock is a placeholder value.
If you removed sand from the game, it's going to generate Rock Bags, because Sand no longer exists.
But, personally, I just generate worlds with Drainage range running from 100 to 100. That way you don't get as many aquifers.

Also, anything that's had to change to rock, will not return from the rock value, as the game then saves the default value of rock to the item, so it loses it's old (and to the game, corrupt) value.
Logged
So THIS is how migrations start.
"Hey, dude, there's this crazy bastard digging in the ground for stuff. Let's go watch."

kaapelikala

  • Bay Watcher
    • View Profile
Re: Stone types changed to "rock"
« Reply #2 on: November 13, 2010, 03:34:23 pm »

I didn't remove the sand (or others), but only their [AQUIFER] tag in the inorganic_[something].txt:s as instructed in the wiki: http://df.magmawiki.com/index.php/Aquifer#The_modding_method.

That drainage 100-100 is a good idea though my laptop would take ages to create anything more customized.
Logged

GJScarritt

  • Bay Watcher
    • View Profile
Re: Stone types changed to "rock"
« Reply #3 on: November 13, 2010, 04:08:24 pm »

Did you by chance remove the entire [AQUIFER], including the [ ] part?

Also,  .....  "tag from all of the appropriate entries in inorganic_stone_layer.txt and inorganic_stone_soil.txt "   

There are multiple occurrences of the [AQUIFER], so you need to be sure you've found all of those tags.
Logged

kaapelikala

  • Bay Watcher
    • View Profile
Re: Stone types changed to "rock"
« Reply #4 on: November 13, 2010, 04:44:06 pm »

Did you by chance remove the entire [AQUIFER], including the [ ] part?

Also,  .....  "tag from all of the appropriate entries in inorganic_stone_layer.txt and inorganic_stone_soil.txt "   

Yes to both.

So for example a snippet from inorganic_stone_soil.txt before:

[INORGANIC:SANDY_CLAY_LOAM]
[USE_MATERIAL_TEMPLATE:SOIL_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:sandy clay loam][DISPLAY_COLOR:4:6:0][TILE:176]
[SOIL][AQUIFER]
[SOLID_DENSITY:1600]

And after:

[INORGANIC:SANDY_CLAY_LOAM]
[USE_MATERIAL_TEMPLATE:SOIL_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:sandy clay loam][DISPLAY_COLOR:4:6:0][TILE:176]
[SOIL]
[SOLID_DENSITY:1600]

Replacing the files with the untouched ones from a new installation has no effect whatsoever. The de-aquifered stones are "Rocks" and there are "rock"s in my sand bags.
Logged

Bohandas

  • Bay Watcher
  • Discordia Vobis Com Et Cum Spiritum
    • View Profile
Re: Stone types changed to "rock"
« Reply #5 on: November 13, 2010, 04:59:08 pm »

Well, if I recall correctly, Sandy Clay Loam cannot normally be used as sand anyway, despite the name...
Logged
NEW Petition to stop the anti-consumer, anti-worker, Trans-Pacific Partnership agreement
What is TPP
----------------------
Remember, no one can tell you who you are except an emotionally unattached outside observer making quantifiable measurements.
----------------------
Έπαινος Ερις

G-Flex

  • Bay Watcher
    • View Profile
Re: Stone types changed to "rock"
« Reply #6 on: November 13, 2010, 05:02:16 pm »

Did you make this change before or after generating the world in question?
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

kaapelikala

  • Bay Watcher
    • View Profile
Re: Stone types changed to "rock"
« Reply #7 on: November 13, 2010, 05:29:38 pm »

Ok, I found the problem:

When I copied the old files I renamed them as [original file name]_2.txt or [original file name] - Copy.txt. It seems the program loads them both and as it finds two different values for the same thing it doesn't use either of them but instead uses the default (in this case "rock).

I run a couple of tests with other things too.
Logged

kaapelikala

  • Bay Watcher
    • View Profile
Re: Stone types changed to "rock"
« Reply #8 on: November 13, 2010, 05:56:51 pm »

I copied creature_domestic.txt as creature_domestic - copy.txt and changed every [PETVALUE:xxx] tag to something else eg. [PETVALUE:10] to [PETVALUE:15].

Result: On embark screen I can choose fish: Purring Maggot and bat; meat: griffon unknown frozen creature substance, wagon unknown frozen creature substance etc; leather: cave lobster frozen pus, unknown frozen creature substance; cloth: olm leather cloth; bodywear: whale tallow armor; pets (small vermin, such as tame flies(?)); extracts: hoary marmot n/a; toy boats; selenite musical instruments (not any specific type - just musical instruments); olm skin chains etc. Animals are also messed up: wagons, wagons, nothing, chimeras, centauresses (F), nothing (M), nothing (F).

Bug or feature?
Logged

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Stone types changed to "rock" [solved - bug?]
« Reply #9 on: November 13, 2010, 05:58:40 pm »

Having duplicate definitions for anything in the raw files *completely* breaks the game.  This is an old, well-known feature/bug.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.