SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: {AR}MetalKiller on January 28, 2023, 05:28:44 AM

Title: BFBuilder Script Error
Post by: {AR}MetalKiller on January 28, 2023, 05:28:44 AM
Hi folks,

I just ran into a problem in the BFBuilderPro (same in BFBuilderPro2.0).
The error message can be found in only one unrelated post here in the forum.

Here is the error:
An error has occured in the script on this page
Line: 1
Char: 1
Error: Subscript out of range: '[number 19]'
Code: 0

DO you want to continue running scripts on this page?

err.png

Does anyone have an idea what is causing the error or where I should start searching for?

The subscript index was 18 before (after editing the wld file), so I assume it has something to do with the wld file.
I can still edit the file by opening the zeroeditor separately and opening the wld file.
Munging also works via the batch file.
However, I don't know if it is possible to create a custom SIDE without the BFFuilder UI.
Can I just copy the SIDE folder into my mod map?

Thanks for any help.
Cheers!
Title: Re: BFBuilder Script Error
Post by: Led on January 28, 2023, 05:42:37 AM
You can munge sides separately and then bring them into a map through the mission lua.  The only items to watch out for on the map that I recall would be CP ownership.

There is (should be) a "side munger" available in our downloads area.
Title: Re: BFBuilder Script Error
Post by: {AR}MetalKiller on January 29, 2023, 02:43:12 AM
Thanks for the hint.
Title: Re: BFBuilder Script Error
Post by: {AR}MetalKiller on February 04, 2023, 08:21:39 AM
The error is fixed.
It was caused by the script contents.
Since I had multiple issues in my script I can't pin down all problems.
However, at least one is clear.

The following function call was not working:
SetOutOfBoundsVoiceOver(2, "Allleaving");
SetOutOfBoundsVoiceOver(1, "Impleaving");

It should be:
SetOutOfBoundsVoiceOver(ALL, "Allleaving");
SetOutOfBoundsVoiceOver(IMP, "Impleaving");

I assume the error just says that the audio file can't be found in the respective data file.
EhPortal 1.34 © 2024, WebDev