Half-Life steam version - music cutting Created 7 years ago2017-10-03 11:19:24 UTC by Mr Gnang Mr Gnang

Created 7 years ago2017-10-03 11:19:24 UTC by Mr Gnang Mr Gnang

Posted 7 years ago2017-10-03 11:19:24 UTC Post #337673
Hi all,

I assume this is a lost cause, but is there an easy way to fix the issue where any MP3 music cuts out during a level transition or a save load?
I believe this was an issue that arose after the steam release of Half-Life...

If it is a simple coding fix, I have the source code for SOHL 1.5 and could maybe put the fix in. If not - I will live - but I feel having the music cut out at the beginning of a fight if the player dies just robs the scene of atmosphere :P

Thanks as always guys!
Posted 7 years ago2017-10-03 12:07:01 UTC Post #337674
This is an engine level issue, you can't fix it through the code. The GameUI library does this if the game isn't Half-Life, so unless you're mapping for vanilla HL or using a custom sound system you're out of luck.
Posted 7 years ago2017-10-03 13:16:27 UTC Post #337678
Is there some sort of check in the engine to see if it’s the ‘valve’ folder? Or the ‘gameui.dll’ doing that?

And SOHL, much less 1.5, yeesh.
Posted 7 years ago2017-10-03 13:27:13 UTC Post #337679
[quote]
void CGameUI::ConnectToServer(const char *game, int IP, int port)
{
if ( TheCareerGame && (TheCareerGame->_vptr + 2)() )
{
//...
}
else
{
if ( strcasecmp(game, "valve") )
  engine->pfnClientCmd("mp3 stop\n");
}

//...
}
[/quote]
Posted 7 years ago2017-10-03 14:03:47 UTC Post #337680
Oh Valve.
Posted 7 years ago2017-10-03 14:27:29 UTC Post #337682
Well, at least I have my answer - thanks!

I know there are many issues with SoHL but I decided to start using it for my mod 4 or so years ago and I'm a bit too far deep to back out now!
Really, the model replacement and move-with feature are all I am using it for!
Posted 7 years ago2017-10-03 14:29:57 UTC Post #337683
Oh and not to mention env_model!
Posted 7 years ago2017-10-03 14:56:45 UTC Post #337686
Hey man, I’m not judging. Just saying there’s alternatives.
Posted 7 years ago2017-10-03 16:09:49 UTC Post #337688
I've heard that SoHL versions after 1.5/1.6 are glitchy af.
Posted 7 years ago2017-10-03 16:22:14 UTC Post #337689
Outdated, it was a project of its time made to get things done, not efficiently. It’s all a hack. Newer version last 1.2 (IIRC) were not made by the developer, and add on even more spaghetti code.

Plus my own personal qualms with it.
Posted 6 years ago2017-11-23 14:43:53 UTC Post #338162
You could always try using the Opfor_Spirit Engine.
It got cancelled and is still unfinished but for the coders among you probably only a matter of few hours/days to fix things up. Things such as the few monsters that are yet still missing or adding any last missing spirit features, fixing few sound bugs. My coder did his work in a very clean fashion. Cleaning up 100s of lines of code of the original spirit releases.

The future intend of it was to release an enhanced spirit version that would've utilized all the useful additions of the later spirit versions while also expanding upon it with own content and features be it female scientists, Rosenberg npc etc. you name it we had it planned.

So the goal basically was to provide the community with a complete service kit for mappers to work with. But when Solokiller began his work on Hl-Enhanced we ceased all activity and the project died off and even got cancelled.

Seeing how he goes way beyond the call of duty and over the capabilities of what even spirit ever offered it was only logical for us to stop even though I feel very sad for my coder. Because he spent so much time and great effort into it!

Should any of you still want to expand upon his work make sure that Credits are given. Both to the original coder "Godkiller_NT aka hammermaps" as well as the countless model authors and even voice actors in cases of custom content: Content such as Barniel for instance.

The aim of opfor spirit was to provide a full package or in short: From the community for the community. Show casting and granting easy access to all of the communities best. Excluding sven coop content as that might very well be a retail product in itself.

Some of the planned features were:

[i]- Incorporation of all Op4 content, hl1 content while also adding the communities best such as Kate and Barniel, my wip female scientists (with their own unique voices), few extra monsters (re-skins mostly but with their own unique sounds), Rosenberg NPC with snipped sound files out of Decay & BS.
  • Switchable arms per command and or drag in drop, Hev, Scientist arms, Hecu, Black Op, Security, female arms military & scientist.
  • Most common spirit features including some fixed ones which never really worked before.
  • Expansion on the sound engine to not just allow custom sound groups for humans but also aliens to make model swapping more lucrative.
  • Implementation of some cut hl1 monsters.
  • Restoration of cut Hl1 weapon and strafing animations due to Steam update.
  • new lightning and explosion effects enhanced over original spirit versions.
  • extensive tutorial map package to show cast new features.
There were more things planned but I can't recall em anymore.[/i]

WIP unfinished contains dll's and SDK:

https://www.file-upload.net/download-12829936/sohl_oppfor.rar.html

The official website:
Contains a very much older release candidate.

hammermaps.de/sohl_oppfor.7z
Posted 6 years ago2017-11-23 16:03:04 UTC Post #338171
To be honest, I would rather (re)program the missing Blue-Shift/Opposing Force entities within Half-Life: Enhanced and either (re)program the SoHL entities and/or do it through Angelscript.

Personal opinion tho.
Posted 6 years ago2017-11-23 17:40:24 UTC Post #338174
Ya that was our plan... Not sure if he is still up for it though as we haven't spoken since then.. Now I read that he officially cancelled his project 2 months ago without telling me anything about it. He might have moved on.

Ps: Download it anyway just to be on the safe side.. Source codes of any sort are rare.. There might be nice goodies in it saving you as coder massive amounts of time... And my guy - he was damn good. :)
You must be logged in to post a response.