Force 6 affix rares [1.13x]

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

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

Force 6 affix rares [1.13x]

Post by devurandom » Mon Sep 21, 2015 7:25 pm

Reference
viewtopic.php?t=62120
viewtopic.php?t=62481

Credit to Necrolis for the original 1.10 code edit, and thanks to hysper for key contributions in porting this to 1.13

Code for 1.13d

Code: Select all

============================================================
- Force 6 affix rares on weapons/armor rings/amulets -

[1.13d] - D2Game.2C068

change:

0766C068    BA C590C66A   MOV EDX,6AC690C5
0766C06D    F7E2          MUL EDX

to

0766C068    BA 06000000   MOV EDX,6
0766C06D    EB 13         JMP SHORT 0766C082

- Force 4 affix rares on jewels* -
----------------------------------
[1.13d] - D2Game.2C056

change:

0766C056    83E0 01       AND EAX,00000001
0766C059    83C0 03       ADD EAX,3

to:

0766C056    B8 04000000   MOV EAX,4
0766C05B    90            NOP

Code for 1.13c

Code: Select all

============================================================
- Force 6 affix rares on weapons/armor rings/amulets -

[1.13c] - D2Game.152E8

change:

6FC352E8    BA C590C66A   MOV EDX,6AC690C5
6FC352ED    F7E2          MUL EDX

to

6FC352E8    BA 06000000   MOV EDX,6
6FC352ED    EB 13         JMP SHORT 6FC35302


- Force 4 affix rares on jewels* -
----------------------------------
[1.13c] - D2Game.152D6

change:

6FC352D6    83E0 01       AND EAX,00000001
6FC352D9    83C0 03       ADD EAX,3

to:

6FC352D6    B8 04000000   MOV EAX,4
6FC352DB    90            NOP

*Forcing 6 affix rare jewels could be a bad idea.

viewtopic.php?t=34291

"You need to watch the global limit of 47 mods if you plan on making 6-stat socketables.
Many of the high-powered mods (e.g. Zy-El, TFW, BfE) have run into the stat count limit.
Six jewels with six mods apiece runs you right up to the danger zone".

Edit: fixed link
Last edited by devurandom on Tue Sep 22, 2015 3:36 am, edited 1 time in total.
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
Necrolis
Senior Admin
Throne
Posts: 9125
Joined: Sat Mar 25, 2006 1:22 pm
Location: The Land of the Dead
Contact:
South Africa

Hand-picked

Re: Force 6 affix rares [1.13x]

Post by Necrolis » Tue Sep 22, 2015 1:10 am

devurandom" wrote:"You need to watch the global limit of 47 mods if you plan on making 6-stat socketables.
Many of the high-powered mods (e.g. Zy-El, TFW, BfE) have run into the stat count limit.
Six jewels with six mods apiece runs you right up to the danger zone".
There isn't really a fixed limit, the problem is actually a display character buffer overflow (which you'll hit long before you hit the item stat stream size limit). Whats also important to point out is that many items with many mods will accelerate one very quickly to the 8KB save file size limit.
Image
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal

mrnorris
Posts: 10
Joined: Wed Jul 05, 2017 2:11 pm

Re: Force 6 affix rares [1.13x]

Post by mrnorris » Thu Jul 20, 2017 12:45 pm

Thanks for sharing! This was very useful to me.

devurandom, I've seen in another topic that you wanted to know how to set both affixes to magic items. I've applied to 1.13c the changes these guys from the link below did in 1.09d and it seems to be working.

viewtopic.php?f=8&t=615&hilit=magic+prefix+suffix

The change is to assemble NOP at the following 2 lines:

Code: Select all

(offsets 103E8 and 10435)
6FC303E8  |> 7E 05          JLE SHORT D2Game.6FC303EF
...
6FC30435  |. 75 0A          JNZ SHORT D2Game.6FC30441

change to:

6FC303E8   > 90             NOP
6FC303E9   . 90             NOP
...
6FC30435   . 90             NOP
6FC30436   . 90             NOP
Necrolis said there are complications with low level items not having available affixes, so I'm not sure about the side effects of this, but results so far look good.

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

Re: Force 6 affix rares [1.13x]

Post by devurandom » Thu Jul 20, 2017 1:33 pm

Hello,

Thanks but We were able to force 2 affix magic items for 1.13 a couple years ago.
But your efforts aren't wasted, because its good to build your skill set on problems like this.

In 1.13 there wasn't a problem with non available low level affixes.. In instances where one affix was not available you'd get items with only one affix instead of two.

Never seen an instance where both affixes were not available (blue item with no affixes)....
perhaps the error checking is smart enough to generate white items in such cases.
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..

mrnorris
Posts: 10
Joined: Wed Jul 05, 2017 2:11 pm

Re: Force 6 affix rares [1.13x]

Post by mrnorris » Thu Jul 20, 2017 1:46 pm

Ohh I see.

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

Re: Force 6 affix rares [1.13x]

Post by FearedBliss » Sun Mar 11, 2018 6:56 am

1.14d Offsets at the following post:

viewtopic.php?f=8&t=65219

Ruffneck
Posts: 5
Joined: Sat Jun 15, 2019 9:07 pm
Canada

Re: Force 6 affix rares [1.13x]

Post by Ruffneck » Sat Jun 15, 2019 9:23 pm

Hi! I'm using 1.13c and I've tried assembling it exactly like you stated it.

But here's what I'm getting for weapons/armors/rings/ammys, at offset 152ED :

https://www.d2mods.info/forum/ext/dmzx/ ... 4c893b.jpg

I've tried putting LONG as suggested but the game crashes whenever a rare drops.

Any way to fix this?

Forcing suffix/prefix on all magic items did work though, as well as forcing 4 affixes on jewel.

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

Re: Force 6 affix rares [1.13x]

Post by devurandom » Sat Jun 15, 2019 9:54 pm

try disable fill with Nop's, if that doesn't work use Binary Edit and paste in the bytes will give you what you need.
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..

Ruffneck
Posts: 5
Joined: Sat Jun 15, 2019 9:07 pm
Canada

Re: Force 6 affix rares [1.13x]

Post by Ruffneck » Sat Jun 15, 2019 10:32 pm

Thanks a lot! Worked with Binary Edit indeed!

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

Re: Force 6 affix rares [1.13x]

Post by devurandom » Sun Jun 16, 2019 11:26 am

No Problem :)
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..

spk613
Posts: 5
Joined: Fri Jun 14, 2019 2:31 pm
Korea South

Re: Force 6 affix rares [1.13x]

Post by spk613 » Sun Jul 21, 2019 10:26 am

Hi im using 1.13c
but i see
6FC352E8 BA C590C66A MOV EDX,6AC690C5
as
6FC2118F BA C590C66A MOV EDX,6AC690C5

and i see
6FC352ED F7E2 MUL EDX
as
6FC21197 F7E2 MUL EDX

when i try to change JMP SHORT 6FC35302 from MUL EDX, i get Destination is out of range error.
what should i do? i don;t know anything about coding i just want to make rare to have 6 , and magic to have 2 and jewels for 4. any one can help?
why is my destination is differnet?? how can i find right destination for my version

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

Re: Force 6 affix rares [1.13x]

Post by devurandom » Sun Jul 21, 2019 11:18 am

It could be you're trying to editing the wrong offsets, as those don't match. Or you're editing the wrong version of Diablo II.
:(
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..

spk613
Posts: 5
Joined: Fri Jun 14, 2019 2:31 pm
Korea South

Re: Force 6 affix rares [1.13x]

Post by spk613 » Sun Jul 21, 2019 1:09 pm

im sure its 1.13c for sure. what do you mean im editing the wrong offsets?

/ops i found it. like you said. it was the wrong offsets. sorry thx mate :)

User avatar
hology
Posts: 4
Joined: Sat Jun 13, 2020 9:10 pm

Re: Force 6 affix rares [1.13x]

Post by hology » Sat Jun 20, 2020 6:16 am

This is awesome
Is there a chance anybody knows the location of this for crafted items?

Post Reply

Return to “Code Editing”