annerjb 11 Posted September 16, 2013 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: do you have to put Config.cpp into a PBO? Do I have to pass a option to arma so it writes RPT files? How do you reload a PBO once the game is open?? 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
gossamersolid 155 Posted September 16, 2013 2. make use of the diag_log command: https://community.bistudio.com/wiki/diag_log 3. You do not re-load PBOs. PBOs are only loaded at game initialization. Close the game, put in new version of PBO, start game. Share this post Link to post Share on other sites
annerjb 11 Posted September 17, 2013 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
annerjb 11 Posted September 17, 2013 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