[1.10] Allways -direct Param

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
Lurix
Dark Alliance Beta Test
Champion of the Light
Posts: 496
Joined: Tue Aug 31, 2010 9:30 am
Location: Birmingham, UK
Bulgaria

[1.10] Allways -direct Param

Post by Lurix » Fri Jan 27, 2012 8:46 am

How would I edit the game files so when you start the game it's using by default the param -direct?
I know Plugy got's such an option, but I don't wanna use it since it's confilicting with some of mymod files.

So if Plugy can do it, there must be some way it's achieved by editing the game files, either.
Thanks in advance ;)

User avatar
ki4m
Posts: 42
Joined: Fri Apr 29, 2011 3:19 pm
Location: Germany
Contact:

Re: [1.10] Allways -direct Param

Post by ki4m » Fri Jan 27, 2012 5:39 pm

D2SE has this function too

you can force -direct or -txt in the D2SE_setup.ini
I need more Dropbox space, pls register using this referal link, so you and me get 250mb more space:
http://db.tt/sbpJWYD1

User avatar
Lurix
Dark Alliance Beta Test
Champion of the Light
Posts: 496
Joined: Tue Aug 31, 2010 9:30 am
Location: Birmingham, UK
Bulgaria

Re: [1.10] Allways -direct Param

Post by Lurix » Sun Jan 29, 2012 12:05 am

Using Plugy, or this - doesn't make difference.
I wanna do t by editing the game's dll's if it's possible.

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: [1.10] Allways -direct Param

Post by Necrolis » Sun Jan 29, 2012 11:38 am

to do this (without altering game.exe), you need to make fog.#10117 always return TRUE (note: this makes the game check the HDD for all mpq's).

then you need to make storm.#263 always set the global to true:

Code: Select all

Storm.#263 6FFC7040                                       8B4424 04                                        MOV EAX,DWORD PTR SS:[ESP+4]
6FFC7044                                                  A3 58A2FE6F                                      MOV DWORD PTR DS:[6FFEA258],EAX
6FFC7049                                                  B8 01000000                                      MOV EAX,1
6FFC704E                                                  C2 0400                                          RETN 4

Code: Select all

Storm.#263 6FFC7040                                       B8 01000000                                      MOV EAX,1
6FFC7045                                                  A3 58A2FE6F                                      MOV DWORD PTR DS:[6FFEA258],EAX
6FFC704A                                                  C2 0400                                          RETN 4
6FFC704D                                                  90                                               NOP
6FFC704E                                                  90                                               NOP
6FFC704F                                                  90                                               NOP
6FFC7050                                                  90                                               NOP
Lurix" wrote:Using Plugy, or this - doesn't make difference.
it won't, all this editi does is for the mpq's to be loaded from the HDD
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

Post Reply

Return to “Code Editing”