Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Raw file priority  (Read 1894 times)

TV4Fun

  • Bay Watcher
    • View Profile
Raw file priority
« on: June 07, 2014, 09:05:16 pm »

If the same object is defined in more than one raw file, how does the game decide which one to use? Is there a way to make sure DF uses definitions in one file over another when there is a conflict? I am patching one graphics set with another, and would like the game to prefer to use tiles from the new set but fall back to the old set for things not included in the new set. Is this possible?
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Raw file priority
« Reply #1 on: June 07, 2014, 09:18:03 pm »

No. If you have a duplicate entry, just a single one, the raws will go crazy. Everything shifts, and you end up with "sand shoes" and "fire grass" and adamantine layers and granite armors.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: Raw file priority
« Reply #2 on: June 08, 2014, 10:44:28 am »

No. If you have a duplicate entry, just a single one, the raws will go crazy. Everything shifts, and you end up with "sand shoes" and "fire grass" and adamantine layers and granite armors.
You say that like it's a bad thing.  ;)
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Raw file priority
« Reply #3 on: June 08, 2014, 11:07:28 am »

And crashed games, he forgot to say.

Roses

  • Bay Watcher
    • View Profile
Re: Raw file priority
« Reply #4 on: June 08, 2014, 11:14:21 am »

Lots and lots of chrashes.
Logged

TheFlame52

  • Bay Watcher
  • Master of the randomly generated
    • View Profile
Re: Raw file priority
« Reply #5 on: June 08, 2014, 12:05:54 pm »

Welcome to the mad, mad world of RAW errors or duplication. Somewhere you have files which dont quite add up, and crazy shit happens. It seems yours is one of the more "stable" forms. There are instances of this where you can adventure as a fly, or embark with wagonmeat, wearing shoes made of burning soap, or all the rocks think they are made of ALL the types of rock in some kind of psychadelic split personality disorder.

DF is so awesome that it doesnt just crash, it crates batshit crazy worlds where intelligent chairs farm dragons and make houses out of thier toenails.

FallenAngel

  • Bay Watcher
  • !!x(oᴥo)x!!
    • View Profile
Re: Raw file priority
« Reply #6 on: June 08, 2014, 06:49:09 pm »

If you make a duplicate of EVERY inorganic file, there will be no stone. Only Rock.
When you mine Rock, you get magma puddles.
Do controlled duplication; accidentally having a duplicate of the INORGANIC_METAL file is relatively NOT unruly.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Raw file priority
« Reply #7 on: June 08, 2014, 09:45:01 pm »

Just duplicate iron at the very start of inorganic_metal and add a non-occurring mineral in its own file at the end of the alphabetic order (say, inorganic_zzzzzzzzdupe) and you shouldn't get crashes, just weirdness.

You can amplify the effect by just duping more stuff and adding more never-actually-appearing objects near the end (and this works for all object types). Make sure they're proportional (though you can have more never-appearing stuff than duped stuff).