• 0
Frogman5326

Trader issue

Question

Hello I added RHS items to my traders and when I uploaded it I get this error.. 

infiSTAR_AdminMenu.hpp is not in your MPMission or you forgot to #include it within your description.ext 

as well as this one 

 File mpmissions\__cur_mp.Tanoa\description.ext, line 68: /CfgTraderCategories/: Missing '}   

Line 68 is where 1 of my 2 Infistar #include lines are 

Now I had Infistar running before adding this and it was fine at that point. I uploaded my backup Pbo for the mission file and it worked just fine, I don't understand why its causing this issue since I never touched the Description.ext Is there something I need to add in order for the trader to read it? 

 

Share this post


Link to post
Share on other sites

7 answers to this question

  • 0

Its best to create a RHS folder then include in class CfgTraderCategories and class CfgExileArsenal in your config.cpp make 2 files category.hpp and pricing.hpp and put them in the folder now move your RHS items to the correct file.

Description.ext should like something like this

Spoiler

#include "R3F_LOG\desc_include.h"
author = "Exile Mod Team";
onLoadName = "Exile Mod";
onLoadMission= "www.exilemod.com";
loadScreen = "exile_assets\texture\mod\logo.paa";
disableChannels[] = {0,2};
OnLoadIntro = "";
OnLoadIntroTime = false;
OnLoadMissionTime = false;

class Header
{
    gameType = Survive; // Do NOT change this
    minPlayers = 1;
    maxPlayers = 60;
};

///////////////////////////////////////////////////////////////////////////////
// Exile Settings - Do not change these!
///////////////////////////////////////////////////////////////////////////////
forceRotorLibSimulation = 2;
skipLobby = 1;
joinUnassigned = 1;
respawn = "BASE";
respawnDelay = 300;
respawnDialog = 0;
respawnOnStart = 0;
respawnButton = 1;
respawnTemplates[] = {"Exile"};
corpseManagerMode = 0;
corpseLimit = 5;
corpseRemovalMinTime = 1800;
corpseRemovalMaxTime = 1800;
wreckManagerMode = 0;
wreckLimit = 1;
wreckRemovalMinTime = 60;
wreckRemovalMaxTime = 180;
scriptedPlayer = 1;
disabledAI = 1;
enableItemsDropping = 0;
briefing = 0;
debriefing = 0;
allowFunctionsLog = 1;
enableDebugConsole = 0;
allowFunctionsRecompile = 0;
showSquadRadar = 0;
showUAVFeed = 1;

showHUD[] =
{
    true,   // Scripted HUD (same as showHUD command)
    true,   // Vehicle + soldier info
    true,   // Vehicle radar
    true,   // Vehicle compass
    true,   // Tank direction indicator
    false,  // Commanding menu
    false,  // Group Bar
    true,   // HUD Weapon Cursors
    false   // Squad Radar
};

#include "config.cpp"
#include "CfgRemoteExec.hpp"
#include "infiSTAR_AdminMenu.hpp"
#include "MarXet\dialog\RscMarXetDefines.hpp"
#include "MarXet\dialog\RscMarXetDialog.hpp"

class CfgFunctions
{
    #include "ExAdClient\CfgFunctions.cpp"
};
class CfgHints
{
    #include "ExAdClient\CfgHints.cpp"
};

class CfgNetworkMessages
{
    #include "ExAdClient\CfgNetworkMessages.cpp"
    #include "MarXet\CfgMarXetNetworkMessages.hpp"

    class XG_EnterSafeZone
    {
        module = "AntiTheft";
        parameters[] = {"OBJECT","OBJECT"};
    };
    class XG_LeftSafeZone
    {
        module = "AntiTheft";
        parameters[] = {"OBJECT"};
    };
    class XG_PlayerEnterSafezone
    {
        module = "AntiTheft";
        parameters[] = {"OBJECT"};
    };
    class XG_PlayerLeaveSafezone
    {
        module = "AntiTheft";
        parameters[] = {"OBJECT"};
    };
    class XG_CheckVariable
    {
        module = "AntiTheft";
        parameters[] = {"OBJECT","OBJECT"};
    };
};

class RscTitles
{
    #include "statusBar\statusBar.hpp"    
    #include "ExAdClient\RscTitles.cpp"
};
};

In your config.cpp it should look like something like this, just do a find to edit it also makes things easier to edit down the road.

Spoiler

class CfgExileArsenal
{
    #include "RHS\pricing.hpp"
  
    
    class Exile_Uniform_BambiOverall                { quality = 1; price = 1; sellPrice = 1; };

class CfgTraderCategories
{
    #include "RHS\category.hpp"

    class Community
    {
        name = "Community Items";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\uniform_ca.paa";
        items[] =
        {

        };
    };

 

Share this post


Link to post
Share on other sites
Advertisement
  • 0
7 hours ago, 1Man said:

Its best to create a RHS folder then include in class CfgTraderCategories and class CfgExileArsenal in your config.cpp make 2 files category.hpp and pricing.hpp and put them in the folder now move your RHS items to the correct file.

Description.ext should like something like this

  Hide contents

#include "R3F_LOG\desc_include.h"
author = "Exile Mod Team";
onLoadName = "Exile Mod";
onLoadMission= "www.exilemod.com";
loadScreen = "exile_assets\texture\mod\logo.paa";
disableChannels[] = {0,2};
OnLoadIntro = "";
OnLoadIntroTime = false;
OnLoadMissionTime = false;

class Header
{
    gameType = Survive; // Do NOT change this
    minPlayers = 1;
    maxPlayers = 60;
};

///////////////////////////////////////////////////////////////////////////////
// Exile Settings - Do not change these!
///////////////////////////////////////////////////////////////////////////////
forceRotorLibSimulation = 2;
skipLobby = 1;
joinUnassigned = 1;
respawn = "BASE";
respawnDelay = 300;
respawnDialog = 0;
respawnOnStart = 0;
respawnButton = 1;
respawnTemplates[] = {"Exile"};
corpseManagerMode = 0;
corpseLimit = 5;
corpseRemovalMinTime = 1800;
corpseRemovalMaxTime = 1800;
wreckManagerMode = 0;
wreckLimit = 1;
wreckRemovalMinTime = 60;
wreckRemovalMaxTime = 180;
scriptedPlayer = 1;
disabledAI = 1;
enableItemsDropping = 0;
briefing = 0;
debriefing = 0;
allowFunctionsLog = 1;
enableDebugConsole = 0;
allowFunctionsRecompile = 0;
showSquadRadar = 0;
showUAVFeed = 1;

showHUD[] =
{
    true,   // Scripted HUD (same as showHUD command)
    true,   // Vehicle + soldier info
    true,   // Vehicle radar
    true,   // Vehicle compass
    true,   // Tank direction indicator
    false,  // Commanding menu
    false,  // Group Bar
    true,   // HUD Weapon Cursors
    false   // Squad Radar
};

#include "config.cpp"
#include "CfgRemoteExec.hpp"
#include "infiSTAR_AdminMenu.hpp"
#include "MarXet\dialog\RscMarXetDefines.hpp"
#include "MarXet\dialog\RscMarXetDialog.hpp"

class CfgFunctions
{
    #include "ExAdClient\CfgFunctions.cpp"
};
class CfgHints
{
    #include "ExAdClient\CfgHints.cpp"
};

class CfgNetworkMessages
{
    #include "ExAdClient\CfgNetworkMessages.cpp"
    #include "MarXet\CfgMarXetNetworkMessages.hpp"

    class XG_EnterSafeZone
    {
        module = "AntiTheft";
        parameters[] = {"OBJECT","OBJECT"};
    };
    class XG_LeftSafeZone
    {
        module = "AntiTheft";
        parameters[] = {"OBJECT"};
    };
    class XG_PlayerEnterSafezone
    {
        module = "AntiTheft";
        parameters[] = {"OBJECT"};
    };
    class XG_PlayerLeaveSafezone
    {
        module = "AntiTheft";
        parameters[] = {"OBJECT"};
    };
    class XG_CheckVariable
    {
        module = "AntiTheft";
        parameters[] = {"OBJECT","OBJECT"};
    };
};

class RscTitles
{
    #include "statusBar\statusBar.hpp"    
    #include "ExAdClient\RscTitles.cpp"
};
};

In your config.cpp it should look like something like this, just do a find to edit it also makes things easier to edit down the road.

  Hide contents

class CfgExileArsenal
{
    #include "RHS\pricing.hpp"
  
    
    class Exile_Uniform_BambiOverall                { quality = 1; price = 1; sellPrice = 1; };

class CfgTraderCategories
{
    #include "RHS\category.hpp"

    class Community
    {
        name = "Community Items";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\uniform_ca.paa";
        items[] =
        {

        };
    };

 

Alright so I did this and now I am getting an error that is saying the pricing.hpp is not being found. I may have missed it but did you include it in your description.ext as well? 

Share this post


Link to post
Share on other sites
  • 0

the #includes will be in your config.cpp make sure you have 2 files in your RHS folder pricing.hpp  and  category.hpp

pricing.hpp is your prices

category.hpp is for categories under the specific traders

Edited by 1Man

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, 1Man said:

the #includes will be in your config.cpp make sure you have 2 files in your RHS folder pricing.hpp  and  category.hpp

pricing.hpp is your prices

category.hpp is for categories under the specific traders

Alright I misunderstood the first part got it now, just throw that RHS folder into the MP mission folder on my server? I just want to make sure I apologize about the abundance of questions. 

Edited by Frogman5326

Share this post


Link to post
Share on other sites
  • 0

Alright I did that and I am getting the exact same error as before. Its also saying my description.ext is missing a header, I checked my ext file and its still the same as it was before when it was working. Its reading RHS it seems now but those errors prevent joining on the server.

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.