Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] Tech Support → PVPGN+D2GS on headless Linux/Ubuntu

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 18

1

Topic: PVPGN+D2GS on headless Linux/Ubuntu

Has anyone got PVPGN + D2GS to run on a headless linux/ubuntu server? I followed https://forums.pvpgn.pro/viewtopic.php?id=1875 but having a hard time, and wondering if there's a newer guide; or moreover, one specific to a headless linux environment.

I think my biggest issue is wine: I'm not very familiar with it. One issue is that if I run the .reg file, it fails - from the errors it looks to me like it is failing because I'm not using Ubuntu desktop (headless as I say). I also just tried to run "wine D2GS.exe" but there's no output ... it looks like it runs but it isn't clear if it did anything, and seems to just close.

PVPGN is running fine, and I was able to connect from my test client in 'open battle.net' just fine, so my challenge is specific to D2GS and wine I believe.

To be clear, my headless Ubuntu [18.04] server is managed solely over ssh (it's just a mini pc with no mouse, keyboard, monitor, etc). Although I'm no linux expert, I do fine hosting other games (Factorio, WoW, Minecraft, etc) without issue. However, D2GS has been challenging - largely because of wine, as I say.

Any help appreciated.

2

Re: PVPGN+D2GS on headless Linux/Ubuntu

I'm use wine for launching "D2GS" a long time ago, that's what I  could find
debian 8 wine-1.1.31 + d2gs.
my configure file:
./configure --prefix=/usr/servers/wine --without-xrandr --without-xxf86vm --without-xcursor --without-xinput \
--without-gphoto --without-sane --without-gnutls --without-hal --without-xcomposite --without-xinerama \
--without-openal --without-mpg123 --without-gsm  --without-fontconfig --without-cups --without-capi --without-cms --without-xml --without-xrender --without-xslt; make depend; make; make install


start server script:

#!/bin/sh
cd /usr/servers/D2GS
export WINEDEBUG='warn+all,fixme+all,err+all'
export DISPLAY=:1.0
screen -AmdS d2gs /usr/local/wine/bin/./wine z:\\usr\\servers\\D2GS\\d2gs.exe

command to stop:
kill `ps aux | grep -v grep | grep -i screen | grep -i d2gs | awk '{print $2}'`

still there is one, but I don’t remember if it works correctly

#! /bin/bash

# The user that will run the server
USER=root

# Leave this alone.
NAME=d2gs

PATH=/bin:/usr/bin:/sbin:/usr/sbin

# DON'T FORGET TO CHANGE THE PATH TO YOUR NEEDS!
DIR=/usr/servers/D2GS

# Leave this alone.
DAEMON=D2GS.exe

# Leave this alone.
DESC="D2GS"

case "$1" in
start)
    if [[ `su $CS_USER -c "screen -ls |grep $NAME"` ]]
    then
    echo "$DESC is already running"
        else
    echo "Starting $DESC: $NAME"
    su $CS_USER -c "cd $DIR;nice -n 18 taskset -c 1,2  screen -A -m -d -S $NAME /usr/local/wine/bin/./wine ./$DAEMON"
  fi
;;

stop)
   if [[ `su $CS_USER -c "screen -ls |grep $NAME"` ]]
   then
   echo -n "Stopping $DESC: $NAME"
   kill `ps aux | grep -v grep | grep -i $USER | grep -i screen | grep -i $NAME | awk '{print $2}'`
   echo " ... done."
        else
   echo "Coulnd't find a running $DESC"
  fi
;;

status)
  ps aux | grep -v grep | grep D2GS.exe > /dev/null
  CHECK=$?
  [ $CHECK -eq 0 ] && echo "$DESC is UP" || echo "$DESC is DOWN"
;;

        *)
        echo "Usage: $0 {start|stop|status|restart}"
        exit 1
                  ;;
  esac
  exit 0

there it was still necessary to edit the "sock.c" file for correct work, but I don’t remember what was corrected there. what exactly did you can't to do?

3 (edited by rbit 03.04.2020 05:56)

Re: PVPGN+D2GS on headless Linux/Ubuntu

baxer wrote:

I'm use wine for launching "D2GS" a long time ago, that's what I  could find
debian 8 wine-1.1.31 + d2gs.
my configure file:
./configure --prefix=/usr/servers/wine --without-xrandr --without-xxf86vm --without-xcursor --without-xinput \
--without-gphoto --without-sane --without-gnutls --without-hal --without-xcomposite --without-xinerama \
--without-openal --without-mpg123 --without-gsm  --without-fontconfig --without-cups --without-capi --without-cms --without-xml --without-xrender --without-xslt; make depend; make; make install

I'm just using wine-stable package from Ubuntu apt, looks to be 3.0. Do you know if there's a way to add these config options post-install of that package? Or do I have to remove the package, manually download wine, and build/install myself? Thanks,

4

Re: PVPGN+D2GS on headless Linux/Ubuntu

rbit wrote:

I'm just using wine-stable package from Ubuntu apt, looks to be 3.0. Do you know if there's a way to add these config options post-install of that package? Or do I have to remove the package, manually download wine, and build/install myself? Thanks,

I think you must delete pkg and compile from source. in the package you can't change code in file socket.c and im could not find info about d2gs and "wine 3". This is for "wine 2.0.1" https://gist.github.com/HarpyWar/cd3676fa4916ea163c50

5

Re: PVPGN+D2GS on headless Linux/Ubuntu

What errors are you seeing when trying to run the reg file or anything in wine? X-server errors?

Owner of SlashDiablo - One of the oldest and most well known Diablo II servers
Admin of Resurgence - Vanilla++ mod
Co-Founder of Hellforged - Diablo 09 built on 1.13 engine (current work in progress)
Founder of Diablo2.org - Dedicated Discord server for PvPGN/D2GS questions

6 (edited by rbit 03.04.2020 17:42)

Re: PVPGN+D2GS on headless Linux/Ubuntu

Meanski wrote:

What errors are you seeing when trying to run the reg file or anything in wine? X-server errors?

Apologies but I've confused myself, I thought I was running "wine d2gs.reg" last night and getting errors like the following ...

000d:err:wincodecs:PngEncoder_CreateInstance Trying to save PNG picture, but PNG support is not compiled in.

However, typing "wine d2gs.reg" now I'm getting simply getting:

wine: Bad EXE format for C:\d2\d2gs.reg.

What's really strange to me is if I first run "wine64 d2gs.reg" (assuming d2gs is probably 32bit, I hoped wine64 might be back-compatible) AND then run "wine d2gs.reg" I get the following:

000b:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
000b:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
002a:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
002a:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
Could not load wine-gecko. HTML rendering will be disabled.
0036:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0036:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
Could not load wine-gecko. HTML rendering will be disabled.
wine: configuration in '/home/rawb/.wine' has been updated.
wine: Bad EXE format for C:\d2\d2gs.reg.

and if I just run wine again, it's back to this ...

rawb@zero1:~/.wine/drive_c/d2$ wine d2gs.reg
wine: Bad EXE format for C:\d2\d2gs.reg.

So it seems the native package is configured to use windows in ubuntu maybe? Per baxer's comments, maybe I need to purge the package and manually download and compile/config/install? (not using apt)?

Thanks guys!

7

Re: PVPGN+D2GS on headless Linux/Ubuntu

If you access it through sftp you could edit system.reg from wine manually to add the d2gs entries

Diablo II Evolution
The first with a truly connected auction house

8

Re: PVPGN+D2GS on headless Linux/Ubuntu

b1n wrote:

If you access it through sftp you could edit system.reg from wine manually to add the d2gs entries

Interesting I did wonder that (I saw a few wine .reg files but wasn't sure which was appropriate to add to or where). I will explore that option, thanks.

Is there any way to run D2GS.exe with some verbosity/debugging? I see nothing when I run it with wine.

9

Re: PVPGN+D2GS on headless Linux/Ubuntu

b1n wrote:

If you access it through sftp you could edit system.reg from wine manually to add the d2gs entries

Is there any way to run D2GS.exe with some verbosity/debugging? I see nothing when I run it with win

#!/bin/sh
cd /usr/servers/D2GS
export WINEDEBUG='warn+all,fixme+all,err+all'
export DISPLAY=:1.0
z:\\usr\\servers\\D2GS\\d2gs.exe

only the path to the file needs to be changed

10

Re: PVPGN+D2GS on headless Linux/Ubuntu

baxer wrote:
b1n wrote:

If you access it through sftp you could edit system.reg from wine manually to add the d2gs entries

Is there any way to run D2GS.exe with some verbosity/debugging? I see nothing when I run it with win

#!/bin/sh
cd /usr/servers/D2GS
export WINEDEBUG='warn+all,fixme+all,err+all'
export DISPLAY=:1.0
z:\\usr\\servers\\D2GS\\d2gs.exe

only the path to the file needs to be changed

I tried running this script but getting "./d2.sh: C:\d2\D2GS.exe: not found". I'm wondering if I just don't understand the paths as it relates to wine?

I have D2GS.exe here:
/home/rawb/.wine/drive_c/d2/D2GS.exe

So I assumed this is what my script should look like:

#!/bin/sh
cd /home/rawb/.wine/drive_c/d2
export WINEDEBUG='warn+all,fixme+all,err+all'
export DISPLAY=:1.0
C:\\d2\\D2GS.exe

Is that wrong?

11

Re: PVPGN+D2GS on headless Linux/Ubuntu

rbit wrote:
baxer wrote:
b1n wrote:

If you access it through sftp you could edit system.reg from wine manually to add the d2gs entries

Is there any way to run D2GS.exe with some verbosity/debugging? I see nothing when I run it with win

#!/bin/sh
cd /usr/servers/D2GS
export WINEDEBUG='warn+all,fixme+all,err+all'
export DISPLAY=:1.0
z:\\usr\\servers\\D2GS\\d2gs.exe

only the path to the file needs to be changed

I tried running this script but getting "./d2.sh: C:\d2\D2GS.exe: not found". I'm wondering if I just don't understand the paths as it relates to wine?

I have D2GS.exe here:
/home/rawb/.wine/drive_c/d2/D2GS.exe

So I assumed this is what my script should look like:

#!/bin/sh
cd /home/rawb/.wine/drive_c/d2
export WINEDEBUG='warn+all,fixme+all,err+all'
export DISPLAY=:1.0
C:\\d2\\D2GS.exe

Is that wrong?

sorry /usr/local/wine/bin/./wine z:\\usr\\servers\\D2GS\\d2gs.exe

12 (edited by rbit 05.04.2020 20:41)

Re: PVPGN+D2GS on headless Linux/Ubuntu

After re-reading your post, I realized you probably meant this (using my paths):

#!/bin/sh
cd /home/rawb/.wine/drive_c/d2
export WINEDEBUG='warn+all,fixme+all,err+all'
export DISPLAY=:1.0
/usr/bin/./wine C:\\d2\\D2GS.exe

And that looks to be spitting out a lot of errors:

rawb@zero1:~$ ./d2.sh
0009:warn:computername:GetComputerNameW Status 3221225524 reading computer name from registry
0009:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows" not found (c0000035)
0009:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32" not found (c0000035)
0009:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\syswow64" not found (c0000035)
000b:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows" not found (c0000035)
000b:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32" not found (c0000035)
000b:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\syswow64" not found (c0000035)
000b:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\wineboot.exe.manifest" not found (c0000034)
000b:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\wininit.ini" not found (c0000034)
000b:warn:file:CreateFileW Unable to create file L"C:\\windows\\wininit.ini" (status c0000034)
000b:warn:profile:PROFILE_Open profile file L"C:\\windows\\wininit.ini" not found
000b:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\dllcache\\" not found (c0000034)
000d:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows" not found (c0000035)
000d:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32" not found (c0000035)
000d:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\syswow64" not found (c0000035)
000d:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\winemenubuilder.exe.manifest" not found (c0000034)
000f:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows" not found (c0000035)
000f:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32" not found (c0000035)
000f:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\syswow64" not found (c0000035)
000f:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\services.exe.manifest" not found (c0000034)
000d:warn:font:new_ft_face Unable to load font "/home/rawb/.wine/dosdevices/c:/windows/Fonts/vgasys.fon"/(nil) err = 1
000d:warn:font:new_ft_face Unable to load font "/home/rawb/.wine/dosdevices/c:/windows/Fonts/vgaoem.fon"/(nil) err = 1
000d:warn:font:new_ft_face Unable to load font "/usr/lib/wine/../../share/wine/wine/../fonts/vgaoem.fon"/(nil) err = 1
000d:warn:font:new_ft_face Unable to load font "/home/rawb/.wine/dosdevices/c:/windows/Fonts/vgafix.fon"/(nil) err = 1
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/ssee1255.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/jvgasys.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/ssee874.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/smallet.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/vgas1255.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/sserife.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/sserifet.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/coue1255.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/vgas874.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/hvgasys.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/coureg.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/vgasysr.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/coure.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/vgafix.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/sserifee.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/ssef1256.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/smaller.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/ssef1257.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/sseriffg.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/ssee1257.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/vgas1256.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/couree.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/sserifft.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/ssef874.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/smalleg.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/jvgafix.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/sserifeg.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/jsmalle.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/ssee1256.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/smallee.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/svgasys.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/sseriff.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/vgasyst.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/vgasyse.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/ssef1255.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/vgas1257.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/cvgasys.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/sserifer.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/smalle.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/courer.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/couret.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/sseriffe.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/coue1256.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/smae1257.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/sseriffr.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/smae1255.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/vgasys.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/smae1256.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/coue1257.fon"/(nil)
000d:warn:font:new_ft_face Ignoring font "/usr/lib/wine/../../share/wine/wine/../fonts/vgasysg.fon"/(nil)
000d:warn:font:new_ft_face Unable to load font "/home/rawb/.wine/dosdevices/c:/windows/Fonts/coure.fon"/(nil) err = 1
000d:warn:font:new_ft_face Unable to load font "/home/rawb/.wine/dosdevices/c:/windows/Fonts/sserife.fon"/(nil) err = 1
0012:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows" not found (c0000035)
0012:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32" not found (c0000035)
0012:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\syswow64" not found (c0000035)
000d:warn:font:new_ft_face Unable to load font "/home/rawb/.wine/dosdevices/c:/windows/Fonts/serife.fon"/(nil) err = 1
000d:warn:font:new_ft_face Unable to load font "/usr/lib/wine/../../share/wine/wine/../fonts/serife.fon"/(nil) err = 1
000d:warn:font:new_ft_face Unable to load font "/home/rawb/.wine/dosdevices/c:/windows/Fonts/smalle.fon"/(nil) err = 1
0012:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\winedevice.exe.manifest" not found (c0000034)
0012:warn:sync:SetNamedPipeHandleState semi-stub: 0x4 0x24ed24/2 (nil) (nil)
001c:warn:mountmgr:udisks2_add_devices failed: The name org.freedesktop.UDisks2 was not provided by any .service files
001b:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows" not found (c0000035)
001b:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32" not found (c0000035)
001b:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\syswow64" not found (c0000035)
001c:warn:mountmgr:udisks_enumerate_devices failed: The name org.freedesktop.UDisks was not provided by any .service files
001b:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\plugplay.exe.manifest" not found (c0000034)
001b:warn:sync:SetNamedPipeHandleState semi-stub: 0x4 0x24ed54/2 (nil) (nil)
001e:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows" not found (c0000035)
001e:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32" not found (c0000035)
001e:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\syswow64" not found (c0000035)
001e:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\explorer.exe.manifest" not found (c0000034)
0023:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows" not found (c0000035)
0023:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32" not found (c0000035)
0023:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\syswow64" not found (c0000035)
0023:warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\winedevice.exe.manifest" not found (c0000034)
0023:warn:sync:SetNamedPipeHandleState semi-stub: 0x4 0x24ed24/2 (nil) (nil)
0025:warn:sync:SetNamedPipeHandleState semi-stub: 0x2c 0x34f014/2 (nil) (nil)
001e:warn:module:process_attach Initialization of L"winex11.drv" failed
001e:warn:class:CLASS_RegisterClass Win extra bytes 80 is > 40
000d:warn:class:CLASS_RegisterClass Win extra bytes 80 is > 40
0029:warn:plugplay:iohid_driver_init IOHID Support not compiled into Wine.
0009:warn:module:alloc_module disabling no-exec because of L"D2GS.exe"
0009:warn:ntdll:FILE_CreateFile L"\\??\\C:\\d2\\D2GS.exe.manifest" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\USER32.dll" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\gdi32.dll" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\advapi32.dll" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\version.dll" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\WS2_32.dll" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\MSVCRT.dll" not found (c0000034)
0009:warn:module:load_builtin_dll failed to load .so lib for builtin L"C:\\d2\\d2server.dll": /home/rawb/.wine/dosdevices/c:/d2/d2server.dll: invalid ELF header
0009:warn:module:load_builtin_dll cannot open .so lib for builtin L"d2server.dll": /usr/lib/wine/../i386-linux-gnu/wine/d2server.dll.so: cannot open shared object file: No such file or directory
0009:warn:module:alloc_module disabling no-exec because of L"d2server.dll"
0009:warn:module:load_builtin_dll failed to load .so lib for builtin L"C:\\d2\\STORM.dll": /home/rawb/.wine/dosdevices/c:/d2/Storm.dll: invalid ELF header
0009:warn:module:load_builtin_dll cannot open .so lib for builtin L"STORM.dll": /usr/lib/wine/../i386-linux-gnu/wine/storm.dll.so: cannot open shared object file: No such file or directory
0009:warn:module:alloc_module disabling no-exec because of L"STORM.dll"
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\comdlg32.dll" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\shell32.dll" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\shlwapi.dll" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\comctl32.dll" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\winspool.drv" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\MSVCP60.dll" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\imm32.dll" not found (c0000034)
0009:warn:class:CLASS_RegisterClass Win extra bytes 48 is > 40
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\uxtheme.dll" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system32\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system32\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system32\\wbem\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system32\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system32\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system32\\wbem\\D2COMMON.DLL" not found (c0000034)
0009:warn:module:load_builtin_dll cannot open .so lib for builtin L"D2COMMON.DLL": /usr/lib/wine/../i386-linux-gnu/wine/d2common.dll.so: cannot open shared object file: No such file or directory
0009:warn:module:load_dll Failed to load module L"D2COMMON.DLL"; status=c0000135
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system32\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system32\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system32\\wbem\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system32\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system32\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\D2COMMON.DLL" not found (c0000034)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\windows\\system32\\wbem\\D2COMMON.DLL" not found (c0000034)
0009:warn:module:load_builtin_dll cannot open .so lib for builtin L"D2COMMON.DLL": /usr/lib/wine/../i386-linux-gnu/wine/d2common.dll.so: cannot open shared object file: No such file or directory
0009:warn:module:load_dll Failed to load module L"D2COMMON.DLL"; status=c0000135
0009:warn:ntdll:FILE_CreateFile L"\\??\\C:\\d2\\Patch_d2.mpq" not found (c0000034)
0009:warn:file:CreateFileW Unable to create file L"Patch_d2.mpq" (status c0000034)
0009:warn:msvcrt:MSVCRT__wsopen_dispatch :failed-last error (2)
0009:warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\d2\\mscoree.dll" not found (c0000034)
rawb@zero1:~$ 001f:warn:rpc:RPCRT4_default_receive_fragment Short read of header, -1 bytes
001f:warn:rpc:RPCRT4_io_thread receive failed with error 6be
0013:warn:rpc:RPCRT4_default_receive_fragment Short read of header, -1 bytes
0013:warn:rpc:RPCRT4_io_thread receive failed with error 6be
0027:warn:rpc:RPCRT4_default_receive_fragment Short read of header, -1 bytes
0027:warn:rpc:RPCRT4_io_thread receive failed with error 6be
0024:warn:rpc:RPCRT4_default_receive_fragment Short read of header, -1 bytes
0024:warn:rpc:RPCRT4_io_thread receive failed with error 6be

Any ideas?

13

Re: PVPGN+D2GS on headless Linux/Ubuntu

What version of wine are you trying to run?

14

Re: PVPGN+D2GS on headless Linux/Ubuntu

baxer wrote:

What version of wine are you trying to run?

The native package distributed with ubuntu 18.04, looks to be wine 3.0

15

Re: PVPGN+D2GS on headless Linux/Ubuntu

rbit wrote:
baxer wrote:

What version of wine are you trying to run?

The native package distributed with ubuntu 18.04, looks to be wine 3.0

You need to compile 2.0.1 from source with the provided sock patch with no X. Use the search there are few topics with commands and more detailed explanation

16 (edited by rbit 07.04.2020 22:02)

Re: PVPGN+D2GS on headless Linux/Ubuntu

hehpe wrote:

You need to compile 2.0.1 from source with the provided sock patch with no X. Use the search there are few topics with commands and more detailed explanation

OK, thanks. I was familiar with this post https://forums.pvpgn.pro/viewtopic.php?id=1875 (linked in my OP) but had some issues with 32bit build as I'm on 64 bit ubuntu and why I tried using the native package. Picking back up on that thread, I did some google-ing and in the end found this solution:


add flags for 32bit build (and also I added flag to remove fonts):

./wine-source/configure --without-x --host=i686-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32" --without-freetype

Just documenting this for anyone else who comes across it. Looks like it's building now, I will update again once I make some more progress.

EDIT/UPDATE:

I believe it built, although I did see a few errors like:

Makefile:737: recipe for target 'libdinput.a' failed
make[1]: *** [libdinput.a] Error 1

but I can run ./wine --verision and see wine-2.0.1. However I don't see the "~/.wine/drive_c/" folder I had before ... Is there something else I need to run for that to get created?

17

Re: PVPGN+D2GS on headless Linux/Ubuntu

sudo dpkg --add-architecture i386
sudo apt-get update -y
sudo apt-get install -y ia32-libs gcc-multilib g++-multilib xserver-xorg-dev:i386 libfreetype6-dev:i386
wget http://dl.winehq.org/wine/source/2.0/wine-2.0.1.tar.xz
wget https://gist.githubusercontent.com/HarpyWar/cd3676fa4916ea163c50/raw/50fbbff9a310d98496f458124fac14bda2e16cf0/sock.c
tar xf wine-2.0.1.tar.xz
mv sock.c wine-2.0.1/server
mv wine-2.0.1 wine-source && mkdir wine-dirs && mv wine-source wine-dirs && cd wine-dirs && mkdir wine-build && cd wine-build
../wine-source/configure --without-x
make -j 10
sudo make install -j 10

2. Download and install D2GS (http://www.pvpgn.pl/d2gs/) and Diablo II (http://cdn.pvpgn.pro/diablo2/)
cd ~
mv Diablo II/*.mpq ~/.wine/drive_c/D2GS
cd ~/.wine/drive_c/D2GS

3. Configure the D2GS
nano d2gs.reg
wine regedit d2gs.reg

18 (edited by rbit 07.04.2020 21:59)

Re: PVPGN+D2GS on headless Linux/Ubuntu

hehpe wrote:
sudo dpkg --add-architecture i386
sudo apt-get update -y
sudo apt-get install -y ia32-libs gcc-multilib g++-multilib xserver-xorg-dev:i386 libfreetype6-dev:i386
wget http://dl.winehq.org/wine/source/2.0/wine-2.0.1.tar.xz
wget https://gist.githubusercontent.com/HarpyWar/cd3676fa4916ea163c50/raw/50fbbff9a310d98496f458124fac14bda2e16cf0/sock.c
tar xf wine-2.0.1.tar.xz
mv sock.c wine-2.0.1/server
mv wine-2.0.1 wine-source && mkdir wine-dirs && mv wine-source wine-dirs && cd wine-dirs && mkdir wine-build && cd wine-build
../wine-source/configure --without-x
make -j 10
sudo make install -j 10

2. Download and install D2GS (http://www.pvpgn.pl/d2gs/) and Diablo II (http://cdn.pvpgn.pro/diablo2/)
cd ~
mv Diablo II/*.mpq ~/.wine/drive_c/D2GS
cd ~/.wine/drive_c/D2GS

3. Configure the D2GS
nano d2gs.reg
wine regedit d2gs.reg

Thanks. And yea that's what I referenced (per my original post and one before this), and have followed however my two issues are currently:

1. Not seeing a ~/.wine/drive_c/ directory (no ~/.wine at all)
2. running ./wine in the wine-build directory I see:

rawb@zero1:~/downloads/wine-dirs/wine-build$ ./wine [anything]
wine: failed to initialize: /usr/local/lib/wine/ntdll.dll.so: cannot open shared object file: No such file or directory

Added: 07.04.2020 19:55

So I tried reconfig and make/install again just with:

./wine-source/configure --without-x --without-freetype

And it says wine built, but when I run anything, i.e. "wine D2GS.exe", I get the following repeating over and over:

err:menubuilder:write_freedesktop_association_entry error writing association file "/home/rawb/.local/share/applications/wine-extension-png.desktop"

Tricky business! Any ideas, anyone?

Posts: 18

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 0 guests, 0 registered users

forums.pvpgn.pro → [EN] Tech Support → PVPGN+D2GS on headless Linux/Ubuntu