Question about expanding the sentences limit, and I need some help with playing mp3's from Half-Life: Opposing Force Created 2 months ago2020-07-09 21:27:25 UTC by Petko Petko

Created 2 months ago2020-07-09 21:27:25 UTC by Petko Petko

Posted 2 months ago2020-07-09 21:27:25 UTC Post #344521
Hello, just need some help with sentences in half life (im making a mod just to be clear), Ive alredy came up with 2 possible solutions: a) Increase the limit of maximum sentences (I believe its hard coded), b) make it read different files on different map prefixes (eg. of, c, ht, ba_), im making a mod about all of half life campaigns merged into one, but theres another problem: playing any opposig force tracks put into my media folder directly from the gearbox/media folder doesnt seem to work, it gives me the following error: warning: MP3_InitStream(3, media\Prospero01.mp3) failed

Regarding the first issue Ive alredy tried just simply changing the file name (sentences.txt) that the game is meant to read in sounds.cpp and it just starts assigning random sounds found in my mods sounds folder to sentences, regarding the other issue, ive alredy implemented fmod into my game (I could only get my hands on a newer release, not the one that every tutorial mentions, and its just giving me an error in-game), that didnt solve the problem, so I implemented a patch that was sadly for Xash3d (Im trying everything at this point, it didnt work).

(btw english isnt my first language, so sorry for spelling mistakes)
Help with these issues would be much appreciated.
Posted 2 months ago2020-07-14 20:17:46 UTC Post #344538
Wait, does the sentences.txt limit actually matter? I've never actually encountered any limit when adding new lines to it...
UrbaNebula UrbaNebulaGoldSourcerer
Posted 2 months ago2020-07-14 20:49:38 UTC Post #344539
Have you tried changing the CVOXFILESENTENCEMAX define in dlls/util.h?

As for music, I have no idea what could be causing that problem - all I can say is that I can't reproduce it. Copying that gearbox track into my valve\media folder and issuing either 'cd play 3' or 'mp3 play media/Prospero01.mp3' in the console works for me. Does it fail with other mp3's as well?
Posted 2 months ago2020-07-16 07:50:04 UTC Post #344543
Ive alredy tried changing the limit of CVOXFILESENTENCEMAX, but then the game is just throwing errors at me, it launches, but im getting tons of errors from sound.cpp, I believe it is a failsafe thing to prevent crashes, playing mp3s not working might be caused by me running my mod on a much older version of half-life, like the build is from 2007, it supports Direct3D, (I run it on that older version bc the steam version crashes too often on it), and it plays mp3 files from the steam version of Half-Life fine, but opposing force it just gives the error, btw sentences.txt is a problem beacuse opposing force's new sentences for monsters, scientists, and vox is too much, I alredy deleted tons of unused sentences, but the problem still exists, also it has sentences from decay and bshift (my mod is a half life game pack)
Posted 1 month ago2020-07-27 20:07:40 UTC Post #344576
So, I just realized that the errors that im getting (in-game) arent anywhere found in my source code its an engine limitation, The Xash3D SDK for some reason has these defined in a file thats not included in my SDK (Half-Life SDK v2.3 for Microsoft Visual Studio 2008 by Gary_McTaggart) that code is probably from some old version, I dont think I could just go and slap all of that code onto my SDK link stuff, and extend the limit, or maybe?
You must be logged in to post a response.