red_ned

[Updated] Easy Trader set up

942 posts in this topic

Hello and thank you for this great additions, really helped me a lot installed a lot of mods following your instructions.

 

The only one i'm getting problems with is HAFM. I installed it (actually them, since it's 3 mods, with their signatures keys) successfully  (since I can spawn items and vehicles of this mod using my admin tools), but I can't get them to the traders. I added the mods to the startup parameters of my servers too, of course.

Now, I added both lines"#include "TRADERS\HAFM\ItemListHAFM.hpp" and #include "TRADERS\HAFM\TraderCategoriesHAFM.hpp" to their respective categories in config.cpp ; I also added the HAFM lines (like"HAFMvehicle", HAFMCloth", and so on...) in the file CfgTraders.hpp but when I go to a trader I don't see anything related to the mod. The mod is in the server but I can't have it in the traders. I've been scratching my head over this problem for 2 hours now, I don't see what I did wrong. I did it the same way I did all the other mods...

Here is my cfgclassarsenal category:

Spoiler

class CfgExileArsenal
{
     #include "TRADERS\APEX\ItemListAPEX.hpp"
     #include "TRADERS\ARMA3V\ItemListARMA3V.hpp"
     #include "TRADERS\ARMA3W\ItemListARMA3W.hpp"
     #include "TRADERS\CUNITS\ItemListCUNITS.hpp"
     #include "TRADERS\CUPV\ItemListCUPV.hpp"
     #include "TRADERS\CUPW\ItemListCUPW.hpp"
     #include "TRADERS\CUSTOM\ItemListCUSTOM.hpp"
     #include "TRADERS\EBM\ItemListEBM.hpp"
     #include "TRADERS\Exile\ItemListExile.hpp"
     #include "TRADERS\FFAA\ItemListFFAA.hpp"
     #include "TRADERS\HAFM\ItemListHAFM.hpp"
     #include "TRADERS\NIA\ItemListNIA.hpp"
     #include "TRADERS\RHSGREF\ItemListGREF.hpp"
     #include "TRADERS\RHSSAF\ItemListRHSSAF.hpp"
     #include "TRADERS\RHSV\ItemListRHSV.hpp"
     #include "TRADERS\RHSW\ItemListRHSW.hpp"
};

Here is my cfgtraderscategories:

Spoiler

class CfgTraderCategories
{
     #include "TRADERS\APEX\TraderCategoriesAPEX.hpp"
     #include "TRADERS\ARMA3V\TraderCategoriesARMA3V.hpp"
     #include "TRADERS\ARMA3W\TraderCategoriesARMA3W.hpp"
     #include "TRADERS\CUNITS\TraderCategoriesCUNITS.hpp"
     #include "TRADERS\CUPV\TraderCategoriesCUPV.hpp"
     #include "TRADERS\CUPW\TraderCategoriesCUPW.hpp"
     #include "TRADERS\CUSTOM\TraderCategoriesCUSTOM.hpp"
     #include "TRADERS\EBM\TraderCategoriesEBM.hpp"
     #include "TRADERS\Exile\TraderCategoriesExile.hpp"
     #include "TRADERS\FFAA\TraderCategoriesFFAA.hpp"
     #include "TRADERS\HAFM\TraderCategoriesHAFM.hpp"
     #include "TRADERS\NIA\TraderCategoriesNIA.hpp"
     #include "TRADERS\RHSGREF\TraderCategoriesGREF.hpp"
     #include "TRADERS\RHSSAF\TraderCategoriesRHSSAF.hpp"
     #include "TRADERS\RHSV\TraderCategoriesRHSV.hpp"
     #include "TRADERS\RHSW\TraderCategoriesRHSW.hpp"
};

And here is my CfgTraders file:

Spoiler

    /**
     * Weapons, scopes, silencers, ammo
     */
    class Exile_Trader_Armory
    {
        name = "ARMORY";
        showWeaponFilter = 1;
        categories[] =
        {
            "APEXAmmunition",
            "APEXAssaultRifles",
            "APEXBipodAttachments",
            "APEXLightMachineGuns",
            "APEXMuzzleAttachments",
            "APEXOpticAttachments",
            "APEXPistols",
            "APEXSniperRifles",
            "APEXSubMachineGuns",
            "Ammunition",
            "AssaultRifles",
            "BipodAttachments",
            "CUPAmmunition",
            "CUPAssaultRifles",
            "CUPLightMachineGuns",
            "CUPMuzzleAttachments",
            "CUPOpticAttachments",
            "CUPPistols",
            "CUPPointerAttachments",
            "CUPSniperRifles",
            "CUPSubMachineGuns",
            "FFAAAmunition",
            "FFAABipodAttachments",
            "FFAAMuzzleAttachments",
            "FFAAMuzzleAttachments",
            "FFAAPistols",
            "FFAAPointerAttachments",
            "FFAARifles",
            "FFAASmg",
            "FFAASniperRifles",
            "GREFAmmunition",
            "GREFWeapons",
            "HAFMCloth",
            "LightMachineGuns",
            "MuzzleAttachments",
            "NIAAmmunition",
            "NIAAssaultRifles",
            "NIAAttachments",
            "NIALightMachineGuns",
            "NIAMuzzleAttachments",
            "NIAOpticAttachments",
            "NIASniperRifles",
            "OpticAttachments",
            "Pistols",
            "PointerAttachments",
            "RHSAmmunition",
            "RHSAssaultRifles",
            "RHSBipodAttachments",
            "RHSForegripAttachments",
            "RHSLightMachineGuns",
            "RHSMuzzleAttachments",
            "RHSOpticAttachments",
            "RHSPistols",
            "RHSPointerAttachments",
            "RHSSniperRifles",
            "RHSSubMachineGuns",
            "SAFAmmunition",
            "SAFAttachments",
            "SAFWeapons",
            "Shotguns",
            "SniperRifles",
            "SubMachineGuns"
            //"HLCAmmunition",                //should use NIArms
            //"HLCAssaultRifles",            //should use NIArms
            //"HLCLightMachineGuns",        //should use NIArms
            //"HLCMuzzleAttachments",        //should use NIArms
            //"HLCOpticAttachments",        //should use NIArms
            //"HLCSniperRifles",            //should use NIArms
            // Whatever your last line is make sure it doesn't have a comma! <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<
        };
    };

    /**
     * Satchels, nades, UAVs, static MGs
     */
    class Exile_Trader_SpecialOperations
    {
        name = "SPECIAL OPERATIONS";
        showWeaponFilter = 1; // for noob tubes
        categories[] =
        {
            "A3LauncherAmmo",
            "A3Launchers",
            "APEXLauncherAmmo",
            "ApexLaunchers",
            "CUPExplosive",
            "CUPLauncherAmmo",
            "CUPLaunchers",
            "ExplosiveWeapons",
            "Explosives",
            "Flares",
            "Navigation",
            "RHSExplosives",
            "RHSLauncherAmmo",
            "RHSLaunchers",
            //"RHSStaticMG",        //not recommended except for militarised servers due to rockets/mortar etc
            "RHSUGLAmmo",
            "SAFMines",
            "Smokes",
            "StaticMGs",
            "TankDLCLaunchers",
            "TankDLCLauncherAmmo",
            "UAVs",
            // Whatever your last line is make sure it doesn't have a comma! <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<
        };
    };

    /**
     * Uniforms, vests, helmets, backpacks
     */
    class Exile_Trader_Equipment
    {
        name = "EQUIPMENT";
        showWeaponFilter = 0;
        categories[] =
        {
            "APEXBackpacks",
            "APEXHeadgear",
            "APEXUniforms",
            "APEXVests",
            "Backpacks",
            "CUPBackpacks",
            "CUPHeadgear",
            "CUPUniforms",
            "CUPVests",
            "FFAAHeadgear",
            "FFAAUniform",
            "FFAAVest",
            "FFAAbackpack",
            "FFAAfaceware",
            "FirstAid",
            "GREFHeadgear",
            "GREFUniforms",
            "GREFVests",
            "Headgear",
            "RHSAccessories",
            "RHSBackpacks",
            "RHSHeadgear",
            "RHSUniforms",
            "RHSVests",
            "SAFBackpacks",
            "SAFHeadgear",
            "SAFUniforms",
            "SAFVests",
            "Tools",
            "Uniforms",
            "Vests"
            //"APEXTools",        //not used
            // Whatever your last line is make sure it doesn't have a comma! <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<
        };
    };

    /**
     * Cans, cans, cans
     */
    class Exile_Trader_Food
    {
        name = "FAST FOOD";
        showWeaponFilter = 0;
        categories[] =
        {
            "Drinks",
            "Food",
            "NonVeganFood"
            // Whatever your last line is make sure it doesn't have a comma! <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<
        };
    };

    /**
     * Light bulbs, metal, etc.
     */
    class Exile_Trader_Hardware
    {
        name = "HARDWARE";
        showWeaponFilter = 0;
        categories[] =
        {
            "Hardware",
            //"R3FTools",
            "ExtendedBaseMod",
            "CBuilding"
            // Whatever your last line is make sure it doesn't have a comma! <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<
        };
    };

    /**
     * Sells cars and general vehicles
     */
    class Exile_Trader_Vehicle
    {
        name = "VEHICLE";
        showWeaponFilter = 0;
        categories[] =
        {
            "A3Armed",
            "A3Cars",
            "A3Trucks",
            "ApexCars",
            "Bikes",
            "CUPArmed",
            "CUPBikes",
            "CUPUnarmed",
            "Cars",
            "GREFArmed",
            "GREFUnarmed",
            "HAFMvehicle",
            "RHSVehicles",
            "SAFArmed",
            "SAFUnarmed",
            "Trucks",
            //"MASTanks"
            //"A3Tanks"
            //"UGV"
            //"A3UGVs"
            //"ApexUAVs"
            // Whatever your last line is make sure it doesn't have a comma! <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<
        };
    };

    /**
     * Sells choppers and planes
     */
    class Exile_Trader_Aircraft
    {
        name = "AIRCRAFT";
        showWeaponFilter = 0;
        categories[] =
        {
            "A3Planes",
            "A3armedChoppers",
            "A3unarmedChoppers",
            "ApexChoppers",
            "ApexPlanes",
            "ApexVTOL",
            "CUPChoppers",
            "CUPPlanes",
            "Choppers",
            "GREFChoppers",
            "GREFPlanes",
            "HAFMHeliarm",
            "HAFMJet",
            "HAFMPlane",
            "HAFMheli",
            "Planes",
            "RHSChoppers",
            "RHSPlanes",
            "SAFChoppers"
            //"A3UAVs",
            //"CUAVs",
            // Whatever your last line is make sure it doesn't have a comma! <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<
        };
    };

    /**
     * Sells ships and boats
     */
    class Exile_Trader_Boat
    {
        name = "BOAT";
        showWeaponFilter = 0;
        categories[] =
        {
            "A3Boats",
            "ApexBoats",
            "Boats",
            "CUPBoats",
            "RHSBoats"
            // Whatever your last line is make sure it doesn't have a comma! <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<
        };
    };

    class Exile_Trader_Diving
    {
        name = "DIVERS";
        showWeaponFilter = 0;
        categories[] =
        {
            "Diving"
        };
    };

    /**
     * Sells Community Items
     */
    class Exile_Trader_CommunityCustoms
    {
        name = "COMMUNITY";
        showWeaponFilter = 0;
        categories[] =
        {
            "Community"
        };
    };
    class Exile_Trader_CommunityCustoms2
    {
        name = "COMMUNITY";
        showWeaponFilter = 0;
        categories[] =
        {
            "Community2"
        };
    };

    class Exile_Trader_CommunityCustoms3
    {
        name = "COMMUNITY";
        showWeaponFilter = 0;
        categories[] =
        {
            "Community3"
        };
    };

    class Exile_Trader_CommunityCustoms4
    {
        name = "COMMUNITY";
        showWeaponFilter = 0;
        categories[] =
        {
            "Community4"
        };
    };

    class Exile_Trader_CommunityCustoms5
    {
        name = "COMMUNITY";
        showWeaponFilter = 0;
        categories[] =
        {
            "Community5"
        };
    };

    class Exile_Trader_CommunityCustoms6
    {
        name = "COMMUNITY";
        showWeaponFilter = 0;
        categories[] =
        {
            "Community6"
        };
    };

    class Exile_Trader_CommunityCustoms7
    {
        name = "COMMUNITY";
        showWeaponFilter = 0;
        categories[] =
        {
            "Community7"
        };
    };

    class Exile_Trader_CommunityCustoms8
    {
        name = "COMMUNITY";
        showWeaponFilter = 0;
        categories[] =
        {
            "Community8"
        };
    };

    class Exile_Trader_CommunityCustoms9
    {
        name = "COMMUNITY";
        showWeaponFilter = 0;
        categories[] =
        {
            "Community9"
        };
    };

    class Exile_Trader_CommunityCustoms10
    {
        name = "COMMUNITY";
        showWeaponFilter = 0;
        categories[] =
        {
            "Community10"
        };
    };

 

 

Also another thing, what I particularly want from HAFM is those amazing ships. I'd like to add them to the traders but even in this Easy Trader setup, no mention of the boats of this mod is there.... How would one proceed to add the ships to his server ?

Could anyone point me in some direction I would greatly appreciate.

Thanks in advance.

Edited by DackJaniels
  • Like 1

Share this post


Link to post
Share on other sites
Advertisement
3 hours ago, Dice_cube23 said:

i can't get the ship on the trader

Can you elaborate on this statement?

What ship are you referring to? (mod, name and/or the actual class ID would be useful) also, can you provide a sample of the file(s) you have modified showing what you've done and what is not working? I assume you just mean the ship isn't showing up at the trader for players to purchase...

Cheers :)

Share this post


Link to post
Share on other sites

@DackJaniels, @Dice_cube23, Not sure if you guys are still having trouble but here are the files, and I am 90% sure they will work. I don't have the actual MOD:

in your Exile.Map/TRADERS/Cfg.Traders.hpp;

class Exile_Trader_Boat
	{
		name = "BOAT";
		showWeaponFilter = 0;
		categories[] =
		{
			"A3Boats",
			"ApexBoats",
			"Boats",
			"CUPBoats",
			"RHSBoats",
			"HAFMShips"		//<---ADD THIS
			
		};
	};

Then in Exile.Map\Traders, make a folder called HAFM, and in that folder;

make a file called ItemListHAFM.hpp;

///////////////////////////////////////////////////////////////////////////////
//HAFM Ships
///////////////////////////////////////////////////////////////////////////////
	class HAFM_CB90						{ quality = 3; price = 2500000; };
	class HAFM_GunBoat					{ quality = 3; price = 3750000; };
	class HAFM_Russen					{ quality = 3; price = 2500000; };
	class HAFM_RHIB						{ quality = 3; price = 3750000; };
	class HAFM_FREMM					{ quality = 3; price = 3750000; };
	class HAFM_MEKO_TN					{ quality = 3; price = 3750000; };
	class HAFM_MEKO_HN					{ quality = 3; price = 3750000; };
	class HAFM_Replenishment			{ quality = 3; price = 3750000; };
	class HAFM_CB90_BLU					{ quality = 3; price = 3750000; };
	class HAFM_GunBoat_BLU				{ quality = 3; price = 3750000; };
	class HAFM_Russen					{ quality = 3; price = 3750000; };
	class HAFM_Admiral					{ quality = 3; price = 3750000; };
	class HAFM_BUYAN					{ quality = 3; price = 3750000; };
	class HAFM_Replenishment_OPF		{ quality = 3; price = 3750000; };

    

make another file called TraderCategoriesHAFM.hpp

class HAFMShips
{
		name = "HAFM Ships";
		icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
		items[] =
		{
			////AAF_F///
			"HAFM_CB90",
			"HAFM_GunBoat",
			"HAFM_Russen",
			////BLU_F////
			"HAFM_RHIB",
			"HAFM_FREMM",
			"HAFM_MEKO_TN",
			"HAFM_MEKO_HN",
			"HAFM_Replenishment",
			"HAFM_CB90_BLU",
			"HAFM_GunBoat_BLU",
			"HAFM_Russen",
			////OPF_F////
			"HAFM_Admiral",
			"HAFM_BUYAN",
			"HAFM_Replenishment_OPF"
		};
	};

don't forget in you config.cpp in your exile.missionhere file;

class CfgExileArsenal

#include "TRADERS\HAFM\ItemListHAFM.hpp"

then in

class CfgTraderCategories

#include "TRADERS\HAFM\TraderCategoriesHAFM.hpp"

Edited by Stiglove
  • Thanks 1

Share this post


Link to post
Share on other sites

They would be, you would just make another class name section under the SHIPS, and call it HAFMSUBS, and you could just copy paste everthing within the same files, just change the shipclaass names with the subs. If you need anyhelp just @ me and I'll take a look at it.

Share this post


Link to post
Share on other sites
On 2/11/2019 at 4:59 AM, Stiglove said:

@DackJaniels, @Dice_cube23, Not sure if you guys are still having trouble but here are the files, and I am 90% sure they will work. I don't have the actual MOD:

in your Exile.Map/TRADERS/Cfg.Traders.hpp;


class Exile_Trader_Boat
	{
		name = "BOAT";
		showWeaponFilter = 0;
		categories[] =
		{
			"A3Boats",
			"ApexBoats",
			"Boats",
			"CUPBoats",
			"RHSBoats",
			"HAFMShips"		//<---ADD THIS
			
		};
	};

Then in Exile.Map\Traders, make a folder called HAFM, and in that folder;

make a file called ItemListHAFM.hpp;


///////////////////////////////////////////////////////////////////////////////
//HAFM Ships
///////////////////////////////////////////////////////////////////////////////
	class HAFM_CB90						{ quality = 3; price = 2500000; };
	class HAFM_GunBoat					{ quality = 3; price = 3750000; };
	class HAFM_Russen					{ quality = 3; price = 2500000; };
	class HAFM_RHIB						{ quality = 3; price = 3750000; };
	class HAFM_FREMM					{ quality = 3; price = 3750000; };
	class HAFM_MEKO_TN					{ quality = 3; price = 3750000; };
	class HAFM_MEKO_HN					{ quality = 3; price = 3750000; };
	class HAFM_Replenishment			{ quality = 3; price = 3750000; };
	class HAFM_CB90_BLU					{ quality = 3; price = 3750000; };
	class HAFM_GunBoat_BLU				{ quality = 3; price = 3750000; };
	class HAFM_Russen					{ quality = 3; price = 3750000; };
	class HAFM_Admiral					{ quality = 3; price = 3750000; };
	class HAFM_BUYAN					{ quality = 3; price = 3750000; };
	class HAFM_Replenishment_OPF		{ quality = 3; price = 3750000; };

    

make another file called TraderCategoriesHAFM.hpp


class HAFMShips
{
		name = "HAFM Ships";
		icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
		items[] =
		{
			////AAF_F///
			"HAFM_CB90",
			"HAFM_GunBoat",
			"HAFM_Russen",
			////BLU_F////
			"HAFM_RHIB",
			"HAFM_FREMM",
			"HAFM_MEKO_TN",
			"HAFM_MEKO_HN",
			"HAFM_Replenishment",
			"HAFM_CB90_BLU",
			"HAFM_GunBoat_BLU",
			"HAFM_Russen",
			////OPF_F////
			"HAFM_Admiral",
			"HAFM_BUYAN",
			"HAFM_Replenishment_OPF"
		};
	};

don't forget in you config.cpp in your exile.missionhere file;

class CfgExileArsenal

#include "TRADERS\HAFM\ItemListHAFM.hpp"

then in

class CfgTraderCategories

#include "TRADERS\HAFM\TraderCategoriesHAFM.hpp"

Thank you for the detailed tutorial, I managed to work around the issue, and I added the boats to the "regular" arma boat section instead and that did the trick :)

 

But thanks for your anser though.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.