BFBuilder Script Error

Started by {AR}MetalKiller, January 28, 2023, 05:28:44 AM

Previous topic - Next topic
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?

You cannot view this attachment.

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!

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.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet


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.