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

Errors when starting Steam #58

Open
michaelneverwins opened this issue Nov 8, 2024 · 3 comments
Open

Errors when starting Steam #58

michaelneverwins opened this issue Nov 8, 2024 · 3 comments

Comments

@michaelneverwins
Copy link

Recently, I started getting errors from Boxtron upon launching Steam.

error1 error2

Based on errors logged to the terminal, it looks like this is because Steam is trying to run some d3ddriverquery64.exe with every compatibility tool when it starts; see ValveSoftware/steam-for-linux#11435.

Roberta also logs errors to the terminal but does not create any dialog windows.

Meanwhile, Luxtorpeda just logs the following:

lux - Exiting because no steam app id
lux - Exiting because no steam app id

That output was added in luxtorpeda-dev/luxtorpeda#420 which I assume was intended to handle exactly this problem, so I wonder if something similar could be done in Boxtron as well. (Ideally, Steam would just skip non-Wine-based compatibility tools in whatever it's doing with d3ddriverquery64.exe, but I probably shouldn't count on Valve changing Steam to suit compatibility tools that aren't Proton.)

@ivanodintsoff
Copy link

Just to add, I'm having the same issues.
Some output from Steam that might be relevant:

boxtron: working dir: "/home/ivan/.local/share/Steam"
boxtron: original command: ['/home/ivan/.local/share/Steam/ubuntu12_32/../bin/d3ddriverquery64.exe']
boxtron: screen '0': 1366x768
boxtron: selected screen '0'
boxtron: looking for sf2 file: /home/ivan/.local/share/Steam/compatibilitytools.d/boxtron/share/sounds/sf2/FluidR3_GM.sf2
boxtron: looking for sf2 file: /home/ivan/.local/share/Steam/compatibilitytools.d/boxtron/share/soundfonts/FluidR3_GM.sf2
boxtron: looking for sf2 file: /home/ivan/.local/share/sounds/sf2/FluidR3_GM.sf2
boxtron: looking for sf2 file: /home/ivan/.local/share/soundfonts/FluidR3_GM.sf2
boxtron: looking for sf2 file: /usr/share/xfce4/sounds/sf2/FluidR3_GM.sf2
boxtron: looking for sf2 file: /usr/share/xfce4/soundfonts/FluidR3_GM.sf2
boxtron: looking for sf2 file: /home/ivan/.local/share/flatpak/exports/share/sounds/sf2/FluidR3_GM.sf2
boxtron: looking for sf2 file: /home/ivan/.local/share/flatpak/exports/share/soundfonts/FluidR3_GM.sf2
boxtron: looking for sf2 file: /var/lib/flatpak/exports/share/sounds/sf2/FluidR3_GM.sf2
boxtron: looking for sf2 file: /var/lib/flatpak/exports/share/soundfonts/FluidR3_GM.sf2
boxtron: looking for sf2 file: /usr/local/share/sounds/sf2/FluidR3_GM.sf2
boxtron: looking for sf2 file: /usr/local/share/soundfonts/FluidR3_GM.sf2
boxtron: looking for sf2 file: /usr/share/sounds/sf2/FluidR3_GM.sf2
boxtron: found soundfont: /usr/share/sounds/sf2/FluidR3_GM.sf2
boxtron: ignoring command: ['/home/ivan/.local/share/Steam/ubuntu12_32/../bin/d3ddriverquery64.exe']
boxtron: error: Game not recognized as DOSBox compatible.
Desktop state changed: desktop: { pos:    0,   0 size: 1366, 768 } primary: { pos:    0,   0 size: 1366, 768 }
Caching cursor image for , size 10x16, serial 295, cache size = 0
BuildCompleteAppOverviewChange: 531 apps
boxtron: working dir: "/home/ivan/.local/share/Steam"
boxtron: original command: ['/home/ivan/.local/share/Steam/ubuntu12_32/../bin/d3ddriverquery64.exe', '-d3d12']
boxtron: screen '0': 1366x768
boxtron: selected screen '0'
boxtron: looking for sf2 file: /home/ivan/.local/share/Steam/compatibilitytools.d/boxtron/share/sounds/sf2/FluidR3_GM.sf2
boxtron: looking for sf2 file: /home/ivan/.local/share/Steam/compatibilitytools.d/boxtron/share/soundfonts/FluidR3_GM.sf2
boxtron: looking for sf2 file: /home/ivan/.local/share/sounds/sf2/FluidR3_GM.sf2
boxtron: looking for sf2 file: /home/ivan/.local/share/soundfonts/FluidR3_GM.sf2
boxtron: looking for sf2 file: /usr/share/xfce4/sounds/sf2/FluidR3_GM.sf2
boxtron: looking for sf2 file: /usr/share/xfce4/soundfonts/FluidR3_GM.sf2
boxtron: looking for sf2 file: /home/ivan/.local/share/flatpak/exports/share/sounds/sf2/FluidR3_GM.sf2
boxtron: looking for sf2 file: /home/ivan/.local/share/flatpak/exports/share/soundfonts/FluidR3_GM.sf2
boxtron: looking for sf2 file: /var/lib/flatpak/exports/share/sounds/sf2/FluidR3_GM.sf2
boxtron: looking for sf2 file: /var/lib/flatpak/exports/share/soundfonts/FluidR3_GM.sf2
boxtron: looking for sf2 file: /usr/local/share/sounds/sf2/FluidR3_GM.sf2
boxtron: looking for sf2 file: /usr/local/share/soundfonts/FluidR3_GM.sf2
boxtron: looking for sf2 file: /usr/share/sounds/sf2/FluidR3_GM.sf2
boxtron: found soundfont: /usr/share/sounds/sf2/FluidR3_GM.sf2
boxtron: error: DOSBox argument error: "unrecognized arguments: -d3d12"

@evanjs
Copy link

evanjs commented Nov 18, 2024

Unable to test via the handful of DOS games I have right now (Harvester, Wolfenstein 3D work fine with their included DOSBox binaries, but not if I select a specific Boxtron version, etc.)

That being said, this snippet appears to supress the error messages when entering desktop mode, at least.

diff --git a/run-dosbox b/run-dosbox
index 4641d11..357c0fc 100755
--- a/run-dosbox
+++ b/run-dosbox
@@ -156,6 +156,11 @@ def run(cmd_line, wait=False):
         status = fakescripteval.iscriptevaluator(cmd_line)
         sys.exit(status)

+    steam_app_id = os.environ.get('SteamAppId', '0')
+    if steam_app_id == '0':
+        log('Exiting because no steam app id')
+        sys.exit(0)
+
     # we don't want to detect hardware until we're sure we are starting
     # the actual game:
     settings.setup()

For others that might want an immediate fix

Not that I'd recommend updating this way...
But adding it to the file of the same name in the active Boxtron installation should work as well

@dvogel
Copy link

dvogel commented Nov 26, 2024

I manually applied @evanjs's patch and it worked for me.

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

No branches or pull requests

4 participants