Welcome Anonymous !


 


Alpha Squad US TeamSpeak Viewer

How to make a mod?

The forum dedicated to creating missions for ARMA. Share your missions and your knowledge to others here !

How to make a mod?

Postby Firefly_AS » Sun Sep 15, 2013 10:43 am

Noob advice welcome... :huh:

I want to make a very simple Arma 3 mod. I looked at CBA and I can see it has a .cpp file, a version.txt file, an image .paa, and of course the addons and keys folders. I extracted one of the .pbo files and there's a config.cpp and some.sqf files. Do I just need to follow that? Essentially, I want to make something to continuously run as a thread in the background, no user interaction is needed.
User avatar
Firefly_AS
--------------
--------------
 
Posts: 994
Joined: Thu Apr 29, 2010 4:13 am
Location: US

Re: How to make a mod?

Postby Robalo_AS » Sun Sep 15, 2013 2:32 pm

Make a directory, say my_addon. Inside make a config.cpp file like below:
Code: Select all
class CfgPatches
{
   class my_addon
   {
      units[] = {};
      weapons[] = {};
      requiredVersion = 0.77;
      requiredAddons[] = {"cba_main"};
   };
};

class Extended_PostInit_EventHandlers
{
   class my_addon
   {
      init = "call ('\my_addon\my_postInitCode.sqf' call SLX_XEH_COMPILE)";
   };
};


Make a file my_postInitCode.sqf in the same directory which has your code.
Pack the my_addon directory into a pbo with BinPBO.
Make a mod directory like: <Arma 3>\my_mod\addons\ and put your my_addon.pbo in there.
There you go: your my_mod mod is ready.
User avatar
Robalo_AS
--------------
--------------
 
Posts: 3085
Joined: Sat Nov 01, 2003 3:32 am
Location: Bucharest

Re: How to make a mod?

Postby Firefly_AS » Sun Sep 15, 2013 4:46 pm

Cool thanks Rob, I'll give it a try!
User avatar
Firefly_AS
--------------
--------------
 
Posts: 994
Joined: Thu Apr 29, 2010 4:13 am
Location: US


Return to ARMA :: Mission Editing

cron
  • View new posts
  • View unanswered posts
  • Who is online
  • In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 3 minutes)
  • Most users ever online was 311 on Wed Dec 12, 2018 4:22 pm
  • Users browsing this forum: No registered users and 1 guest
Presets
Main Style
Patterns
Accent Color
Apply