SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Antstafer on August 22, 2021, 10:10:24 PM

Title: Forcing map script to load more than one sound file?
Post by: Antstafer on August 22, 2021, 10:10:24 PM
So in a nutshell, I'm trying to change the AT-ST main blaster sound to the AT-AT blaster sound. After editing it, I noticed that it only works on maps where the AT-AT blaster sound is loaded into the .lvl of that map.

Is there some way to force the "ReadDataFile("sound\\" line to use more than one set?

I've tried the following orders-
ReadDataFile("sound\\end.lvl;end1gcw,hot.lvl;hot1gcw");

ReadDataFile("sound\\end.lvl;end1gcw;hot.lvl;hot1gcw");

ReadDataFile("sound\\end.lvl;end1gcw","sound\\hot.lvl;hot1gcw");


Surely there must be some way to get it to load and read both. If not, what are my best options to making sure the sound is present on all shipped maps that have the AT-ST?
Title: Re: Forcing map script to load more than one sound file?
Post by: Antstafer on August 23, 2021, 10:42:05 PM
In addition to this, I'm also trying to replace the lowrez human animation files with their hirez counterparts, but just renaming and overwriting files in this folder just seems to lead to crashes. I assume there's a lot more work to do than that haha.

(https://i.ibb.co/qxr8r5q/image.png)
Title: Re: Forcing map script to load more than one sound file?
Post by: AnthonyBF2 on August 23, 2021, 10:49:23 PM
You cannot have multiple sound files, ever. Errors will occur.
You need to load the Hoth sound file in your mission script then edit the weapon ODFs from the AT-ST to use reference the AT-AT weapon sounds.
Title: Re: Forcing map script to load more than one sound file?
Post by: Antstafer on August 24, 2021, 12:01:10 AM
Quote from: AnthonyBF2 on August 23, 2021, 10:49:23 PMYou cannot have multiple sound files, ever. Errors will occur.
You need to load the Hoth sound file in your mission script then edit the weapon ODFs from the AT-ST to use reference the AT-AT weapon sounds.

I'm probably ignorant here, but I think that's exactly what I tried doing.

So the ODFS for the AT-ST are already changed to the AT-AT sounds. So how would I reference the hoth sound file on Endor, while still keeping the sound for the speederbikes? So its not possible to reference both the endor sound files and the hoth files in the same mission script?
Title: Re: Forcing map script to load more than one sound file?
Post by: AnthonyBF2 on August 24, 2021, 04:40:57 PM
You cannot have two sound files at once. You must pick and choose what sounds you're willing to lose.

Alternatively, you can reference a second custom made sound file that contains *only* the missing sounds.
I have no idea how to do that but you can find instructions somewhere on this website.
EhPortal 1.34 © 2024, WebDev