Jump to content
Sign in to follow this  
fabrizio_t

Custom Danger.fsm

Recommended Posts

Hello,

quick question: is it still possible to trigger a custom danger.fsm file loaded via a config mod?

While this works within ArmA2 i can't it get working withing ArmA3 Alpha.

Looks like the custom .fsm is not loaded at all.

Example code:

class CfgPatches
{
class bcombat_danger_fsm
{
	units[] = { };
	weapons[] = { };
	requiredAddons[] = {"CBA_Extended_EventHandlers", "bdetect", "bcombat"};
	version = "0.10BETA";
	versionStr = "0.10 BETA";
	versionDesc= "bcombat_danger_fsm";
	versionAr[] = {0,1,0};
	author[] = {"fabrizio_T"};
};
};

class CfgVehicles
{
class Land;
class Man: Land{};
class CAManBase: Man
{
 fsmDanger = "@bcombat\fsm\danger.fsm";
};
};

EDIT:

Looks like the .pbo containing the above code is loaded, since with game running the file is locked.

Also i can't seem able to raise any errors if the file path set into fsmDanger does not exist.

Edited by fabrizio_T

Share this post


Link to post
Share on other sites

backup and unpack your characters_f pbo, delete or replace the danger.fsm and repack it, to see if it is being loaded at all. maybe it is hard coded now?

Share this post


Link to post
Share on other sites
backup and unpack your characters_f pbo, delete or replace the danger.fsm and repack it, to see if it is being loaded at all. maybe it is hard coded now?

Hi.

I did try that a few hours ago, but i wasn't able to figure where to put the extracted characters_f.pbo directory tree.

Tried leaving it into /addons or putting it into game root dir /, but no luck: always ended up with problems with some A3_air_F dependancy error on load.

Internally the characters_f.pbo structure is something like:

characters_f/A3/characters_f/<stuff>

i wonder where i have to put these files in order to get the game load them fine.

Tried so far these paths:

/addons/characters_f/A3/characters_f/<stuff>
/addons/A3/characters_f/<stuff>
/addons/characters_f/<stuff>
/addons/<stuff>
/characters_f/A3/characters_f/<stuff>
/A3/characters_f/<stuff>
/characters_f/<stuff>

No luck.

EDIT:

Finally i decided to extract characters_f.pbo, inject my own danger.fsm in it and repackage.

My injected danger.fsm was successfully executed, meaning that behaviour is not hardcoded.

Still i wonder why i am not able to override the file externally, as i usually did in ArmA2.

Edited by fabrizio_T

Share this post


Link to post
Share on other sites

I just noticed that you don't have the original characters_f patch entry in requiredAddons. I'm sure that has caused problems for me, as I believe it affects the loading order of addons. it might be loading your mod first and then writing over it with the original data. As far as I know expansions are loaded first.

Share this post


Link to post
Share on other sites
I just noticed that you don't have the original characters_f patch entry in requiredAddons. I'm sure that has caused problems for me, as I believe it affects the loading order of addons. it might be loading your mod first and then writing over it with the original data. As far as I know expansions are loaded first.

Nice find! I think i overlooked that, what you say indeed makes sense.

I'll try it asap. Thanks.

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
Sign in to follow this  

×