Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Utility to extract raw info from memory?  (Read 1621 times)

Khym Chanur

  • Bay Watcher
    • View Profile
Utility to extract raw info from memory?
« on: July 11, 2014, 07:40:10 pm »

Is there a standard utility for extracting (for example) the properties for water from memory and formatting as a raw file entry?
Logged

Darkgamma

  • Bay Watcher
    • View Profile
Re: Utility to extract raw info from memory?
« Reply #1 on: July 13, 2014, 06:30:56 am »

But what would water be then? A material? A plant? An entitiy  :o ?
Logged
if it's a blob made of steel, don't fight it. it may not heal, but it probably doesn't need to.

IndigoFenix

  • Bay Watcher
  • All things die, but nothing dies forever.
    • View Profile
    • Boundworlds: A Browser-Based Multiverse Creation and Exploration Game
Re: Utility to extract raw info from memory?
« Reply #2 on: July 14, 2014, 07:30:53 am »

There is certainly a way.  I'm interested in seeing the new demon raws.

Darkgamma

  • Bay Watcher
    • View Profile
Re: Utility to extract raw info from memory?
« Reply #3 on: July 14, 2014, 07:34:27 am »

Those are different (and easier to pull off)
You just need to disable save compression (in init.txt AFAIR) and dig around
Logged
if it's a blob made of steel, don't fight it. it may not heal, but it probably doesn't need to.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Utility to extract raw info from memory?
« Reply #4 on: July 14, 2014, 09:21:16 am »

There are two different reasons to extract material properties from memory, and different tools for each scenario:

1. Procedurally generated materials - these can be extracted from world.dat/world.sav using various programs (such as this script).
2. Hardcoded materials (e.g. glass, water, vomit) - there is a DFHack plugin "dumpmats" (included in the "devel" directory) which extracts them to something resembling normal raws, and the actual data for 0.40.02 is available here (which is what gets used on the wiki).
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.