Jump to content
  • 0

RRP47

Question

Pulling my hair out. Server was working fine last night, then decided it was time to do my final edits to the traders. After doing so, i get this;

 

ErrorMessage: File mpmissions\dayz_epoch_13.Tavi\description.ext, line 178: /CfgTraderCategory/: Missing '}'

 

I never even touched the description.ext.

 

My traders are config based. I've been thru every file, no typos or bad syntax in them, unless I'm blind. lol

 

I'm calling the traders correctly in init, and description. This error is driving me nuts. Hanging on "Wait for host" when it was running just fine earlier is nerve racking.

 

Here's my description.ext

respawn = "BASE";


respawndelay = 5;
onLoadMission="DayZ_Epoch Taviana";
OnLoadIntro = "Welcome to Taviana";
OnLoadIntroTime = False;
OnLoadMissionTime = False;
disabledAI = true;
disableChannels[]={0,2,6};
enableItemsDropping=0;

#include "Scripts\Trader_Items\cfgServerTrader.hpp"

#include "loottables\CfgBuildingLoot.hpp"
#include "loottables\cfgLoot.hpp"
#include "loottables\CfgLootSmall.hpp"

briefing = 0;
debriefing = 0;

onPauseScript = "";
loadScreen = "\z\addons\dayz_code\gui\dayz_logo_ca.paa";

class Header
{
gameType = COOP; //DM, Team, Coop, ...
minPlayers = 1; //min # of players the mission supports
maxPlayers = 100; //Max # of players the mission supports
};

aiKills = 1;
diagRadio = 1;
diagHit = 1;

#include "Scripts\Player_Hud\commonhud.hpp"
#include "Scripts\Defines\hw.hpp"

class RscText
{
type = 0;
idc = -1;
x = 0;
y = 0;
h = 0.037;
w = 0.3;
style = 0x100;
font = Zeppelin32;
SizeEx = 0.03921;
colorText[] = {1,1,1,1};
colorBackground[] = {0, 0, 0, 0};
linespacing = 1;
};
class RscPicture
{
access=0;
type=0;
idc=-1;
style=48;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="TahomaB";
sizeEx=0;
lineSpacing=0;
text="";
};
class RscLoadingText : RscText
{
style = 2;
x = 0.323532;
y = 0.666672;
w = 0.352944;
h = 0.039216;
sizeEx = 0.03921;
colorText[] = {0.543,0.5742,0.4102,1.0};
};
class RscProgress
{
x = 0.344;
y = 0.619;
w = 0.313726;
h = 0.0261438;
texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";
colorFrame[] = {0,0,0,0};
colorBar[] = {1,1,1,1};
};
class RscProgressNotFreeze
{
idc = -1;
type = 45;
style = 0;
x = 0.022059;
y = 0.911772;
w = 0.029412;
h = 0.039216;
texture = "#(argb,8,8,3)color(0,0,0,0)";
};
//
// the loading screen itself
//
class DayZ_loadingScreen
{
idd = -1;
duration = 10e10;
fadein = 0;
fadeout = 0;
name = "loading screen";
class controlsBackground
{
class blackBG : RscText
{
x = safezoneX;
y = safezoneY;
w = safezoneW;
h = safezoneH;
text = "";
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,1};
};
/*
class nicePic : RscPicture
{
style = 48 + 0x800; // ST_PICTURE + ST_KEEP_ASPECT_RATIO
x = safezoneX + safezoneW/2 - 0.25;
y = safezoneY + safezoneH/2 - 0.2;
w = 0.5;
h = 0.4;
text = "img\nicePic.paa";
};
*/
};
class controls
{
class Title1 : RscLoadingText
{
text = "$STR_LOADING"; // "Loading" text in the middle of the screen
};
class CA_Progress : RscProgress // progress bar, has to have idc 104
{
idc = 104;
type = 8; // CT_PROGRESS
style = 0; // ST_SINGLE
texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";
};
class CA_Progress2 : RscProgressNotFreeze // progress bar that will go reverse
{
idc = 103;
};
class Name2: RscText // the text on the top-left
{
idc = 101;
x = 0.05;
y = 0.029412;
w = 0.9;
h = 0.04902;
text = "";
sizeEx = 0.05;
colorText[] = {0.543,0.5742,0.4102,1.0};
};
};
};

class CfgSounds
{
sounds[] = {};
class stronghold
{
name = "stronghold";
sound[] = {origins\sfx\vrata_sound.ogg,0.1,1};
titles[] = {};
};
class mining
{
name = "mining";
sound[] = {custom\mining\mining.ogg,0.1,1};
titles[] = {};
};
};

class RscTitles
{
#include "Scripts\Player_Hud\hud.hpp"
};

#include "Scripts\Defines\defines.hpp"
#include "Scripts\Defines\common.hpp"
#include "Scripts\Gold_Coin_system\Bank_Dialog\bank_dialog.hpp"
#include "Scripts\Gold_Coin_system\Give_Money\give_player_dialog.hpp"

#include "addons\DRNdialogs.hpp"
#include "custom\extra_rc\extra_rc.hpp"

 

I'll be beating my head against this wall all day. Any help or insight is appreciated.

Link to comment
Share on other sites

19 answers to this question

Recommended Posts

  • 0

your descriptions.ext look fine to me

 

i know it says "description.ext, line 178: /CfgTraderCategory/: Missing '}'" but i think it will be in one of your trader files as they are included so as far as i know push the line numbers on in the main file.

 

can you post your cfgServerTrader.hpp" file pls

Link to comment
Share on other sites

  • 0

Look in your Config Trader files and search for CfgTraderCategory, you have a missing } bracket.

 

It's pointing to your description.ext because that's where the CfgTraders is #include'd and therefore referenced from that file.

Link to comment
Share on other sites

  • 0

cfgServerTrader.hpp

class CfgTraderCategory {


#include "Category\BanditClothing.hpp"
#include "Category\BanditHelicopterArmed.hpp"
#include "Category\BanditMilitaryArmed.hpp"
#include "Category\BanditTrucksArmed.hpp"
#include "Category\BanditWeapons.hpp"
#include "Category\HeroAmmunition.hpp"
#include "Category\HeroClothes.hpp"
#include "Category\HeroHelicopterArmed.hpp"
#include "Category\HeroMilitaryArmed.hpp"
#include "Category\HeroTrucksArmed.hpp"
#include "Category\HeroWeapons.hpp"
#include "Category\NeutralAirplanes.hpp"
#include "Category\NeutralBackpacks.hpp"
#include "Category\NeutralBikesandATV.hpp"
#include "Category\NeutralBoatsArmed.hpp"
#include "Category\NeutralBoatsUnarmed.hpp"
#include "Category\NeutralBuildingSupplies.hpp"
#include "Category\NeutralBusesandVans.hpp"
#include "Category\NeutralCargoTrucks.hpp"
#include "Category\NeutralChemlitesFlares.hpp"
#include "Category\NeutralClothes.hpp"
#include "Category\NeutralCookedMeats.hpp"
#include "Category\NeutralDrinks.hpp"
#include "Category\NeutralFuelTrucks.hpp"
#include "Category\NeutralHelicopterUnarmed.hpp"
#include "Category\NeutralMedicalSupplies.hpp"
#include "Category\NeutralMilitaryUnarmed.hpp"
#include "Category\NeutralPackagedFood.hpp"
#include "Category\NeutralSmokeGrenades.hpp"
#include "Category\NeutralToolbeltItems.hpp"
#include "Category\NeutralTrucks.hpp"
#include "Category\NeutralUsedCars.hpp"
#include "Category\NeutralUtilityVehicles.hpp"
#include "Category\NeutralVehicleParts.hpp"
#include "Category\NeutralWholesale.hpp"
#include "Category\OWVilVariants.hpp"
#include "Category\OWAcrVariants.hpp"
#include "Category\OWDMRVariants.hpp"
#include "Category\OWG3Variants.hpp"
#include "Category\OWGunAmmo.hpp"
#include "Category\OWHK416Variants.hpp"
#include "Category\OWHK417Variants.hpp"
#include "Category\OWMasVariants.hpp"
#include "Category\OWPistolAmmo.hpp"
#include "Category\OWPistols.hpp"
#include "Category\OWScarVariants.hpp"
#include "Category\OWSniperVariants.hpp"
#include "Category\ORIVehicles.hpp"
#include "Category\OWSuperCars.hpp"
#include "Category\OWTARVariants.hpp"
};

Link to comment
Share on other sites

  • 0

Yes, everything was working fine last night. Could buy/sell any OW weapon. Then I moved some stuff around and added origins vehicles to the config traders (they were in database before) and now I'm getting this error. I have taken all epoch weapons out minus a few LMGs, all other weapons are OW. And traders reflect as such.

Link to comment
Share on other sites

  • 0

Yes, everything was working fine last night. Could buy/sell any OW weapon. Then I moved some stuff around and added origins vehicles to the config traders (they were in database before) and now I'm getting this error. I have taken all epoch weapons out minus a few LMGs, all other weapons are OW. And traders reflect as such.

 

I had this problem you are missing } in one of those Hpp files took me about 20 minutes to find me mistake, Next time back up your files before uploading new ones

Link to comment
Share on other sites

  • 0

I "THINK" I may have found the, or at least AN issue. I was thumbing thru looking for the missing '}' and came across this.

 

Its considering the closing '}' in the middle, not the end, See the Red Brackets. there a way to fix this? or is this not the issue? lol

tFjTsGE.jpg

Link to comment
Share on other sites

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
  • Discord

×
×
  • Create New...