How can change Patch_D2.mpq name that game.exe read?

Discuss applications of D2Mod (v1.10), NefEx (v1.11+), and PlugY, and post suggestions for future plugins.

Moderators: Nefarius, Yohann, SVR

wangyxmike1999
Posts: 4
Joined: Sun Mar 30, 2014 5:22 pm

How can change Patch_D2.mpq name that game.exe read?

Post by wangyxmike1999 » Sun Mar 30, 2014 6:01 pm

How can change Patch_D2.mpq name that game.exe read?

For exmaple ,if we have Patch_D2.mpq and Patch2.mpq ,the game.exe will read Patch2.mpq ,didn't read

Patch_D2.mpq, I means change The default name that game.exe read,please help !

gijensen
Posts: 3
Joined: Tue Jul 26, 2016 12:57 am

Re: How can change Patch_D2.mpq name that game.exe read?

Post by gijensen » Thu Jul 28, 2016 4:29 pm

(I know this topic is long dead, but I couldn't find the answer online)

Patch_D2.mpq (specifically "patch_d2.mpq") appears to be referred to by two DLLs (1.13d):
  • D2Win.dll
  • D2Lang.dll
It appears to be null terminated giving it a minimum length of 1 and a maximum length of 15 in both DLLs.

You can change the value pretty easily if you know how to edit binary files.

Cai_Miao-BTH
Posts: 90
Joined: Mon Sep 23, 2013 10:04 am
Location: China
China

Re: How can change Patch_D2.mpq name that game.exe read?

Post by Cai_Miao-BTH » Thu Jul 28, 2016 4:33 pm

If you use D2SE simply not only you can read it on demand, but also specify extend MPQs to read.

如果你使用D2SE的话不仅能决定是否读取,而且还能指定载入MPQ的名称。
Translator for Simplified Chinese.
Discord: cai_miao#0861
Translated BTH by onyx, HU by Soulmancer (until 2.x),
LRdO (approved) by Xaphan and Median XL: Sigma by the MXL community.
D2MFC & D2FTM, Modern Font Customize solution for Diablo II

Future project:
- Set of Font with FULL Latin, CHI, JAP and RUS character support. To much time needed.
- BFE by TrueMage - to Simplified Chinese from English
- ES (original) by PerfectCell to Simplified Chinese from English/Japanese
-Touhou Diablo by Bishibosh-A - to English/Japanese from Chinese

Return to “PlugY|NefEx|D2Mod”