[D2Client] 1.10 Classic Stash Enlargement - Gold Functions

This forum is for discussions on how to edit what can not be edited through the txt files, needless to say this isn't about battle net hacking.

Moderators: Nefarius, Havvoric

User avatar
Kieran
Senior Moderator
Angel
Posts: 617
Joined: Mon Oct 22, 2007 9:46 am
Location: England
Great Britain

Hand-picked

[D2Client] 1.10 Classic Stash Enlargement - Gold Functions

Post by Kieran » Mon Jan 02, 2017 5:35 pm

Hey Guys,

Anybody have the location for the gold bar in the classic stash?

https://postimg.org/image/ewpy7k4lj/

From searching around these forums the general feel is that its held in D2Win.

Any ideas where?

v1.10 :)

Kieran
Last edited by Kieran on Fri Jan 06, 2017 2:31 pm, edited 2 times in total.

User avatar
SpiKe.
Forum Tech Support
Champion of the Light
Posts: 280
Joined: Thu Jul 28, 2011 5:25 pm
Location: Germany
Germany

Re: D2Win - Gold Location

Post by SpiKe. » Mon Jan 02, 2017 6:23 pm

Maybe upload the picture on a free host?

"You must be logged in to do that."

User avatar
Kieran
Senior Moderator
Angel
Posts: 617
Joined: Mon Oct 22, 2007 9:46 am
Location: England
Great Britain

Hand-picked

Re: D2Win - Gold Location

Post by Kieran » Mon Jan 02, 2017 6:26 pm

J'P" wrote:Maybe upload the picture on a free host?

"You must be logged in to do that."
My bad!

https://postimg.org/image/ewpy7k4lj/

User avatar
devurandom
Forum Regular
Angel
Posts: 897
Joined: Sat Mar 07, 2015 9:07 pm
United States of America

Re: D2Win - Gold Location

Post by devurandom » Tue Jan 03, 2017 5:29 am

All of the code is in D2Client. If you search, you can find an example for 1.13 & then use that to make a port for 1.10.
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin

Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..

User avatar
Kieran
Senior Moderator
Angel
Posts: 617
Joined: Mon Oct 22, 2007 9:46 am
Location: England
Great Britain

Hand-picked

Re: D2Win - Gold Location

Post by Kieran » Tue Jan 03, 2017 8:16 am

devurandom" wrote:All of the code is in D2Client. If you search, you can find an example for 1.13 & then use that to make a port for 1.10.
Thanks devurandom.

I don't suppose you have some general advice on how to port from 1.13 to 1.10?

Kieran :)

Cossack
Posts: 26
Joined: Sat Oct 08, 2011 2:14 pm

Re: D2Win - Gold Location

Post by Cossack » Tue Jan 03, 2017 12:52 pm

Code: Select all

for 1.13c

6FB3D18C
6FB3D192
6FB3D1FF
6FB3D231

6FB49A1A

6FB3B6E6
6FB3B6DB

for 1.10

6FAE991F
6FAE9926
6FAE9AAE
6FAE9AF9

6FADF35C 

6FAEBBC2
6FAEBBB7
all in d2client

User avatar
devurandom
Forum Regular
Angel
Posts: 897
Joined: Sat Mar 07, 2015 9:07 pm
United States of America

Re: D2Win - Gold Location

Post by devurandom » Wed Jan 04, 2017 3:42 am

Kieran" wrote: I don't suppose you have some general advice on how to port from 1.13 to 1.10?
Cossack was kind enough to port the offsets for you to 1.10.
Follow his example on how to make the edits for 1.13c.
viewtopic.php?t=59669
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin

Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..

User avatar
Kieran
Senior Moderator
Angel
Posts: 617
Joined: Mon Oct 22, 2007 9:46 am
Location: England
Great Britain

Hand-picked

Re: D2Win - Gold Location

Post by Kieran » Wed Jan 04, 2017 10:19 pm

devurandom" wrote:
Kieran" wrote: I don't suppose you have some general advice on how to port from 1.13 to 1.10?
Cossack was kind enough to port the offsets for you to 1.10.
Follow his example on how to make the edits for 1.13c.
viewtopic.php?t=59669
Awesome thanks guy!

Would still be worth me doing some reason how to port between two versions! Plenty of 1.13 stuff I would like for 1.10 :D


EDIT:

OK Guys;

I'm getting there I think; although having a few issues as always :roll:

Code: Select all

6FAE991F to 8D98 47FEFFFF LEA EBX,[EAX-1B9]
6FAE9926 to 8DA8 49FEFFFF LEA EBP,[EAX-1B7]
6FAE9AAE to 8D88 49FEFFFF LEA ECX,[EAX-1B7]
6FAE9AF9 to 05 35FEFFFF   ADD EAX,-1CB

6FADF35C to 8D9401 60FEFF LEA EDX,[EAX+ECX-1A0]

6FAEBBC2 to 8DBC11 38FEFF LEA EDI,[EDX+ECX-1C8]
6FAEBBB7 to 8D8C11 49FEFF LEA ECX,[EDX+ECX-1B7]
Is this correct in what I am thinking?

I have taken the .10 ports and almost presumed they have been grouped/lined up correctly with the changes found in viewtopic.php?t=59669

I'm ending up creating new lines which are becoming labelled as ???? unknown error.

I also noted that for example the top code replaces an LEA EBP with a LEA EBX which isn't the same in the 1.13c codes.

It appears that the offsets posted display different codes altogether from those posted for 1.13

User avatar
devurandom
Forum Regular
Angel
Posts: 897
Joined: Sat Mar 07, 2015 9:07 pm
United States of America

Re: D2Win - Gold Location

Post by devurandom » Thu Jan 05, 2017 7:32 am

Well. for this code edit, Ignore the Registers EAX, EBX EBP etc, they will be different in 1.10.

Just change the constants.. 0F4, 0F2 etc.. that's all the edit does in 1.13c.
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin

Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..

User avatar
Kieran
Senior Moderator
Angel
Posts: 617
Joined: Mon Oct 22, 2007 9:46 am
Location: England
Great Britain

Hand-picked

Re: D2Win - Gold Location

Post by Kieran » Fri Jan 06, 2017 12:37 am

devurandom" wrote:Well. for this code edit, Ignore the Registers EAX, EBX EBP etc, they will be different in 1.10.

Just change the constants.. 0F4, 0F2 etc.. that's all the edit does in 1.13c.
Thank your sir will give it a go :)

User avatar
Kieran
Senior Moderator
Angel
Posts: 617
Joined: Mon Oct 22, 2007 9:46 am
Location: England
Great Britain

Hand-picked

Re: D2Win - Gold Location

Post by Kieran » Fri Jan 06, 2017 4:39 pm

Ok guys we are almost there!

Thanks for the help so far, just have one more issue!

- Gold Withdraw function hasn't moved (have to click in the original position to bring up the text box to select amount of gold to withdraw.

Screenshot can be seen here: https://s30.postimg.org/8c7ttrl75/Screenshot005.jpg

Where the mouse cursor is; that's where I have to click to open the withdraw gold text box. The button up top doesn't do anything (although the highlight works to say withdraw).

The code to change the button location for the "withdraw button" is as below:

Code: Select all

 LEA ECX,DWORD PTR DS:[EAX+EDX-1CB] 
With -1CB changing its location.

Any more suggestions on how I move the actual "pop up window" function?

(Ignore the button offset being slightly out - it's because I just copied the dc6 from expansion for testing. Ideally I need to rework the classic one.

User avatar
devurandom
Forum Regular
Angel
Posts: 897
Joined: Sat Mar 07, 2015 9:07 pm
United States of America

Re: [D2Client] 1.10 Classic Stash Enlargement - Gold Functio

Post by devurandom » Fri Jan 06, 2017 8:45 pm

These are the offsets that handle the range to click button (Gold withdraw click position)

6FAEBBB7
6FAEBBC2


You can edit the constants at those offsets in real time when the game is running to see what effect it has.
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin

Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..

User avatar
Kieran
Senior Moderator
Angel
Posts: 617
Joined: Mon Oct 22, 2007 9:46 am
Location: England
Great Britain

Hand-picked

Re: [D2Client] 1.10 Classic Stash Enlargement - Gold Functio

Post by Kieran » Sun Jan 08, 2017 7:12 pm

Thanks for all the tips guys.

In 1.10 there appears to be additional changes required in regards to the location of the "pop-up" withdrawal window. I have managed to locate the relevant areas and added them below. I have also gone through each individual reference to identify what each change did. I have regrouped them below for anybody that wishes to expand the classic stash in 1.10 and move the gold function locations.

Code: Select all

6FAE991F - LEA EBP,DWORD PTR DS:[EAX+ECX-1B9] ; Co-Ordinates for Amount of Gold in Stash String
6FADF35C - LEA EAX,DWORD PTR DS:[ECX+EDX-1A0] ; Co-Ordinates for Gold Max string

6FAE9AAE - LEA EBX,DWORD PTR DS:[EAX+ECX-1B7] ; Co-Ordinates for Mouse Over "Withdraw" String
6FAE9AF9 - LEA ECX,DWORD PTR DS:[EAX+EDX-1CB] ; Co-Ordinates for Position of "Withdraw" String

6FAE9926 - LEA ECX,DWORD PTR DS:[EAX+ECX-1B7] ; Co-Orindates for Withdraw Gold Icon

6FAEBBB7  - LEA EDX,DWORD PTR DS:[EAX+ECX-1C8] ; Co-Ordinates for That Allow Gold Withdraw Icon to be Clickable
6FAEBBC2  - LEA EAX,DWORD PTR DS:[EAX+ECX-1B7] ; Co-Ordinates for Clickable Area for Gold Withdraw Icon

6FAEC2BB - LEA EDX,DWORD PTR DS:[EAX+ECX-1C8] ; Co-Ordinates for the Location of Withdraw Pop Up Window Function

6FAEC2C6 - LEA EAX,DWORD PTR DS:[EAX+ECX-1B7] ; Co-Ordinates the Clickable Area for Pop-Up Window Function (Y Axis)
6FAEC2D6 - LEA ECX,DWORD PTR DS:[EAX+49] ; Co-Ordinates the Clickable Area for Pop-Up Window Function (X Axis)
Credit to everyone that helped me in this thread; I simply found the last three additional points/alterations.

Thanks for the support guys,

Kieran


*** ADDITIONAL FINDS ***

Code: Select all

6FAE0963   8D4C10 B0        LEA ECX,DWORD PTR DS:[EAX+EDX-40] ; Close Button Co-Ordinates (Y Axis) for Inventory
6FAD087F   8D4C10 C4        LEA ECX,DWORD PTR DS:[EAX+EDX-3C] ; Close Button Co-Ordinates (Y Axis) for Character Stats
6FB04BEB   8D4C10 C6        LEA ECX,DWORD PTR DS:[EAX+EDX-3A] ; Close Button Co-Ordinates (Y Axis) for Quest Screen
6FB04CA9   8D4C10 C6        LEA ECX,DWORD PTR DS:[EAX+EDX-3A] ; Button Co-Ordinates (Y Axis) for Quest Speech
6FB16EF1   8D4C10 C1        LEA ECX,DWORD PTR DS:[EAX+EDX-3F] ; Close Button Co-Ordinates (Y Axis) for Skill Tabs
6FAE98B5   8D4411 BB        LEA EAX,DWORD PTR DS:[ECX+EDX-45] ; Inventory Gold Icon Co-Ordinates (Y Axis)
6FAE98B9   8D6C11 A8        LEA EBP,DWORD PTR DS:[ECX+EDX-58] ; Inventory Gold Amount String (Y Axis)

And I still cannot locate the close button for the stash :cry:

FearedBliss
Posts: 82
Joined: Sat Oct 16, 2010 4:29 pm
United States of America

Re: [D2Client] 1.10 Classic Stash Enlargement - Gold Functions

Post by FearedBliss » Wed Mar 07, 2018 5:03 am

Thanks for this guys. I was able to port it to 1.14d and expand the stash there. My solution is also a bit more simpler than these since I'm re-using the lod stash code paths. You can find them at this post:

viewtopic.php?f=8&t=65215&p=493825#p493825

Also the 1.13c simplified offsets are as follows

Code: Select all

Gold Amount/Withdraw Button:
NOP : 8D160

Withdraw Text on Hover:
NOP: 8D1B4

Withdraw Button Event on Click:
NOP: 8B6C5

Gold Max/Amount Display:
JMP: 99A18

User avatar
Kieran
Senior Moderator
Angel
Posts: 617
Joined: Mon Oct 22, 2007 9:46 am
Location: England
Great Britain

Hand-picked

Re: [D2Client] 1.10 Classic Stash Enlargement - Gold Functions

Post by Kieran » Wed Mar 07, 2018 11:57 am

I've just done this for v09 too

I'll post the locations when I get on my PC just incase anybody wants them :)

Return to “Code Editing”