Any idea to extend AutoMagic.txt?
Moderators: Nefarius, Havvoric
Any idea to extend AutoMagic.txt?
Any idea to extend AutoMagic.txt?
Re: Any idea to extend AutoMagic.txt?
Extend it how exactly? The only limits are the affix id, which are capped at a WORD in size; affix ids are build from the combination of automagic + prefixes + suffixes, so you cannot exceed more than 65k in total.
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
Re: Any idea to extend AutoMagic.txt?
I mean to extend it to more than 4096 rows. For example, 20480 rows.
Re: Any idea to extend AutoMagic.txt?
The save code uses 2048 as the upper limit, but just increase this to the number of save bits (this one is the row count, but keep in mind the total limit of all three files must be less than 2^16-1):
Code: Select all
D2Common, 1.10
//Read
00060CD0 6A 0B PUSH 0B
00060CD2 53 PUSH EBX
00060CD3 E8 0A370200 CALL 000843E2
//Write
00063569 6A 0B PUSH 0B
0006356B 50 PUSH EAX
0006356C 53 PUSH EBX
0006356D E8 8E0E0200 CALL 00084400
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
Re: Any idea to extend AutoMagic.txt?
thank you very much!
Re: Any idea to extend AutoMagic.txt?
hi,man.these words are wrong.the game crushed when i use some equipments with automagic.Necrolis wrote: ↑Wed Jun 19, 2019 1:50 pmThe save code uses 2048 as the upper limit, but just increase this to the number of save bits (this one is the row count, but keep in mind the total limit of all three files must be less than 2^16-1):Code: Select all
D2Common, 1.10 //Read 00060CD0 6A 0B PUSH 0B 00060CD2 53 PUSH EBX 00060CD3 E8 0A370200 CALL 000843E2 //Write 00063569 6A 0B PUSH 0B 0006356B 50 PUSH EAX 0006356C 53 PUSH EBX 0006356D E8 8E0E0200 CALL 00084400
Re: Any idea to extend AutoMagic.txt?
What was the crash? what changes did you make?
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
Re: Any idea to extend AutoMagic.txt?
The game can be running.but crush when get some equiipment.
Re: Any idea to extend AutoMagic.txt?
Thats cause you changed the wrong code, you are meant to change the PUSH 0x0B to something higher (they must both match), as an example PUSH 0x0D will give you 4 times the space.
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
Re: Any idea to extend AutoMagic.txt?
You need only change the 6A 0A to 6A 0D.
Also note that this will break any old chars that have items with automagic.
Also note that this will break any old chars that have items with automagic.
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