bolrog / d2dx

D2DX is a complete solution to make Diablo II run well on modern PCs, with high fps and better resolutions.
GNU General Public License v3.0
416 stars 49 forks source link

ProjectD2 doesn't work with multiplayer #81

Closed Krillien closed 3 years ago

Krillien commented 3 years ago

I'm getting an error saying 'wrong game version' whenever I create a game in the PD2 realm. It seems like PD2 requires a specific version of D2HD.dll, any any other version will trigger the error above.

Single player works fine however.

Is this something that can be fixed?

bolrog commented 3 years ago

Hm, not on my end. I think the PD2 guys need to whitelist D2DX somehow then.

Krillien commented 3 years ago

Noted. I've opened a ticket with the PD2 team, if I get any updates I'll update this issue.

MAXBURAOT commented 3 years ago

Hmm just testing ony PD2, only 2 modes of display only still figuring how to make it widescreen Single/Multi seems ok :)

2 3 4

Krillien commented 3 years ago

Ah let me clarify - singleplayer and open bnet (self host) multiplayer games are fine. You have to log into the PD2 realm and create a game there to see the wrong game version error.

Also, you should be able to change to a widescreen resolution in the default video settings menu in game.

MAXBURAOT commented 3 years ago

Ah let me clarify - singleplayer and open bnet (self host) multiplayer games are fine. You have to log into the PD2 realm and create a game there to see the wrong game version error.

Also, you should be able to change to a widescreen resolution in the default video settings menu in game.

later ill try to update my PD2 and test it :) thanks for the info

tytannial commented 3 years ago

Ah let me clarify - singleplayer and open bnet (self host) multiplayer games are fine. You have to log into the PD2 realm and create a game there to see the wrong game version error. Also, you should be able to change to a widescreen resolution in the default video settings menu in game.

later ill try to update my PD2 and test it :) thanks for the info

The SGDFreeRes has a limit for PD2. See the Readme at https://github.com/mir-diablo-ii-tools/SlashGaming-Diablo-II-Free-Resolution

bolrog commented 3 years ago

Thanks @tytannial, I will be adding a fix where D2DX selects 1068x600 by default when PD2 is detected. That should at least unblock multiplayer if the user doesn't set a res in the config.

tytannial commented 3 years ago

Thanks @tytannial, I will be adding a fix where D2DX selects 1068x600 by default when PD2 is detected. That should at least unblock multiplayer if the user doesn't set a res in the config.

I think you can make the config "size=[-1,-1]" to "size=[[-1,-1],[-1,-1]]", then you can switch res in game, and save last res which has been used. Then you can translate it to SGDFreeRes config with same behavior that SGDFreeRes used. And also port other SGDFreeRes config option to d2dx config when using built-in SGDFreeRes.

Krillien commented 3 years ago

My ticket got auto-closed so I'm unsure if there is a path forward with the PD2 devs.

However it seems like the missing D2HD.dll is the culprit for multiplayer failing? Is that dll a part of SGDFreeRes? I've tried quickly altering my resolution in game to 1068x600 before the game kicks me out, thinking that the next game might recognize my correct resolution - no dice.

tytannial commented 3 years ago

My ticket got auto-closed so I'm unsure if there is a path forward with the PD2 devs.

However it seems like the missing D2HD.dll is the culprit for multiplayer failing? Is that dll a part of SGDFreeRes? I've tried quickly altering my resolution in game to 1068x600 before the game kicks me out, thinking that the next game might recognize my correct resolution the next game I create - no dice.

I think you could disable build-in widescreen and use pd2's.

Krillien commented 3 years ago

I've configured d2dx.cfg with noresmod=true, and added the D2HD.dll back - however the game now refuses to launch saying Glid3x.dll version not supported, please use latest supported version.

tytannial commented 3 years ago

Looks like anti-cheat.....🤣

bolrog commented 3 years ago

D2HD is an older mod, also by Mir Drualga, which does a similar job as SGD2FreeRes.

Looks to me like the PD2 team will have to add support for SGD2FreeRes. The D2HD included in PD2 does not recognize D2DX as a known Glide wrapper and refuses to load, whereas SGD2FreeRes (standalone or built into D2DX) will work with it.

Krillien commented 3 years ago

bolrog, I'm not sure how to proceed here as it seems like the PD2 dev team aren't responding. A shame really, as I love what you've done with your glide wrapper.

You can probably close this issue, since there isn't a path forward at the moment.

MAXBURAOT commented 3 years ago

Still testing PD2 Season 2, after this you will get disconnect, it need to be launch on the PD2 Launcher, PD2 needs to recognize D2DX glide3x.dll as an alternate glide

1 2 3 5 6

Krillien commented 3 years ago

To be fair - using the launcher is not required. I'm currently using Sven's glide wrapper via Game.exe -3dfx and there are no issues there. Obviously if PD2 has an update they need to push, I'll need to use the launcher for the update one time.

MAXBURAOT commented 3 years ago

To be fair - using the launcher is not required. I'm currently using Sven's glide wrapper via Game.exe -3dfx and there are no issues there. Obviously if PD2 has an update they need to push, I'll need to use the launcher for the update one time.

sven for sure has no issues coz they already using it and it is recognize by PD2 system i dunno if theres an anti cheat system the game always try to update everytime i replace the glide3x.dll with D2DX :)), i think the solution for this is the PD2 Devs by themselves they nedd to allow D2DX :))

bolrog commented 3 years ago

Yeah I think it's up to the PD2 guys. Closing this for now.

senpaisomething commented 3 years ago

My ticket got auto-closed so I'm unsure if there is a path forward with the PD2 devs.

However it seems like the missing D2HD.dll is the culprit for multiplayer failing? Is that dll a part of SGDFreeRes? I've tried quickly altering my resolution in game to 1068x600 before the game kicks me out, thinking that the next game might recognize my correct resolution - no dice.

I just found out about this, feel free to message me (senpaisomething) directly on the pd2 discord. I'd love to chat a bit more

Krillien commented 3 years ago

@bolrog - just wondering if it's worth it to re-open this issue given that senpai has reached out. thanks.