Skip to content

v0.8.2: the port in a web browser

Choose a tag to compare

@rodrireddev rodrireddev released this 26 Oct 21:12
· 4 commits to main since this release

The port now also runs in a web browser, on your own computer. Nothing new inside the game. On top of v0.8.1.

In a web browser

  • New download: diablo2-port-web.zip. Extract it, import the game files from your own Diablo II: Resurrected with the importer in that folder (Import Diablo II (English).bat on Windows, Import Diablo II (English).sh on Linux, or the Importar … (Español) ones), then open d2port-servidor.exe (Windows) or d2port-servidor (Linux). It opens the game in your browser at http://localhost:8642/. Close its window to stop it.
  • Nothing is hosted online: d2port-servidor only answers this computer, and the game files stay yours (they must not be published).
  • Saved games go to the save folder, the same files as the PC version.
  • Local network works from the browser too. Browsers can't open those connections, so d2port-servidor does it for the page: create a game or join one with the Pis and PCs on your network (all on this version). When you create one, Windows may ask to let d2port-servidor through the firewall.
  • Keyboard or gamepad; F11 is full screen; the first key or click turns on the sound. Use a recent Chrome, Edge or Firefox.
  • On a Mac (there is no d2port-servidor for it) any local web server works, but saved games then stay in the browser and there is no local network.

Local network fixes (all versions)

  • When a machine left in the middle of a game, the host could keep waiting for it forever instead of saying it left. Now it says so.
  • The answer to "are there games here?" was cut short and sent a few bytes too many.

Tested

On Windows: the browser created a game and d2port.exe joined it; d2port.exe created one and the browser found it by itself and joined. 15,000 ticks with a bot on each side: the browser computed exactly the same game as two d2port.exe (the state is compared every second; identical all the way). Saved games written to the folder, changing the language, and the page without d2port-servidor. Not tested yet: a browser and a Pi on a real network, Safari and phones.

Install / update

Download diablo2-port.zip (Pi and Linux), diablo2-port-windows.zip (Windows) or diablo2-port-web.zip (web browser) and replace the port; your saved games are kept. To play over the network, all machines need this same version.

This is a fan-made project, not affiliated with Blizzard Entertainment.