Jump to content
AutismoBot

Custom leaflets - [BIS_func_initLeaflet] Script not defined

Recommended Posts

Hi folks,

Thanks for taking the time to checkout this thread and provide support.

 

I'm banging my head against the desk with regards to custom leaflets - https://community.bistudio.com/wiki/Arma_3_Leaflets#Custom_Leaflets

 

I think my config is correct and it definitely works for customizing the existing West, East, Guer, and Civ leaflets, no problems there. My problem is with the Custom_01, Custom_02, Custom_03, etc. objects.

 

I load up my mod, create a test scenario, put down a drone, configure the pylon settings to Custom_01, and then try to startup the drone and release the leaflets. I do see that the magazine is loaded but when I fire I get the following error message:

 

Quote

[BIS_func_initLeaflet] Script not defined for leaflet Custom 01

 

Quote

 

class CfgLeaflets
{

    class West
    {
        text = "";
        texture = "mymod\data\leaflets\custom.paa";
    }
    
    class East
    {
        text = "";
        texture = "mymod\data\leaflets\custom.paa";
    }
    
    class Guer
    {
        text = "";
        texture = "mymod\data\leaflets\custom.paa";
    }
    
    class Custom_01
    {
        text = "";
        texture = "mymod\data\leaflets\custom.paa"; 
    }

 

 

If I go into config view I see that CfgLeaflets > Custom_01 is indeed defined with my PAA file.

 

Any idea on what's going wrong here? Happy to provide additional info if needed.

Your help is immensely appreciated 🙂

Share this post


Link to post
Share on other sites

Thanks Dedmen, nice catch.

So if I understand correctly this is a bug in Arma itself then yes? I don't try calling BIS_func_initLeaflet in my addon anywhere, this is just the default that gets called when I fire the leaflet dispenser on the drone after loading Custom_01 in the pylon settings.

EDIT: Filed a bug - https://feedback.bistudio.com/T145081

Is there a workaround in the meantime?

Edited by AutismoBot
Updated with link to bug

Share this post


Link to post
Share on other sites
On 9/28/2019 at 6:10 AM, AutismoBot said:

Is there a workaround in the meantime?

init.sqf

BIS_func_initLeaflet = BIS_fnc_initLeaflet;

 

On 9/28/2019 at 6:10 AM, AutismoBot said:

So if I understand correctly this is a bug in Arma itself then yes? I don't try calling BIS_func_initLeaflet in my addon anywhere

Maybe you are running other mods that do it wrong.

I'd say search "BIS_func_initLeaflet" through all BI SQF scripts (P-Drive preferably) and see if you find a reference in their code. Would also greatly help if you post that on feedback tracker as it makes fixing it trivial.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×