Jump to content

[Discontinued] Emerald Interior Designer


Recommended Posts

i ran into problems, i can't get right clickmenu open, possibly errors or something lacking in extra_rc.hpp, mind you i am really new

to modding DayZ Epoch servers (been doing this for 3 days now) i did try to search and i managed to get past most problems except the 

right clickmenu not showing.

 

make sure you have these:

init.sqf

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";				//Compile regular functions
call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles

custom\compiles.sqf

fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf";
player_selectSlot =            compile preprocessFileLineNumbers "custom\ui_selectSlot.sqf";

I didn't add these to a guide, as first post said - I'll be assuming you have set up custom variables, ui slot, self actions and extra_rc. There are too many addons using those and have guide how to create these, I didn't add them to keep it clean

Link to comment
Share on other sites

make sure you have these:

init.sqf

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";				//Compile regular functions
call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles

custom\compiles.sqf

fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf";
player_selectSlot =            compile preprocessFileLineNumbers "custom\ui_selectSlot.sqf";

I didn't add these to a guide, as first post said - I'll be assuming you have set up custom variables, ui slot, self actions and extra_rc. There are too many addons using those and have guide how to create these, I didn't add them to keep it clean

 

Thank you for replying Raymix :)

 

this is my compiles.sqf

layer_selectSlot = compile preprocessFileLineNumbers "custom\ui_selectSlot.sqf";
 
fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf";
 
control_zombieAgent = compile preprocessFileLineNumbers "custom\control_zombieAgent.sqf";
 
zombie_generate =             compile preprocessFileLineNumbers "custom\zombie_generate.sqf";
 
local_zombieDamage = compile preprocessFileLineNumbers "custom\fn_damageHandlerZ.sqf";
 
wild_spawnZombies = compile preprocessFileLineNumbers "custom\wild_spawnZombies.sqf"; //Server compile, used for loiter behaviour
 
if (!isDedicated) then {
player_build = compile preprocessFileLineNumbers "custom\snap_build\player_build.sqf";
player_buildControls = compile preprocessFileLineNumbers "custom\snap_build\player_buildControls.sqf";
snap_object = compile preprocessFileLineNumbers "custom\snap_build\snap_object.sqf";

};

 

as you can see i have fn_selfactions.sqf and ui_selectslot.sqf loading in it and it's being called  in the init.sqf described in the spoiler below

/Load in compiled functions
call compile preprocessFileLineNumbers "custom\variables.sqf";
//Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
progressLoadingScreen 1.0;
 
call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles

as you can see i also have custom variables there, i am however a bit baffled as i'm not getting any rightclick menus, probably the culprit is 
extra_rc.hpp, but as you pointed out you didn't setup a guide for it, so i'll check out if i can find a simple extra_rc.hpp guide see if i'm missing something
 
thanks alot :)
 
Funkybacon
Link to comment
Share on other sites

Before even trying this, I have a 2 questions:

1) Does these Design items spawn in the object_database and if yes, does the plot pole maintain think work on these objects like any other normal ones?

1.1) I think that by pressing this with right mouse button plot pole restriction won`t work and you will be able to build it anywhere you want....

 

2) Can other players destroy these objects with the weapons?

Link to comment
Share on other sites

Before even trying this, I have a 2 questions:

1) Does these Design items spawn in the object_database and if yes, does the plot pole maintain think work on these objects like any other normal ones?

1.1) I think that by pressing this with right mouse button plot pole restriction won`t work and you will be able to build it anywhere you want....

 

2) Can other players destroy these objects with the weapons?

1) Yes, they are published as objects in database, not sure about plot pole maintenance, don't think maintenance will work, since they are not part of DZE classes

1.1) You can't build these items without nearby plotpole and/or being an owner (or friend) of one by default. You can override PP restrictions in spawn.sqf, refer to first post.

 

2) yes

Link to comment
Share on other sites

What happens is the player selection of item display is disappearing before players have chance to select item for spawn.

@raymix,

It's working perfectly for Admins just not players.

As soon as I turn AH off it works perfectly.

Infistar thinks it could be the central display because as soon as the player's cursor hovers over top of selection box it dissappears.

Link to comment
Share on other sites

Hi Raymix,

 

I am just curious... Is your MOD compatible with the following MOD also: 

 

I seem to be able to select the item, position it and then when pressing spacebar it just disappears and the emerald is taken from the inventory! So everything seems to be working just not placing so I assume it has something to do with aforementioned linked MOD?

 

Any insight would be handy ;-)

 

Regards,

 

Pry

Link to comment
Share on other sites

@Stenchovdeth: Fixed it...  ironically the solution is something that used to be the same problem on older infistar releases. For some reason it requires manual IDDs now and will close anything that has value of -1. Previously it was the other way around, lol.

 

(newest infistar only) dialogs.hpp:

class WGT_INTERIOR1
{
	idd = 10667;
	movingenable = true;
	onLoad = "_this ExecVM 'interior\items.sqf'";
	
	class Controls
	{

		class dialogBox1: BOX
		{
			idc = -1;
			text = "";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogFrame1: RscFrame
		{
			idc = -1;
			text = "Interior Designer";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogChoose1: RscShortcutButton
		{
			idc = -1;
			text = "Spawn";
			x = 0.454806 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action= "[] call fnc_Pos_fired1;_nil=[]ExecVM ""interior\spawn.sqf"";closeDialog 0;";
		};
		class dialogCancel1: RscShortcutButton
		{
			idc = -1;
			text = "Cancel";
			x = 0.520496 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action = "closeDialog 0;";
		};
		class dialogPic1: RscPicture
		{
			idc = -1;
			text = "interior\emerald.paa";
			x = 0.412763 * safezoneW + safezoneX;
			y = 0.478468 * safezoneH + safezoneY;
			w = 0.0320813 * safezoneW;
			h = 0.0690587 * safezoneH;
		};
		class dialogCombo1: RscCombo
		{
			idc = 2667;
			text = "Choose your item";
			x = 0.45638 * safezoneW + safezoneX;
			y = 0.478467 * safezoneH + safezoneY;
			w = 0.120896 * safezoneW;
			h = 0.0229882 * safezoneH;
		};
	};
};

class WGT_INTERIOR2
{
	idd = 10668;
	movingenable = true;
	onLoad = "_this ExecVM 'interior\items.sqf'";
	
	class Controls
	{

		class dialogBox2: BOX
		{
			idc = -1;
			text = "";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogFrame2: RscFrame
		{
			idc = -1;
			text = "Interior Designer";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogChoose2: RscShortcutButton
		{
			idc = -1;
			text = "Spawn";
			x = 0.454806 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action= "[] call fnc_Pos_fired2;_nil=[]ExecVM ""interior\spawn.sqf"";closeDialog 0;";
		};
		class dialogCancel2: RscShortcutButton
		{
			idc = -1;
			text = "Cancel";
			x = 0.520496 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action = "closeDialog 0;";
		};
		class dialogPic2: RscPicture
		{
			idc = -1;
			text = "interior\emerald.paa";
			x = 0.412763 * safezoneW + safezoneX;
			y = 0.478468 * safezoneH + safezoneY;
			w = 0.0320813 * safezoneW;
			h = 0.0690587 * safezoneH;
		};
		class dialogCombo2: RscCombo
		{
			idc = 2668;
			text = "Choose your item";
			x = 0.45638 * safezoneW + safezoneX;
			y = 0.478467 * safezoneH + safezoneY;
			w = 0.120896 * safezoneW;
			h = 0.0229882 * safezoneH;
		};
	};
};

class WGT_INTERIOR3
{
	idd = 10669;
	movingenable = true;
	onLoad = "_this ExecVM 'interior\items.sqf'";
	
	class Controls
	{

		class dialogBox3: BOX
		{
			idc = -1;
			text = "";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogFrame3: RscFrame
		{
			idc = -1;
			text = "Interior Designer";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogChoose3: RscShortcutButton
		{
			idc = -1;
			text = "Spawn";
			x = 0.454806 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action= "[] call fnc_Pos_fired3;_nil=[]ExecVM ""interior\spawn.sqf"";closeDialog 0;";
		};
		class dialogCancel3: RscShortcutButton
		{
			idc = -1;
			text = "Cancel";
			x = 0.520496 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action = "closeDialog 0;";
		};
		class dialogPic3: RscPicture
		{
			idc = -1;
			text = "interior\emerald.paa";
			x = 0.412763 * safezoneW + safezoneX;
			y = 0.478468 * safezoneH + safezoneY;
			w = 0.0320813 * safezoneW;
			h = 0.0690587 * safezoneH;
		};
		class dialogCombo3: RscCombo
		{
			idc = 2669;
			text = "Choose your item";
			x = 0.45638 * safezoneW + safezoneX;
			y = 0.478467 * safezoneH + safezoneY;
			w = 0.120896 * safezoneW;
			h = 0.0229882 * safezoneH;
		};
	};
};

class WGT_INTERIOR4
{
	idd = 10670;
	movingenable = true;
	onLoad = "_this ExecVM 'interior\items.sqf'";
	
	class Controls
	{

		class dialogBox4: BOX
		{
			idc = -1;
			text = "";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogFrame4: RscFrame
		{
			idc = -1;
			text = "Interior Designer";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogChoose4: RscShortcutButton
		{
			idc = -1;
			text = "Spawn";
			x = 0.454806 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action= "[] call fnc_Pos_fired4;_nil=[]ExecVM ""interior\spawn.sqf"";closeDialog 0;";
		};
		class dialogCancel4: RscShortcutButton
		{
			idc = -1;
			text = "Cancel";
			x = 0.520496 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action = "closeDialog 0;";
		};
		class dialogPic4: RscPicture
		{
			idc = -1;
			text = "interior\emerald.paa";
			x = 0.412763 * safezoneW + safezoneX;
			y = 0.478468 * safezoneH + safezoneY;
			w = 0.0320813 * safezoneW;
			h = 0.0690587 * safezoneH;
		};
		class dialogCombo4: RscCombo
		{
			idc = 2670;
			text = "Choose your item";
			x = 0.45638 * safezoneW + safezoneX;
			y = 0.478467 * safezoneH + safezoneY;
			w = 0.120896 * safezoneW;
			h = 0.0229882 * safezoneH;
		};
	};
};

class WGT_INTERIOR5
{
	idd = 10671;
	movingenable = true;
	onLoad = "_this ExecVM 'interior\items.sqf'";
	
	class Controls
	{

		class dialogBox5: BOX
		{
			idc = -1;
			text = "";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogFrame5: RscFrame
		{
			idc = -1;
			text = "Interior Designer";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogChoose5: RscShortcutButton
		{
			idc = -1;
			text = "Spawn";
			x = 0.454806 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action= "[] call fnc_Pos_fired5;_nil=[]ExecVM ""interior\spawn.sqf"";closeDialog 0;";
		};
		class dialogCancel5: RscShortcutButton
		{
			idc = -1;
			text = "Cancel";
			x = 0.520496 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action = "closeDialog 0;";
		};
		class dialogPic5: RscPicture
		{
			idc = -1;
			text = "interior\emerald.paa";
			x = 0.412763 * safezoneW + safezoneX;
			y = 0.478468 * safezoneH + safezoneY;
			w = 0.0320813 * safezoneW;
			h = 0.0690587 * safezoneH;
		};
		class dialogCombo5: RscCombo
		{
			idc = 2671;
			text = "Choose your item";
			x = 0.45638 * safezoneW + safezoneX;
			y = 0.478467 * safezoneH + safezoneY;
			w = 0.120896 * safezoneW;
			h = 0.0229882 * safezoneH;
		};
	};
};

class WGT_INTERIOR6
{
	idd = 10672;
	movingenable = true;
	onLoad = "_this ExecVM 'interior\items.sqf'";
	
	class Controls
	{

		class dialogBox6: BOX
		{
			idc = -1;
			text = "";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogFrame6: RscFrame
		{
			idc = -1;
			text = "Interior Designer";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogChoose6: RscShortcutButton
		{
			idc = -1;
			text = "Spawn";
			x = 0.454806 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action= "[] call fnc_Pos_fired6;_nil=[]ExecVM ""interior\spawn.sqf"";closeDialog 0;";
		};
		class dialogCancel6: RscShortcutButton
		{
			idc = -1;
			text = "Cancel";
			x = 0.520496 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action = "closeDialog 0;";
		};
		class dialogPic6: RscPicture
		{
			idc = -1;
			text = "interior\emerald.paa";
			x = 0.412763 * safezoneW + safezoneX;
			y = 0.478468 * safezoneH + safezoneY;
			w = 0.0320813 * safezoneW;
			h = 0.0690587 * safezoneH;
		};
		class dialogCombo6: RscCombo
		{
			idc = 2672;
			text = "Choose your item";
			x = 0.45638 * safezoneW + safezoneX;
			y = 0.478467 * safezoneH + safezoneY;
			w = 0.120896 * safezoneW;
			h = 0.0229882 * safezoneH;
		};
	};
};

class WGT_INTERIOR7
{
	idd = 10673;
	movingenable = true;
	onLoad = "_this ExecVM 'interior\items.sqf'";
	
	class Controls
	{

		class dialogBox7: BOX
		{
			idc = -1;
			text = "";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogFrame7: RscFrame
		{
			idc = -1;
			text = "Interior Designer";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogChoose7: RscShortcutButton
		{
			idc = -1;
			text = "Spawn";
			x = 0.454806 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action= "[] call fnc_Pos_fired7;_nil=[]ExecVM ""interior\spawn.sqf"";closeDialog 0;";
		};
		class dialogCancel7: RscShortcutButton
		{
			idc = -1;
			text = "Cancel";
			x = 0.520496 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action = "closeDialog 0;";
		};
		class dialogPic7: RscPicture
		{
			idc = -1;
			text = "interior\emerald.paa";
			x = 0.412763 * safezoneW + safezoneX;
			y = 0.478468 * safezoneH + safezoneY;
			w = 0.0320813 * safezoneW;
			h = 0.0690587 * safezoneH;
		};
		class dialogCombo7: RscCombo
		{
			idc = 2673;
			text = "Choose your item";
			x = 0.45638 * safezoneW + safezoneX;
			y = 0.478467 * safezoneH + safezoneY;
			w = 0.120896 * safezoneW;
			h = 0.0229882 * safezoneH;
		};
	};
};


class WGT_INTERIOR8
{
	idd = 10674;
	movingenable = true;
	onLoad = "_this ExecVM 'interior\items.sqf'";
	
	class Controls
	{

		class dialogBox8: BOX
		{
			idc = -1;
			text = "";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogFrame8: RscFrame
		{
			idc = -1;
			text = "Interior Designer";
			x = 0.401725 * safezoneW + safezoneX;
			y = 0.449425 * safezoneH + safezoneY;
			w = 0.186587 * safezoneW;
			h = 0.124143 * safezoneH;
		};
		class dialogChoose8: RscShortcutButton
		{
			idc = -1;
			text = "Spawn";
			x = 0.454806 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action= "[] call fnc_Pos_fired8;_nil=[]ExecVM ""interior\spawn.sqf"";closeDialog 0;";
		};
		class dialogCancel8: RscShortcutButton
		{
			idc = -1;
			text = "Cancel";
			x = 0.520496 * safezoneW + safezoneX;
			y = 0.512518 * safezoneH + safezoneY;
			w = 0.0594089 * safezoneW;
			h = 0.0500295 * safezoneH;
			action = "closeDialog 0;";
		};
		class dialogPic8: RscPicture
		{
			idc = -1;
			text = "interior\emerald.paa";
			x = 0.412763 * safezoneW + safezoneX;
			y = 0.478468 * safezoneH + safezoneY;
			w = 0.0320813 * safezoneW;
			h = 0.0690587 * safezoneH;
		};
		class dialogCombo8: RscCombo
		{
			idc = 2674;
			text = "Choose your item";
			x = 0.45638 * safezoneW + safezoneX;
			y = 0.478467 * safezoneH + safezoneY;
			w = 0.120896 * safezoneW;
			h = 0.0229882 * safezoneH;
		};
	};
};

Link to comment
Share on other sites

any help on my Rclick menu not showing problem? i know extra_rc.hpp has been over in many scripts but i 

have had no luck with it, i'm not even sure if it's the culprit..  for some reason i can't get the menu showing up when trying

to rightclick on an emerald.

 

i liked my extra_rc.hpp and other before but as a recap i'll link the post here 

Link to comment
Share on other sites

Hi,

 

my "extra_rc.hpp" looks like this !

class ExtraRc {
    class ItemRadio {
        class Use {
            text = "Call Evac-Chopper";
            script = "execVM 'custom\JAEM\CallEvacChopper.sqf'";
        };
    };
};

I do not know how to edit the entry for this Script. Can somebody help me ?

Link to comment
Share on other sites

Hi,

 

my "extra_rc.hpp" looks like this !

class ExtraRc {
    class ItemRadio {
        class Use {
            text = "Call Evac-Chopper";
            script = "execVM 'custom\JAEM\CallEvacChopper.sqf'";
        };
    };
};

I do not know how to edit the entry for this Script. Can somebody help me ?

 

You need to put code inside class ExtraRC {};

class ExtraRc {
    class ItemRadio {
        class Use {
            text = "Call Evac-Chopper";
            script = "execVM 'custom\JAEM\CallEvacChopper.sqf'";
        };
    };
class ItemEmerald {
        class PicFrame {
            text = "Picture Frame";
            script = "createDialog ""WGT_INTERIOR1"";";
        };
		class Chairs {
            text = "Chair";
            script = "createDialog ""WGT_INTERIOR2"";";
        };
		class Beds {
            text = "Bed";
            script = "createDialog ""WGT_INTERIOR3"";";
        };
		class Bath {
            text = "Bathroom";
            script = "createDialog ""WGT_INTERIOR4"";";
        };
		class Shelf {
            text = "Shelf";
            script = "createDialog ""WGT_INTERIOR5"";";
        };
		class Misce {
            text = "Misc";
            script = "createDialog ""WGT_INTERIOR6"";";
        };
		class Tablz {
            text = "Table";
            script = "createDialog ""WGT_INTERIOR7"";";
        };
		class extr {
            text = "Exterior";
            script = "createDialog ""WGT_INTERIOR8"";";
        };
    };
}; 

Link to comment
Share on other sites

you have 2 calls for defines.... look in both description.ext and the defines... see if there are two classes the same, take the duplicated call out of the interior/defines.hpp file = bacon

 

I have done this but i still get the same error , dont know if i am missing something.

 

If i upload my files could you have a look?

Link to comment
Share on other sites

Ah you have the watermark mod... Didn't realise that. Yeah I had the same issue with that also so removed the entire watermark call and works fine... Unfortunately I was never able to figure out why it would not work with that.

 

After comparing files though using Beyond Compare I have noticed that the class RscTitles {

 

should be directly under:

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

Like:

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

class RscTitles {

As I say though try removing the watermark addon first and if you get bacon (server starts) then you have at least figured out the cause.

 

Sorry I could not of been more help

Link to comment
Share on other sites

Ah you have the watermark mod... Didn't realise that. Yeah I had the same issue with that also so removed the entire watermark call and works fine... Unfortunately I was never able to figure out why it would not work with that.

 

After comparing files though using Beyond Compare I have noticed that the class RscTitles {

 

should be directly under:

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

Like:

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

class RscTitles {

As I say though try removing the watermark addon first and if you get bacon (server starts) then you have at least figured out the cause.

 

Sorry I could not of been more help

Thx bud i will remove it and go from there.

Link to comment
Share on other sites

Try this:

 

// Control types
#define CT_STATIC           0
#define CT_BUTTON           1
#define CT_EDIT             2
#define CT_SLIDER           3
#define CT_COMBO            4
#define CT_LISTBOX          5
#define CT_TOOLBOX          6
#define CT_CHECKBOXES       7
#define CT_PROGRESS         8
#define CT_HTML             9
#define CT_STATIC_SKEW      10
#define CT_ACTIVETEXT       11
#define CT_TREE             12
#define CT_STRUCTURED_TEXT  13
#define CT_CONTEXT_MENU     14
#define CT_CONTROLS_GROUP   15
#define CT_SHORTCUTBUTTON   16
#define CT_BOX 				17
#define CT_XKEYDESC         40
#define CT_XBUTTON          41
#define CT_XLISTBOX         42
#define CT_XSLIDER          43
#define CT_XCOMBO           44
#define CT_ANIMATED_TEXTURE 45
#define CT_OBJECT           80
#define CT_OBJECT_ZOOM      81
#define CT_OBJECT_CONTAINER 82
#define CT_OBJECT_CONT_ANIM 83
#define CT_LINEBREAK        98
#define CT_USER             99
#define CT_MAP              100
#define CT_MAP_MAIN         101
#define CT_LISTNBOX         102

// Static styles
#define ST_POS            0x0F
#define ST_HPOS           0x03
#define ST_VPOS           0x0C
#define ST_LEFT           0x00
#define ST_RIGHT          0x01
#define ST_CENTER         0x02
#define ST_DOWN           0x04
#define ST_UP             0x08
#define ST_VCENTER        0x0C
#define ST_GROUP_BOX       96
#define ST_GROUP_BOX2      112
#define ST_ROUNDED_CORNER  ST_GROUP_BOX + ST_CENTER
#define ST_ROUNDED_CORNER2 ST_GROUP_BOX2 + ST_CENTER

#define ST_TYPE           0xF0
#define ST_SINGLE         0x00
#define ST_MULTI          0x10
#define ST_TITLE_BAR      0x20
#define ST_PICTURE        0x30
#define ST_FRAME          0x40
#define ST_BACKGROUND     0x50
#define ST_GROUP_BOX      0x60
#define ST_GROUP_BOX2     0x70
#define ST_HUD_BACKGROUND 0x80
#define ST_TILE_PICTURE   0x90
#define ST_WITH_RECT      0xA0
#define ST_LINE           0xB0

#define ST_SHADOW         0x100
#define ST_NO_RECT        0x200
#define ST_KEEP_ASPECT_RATIO  0x800

#define ST_TITLE          ST_TITLE_BAR + ST_CENTER

// Slider styles
#define SL_DIR            0x400
#define SL_VERT           0
#define SL_HORZ           0x400

#define SL_TEXTURES       0x10

// progress bar 
#define ST_VERTICAL       0x01
#define ST_HORIZONTAL     0

// Listbox styles
#define LB_TEXTURES       0x10
#define LB_MULTI          0x20

// Tree styles
#define TR_SHOWROOT       1
#define TR_AUTOCOLLAPSE   2

// MessageBox styles
#define MB_BUTTON_OK      1
#define MB_BUTTON_CANCEL  2
#define MB_BUTTON_USER    4


////////////////
//Base Classes//
////////////////

class RscFrame
{
    type = CT_STATIC;
    idc = -1;
    style = ST_FRAME;
    shadow = 2;
    colorBackground[] = {1,1,1,1};
    colorText[] = {1,1,1,0.9};
    font = "Bitstream";
    sizeEx = 0.03;
    text = "";
};

class BOX
{ 
   type = CT_STATIC;
    idc = -1;
    style = ST_CENTER;
    shadow = 2;
    colorText[] = {1,1,1,1};
    font = "Bitstream";
    sizeEx = 0.02;
    colorBackground[] = { 0.2,0.2,0.2, 0.8 }; 
    text = ""; 

};

class RscCombo
{
	access = 0;
	type = 4;
	style = 0;
	colorSelect[] = {0.023529,0,0.0313725,1};
	colorText[] = {0.023529,0,0.0313725,1};
	colorBackground[] = {0.95,0.95,0.95,1};
	colorScrollbar[] = {0.023529,0,0.0313725,1};
	soundSelect[] = {"",0.1,1};
	soundExpand[] = {"",0.1,1};
	soundCollapse[] = {"",0.1,1};
	maxHistoryDelay = 1;
	class ScrollBar
	{
		color[] = {1,1,1,0.6};
		colorActive[] = {1,1,1,1};
		colorDisabled[] = {1,1,1,0.3};
		shadow = 0;
		thumb = "\ca\ui\data\ui_scrollbar_thumb_ca.paa";
		arrowFull = "\ca\ui\data\ui_arrow_top_active_ca.paa";
		arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa";
		border = "\ca\ui\data\ui_border_scroll_ca.paa";
	};
	x = 0;
	y = 0;
	w = 0.12;
	h = 0.035;
	shadow = 0;
	colorSelectBackground[] = {0.8784,0.8471,0.651,1};
	arrowEmpty = "\ca\ui\data\ui_arrow_combo_ca.paa";
	arrowFull = "\ca\ui\data\ui_arrow_combo_active_ca.paa";
	wholeHeight = 0.45;
	color[] = {0,0,0,0.6};
	colorActive[] = {0,0,0,1};
	colorDisabled[] = {0,0,0,0.3};
	font = "Zeppelin32";
	sizeEx = 0.03921;
};

class RscShortcutButton
{
	type = 16;
	x = 0.1;
	y = 0.1;
	class HitZone
	{
		left = 0.004;
		top = 0.029;
		right = 0.004;
		bottom = 0.029;
	};
	class ShortcutPos
	{
		left = 0.0145;
		top = 0.026;
		w = 0.0392157;
		h = 0.0522876;
	};
	class TextPos
	{
		left = 0.05;
		top = 0.034;
		right = 0.005;
		bottom = 0.005;
	};
	shortcuts[] = {};
	textureNoShortcut = "#(argb,8,8,3)color(0,0,0,0)";
	color[] = {0.8784,0.8471,0.651,1};
	color2[] = {0.95,0.95,0.95,1};
	colorDisabled[] = {1,1,1,0.25};
	colorBackground[] = {1,1,1,1};
	colorBackground2[] = {1,1,1,0.4};
	class Attributes
	{
		font = "Zeppelin32";
		color = "#E5E5E5";
		align = "left";
		shadow = "true";
	};
	idc = -1;
	style = 0;
	default = 0;
	shadow = 2;
	w = 0.183825;
	h = 0.104575;
	periodFocus = 1.2;
	periodOver = 0.8;
	animTextureNormal = "\ca\ui\data\ui_button_normal_ca.paa";
	animTextureDisabled = "\ca\ui\data\ui_button_disabled_ca.paa";
	animTextureOver = "\ca\ui\data\ui_button_over_ca.paa";
	animTextureFocused = "\ca\ui\data\ui_button_focus_ca.paa";
	animTexturePressed = "\ca\ui\data\ui_button_down_ca.paa";
	animTextureDefault = "\ca\ui\data\ui_button_default_ca.paa";
	period = 0.4;
	font = "Zeppelin32";
	size = 0.03921;
	sizeEx = 0.03921;
	text = "";
	soundEnter[] = {"\ca\ui\data\sound\onover",0.09,1};
	soundPush[] = {"\ca\ui\data\sound\new1",0,0};
	soundClick[] = {"\ca\ui\data\sound\onclick",0.07,1};
	soundEscape[] = {"\ca\ui\data\sound\onescape",0.09,1};
	action = "";
	class AttributesImage
	{
		font = "Zeppelin32";
		color = "#E5E5E5";
		align = "left";
	};
};

 

I compared your defines to mine and had a few lines missing.

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
  • Advertisement
×
×
  • Create New...