Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: startdwaft don't work  (Read 2900 times)

ckiller

  • Escaped Lunatic
    • View Profile
startdwaft don't work
« on: September 22, 2016, 07:23:01 pm »

[DFHack]# startdwarf 15
E: RuntimeError: ./hack/scripts/startdwarf.rb:18: patch address not available
 ./hack/scripts/startdwarf.rb:18
 (eval):19:in `load'
 (eval):19
 (eval):19:in `catch'
 (eval):19

this is my problem, i was reading about this on internet and the only one asnwer could be find the file  the dfhack.init example file and rename it dfhack.init, and still does not work for me.
I have the starter pack launcher (the lastest) and version df v.043.03


Logged

Hesperid

  • Bay Watcher
    • View Profile
Re: startdwaft don't work
« Reply #1 on: September 23, 2016, 03:16:50 am »

The address for the starting dwarf count isn't available, i.e.  a new one has not been supplied by a contributor yet. Hence the tools that depend on it fail to execute.
Logged

ckiller

  • Escaped Lunatic
    • View Profile
Re: startdwaft don't work
« Reply #2 on: October 03, 2016, 12:57:25 pm »

thanks
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: startdwaft don't work
« Reply #3 on: October 03, 2016, 06:49:03 pm »

If you're running the Windows version, the address you want is 0xC9922F. Edit hack/symbols.xml and insert it in the correct place (0.43.03/Windows, start_dwarf_count*) and startdwarf should work correctly.

* since I believe people who use tools should understand how they work, I'm not going to explain it in more detail - you'll need to figure out for yourself exactly what you need to do
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.

ringringlingling

  • Bay Watcher
    • View Profile
Re: startdwaft don't work
« Reply #4 on: October 26, 2016, 12:37:39 am »

This value is incorrect.  I pasted it into symbols.xml and got the same error.  I think it is from an older version.
Logged

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: startdwaft don't work
« Reply #5 on: October 26, 2016, 12:58:31 am »

This value is incorrect.  I pasted it into symbols.xml and got the same error.  I think it is from an older version.
If you got the same error, it means that you pasted it in wrong place. If it was from older version it would probably crash.

ringringlingling

  • Bay Watcher
    • View Profile
Re: startdwaft don't work
« Reply #6 on: October 26, 2016, 01:09:48 am »

I fiddled a bit with the GM editor and start_dwarf_count doesn't seem to exist under df.global
Logged

ringringlingling

  • Bay Watcher
    • View Profile
Re: startdwaft don't work
« Reply #7 on: October 26, 2016, 01:26:52 am »

maybe you can tell me where I made my mistake?

from C:\DF\Dwarf Fortress 0.43.03\hack\symbols.xml

Code: [Select]
<global-address name="save_on_exit" value="0x19BAB4A"/>

        code

        <global-address name="start_dwarf_count" value="0xC9922F"/>

        generated standingorders

        <global-address name="standing_orders_gather_minerals" value="0x010012b4"/>
« Last Edit: October 26, 2016, 02:12:01 am by ringringlingling »
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: startdwaft don't work
« Reply #8 on: October 26, 2016, 06:38:56 am »

maybe you can tell me where I made my mistake?

from C:\DF\Dwarf Fortress 0.43.03\hack\symbols.xml

Code: [Select]
<global-address name="save_on_exit" value="0x19BAB4A"/>
That's the save_on_exit value for v0.43.01, which means you added it in the wrong place. Like I said previously, you need to add it to the section for v0.43.03.
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.

ringringlingling

  • Bay Watcher
    • View Profile
Re: startdwaft don't work
« Reply #9 on: October 26, 2016, 10:55:53 pm »

You're messing with me, right?
The version number is 43.03

 
Code: [Select]
<global-address name="start_dwarf_count" value="0xC9922F"/>
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: startdwaft don't work
« Reply #10 on: October 27, 2016, 06:24:27 am »

You're messing with me, right?
The version number is 43.03

 
Code: [Select]
<global-address name="start_dwarf_count" value="0xC9922F"/>
Perhaps I need to explain more clearly:

from C:\DF\Dwarf Fortress 0.43.03\hack\symbols.xml

Code: [Select]
<global-address name="save_on_exit" value="0x19BAB4A"/>

        code

        <global-address name="start_dwarf_count" value="0xC9922F"/>

        generated standingorders

        <global-address name="standing_orders_gather_minerals" value="0x010012b4"/>
The symbols.xml for DFHack 0.43.03 contains offsets for three different versions of DF - 0.43.01, 0.43.02, and 0.43.03 (technically 7, if you include Linux and OSX). Based on the values of the other offsets you quoted ("save_on_exit" and "standing_orders_gather_minerals"), you inserted the offset in the first version block you found (which was for 0.43.01) rather than following my instructions and inserting it in the block for version 0.43.03.
« Last Edit: October 27, 2016, 06:32:51 am by Quietust »
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.

ringringlingling

  • Bay Watcher
    • View Profile
Re: startdwaft don't work
« Reply #11 on: October 28, 2016, 07:34:34 am »

not sure how I was supposed to know that, but thanks.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: startdwaft don't work
« Reply #12 on: October 28, 2016, 10:15:13 am »

Well, the sections are labeled with <symbol-table name='v0.43.01 SDL' os-type='windows'> and <symbol-table name='v0.43.03 SDL' os-type='windows'>.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.