Jump to content
Sign in to follow this  
annerjb

Some questions about my addon config.cpp

Recommended Posts

Hello,

I recently started working on a addon but i am not sure of some things And i searched around but

I have some questions:

Background info: I wrote the attached config.cpp and placed it in

Arma 3\@MFD\addons

and added the -mod=@MFD to arma shortcut

I read somewhere that the cpp file is not read by the engine that it has to be a PBO.

I tried searching for a tool to convert to PBO but it seems all the ones I found where either old or arma 2

And the one I found I wasnt sure how the folder structure should look inside the PBO..

Assuming I got the PBO part square away.

How can I see a more detailed debug output? I read about a arma.rtp file but I could not find any file on the paths where it should be that was recent all of them where old.

How do I reload the PBO once the config.cpp is put into it!!

Do i have to restart the editor, Mission, run a command???

This is the cpp (i am sure it has typos but since I haven't gotten it into the engine IDK which ones they are.)

/* Declaration as Addon-Content.*/
class CfgPatches 		
{
class MFD	{
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"Extended_EventHandlers",CBA_MAIN};
	author = "annerajb";
       mail = "annerjb@gmail.com";
};
};

class Extended_GetIn_Eventhandlers
{
class Air;
   class Air
   {
       // To use the exclude directive, we'll have to make this an
       // "inner" (composite) XEH init EH class
       class Air_GetIn
       {
//          exclude="SoldierWPilot";
           scope = 0;
           getin = "debug_console" callExtension "Test";
       };
   };

  /* class SoldierWPilot
   {
      xeh_init = "[] execVM '\xeh_exclusion_example1\init_west_pilot.sqf'";
   };*/
};

So in Summary:

  1. do you have to put Config.cpp into a PBO?
  2. Do I have to pass a option to arma so it writes RPT files?
  3. How do you reload a PBO once the game is open??
  4. What is the correct path where the pbo or config.cpp has to reside inside my @MFD folder? /Addons?

Share this post


Link to post
Share on other sites

Hello,

Thanks

You have any idea about 1 and 4?

It's currently blocking progress of my addon.

Just as motivation for the curious. Here is where I am now. I made a extension that has a thread that updates XHSI with the heading of the player.

http://i.imgur.com/bugrsNK.jpg (348 kB)

Obviously I want to make this only work for helicopters So I am thinking of using CBA Extended Event Handlers to accomplish that but I cannot get my config.cpp running when I get into a helicopter.. to do this dynamically.

Share this post


Link to post
Share on other sites

1. Yes

4. it seems that I had too put it inside @MFD/addons/mfd.pbo

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  

×