Issues with GOG games that are shipped with dosbox

Questions about Wine on Linux
Locked
krazyivan
Newbie
Newbie
Posts: 2
Joined: Sun Sep 04, 2022 11:37 am

Issues with GOG games that are shipped with dosbox

Post by krazyivan »

Hi, I have Jagged Alliance from GOG (great game), which run like gold in ubuntu 20. The exe is a windows exec that start dosbox shipped with it with some extra flags including mounting a CD.
It stopped running in ubuntu22, where the only relevant diffence is going from wine 5.x to 6.x.
What I've noticed upon investigation is that for some strange reason - the exec is trying to run native linux dosbox instead of the one shipped with the game. Which crashes. My guess is that it either has some diffent flags or can't reach some path that is wine specific.

Code: Select all

adam@adamPc:~/.wine/dosdevices/l:/games_installed/Jagged Alliance$ ps aux |grep -i dosbox
adam       60430 99.8  0.3 450728 75348 pts/1    Sl   17:52  12:46 /usr/bin/dosbox -userconf -conf /home/adam/.wine/dosdevices/c:/windows/profiles/adam/Temp/cfg6c56.tmp
adam       61855  0.0  0.0  11740  2396 pts/1    S+   18:04   0:00 grep -i dosbox


Although it's pretty cool how wine now integrates windows world programs, it's not only counterproductive here, but also goes against the 'eat your own dogfood' policy, where it was encouraged for users to use everyday products like firefox, dosbox or even putty to make the testing more throughout. At least I remember them having this policy somewhere around version 2 (my ass is old, I know, that's why I play old games)

ps. no helpfull logs when runing from the console

Code: Select all

adam@adamPc:~/.wine/dosdevices/l:/games_installed/Jagged Alliance$ wine JA.EXE 
DOSBox version 0.74-3
Copyright 2002-2019 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file /home/adam/.dosbox/dosbox-0.74-3.conf
CONFIG:Loading additional settings from config file /home/adam/.wine/dosdevices/c:/windows/profiles/adam/Temp/cfgbc84.tmp
MIXER:Got different values from SDL: freq 44100, blocksize 512
ALSA:Can't subscribe to MIDI port (65:0) nor (17:0)
MIDI:Opened device:none
Two or more joysticks reported, initializing with 2axis
Using joystick Logitech Logitech Extreme 3D with 4 axes, 12 buttons and 1 hat(s)
Using joystick ShanWan PC/PS3/Android with 4 axes, 13 buttons and 1 hat(s)
DOSBox switched to max cycles, because of the setting: cycles=auto. If the game runs too fast try a fixed cycles amount in DOSBox's options.


What I did notice is that there is some snap related to wine which may be the source of the problem, although class deb packages seam to be present as well.

Code: Select all

adam@adamPc:~/.wine/dosdevices/l:/games_installed/Jagged Alliance$ snap list |grep wine
wine-platform           3.0.4-4.6                   128    latest/stable  mmtrt            -
wine-platform-3-stable  3.0.4                       14     latest/stable  mmtrt            -
wine-platform-runtime   v1.0                        316    latest/stable  mmtrt            -
adam@adamPc:~/.wine/dosdevices/l:/games_installed/Jagged Alliance$ dpkg -l |grep wine
ii  fonts-wine                                    6.0.3~repack-1                              all          Windows API implementation - fonts
ii  libkwineffects13                              4:5.24.4-0ubuntu1                           amd64        KDE window manager effects library
rc  libkwineffects1abi4                           4:4.11.11-0ubuntu0.2                        amd64        library used by effects for the KDE window manager
ii  libwine:amd64                                 6.0.3~repack-1                              amd64        Windows API implementation - library
ii  libwine:i386                                  6.0.3~repack-1                              i386         Windows API implementation - library
ii  wine                                          6.0.3~repack-1                              all          Windows API implementation - standard suite
ii  wine32:i386                                   6.0.3~repack-1                              i386         Windows API implementation - 32-bit binary loader
ii  wine64                                        6.0.3~repack-1                              amd64        Windows API implementation - 64-bit binary loader
ii  winetricks                                    0.0+20210206-2                              all          simple tool to work around common problems in Wine
Is anyone familiar with those? I'm old school, so I just finaly managed to start typing apt instead of apt-get, using snaps is a whole different level for me
krazyivan
Newbie
Newbie
Posts: 2
Joined: Sun Sep 04, 2022 11:37 am

Re: Issues with GOG games that are shipped with dosbox

Post by krazyivan »

I got rid of the snaps (absolutely nothing changed for this app or other wine programs).

Any help would be great. Maybe there is some config where I can flip a switch to revert back to 5.x behaviour for this particular exec?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Issues with GOG games that are shipped with dosbox

Post by jkfloris »

You can try to use the built-in dosbox version with:

Code: Select all

wine start "Launch Jagged Alliance.lnk"
(Unfortunately, this option does not work for me.)

Or you can use the Linux dosbox version
- create a jagged.conf file in the same directory as JA.exe

Code: Select all

[autoexec]
mount C .
imgmount d "JA1.gog" -t iso -fs iso
C:
JA.exe
exit
- Run dosbox with

Code: Select all

dosbox -conf jagged.conf
Locked