halflife icon indicating copy to clipboard operation
halflife copied to clipboard

liblist.gam reference to hl.dll not parsing properly (mods are broken)

Open DonAKAUnq opened this issue 7 years ago • 17 comments

This started with the recent HL update (Oct. 8th). Many mods don't have a custom dll so they refer to hl.dll by use of the line gamedll "..\valve\dlls\hl.dll"

These mods are now crashing to desktop when starting a map. The console gives the response Skipping library with illegal characters in path: ..\valve\dlls\hl.dll with a lot of svc_bad messages following.

Example mod where this happens: USS Darkstar.

DonAKAUnq avatar Oct 09 '19 21:10 DonAKAUnq

Also maybe we should revert last update till not fixed? Coz there one issue with crashing on server enter, and one about crashing on serverbrowser, and they r reproducible now on stable, you can read comments on update page.

afwn90cj93201nixr2e1re avatar Oct 09 '19 22:10 afwn90cj93201nixr2e1re

Replacing the gamedll line with

gamedll "dlls\hl.dll"
gamedll_linux "dlls/hl.so"
gamedll_osx "dlls/hl.dylib"

fixes the problem. The game runs in Linux and on Windows (Proton).

ghost avatar Oct 10 '19 01:10 ghost

@LucesEnBabel Did you had to copy the valve/dlls/hl.$LIBEXT and/or valve/cl_dlls/client.$LIBEXT inside the mod's directory for your workaround to work?

JoelTroch avatar Oct 10 '19 05:10 JoelTroch

No, asides from the liblist.gam edit no more workarounds were needed.

Tested on USS Darkstar as well.

ghost avatar Oct 10 '19 13:10 ghost

Tested They Hunger which is using custom .dll (einar.dll) and works perfectly fine.

Side Note: USS Darkstar also works fine with Steamfix (Steamfixes are community based fix). You need to apply Steamfix to every old Goldsource mod or else mods may won't work. And it doesn't have anything with latest update. It was always like this. Older mods cannot function properly without Steamfix. Some Steamfix patches replaces liblist.gam only. Some mods need to edit their client.dll to make it work on Steam version. For USS Darkstar's side it can be easily fixed by editing liblist.gam. In short, no, mods aren't broken.

BlackShadow avatar Oct 10 '19 18:10 BlackShadow

USS Darkstar also works fine with Steamfix (Steamfixes are community based fix). You need to apply Steamfix to every old Goldsource mod or else mods may won't work. And it doesn't have anything with latest update. It was always like this. Older mods cannot function properly without Steamfix. Some Steamfix patches replaces liblist.gam only, some of them are has client.dll. Some mods need to edit their client.dll to make it work on Steam version. For USS Darkstar's side it can be easily fixed by editing liblist.gam. In short, no mods aren't broken.

Probably a bit off-topic: but most WON mods worked in the Steam version without the need for a fix (that in a nutshell give them menu, icons, background and singleplayer support to the games). The only exception to this case was probably Half-Life: Invasion IIRC.

This issue is referencing the patch applied for https://github.com/ValveSoftware/halflife/issues/2221 that broke support for games that were referencing Half-Life's gamedll by using .. to go up the root directory that were broken in the latest update.

ghost avatar Oct 10 '19 18:10 ghost

Probably a bit off-topic: but most WON mods worked in the Steam version without the need for a fix (that in a nutshell give them menu, icons, background and singleplayer support to the games). The only exception to this case was probably Half-Life: Invasion IIRC.

Most of the older mods works without Steamfix indeed, but these are mostly basic mods. Steamfix doesn't provide splash, background only. They also provide a modified client.dll (depending on the mod) and liblist.gam. Azure Sheep, Sweet Half-Life, They Hunger (Not Triology), as you mentioned Half-Life Invasion always gave me issues without Steamfix, because their Steamfix includes a custom client.dll not only liblist.gam

About the #2221 This may be the issue but im still defending the fact that no older mod should be played without Steamfix and literally every mod i've tried so far has it.

BlackShadow avatar Oct 10 '19 19:10 BlackShadow

About the #2221 This may be the issue but im still defending the fact that no older mod should be played without Steamfix and literally every mod i've tried so far has it.

You're right, that may be the issue. But I've played HL mods forever and have never used Steamfix for anything. Yeah, some old mods you don't get the splash screen, but they worked without having to fix something. Which by definition means something has broken.

DonAKAUnq avatar Oct 10 '19 20:10 DonAKAUnq

@mikela-valve Please look at this, Critical fix is needed since many mods aren't working now.

CS-PRO1 avatar Oct 11 '19 11:10 CS-PRO1

@DonAKAUnq @CS-PRO1 Could either of you give the HL1 beta update I just released a try? I made a limited change to the gamedll path checks added in #2221 that should allow mods with paths like those posted to work successfully.

The version in the console in-game did not change from the current release version but the BuildID shown in the Local Files section of the game properties should be 4280512 for this beta.

Thanks!

mikela-valve avatar Oct 11 '19 23:10 mikela-valve

@mikela-valve Just checked with the new beta, but the same problem is there. Still getting the Skipping library with illegal characters in path: ..\valve\dlls\hl.dll message in console.

DonAKAUnq avatar Oct 12 '19 00:10 DonAKAUnq

Sorry about that, somehow that beta version didn't have the latest changes in it. I just updated it again and tested it with that path. It should be BuildID 4280961.

mikela-valve avatar Oct 12 '19 02:10 mikela-valve

@mikela-valve Yes that did it. Confirming that BuildID 4280961 fixes this issue.

Thank you!

DonAKAUnq avatar Oct 12 '19 02:10 DonAKAUnq

@mikela-valve I can confirm the fix too. I hope this will be pushed in a critical hotfix as soon as possible (if it's not out already..)

CS-PRO1 avatar Oct 12 '19 16:10 CS-PRO1

@mikela-valve Just confirmed here as well, demo playback works too.

ghost avatar Oct 19 '19 18:10 ghost

Thanks all! Closing as fixed.

mikela-valve avatar Oct 25 '19 18:10 mikela-valve

Would you like to give me hl.so file,

seisdr avatar Dec 20 '19 15:12 seisdr