Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Troubleshooting

joffreybesos edited this page Oct 3, 2022 · 7 revisions

Troubleshooting

Basic process

This tool is actually several tools in one - d2r-map-vx.x.x and d2-mapserver.exe.
d2-mapserver generates the map data from a copy of old D2Lod and does not interact with D2R in any way.
d2r-map draws everything from the screen and reads from D2R game memory.

If you are having problems the first thing to check is if your d2-mapserver is working. The easiest way to test is to open this URL http://localhost:3002/v1/map/12345/2/129/image?edge=true&isometric=true
If a map image displays then your map server is working correctly. If not refer to the mapserver troubleshooting below.

If your map server is working, then you have a problem with d2r-map.exe. If you do please go to the #help channel on discord.
In the channel mention you have confirmed your mapserver is working, and share your log.txt which should exist alongside your d2r-map executable.

Specific errors

  1. When I run ServerSetup.exe I get an error.

    Sometimes this error can actually be safely ignored and you can proceed to the next step.
    If you are still having problems, execute d2-mapserver.exe (not d2r-map), you should see a black window pop up.
    If you see Error: listen EADDRINUSE: address already in use :::3002 then you have another copy of the mapserver already running.
    If you see another error in that black window, refer to the mapserver section below.

  2. When I open d2-mapserver.exe a black window shows and quickly disappears.

    In user's temp folder C:\Users\<username>\AppData\Local\Temp or %temp%, and delete the folder pkg and it's contents. These are cached files.
    If that doesn't work, try following this guide instead https://github.com/joffreybesos/d2r-mapview/wiki/Run-map-server-from-source-code

  3. I had message box saying Could also not find d2-mapserver.exe to launch server

    Your d2r-map.exe is not in the same folder as your d2-mapserver.exe, please make sure you download the bundle zip in #get-started on discord or from the setup-guide.
    You'll also find the same information in the Setup Guide

Error messages running d2-mapserver.exe

  1. You receive this error (or similar) on startup of the map server:

    D2-mapserver beta v19 launching...
    Cleaning up cache files...
    Running test: bin/d2-map.exe D:\D2RMH\game --seed 12345 --difficulty 1 --map 1
    Error generating map, here is a raw dump of the logs:
    {"level":30,"time":1647382824018,"source":"map/main.c:91","msg":"Cli:Start","version":"","hash":""}
    {"level":20,"time":1647382824018,"source":"map/main.c:124","msg":"Cli:Arg","game":"D:/D2RMH/game"}
    {"level":20,"time":1647382824018,"source":"map/main.c:105","msg":"Cli:Arg","seed": "0x003039"}
    {"level":20,"time":1647382824018,"source":"map/main.c:109","msg":"Cli:Arg","difficulty":1}
    {"level":20,"time":1647382824018,"source":"map/main.c:113","msg":"Cli:Arg","mapId":1}
    {"level":20,"time":1647382824018,"source":"map/d2_client.c:146","msg":"Init:Dll","path":"D:/D2RMH/game"}
    {"level":30,"time":1647382824018,"source":"map/d2_client.c:161","msg":"Init:Game","version":"","path":"D:/D2RMH/game/"}
    {"level":20,"time":1647382824047,"source":"map/d2_client.c:166","msg":"Init:Offsets:Defined"}
    {"level":20,"time":1647382824049,"source":"map/d2_client.c:127","msg":"Init:Dll:Done","dll":"Fog.dll"}
    {"level":50,"time":1647382824063,"source":"map/d2_client.c:131","msg":"InitFailed","dll":"D2Win.dll"}
    {"level":20,"time":1647382824063,"source":"map/d2_client.c:133","msg":"Init:Dll:Done","dll":"D2Win.dll"}
    {"level":20,"time":1647382824075,"source":"map/d2_client.c:137","msg":"Init:Dll:Done","dll":"D2Lang.dll"}
    

Solutions:

  • If you get the above message, you have likely extracted to your desktop. You probably have OneDrive or something similar trying to read the files you have extracted. Move the MH files you extracted from the bundle to a folder that is NOT on your desktop.
  • Otherwise the above problem is due to Windows Defender or something similar interfering with the files.
  • Some users have reported that restarting your PC has helped.
  • Otherwise the above error can be from having incorrect D2 LoD game files, make sure you have the latest version of the map server bundle from the Setup guide or #get-started channel.
  1. "Did not find the Diablo 2 LoD files in the expected location" This means you may have extracted the D2 LOD files incorrectly. In the zip file, the folder is called Diablo II 1.13c but it should be game
  2. "Error: listen EADDRINUSE: address already in use :::3002" This means you have another instance of the map server running, or some other process using that port on your PC. Either kills the other instance of the map server, or use a different port with set PORT=3003
  3. "Server error generating map" If you get this in the browser when testing the server, look at the map server window for more information. It's likely a problem with your D2 game files.

If you continually have problems with d2-mapserver, then you can try running the server with docker, see this guide: DOCKERSERVER.md
Docker will run slower and isn't the recommended choice but it is more reliable.