Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't generate maps for Act 5 #201

Closed
mgalos999 opened this issue Oct 26, 2021 · 6 comments · May be fixed by #204
Closed

Can't generate maps for Act 5 #201

mgalos999 opened this issue Oct 26, 2021 · 6 comments · May be fixed by #204

Comments

@mgalos999
Copy link
Contributor

I've run into a problem I can't seem to solve generating maps for act 5.

If I try and generate a map from the first 4 acts it works no problem (the first 108 maps):
wine bin/d2-map.exe game --seed 409887176 --difficulty 2 --map 108 <-- this works.

However if I try and generate any for act 5, I get this output:
wine bin/d2-map.exe game --seed 409887176 --difficulty 2 --map 109 --verbose

{"level":30,"time":1635237337789,"source":"map/main.c:91","msg":"Cli:Start","version":"v0.9.0-12-g1dcc","hash":"1dcc7cc5586d4b60bc50267dcc2bf55225603958"}
{"level":20,"time":1635237337810,"source":"map/main.c:124","msg":"Cli:Arg","game":"game"}
{"level":20,"time":1635237337821,"source":"map/main.c:105","msg":"Cli:Arg","seed": "0x186e61c8"}
{"level":20,"time":1635237337834,"source":"map/main.c:109","msg":"Cli:Arg","difficulty":2}
{"level":20,"time":1635237337844,"source":"map/main.c:113","msg":"Cli:Arg","mapId":109}
{"level":20,"time":1635237337855,"source":"map/main.c:120","msg":"Cli:Arg","verbose":"true"}
{"level":20,"time":1635237337867,"source":"map/d2_client.c:147","msg":"Init:Dll","path":"game"}
{"level":10,"time":1635237337883,"source":"map/d2_version.h:38","msg":"Init:GamePath","exists":"false","game":"game/Path of Diablo/Game.exe"}
{"level":10,"time":1635237337904,"source":"map/d2_version.h:38","msg":"Init:GamePath","exists":"true","game":"game/ProjectD2/Game.exe"}
{"level":10,"time":1635237337919,"source":"map/d2_client.c:167","msg":"Registry:Opened"}
{"level":30,"time":1635237337929,"source":"map/d2_client.c:176","msg":"Registry:InstallPath","value":"game"}
{"level":30,"time":1635237337940,"source":"map/d2_client.c:180","msg":"Init:Game","version":"ProjectD2/","path":"game/ProjectD2/"}
{"level":10,"time":1635237338109,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878394896}
{"level":10,"time":1635237338174,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379664}
{"level":10,"time":1635237338188,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878399072}
{"level":10,"time":1635237338202,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878425328}
{"level":10,"time":1635237338215,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878449920}
{"level":10,"time":1635237338228,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878455632}
{"level":10,"time":1635237338406,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873757515}
{"level":10,"time":1635237338420,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Storm.DLL","offset":1875126880}
{"level":10,"time":1635237338435,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873950704}
{"level":10,"time":1635237338450,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873654816}
{"level":10,"time":1635237338464,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876380048}
{"level":10,"time":1635237338478,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379952}
{"level":10,"time":1635237338491,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876677696}
{"level":10,"time":1635237338503,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876371584}
{"level":10,"time":1635237338516,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876680176}
{"level":10,"time":1635237338528,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379664}
{"level":10,"time":1635237338541,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379024}
{"level":10,"time":1635237338554,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876429984}
{"level":10,"time":1635237338567,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876340160}
{"level":10,"time":1635237338580,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876371584}
{"level":10,"time":1635237338592,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Lang.DLL","offset":4035216}
{"level":10,"time":1635237338604,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871642736}
{"level":10,"time":1635237338616,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871623344}
{"level":10,"time":1635237338629,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873757515}
{"level":10,"time":1635237338653,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Storm.DLL","offset":1875128608}
{"level":10,"time":1635237338675,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873881760}
{"level":10,"time":1635237338689,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873880928}
{"level":10,"time":1635237338709,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876479136}
{"level":10,"time":1635237338722,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876478944}
{"level":10,"time":1635237338735,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876416944}
{"level":10,"time":1635237338747,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876419424}
{"level":10,"time":1635237338760,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876478768}
{"level":10,"time":1635237338772,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876478352}
{"level":10,"time":1635237338785,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876675776}
{"level":10,"time":1635237338797,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876486528}
{"level":10,"time":1635237338810,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876648288}
{"level":10,"time":1635237338822,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871620640}
{"level":10,"time":1635237338835,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871620240}
{"level":10,"time":1635237338847,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Lang.DLL","offset":4038960}
{"level":10,"time":1635237338860,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876648288}
{"level":20,"time":1635237338873,"source":"map/d2_client.c:185","msg":"Init:Offsets:Defined"}
{"level":10,"time":1635237338884,"source":"map/d2_client.c:117","msg":"Init:Dll","dll":"Fog.dll"}
{"level":20,"time":1635237338933,"source":"map/d2_client.c:127","msg":"Init:Dll:Done","dll":"Fog.dll"}
{"level":10,"time":1635237338944,"source":"map/d2_client.c:129","msg":"Init:Dll","dll":"D2Win.dll"}
{"level":20,"time":1635237339068,"source":"map/d2_client.c:134","msg":"Init:Dll:Done","dll":"D2Win.dll"}
{"level":10,"time":1635237339081,"source":"map/d2_client.c:136","msg":"Init:Dll","dll":"D2Lang.dll"}
{"level":20,"time":1635237339118,"source":"map/d2_client.c:138","msg":"Init:Dll:Done","dll":"D2Lang.dll"}
{"level":10,"time":1635237339132,"source":"map/d2_client.c:140","msg":"Init:Dll","dll":"D2Client.dll"}
{"level":20,"time":1635237339554,"source":"map/d2_client.c:143","msg":"Init:Dll:Done","dll":"D2Client.dll"}
{"level":30,"time":1635237339571,"source":"map/main.c:143","msg":"Map:Init:Done","version":"v0.9.0-12-g1dcc","hash":"1dcc7cc5586d4b60bc50267dcc2bf55225603958","duration":1704}

] We got a big Error here! [

This seems to happen very consistently using Project Diablo 2 for 1.13c, 1.13d and 1.14d.
I thought maybe the expansion wasn't installed correctly, but I've tried a reinstall and re-patching to no avail.
Sometimes it will hang forever, other times it will just quietly stop, sometimes it will say 'We got a big error here'.
I'm running this in docker on windows 10.
docker run -it -v "/E/Games/Diablo II - 1.14d PD2":/app/game blacha/diablo2 /bin/bash

@blacha
Copy link
Owner

blacha commented Oct 26, 2021

This generates fine on my diablo2 v1.13c but dies when using Project Diablo 2!

looks like all act 5 maps on any seed are not working either

wine bin/d2-map.exe game --seed 1 --difficulty 2 --map 110

@blacha
Copy link
Owner

blacha commented Oct 26, 2021

Ahh found the problem...

ProjectDiablo2 needs to have a registry entry set up correctly, and by using a relative path it is failing to do this

Works

wine bin/d2-map.exe /app/game --seed 1 --difficulty 2 --map 109

Fails

wine bin/d2-map.exe game --seed 1 --difficulty 2 --map 109

I am assuming this might have something to do with all the new maps they have introduced into act5 their endgame mapping system.

@mgalos999
Copy link
Contributor Author

Hmm this doesn't fix it for me.
I've tried with vanilla 1.13c, 1.13c with PD2 and 1.13c with POD.
So for all 3 installations I've tried with absolute path and relative and I can't get act 5 maps to render.

Are you using a normal 1.13c installation? (As in no POD or PD2?)
I find that I can't get maps to generate at all with vanilla 1.13c.

I've also tried on an ubuntu VM with no luck.

Are you doing anything different with the game files? Permissions/copying into container or something?

Absolute path:

root@49a8c7764d42:/app# wine bin/d2-map.exe /app/game --seed 409887176 --difficulty 2 --map 108 --verbose
{"level":30,"time":1635331726745,"source":"map/main.c:91","msg":"Cli:Start","version":"v0.9.0-12-g1dcc","hash":"1dcc7cc5586d4b60bc50267dcc2bf55225603958"}
{"level":20,"time":1635331726766,"source":"map/main.c:124","msg":"Cli:Arg","game":"/app/game"}
{"level":20,"time":1635331726779,"source":"map/main.c:105","msg":"Cli:Arg","seed": "0x186e61c8"}
{"level":20,"time":1635331726792,"source":"map/main.c:109","msg":"Cli:Arg","difficulty":2}
{"level":20,"time":1635331726805,"source":"map/main.c:113","msg":"Cli:Arg","mapId":108}
{"level":20,"time":1635331726817,"source":"map/main.c:120","msg":"Cli:Arg","verbose":"true"}
{"level":20,"time":1635331726830,"source":"map/d2_client.c:147","msg":"Init:Dll","path":"/app/game"}
{"level":10,"time":1635331726846,"source":"map/d2_version.h:38","msg":"Init:GamePath","exists":"false","game":"/app/game/Path of Diablo/Game.exe"}
{"level":10,"time":1635331726868,"source":"map/d2_version.h:38","msg":"Init:GamePath","exists":"false","game":"/app/game/ProjectD2/Game.exe"}
{"level":10,"time":1635331726890,"source":"map/d2_version.h:38","msg":"Init:GamePath","exists":"true","game":"/app/game/Game.exe"}
{"level":10,"time":1635331726905,"source":"map/d2_client.c:167","msg":"Registry:Opened"}
{"level":30,"time":1635331726915,"source":"map/d2_client.c:176","msg":"Registry:InstallPath","value":"/app/game"}
{"level":30,"time":1635331726928,"source":"map/d2_client.c:180","msg":"Init:Game","version":"","path":"/app/game/"}
{"level":10,"time":1635331727266,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878394896}
{"level":10,"time":1635331727335,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379664}
{"level":10,"time":1635331727351,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878399072}
{"level":10,"time":1635331727366,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878425328}
{"level":10,"time":1635331727381,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878449920}
{"level":10,"time":1635331727396,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878455632}
{"level":10,"time":1635331727593,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873757515}
{"level":10,"time":1635331727609,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Storm.DLL","offset":1875126880}
{"level":10,"time":1635331727624,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873950704}
{"level":10,"time":1635331727641,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873654816}
{"level":10,"time":1635331727654,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876380048}
{"level":10,"time":1635331727670,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379952}
{"level":10,"time":1635331727685,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876677696}
{"level":10,"time":1635331727703,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876371584}
{"level":10,"time":1635331727744,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876680176}
{"level":10,"time":1635331727760,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379664}
{"level":10,"time":1635331727777,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379024}
{"level":10,"time":1635331727795,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876429984}
{"level":10,"time":1635331727810,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876340160}
{"level":10,"time":1635331727825,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876371584}
{"level":10,"time":1635331727842,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Lang.DLL","offset":3904144}
{"level":10,"time":1635331727858,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871642736}
{"level":10,"time":1635331727874,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871623344}
{"level":10,"time":1635331727891,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873757515}
{"level":10,"time":1635331727906,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Storm.DLL","offset":1875128608}
{"level":10,"time":1635331727927,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873881760}
{"level":10,"time":1635331727944,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873880928}
{"level":10,"time":1635331727959,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876479136}
{"level":10,"time":1635331727974,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876478944}
{"level":10,"time":1635331727989,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876416944}
{"level":10,"time":1635331728003,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876419424}
{"level":10,"time":1635331728017,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876478768}
{"level":10,"time":1635331728031,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876478352}
{"level":10,"time":1635331728045,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876675776}
{"level":10,"time":1635331728059,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876486528}
{"level":10,"time":1635331728073,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876648288}
{"level":10,"time":1635331728087,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871620640}
{"level":10,"time":1635331728101,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871620240}
{"level":10,"time":1635331728114,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Lang.DLL","offset":3907888}
{"level":10,"time":1635331728127,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876648288}
{"level":20,"time":1635331728141,"source":"map/d2_client.c:185","msg":"Init:Offsets:Defined"}
{"level":10,"time":1635331728152,"source":"map/d2_client.c:117","msg":"Init:Dll","dll":"Fog.dll"}
{"level":20,"time":1635331728203,"source":"map/d2_client.c:127","msg":"Init:Dll:Done","dll":"Fog.dll"}
{"level":10,"time":1635331728215,"source":"map/d2_client.c:129","msg":"Init:Dll","dll":"D2Win.dll"}
{"level":50,"time":1635331728405,"source":"map/d2_client.c:131","msg":"InitFailed","dll":"D2Win.dll"}
root@49a8c7764d42:/app# 
root@49a8c7764d42:/app# wine bin/d2-map.exe game --seed 409887176 --difficulty 2 --map 108 --verbose
{"level":30,"time":1635331767244,"source":"map/main.c:91","msg":"Cli:Start","version":"v0.9.0-12-g1dcc","hash":"1dcc7cc5586d4b60bc50267dcc2bf55225603958"}
{"level":20,"time":1635331767266,"source":"map/main.c:124","msg":"Cli:Arg","game":"game"}
{"level":20,"time":1635331767279,"source":"map/main.c:105","msg":"Cli:Arg","seed": "0x186e61c8"}
{"level":20,"time":1635331767292,"source":"map/main.c:109","msg":"Cli:Arg","difficulty":2}
{"level":20,"time":1635331767304,"source":"map/main.c:113","msg":"Cli:Arg","mapId":108}
{"level":20,"time":1635331767316,"source":"map/main.c:120","msg":"Cli:Arg","verbose":"true"}
{"level":20,"time":1635331767327,"source":"map/d2_client.c:147","msg":"Init:Dll","path":"game"}
{"level":10,"time":1635331767345,"source":"map/d2_version.h:38","msg":"Init:GamePath","exists":"false","game":"game/Path of Diablo/Game.exe"}
{"level":10,"time":1635331767365,"source":"map/d2_version.h:38","msg":"Init:GamePath","exists":"false","game":"game/ProjectD2/Game.exe"}
{"level":10,"time":1635331767385,"source":"map/d2_version.h:38","msg":"Init:GamePath","exists":"true","game":"game/Game.exe"}
{"level":10,"time":1635331767398,"source":"map/d2_client.c:167","msg":"Registry:Opened"}
{"level":30,"time":1635331767409,"source":"map/d2_client.c:176","msg":"Registry:InstallPath","value":"game"}
{"level":30,"time":1635331767422,"source":"map/d2_client.c:180","msg":"Init:Game","version":"","path":"game/"}
{"level":10,"time":1635331769346,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878394896}
{"level":10,"time":1635331769431,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379664}
{"level":10,"time":1635331769447,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878399072}
{"level":10,"time":1635331769462,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878425328}
{"level":10,"time":1635331769478,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878449920}
{"level":10,"time":1635331769493,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878455632}
{"level":10,"time":1635331769704,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873757515}
{"level":10,"time":1635331769720,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Storm.DLL","offset":1875126880}
{"level":10,"time":1635331769736,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873950704}
{"level":10,"time":1635331769753,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873654816}
{"level":10,"time":1635331769770,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876380048}
{"level":10,"time":1635331769785,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379952}
{"level":10,"time":1635331769800,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876677696}
{"level":10,"time":1635331769815,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876371584}
{"level":10,"time":1635331769830,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876680176}
{"level":10,"time":1635331769843,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379664}
{"level":10,"time":1635331769858,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379024}
{"level":10,"time":1635331769873,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876429984}
{"level":10,"time":1635331769887,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876340160}
{"level":10,"time":1635331769901,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876371584}
{"level":10,"time":1635331769914,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Lang.DLL","offset":3904144}
{"level":10,"time":1635331769927,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871642736}
{"level":10,"time":1635331769941,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871623344}
{"level":10,"time":1635331769954,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873757515}
{"level":10,"time":1635331769968,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Storm.DLL","offset":1875128608}
{"level":10,"time":1635331769982,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873881760}
{"level":10,"time":1635331769997,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873880928}
{"level":10,"time":1635331770011,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876479136}
{"level":10,"time":1635331770024,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876478944}
{"level":10,"time":1635331770039,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876416944}
{"level":10,"time":1635331770053,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876419424}
{"level":10,"time":1635331770068,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876478768}
{"level":10,"time":1635331770082,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876478352}
{"level":10,"time":1635331770095,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876675776}
{"level":10,"time":1635331770109,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876486528}
{"level":10,"time":1635331770123,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876648288}
{"level":10,"time":1635331770138,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871620640}
{"level":10,"time":1635331770152,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871620240}
{"level":10,"time":1635331770166,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Lang.DLL","offset":3907888}
{"level":10,"time":1635331770179,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876648288}
{"level":20,"time":1635331770193,"source":"map/d2_client.c:185","msg":"Init:Offsets:Defined"}
{"level":10,"time":1635331770204,"source":"map/d2_client.c:117","msg":"Init:Dll","dll":"Fog.dll"}
{"level":20,"time":1635331770253,"source":"map/d2_client.c:127","msg":"Init:Dll:Done","dll":"Fog.dll"}
{"level":10,"time":1635331770265,"source":"map/d2_client.c:129","msg":"Init:Dll","dll":"D2Win.dll"}
{"level":50,"time":1635331770451,"source":"map/d2_client.c:131","msg":"InitFailed","dll":"D2Win.dll"}
root@49a8c7764d42:/app# 

@mgalos999
Copy link
Contributor Author

Seems if I commented out line 132 in d2_client.c where it exits the process on error: ExitProcess(1);. It will still fail at that D2Win step, but then continue to work anyway.

@blacha
Copy link
Owner

blacha commented Oct 28, 2021

Hmm its weird you are getting offset failures with your Dlls

Here are the shasums of the Dlls I use

a9afb52d5116f77534f3e83eeb71e6d2d980a6b1c59be5dd38d503c2334730fb  D2Win.dll - v1.13c
ae367dbe0f0c2cccd7c317ce84601bba9745c06a199767aa55caeab2d45dc442  D2Win.dll - Project Diablo2

another thought is have you made sure to run the wine regedit d2.install.reg it seems to be needed for PD2 Installs it is run automatically if you start the node server.

@blacha blacha closed this as completed Nov 9, 2021
@xaeroverse
Copy link

Hi, apologies for the necro but I've been testing out this project and FWIW, could not get vanilla D2 1.13c to pass the Norm Rogue Encampment/Act 1 test either:

root@2b95d11d027c:/app# wine regedit /app/d2.install.reg
wine: created the configuration directory '/root/.wine'
Could not find Wine Gecko. HTML rendering will be disabled.
wine: configuration in L"/root/.wine" has been updated.
root@2b95d11d027c:/app# wine bin/d2-map.exe game --seed 10 --map 1 --difficulty 0 --verbose
{"level":30,"time":1674894084290,"source":"map/main.c:91","msg":"Cli:Start","version":"","hash":""}
{"level":20,"time":1674894084293,"source":"map/main.c:124","msg":"Cli:Arg","game":"game"}
{"level":20,"time":1674894084295,"source":"map/main.c:105","msg":"Cli:Arg","seed": "0x00000a"}
{"level":20,"time":1674894084297,"source":"map/main.c:113","msg":"Cli:Arg","mapId":1}
{"level":20,"time":1674894084300,"source":"map/main.c:109","msg":"Cli:Arg","difficulty":0}
{"level":20,"time":1674894084302,"source":"map/main.c:120","msg":"Cli:Arg","verbose":"true"}
{"level":20,"time":1674894084304,"source":"map/d2_client.c:147","msg":"Init:Dll","path":"game"}
{"level":10,"time":1674894084307,"source":"map/d2_version.h:38","msg":"Init:GamePath","exists":"false","game":"game/Path of Diablo/Game.exe"}
{"level":10,"time":1674894084310,"source":"map/d2_version.h:38","msg":"Init:GamePath","exists":"false","game":"game/ProjectD2/Game.exe"}
{"level":10,"time":1674894084314,"source":"map/d2_version.h:38","msg":"Init:GamePath","exists":"true","game":"game/Game.exe"}
{"level":10,"time":1674894084318,"source":"map/d2_client.c:167","msg":"Registry:Opened"}
{"level":30,"time":1674894084320,"source":"map/d2_client.c:176","msg":"Registry:InstallPath","value":"game"}
{"level":30,"time":1674894084322,"source":"map/d2_client.c:180","msg":"Init:Game","version":"","path":"game/"}
{"level":10,"time":1674894084377,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878394896}
{"level":10,"time":1674894084387,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379664}
{"level":10,"time":1674894084390,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878399072}
{"level":10,"time":1674894084394,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878425328}
{"level":10,"time":1674894084398,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878449920}
{"level":10,"time":1674894084401,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Fog.DLL","offset":1878455632}
{"level":10,"time":1674894084427,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873757515}
{"level":10,"time":1674894084431,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Storm.DLL","offset":1875126880}
{"level":10,"time":1674894084434,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873950704}
{"level":10,"time":1674894084438,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873654816}
{"level":10,"time":1674894084441,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876380048}
{"level":10,"time":1674894084445,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379952}
{"level":10,"time":1674894084448,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876677696}
{"level":10,"time":1674894084452,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876371584}
{"level":10,"time":1674894084456,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876680176}
{"level":10,"time":1674894084459,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379664}
{"level":10,"time":1674894084463,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876379024}
{"level":10,"time":1674894084465,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876429984}
{"level":10,"time":1674894084469,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876340160}
{"level":10,"time":1674894084473,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876371584}
{"level":10,"time":1674894084476,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Lang.DLL","offset":3904144}
{"level":10,"time":1674894084481,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871642736}
{"level":10,"time":1674894084485,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871623344}
{"level":10,"time":1674894084488,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873757515}
{"level":10,"time":1674894084492,"source":"map/offset.c:46","msg":"Dll:Init","dll":"Storm.DLL","offset":1875128608}
{"level":10,"time":1674894084495,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873881760}
{"level":10,"time":1674894084498,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Client.DLL","offset":1873880928}
{"level":10,"time":1674894084501,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876479136}
{"level":10,"time":1674894084504,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876478944}
{"level":10,"time":1674894084507,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876416944}
{"level":10,"time":1674894084510,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876419424}
{"level":10,"time":1674894084513,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876478768}
{"level":10,"time":1674894084518,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876478352}
{"level":10,"time":1674894084522,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876675776}
{"level":10,"time":1674894084526,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876486528}
{"level":10,"time":1674894084529,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876648288}
{"level":10,"time":1674894084531,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871620640}
{"level":10,"time":1674894084533,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Win.DLL","offset":1871620240}
{"level":10,"time":1674894084534,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Lang.DLL","offset":3907888}
{"level":10,"time":1674894084536,"source":"map/offset.c:46","msg":"Dll:Init","dll":"D2Common.DLL","offset":1876648288}
{"level":20,"time":1674894084538,"source":"map/d2_client.c:185","msg":"Init:Offsets:Defined"}
{"level":10,"time":1674894084541,"source":"map/d2_client.c:117","msg":"Init:Dll","dll":"Fog.dll"}
{"level":20,"time":1674894084566,"source":"map/d2_client.c:127","msg":"Init:Dll:Done","dll":"Fog.dll"}
{"level":10,"time":1674894084569,"source":"map/d2_client.c:129","msg":"Init:Dll","dll":"D2Win.dll"}
{"level":50,"time":1674894084587,"source":"map/d2_client.c:131","msg":"InitFailed","dll":"D2Win.dll"}

From the hint above, I commented out the ExitProcess(1) in line 132 and the test finally passed and returned JSON. My 1.13c vanilla sha256sum is the same one as you've listed, and I'm running Docker on Linux. To be clear, I can generate all maps now with that hint, but this is not what you intended, so if you need further information from me to debug this, I may be able to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants