Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: What's the deal with armor and weapon stands?  (Read 1571 times)

Witty

  • Bay Watcher
    • View Profile
What's the deal with armor and weapon stands?
« on: May 09, 2015, 04:31:06 pm »

I'm aware that their core purpose (storing military gear) has been broken since Forever, but I thought a binary patch had come along with DFhack that fixed it...

However, even with the latest DFhack version installed, they still don't seem to work.

So I guess my questions are;

Does DFhack not automatically fix this issue? Does the patch need to be downloaded separately? Or has the patch simply not been ported to the newest version?
Logged
Quote from: Toady One
I understand that it is disappointing when a dwarf makes a spiked loincloth instead of an axe.

Witty

  • Bay Watcher
    • View Profile
Re: What's the deal with armor and weapon stands?
« Reply #2 on: May 10, 2015, 08:47:59 am »

 :-\ That's kinda a shame. Thanks for the information anyway.
Logged
Quote from: Toady One
I understand that it is disappointing when a dwarf makes a spiked loincloth instead of an axe.

Urist McCoder

  • Bay Watcher
    • View Profile
Re: What's the deal with armor and weapon stands?
« Reply #3 on: May 10, 2015, 09:40:26 am »

if you don't mind modding you could mod in a weapon/armor stand creature, and then use df hacks spawn unit script, to create it using a reaction.
Logged

scamtank

  • Bay Watcher
    • View Profile
Re: What's the deal with armor and weapon stands?
« Reply #4 on: May 10, 2015, 12:07:33 pm »

:-\ That's kinda a shame. Thanks for the information anyway.

What's wrong? The only missing piece is the armor stand fix, which means you just want to assign two stands per guy.
Logged

Zarathustra30

  • Bay Watcher
    • View Profile
Re: What's the deal with armor and weapon stands?
« Reply #5 on: May 11, 2015, 01:15:45 pm »

Is there a way to install this with WinMerge?
Logged
How did we pass from inns with merry songs and happy music to temples of doom and medieval torture with so much easiness and eagerness??

scamtank

  • Bay Watcher
    • View Profile
Re: What's the deal with armor and weapon stands?
« Reply #6 on: May 12, 2015, 01:38:47 am »

Is there a way to install this with WinMerge?

It's... a .dif file that you stick into a DFHack subfolder. Like installing any other plugin.
Logged

Zarathustra30

  • Bay Watcher
    • View Profile
Re: What's the deal with armor and weapon stands?
« Reply #7 on: May 12, 2015, 10:19:18 pm »

I want a way to install it without DFHack. It takes a week to get it running after a minor release and a month after a major one.
Logged
How did we pass from inns with merry songs and happy music to temples of doom and medieval torture with so much easiness and eagerness??

scamtank

  • Bay Watcher
    • View Profile
Re: What's the deal with armor and weapon stands?
« Reply #8 on: May 13, 2015, 02:35:56 am »

Getting a DFHack plugin to work without DFHack needs more sorcery than I can muster.
Logged

Eldin00

  • Bay Watcher
    • View Profile
Re: What's the deal with armor and weapon stands?
« Reply #9 on: May 13, 2015, 03:29:25 am »

Even if you could get it working without DFHack (not a small task), you'd have to re-do the work to get it working every new release, for the same reasons that it takes a while to get DFHack updated to work with a new release.
Logged

Zarathustra30

  • Bay Watcher
    • View Profile
Re: What's the deal with armor and weapon stands?
« Reply #10 on: May 14, 2015, 01:25:11 am »

I assume you can just perform the operation manually with a hex editor, such as Notepad++.

The biggest issue is finding the right place again, which is what WinMerge would be useful for. The code would likely not change unless Toady touches it. In that case, we may not even need the patch.
Logged
How did we pass from inns with merry songs and happy music to temples of doom and medieval torture with so much easiness and eagerness??

scamtank

  • Bay Watcher
    • View Profile
Re: What's the deal with armor and weapon stands?
« Reply #11 on: May 14, 2015, 03:01:37 am »

Oh, in THAT manner. Sure, the .dif file is plain text that has the relevant stuff at the bottom, like this:

Code: [Select]
005BF984: 8B 89
005BF985: 8C C1
005BF986: 24 90
005BF987: 80 90
005BF988: 00 90
005BF989: 00 90
005BF98A: 00 90
005BFA61: 8B 89
005BFA62: 8C C1
005BFA63: 24 90
005BFA64: 80 90
005BFA65: 00 90
005BFA66: 00 90
005BFA67: 00 90

Find the left, replace with right.
Logged

Zarathustra30

  • Bay Watcher
    • View Profile
Re: What's the deal with armor and weapon stands?
« Reply #12 on: May 14, 2015, 02:01:58 pm »

The problem is the locations will change with a new version, and the string is short enough to be repeated multiple times. I guess I could search for the code in between the two modified locations, and go from there.

Here it is, for future reference:
Code: [Select]
6a 04 51 57 e8 ac 10 ad ff 84 c0 75 2e 8b 85 d0 00 00 00 8d 0c b0 8b 85 d4 00 00 00 8d 51 04 2b c2 c1 f8 02 03 c0 03 c0 50 52 51 ff 15 bc d2 d7 00 83 c4 0c 83 85 d4 00 00 00 fc 4e 0f 89 46 ff ff ff 8b 44 24 14 8b b0 e4 00 00 00 2b b0 e0 00 00 00 c1 fe 02 4e 0f 88 c3 00 00 00 8b e8 8d a4 24 00 00 00 00 8b 15 a4 85 a1 01 a1 a8 85 a1 01 8b 8d e0 00 00 00 8b 1c b1 2b c2 c1 f8 02 85 c0 74 68 83 fb ff 74 63 8d 48 ff 85 c9 79 04 33 ff eb 2f 8b c1 d1 f8 8b 3c 82 8b 57 48 3b d3 74 21 85 c9 75 04 33 ff eb 19 3b d3 7e 07 8d 48 ff 6a 00 eb 02 40 50 b8 a4 85 a1 01 e8 b6 4f a4 ff 8b f8 85 ff 74 25 8b 17 8b 82 68 01 00 00 8b cf ff d0 3b 45 00 75 14 
You'll want to go to the first "8b" before and after the excerpt and make your modifications from there.

Edit: Unfortunately, the code seems to change slightly between versions. You can still find it using Ctrl-F, but it requires using a smaller subset of the code. This is why WinMerge would be handy.
« Last Edit: May 14, 2015, 02:10:08 pm by Zarathustra30 »
Logged
How did we pass from inns with merry songs and happy music to temples of doom and medieval torture with so much easiness and eagerness??