Jump to content
  • 0

Virtual Garage error


nikas455

Question

16 answers to this question

Recommended Posts

  • 0

Looks like you need to add a soundSelect property to the VehicleList class in that dialog. The soundSelect property will look something like this depending on the type of control. However this shouldn't effect functionality.

	soundSelect[] = 
	{
		"\A3\ui_f\data\sound\RscListbox\soundSelect",
		0.09,
		1
	};
Link to comment
Share on other sites

  • 0
  On 7/19/2015 at 6:10 PM, TheHound said:

 

Looks like you need to add a soundSelect property to the VehicleList class in that dialog. The soundSelect property will look something like this depending on the type of control. However this shouldn't effect functionality.

	soundSelect[] = 
	{
		"\A3\ui_f\data\sound\RscListbox\soundSelect",
		0.09,
		1
	};

it is for arma 2 or 3 ?

Link to comment
Share on other sites

  • 0

The example I used was from ArmA 3 ( I don't have ArmA 2 installed ) but the property will still be similar, just the directory will be different. Can you link the mod you are referring to? I can look through those files and give a more detailed answer. EDIT: You should be able to use this property for ArmA 2.

soundSelect[] = {"", 0.1, 1};
Link to comment
Share on other sites

  • 0
  On 7/20/2015 at 5:17 PM, TheHound said:

 

The example I used was from ArmA 3 ( I don't have ArmA 2 installed ) but the property will still be similar, just the directory will be different. Can you link the mod you are referring to? I can look through those files and give a more detailed answer. EDIT: You should be able to use this property for ArmA 2.

soundSelect[] = {"", 0.1, 1};
// Developed by [GZA] David for German Zombie Apocalypse Servers (https://zombieapo.eu/)
class vehicle_garage
{
	idd = 2800;
	name="vehicle_garage";
	movingEnabled = 0;
	enableSimulation = 1;
	
	class controlsBackground
	{
		class Life_RscTitleBackground : Life_RscText
		{
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
			idc = -1;
			x = 0.1;
			y = 0.2;
			w = 0.8;
			h = (1 / 25);
		};
		
		class MainBackground : Life_RscText
		{
			colorBackground[] = {0,0,0,0.7};
			idc = -1;
			x = 0.1;
			y = 0.2 + (11 / 250);
			w = 0.8;
			h = 0.7 - (22 / 250);
		};
		
		class Title : Life_RscTitle
		{
			idc = 2801;
			text = "Garage";
			x = 0.1;
			y = 0.2;
			w = 0.8;
			h = (1 / 25);
		};
		
		class VehicleTitleBox : Life_RscText
		{
			idc = -1;
			text = "Your Vehicles";
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
			x = 0.11; y = 0.26;
			w = 0.3;
			h = (1 / 25);
		};
		
		class VehicleInfoHeader : Life_RscText
		{
			idc = 2830;
			text = "Vehicle Info";
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
			x = 0.42; y = 0.26;
			w = 0.46;
			h = (1 / 25);
		};
		
		class CloseBtn : Life_RscButtonMenu
		{
			idc = -1;
			text = "Close";
			onButtonClick = "closeDialog 0;";
			x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
			y = 0.9 - (1 / 25);
			w = (6.25 / 40);
			h = (1 / 25);
		};
		
		class RentCar : Life_RscButtonMenu
		{
			idc = -1;
			text = "Get Vehicle";
			onButtonClick = "[] spawn player_getVehicle;";
			x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
			y = 0.9 - (1 / 25);
			w = (6.25 / 40);
			h = (1 / 25);
		};
	};
	
	class controls
	{
		class VehicleList : life_RscListBox
		{
			idc = 2802;
			text = "";
			sizeEx = 0.04;
			colorBackground[] = {0.1,0.1,0.1,0.9};
			onLBSelChanged = "";
			
			//Position & height
			x = 0.11; y = 0.302;
			w = 0.303; h = 0.49;
		};
		
		class vehicleInfomationList : Life_RscStructuredText
		{
			idc = 2803;
			text = "";
			sizeEx = 0.035;
			
			x = 0.41; y = 0.3;
			w = 0.5; h = 0.5;
		};
		
		class MainBackgroundHider : Life_RscText
		{
			colorBackground[] = {0,0,0,1};
			idc = 2810;
			x = 0.1;
			y = 0.2 + (11 / 250);
			w = 0.8;
			h = 0.7 - (22 / 250);
		};
		
		class MainHideText : Life_RscText
		{
			idc = 2811;
			text = "Search for vehicles ...";
			sizeEx = 0.06;
			x = 0.24; y = 0.5;
			w = 0.6;
			h = (1 / 15);
		};
	};
};


class vehicle_store_list
{
	idd = 3800;
	name="vehicle_store_list";
	movingEnabled = 0;
	enableSimulation = 1;
	
	class controlsBackground
	{
		class Life_RscTitleBackground : Life_RscText
		{
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
			idc = -1;
			x = 0.1;
			y = 0.2;
			w = 0.8;
			h = (1 / 25);
		};
		
		class MainBackground : Life_RscText
		{
			colorBackground[] = {0,0,0,0.7};
			idc = -1;
			x = 0.1;
			y = 0.2 + (11 / 250);
			w = 0.8;
			h = 0.7 - (22 / 250);
		};
		
		class Title : Life_RscTitle
		{
			idc = 3801;
			text = "Vehicle List";
			x = 0.1;
			y = 0.2;
			w = 0.8;
			h = (1 / 25);
		};
		
		class VehicleTitleBox : Life_RscText
		{
			idc = -1;
			text = "Vehicles nearby";
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
			x = 0.11; y = 0.26;
			w = 0.3;
			h = (1 / 25);
		};
		
		class VehicleInfoHeader : Life_RscText
		{
			idc = 3830;
			text = "Vehicle Info";
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
			x = 0.42; y = 0.26;
			w = 0.46;
			h = (1 / 25);
		};
		
		class CloseBtn : Life_RscButtonMenu
		{
			idc = -1;
			text = "Close";
			onButtonClick = "closeDialog 0;";
			x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
			y = 0.9 - (1 / 25);
			w = (6.25 / 40);
			h = (1 / 25);
		};
		
		class RentCar : Life_RscButtonMenu
		{
			idc = -1;
			text = "Store Vehicle";
			onButtonClick = "_wogear = true; [_wogear] spawn player_storeVehicle;";
			x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
			y = 0.9 - (1 / 25);
			w = (6.25 / 36);
			h = (1 / 25);
		};
		
		class Rent1Car : Life_RscButtonMenu
		{
			idc = -1;
			text = "Store Vehicle with Gear";
			onButtonClick = "_wogear = false; [_wogear] spawn player_storeVehicle;";
			x = 0.26 + (6.25 / 36) + (1 / 250 / (safezoneW / safezoneH));
			y = 0.9 - (1 / 25);
			w = (6.25 / 20);
			h = (1 / 25);
		};
	};
	
	class controls
	{
		class VehicleList : life_RscListBox
		{
			idc = 3802;
			text = "";
			sizeEx = 0.04;
			colorBackground[] = {0.1,0.1,0.1,0.9};
			onLBSelChanged = "_this call vehicle_info;";
			
			//Position & height
			x = 0.11; y = 0.302;
			w = 0.303; h = 0.49;
		};
		
		class vehicleInfomationList : Life_RscStructuredText
		{
			idc = 3803;
			text = "";
			sizeEx = 0.035;
			
			x = 0.41; y = 0.3;
			w = 0.5; h = 0.5;
		};
		
		class MainBackgroundHider : Life_RscText
		{
			colorBackground[] = {0,0,0,1};
			idc = 3810;
			x = 0.1;
			y = 0.2 + (11 / 250);
			w = 0.8;
			h = 0.7 - (22 / 250);
		};
		
		class MainHideText : Life_RscText
		{
			idc = 3811;
			text = "Search for vehicles ...";
			sizeEx = 0.06;
			x = 0.24; y = 0.5;
			w = 0.6;
			h = (1 / 15);
		};
	};
};
Link to comment
Share on other sites

  • 0

There should be another file named defines.hpp or some other .hpp filename, that's the actual file where those properties are defined. I believe you can also define them directly in that file you linked but haven't done them that way and won't fix it for all dialogs that use that "life_RscListBox" class. Please post the other file or link me to the mod itself and I will download it and have a look.

Link to comment
Share on other sites

  • 0
  On 7/20/2015 at 6:57 PM, TheHound said:

There should be another file named defines.hpp or some other .hpp filename, that's the actual file where those properties are defined. I believe you can also define them directly in that file you linked but haven't done them that way and won't fix it for all dialogs that use that "life_RscListBox" class. Please post the other file or link me to the mod itself and I will download it and have a look.

class Life_RscListBox 
{
	style = 16;
	idc = -1;
	type = 5;
	w = 0.275;
	h = 0.04;
	font = "Zeppelin32";
	colorSelect[] = {1, 1, 1, 1};
	colorText[] = {1, 1, 1, 1};
	colorBackground[] = {0.28,0.28,0.28,0.28};
	colorSelect2[] = {1, 1, 1, 1};
	colorSelectBackground[] = {0.95, 0.95, 0.95, 0.5};
	colorSelectBackground2[] = {1, 1, 1, 0.5};
	colorScrollbar[] = {0.2, 0.2, 0.2, 1};
	arrowFull = "Scripts\Gold_Coin_system\Gui\arrowFull_ca.paa";
	arrowEmpty = "Scripts\Gold_Coin_system\Gui\arrowEmpty_ca.paa";
	wholeHeight = 0.45;
	rowHeight = 0.04;
	color[] = {0.7, 0.7, 0.7, 1};
	colorActive[] = {0,0,0,1};
	colorDisabled[] = {0,0,0,0.3};
	sizeEx = 0.023;
	maxHistoryDelay = 1;
	autoScrollSpeed = -1;
	autoScrollDelay = 5;
	autoScrollRewind = 0;
	tooltipColorText[] = {1,1,1,1};
	tooltipColorBox[] = {1,1,1,1};
	tooltipColorShade[] = {0,0,0,0.65};
	class ListScrollBar: Life_RscScrollBar
	{
		color[] = {1,1,1,1};
		autoScrollEnabled = 1;
	};
	soundPush[] = { "", 0, 1 };
	soundEnter[] =	{ "", 0, 1 };
	soundClick[] ={ "", 0, 1 };
	soundEscape[] ={ "", 0, 1 };
	sound[] ={ "", 0, 1 };
};
Link to comment
Share on other sites

  • 0

Yup add 

soundSelect[] = {"", 0.1, 1};

 to where those other sounds are defined in that section, I'm not sure if those are case sensitive however so make sure there isn't another class with a lowercase "l" in life. But adding that line to make it look like this 

class Life_RscListBox 
{
	style = 16;
	idc = -1;
	type = 5;
	w = 0.275;
	h = 0.04;
	font = "Zeppelin32";
	colorSelect[] = {1, 1, 1, 1};
	colorText[] = {1, 1, 1, 1};
	colorBackground[] = {0.28,0.28,0.28,0.28};
	colorSelect2[] = {1, 1, 1, 1};
	colorSelectBackground[] = {0.95, 0.95, 0.95, 0.5};
	colorSelectBackground2[] = {1, 1, 1, 0.5};
	colorScrollbar[] = {0.2, 0.2, 0.2, 1};
	arrowFull = "Scripts\Gold_Coin_system\Gui\arrowFull_ca.paa";
	arrowEmpty = "Scripts\Gold_Coin_system\Gui\arrowEmpty_ca.paa";
	wholeHeight = 0.45;
	rowHeight = 0.04;
	color[] = {0.7, 0.7, 0.7, 1};
	colorActive[] = {0,0,0,1};
	colorDisabled[] = {0,0,0,0.3};
	sizeEx = 0.023;
	maxHistoryDelay = 1;
	autoScrollSpeed = -1;
	autoScrollDelay = 5;
	autoScrollRewind = 0;
	tooltipColorText[] = {1,1,1,1};
	tooltipColorBox[] = {1,1,1,1};
	tooltipColorShade[] = {0,0,0,0.65};
	class ListScrollBar: Life_RscScrollBar
	{
		color[] = {1,1,1,1};
		autoScrollEnabled = 1;
	};
	soundPush[] = { "", 0, 1 };
	soundEnter[] =	{ "", 0, 1 };
	soundClick[] ={ "", 0, 1 };
	soundEscape[] ={ "", 0, 1 };
	sound[] ={ "", 0, 1 };
        soundSelect[] = {"", 0.1, 1};
};

will fix your error if there isn't another class named "life_RscListBox". There may however end up being another error if another definition is mission, if that happens post it in here the same way I will post the fix for that one.

Link to comment
Share on other sites

  • 0
  On 7/20/2015 at 9:40 PM, TheHound said:

Yup add 

soundSelect[] = {"", 0.1, 1};

 to where those other sounds are defined in that section, I'm not sure if those are case sensitive however so make sure there isn't another class with a lowercase "l" in life. But adding that line to make it look like this 

class Life_RscListBox 
{
	style = 16;
	idc = -1;
	type = 5;
	w = 0.275;
	h = 0.04;
	font = "Zeppelin32";
	colorSelect[] = {1, 1, 1, 1};
	colorText[] = {1, 1, 1, 1};
	colorBackground[] = {0.28,0.28,0.28,0.28};
	colorSelect2[] = {1, 1, 1, 1};
	colorSelectBackground[] = {0.95, 0.95, 0.95, 0.5};
	colorSelectBackground2[] = {1, 1, 1, 0.5};
	colorScrollbar[] = {0.2, 0.2, 0.2, 1};
	arrowFull = "Scripts\Gold_Coin_system\Gui\arrowFull_ca.paa";
	arrowEmpty = "Scripts\Gold_Coin_system\Gui\arrowEmpty_ca.paa";
	wholeHeight = 0.45;
	rowHeight = 0.04;
	color[] = {0.7, 0.7, 0.7, 1};
	colorActive[] = {0,0,0,1};
	colorDisabled[] = {0,0,0,0.3};
	sizeEx = 0.023;
	maxHistoryDelay = 1;
	autoScrollSpeed = -1;
	autoScrollDelay = 5;
	autoScrollRewind = 0;
	tooltipColorText[] = {1,1,1,1};
	tooltipColorBox[] = {1,1,1,1};
	tooltipColorShade[] = {0,0,0,0.65};
	class ListScrollBar: Life_RscScrollBar
	{
		color[] = {1,1,1,1};
		autoScrollEnabled = 1;
	};
	soundPush[] = { "", 0, 1 };
	soundEnter[] =	{ "", 0, 1 };
	soundClick[] ={ "", 0, 1 };
	soundEscape[] ={ "", 0, 1 };
	sound[] ={ "", 0, 1 };
        soundSelect[] = {"", 0.1, 1};
};

will fix your error if there isn't another class named "life_RscListBox". There may however end up being another error if another definition is mission, if that happens post it in here the same way I will post the fix for that one.

thank you !

Link to comment
Share on other sites

  • 0

Hi all,

 

have another error in my client rpt:

  Reveal hidden contents

 

The script seems to work. Everything is saved. But how can i fix the client rpt errors? In my fn_selfActions.sqf i have paste the code from this post:

 

Thanks

Link to comment
Share on other sites

  • 0

Sure.. here it is...

 

 

  Reveal hidden contents

Link to comment
Share on other sites

  • 0

Well looking at that it would seem you *should* be able to merge the 2 private arrays. Make sure you back up your files before trying it just in case. Merge the private array at line 1015 in to the one at line 7 so that the new array at 7 looks like this 

private ["_isWreckBuilding","_temp_keys","_magazinesPlayer","_isPZombie","_vehicle","_inVehicle","_hasFuelE","_hasRawMeat","_hasKnife","_hasToolbox","_onLadder","_nearLight","_canPickLight","_canDo","_text","_isHarvested","_isVehicle","_isVehicletype","_isMan","_traderType","_ownerID","_isAnimal","_isDog","_isZombie","_isDestructable","_isTent","_isFuel","_isAlive","_Unlock","_lock","_buy","_dogHandle","_lieDown","_warn","_hastinitem","_allowedDistance","_menu","_menu1","_humanity_logic","_low_high","_cancel","_metals_trader","_traderMenu","_isWreck","_isRemovable","_isDisallowRepair","_rawmeat","_humanity","_speed","_dog","_hasbottleitem","_isAir","_isShip","_playersNear","_findNearestGens","_findNearestGen","_IsNearRunningGen","_cursorTarget","_isnewstorage","_itemsPlayer","_ownerKeyId","_typeOfCursorTarget","_hasKey","_oldOwner","_combi","_key_colors","_player_deleteBuild","_player_flipveh","_player_lockUnlock_crtl","_player_butcher","_player_studybody","_player_cook","_player_boil","_hasFuelBarrelE","_hasHotwireKit","_player_SurrenderedGear","_isSurrendered","_isModular","_isModularDoor","_ownerKeyName","_temp_keys_names","_hasAttached","_allowTow","_liftHeli","_found","_posL","_posC","_height","_liftHelis","_attached","_playerUID","_characterID","_plotDistance","_PlotsNear", "_classname","_isowner","_nearestPoles","_pole","_garagefriends","_garageallowed","_friends"];

and then remove the entire line at 1015 and see if that works, if everything is still functional and that removes the errors in your RPT except for the first one dealing with "s_player_garage" you should be all set. The one mentioning s_player_garage would probably not be possible to get out of your RPT since it's a global variable assigned inside of that if then statement, as far as I know it coming up in the RPT is just a bug, been a while since I've dealt with ArmA 2 though. Please let me know how you make out and if I can help you any further.

Link to comment
Share on other sites

  • 0

Hey :)

 

Thanks for the help.

 

Unfortunately the errors are still there. The problem is that even if you only stand still and do nothing the client rpt is size is rising. So i have to sadly deactivate the script. In the time when i was writing this the file size went from 102kb to 479kb only by being online. Don't want to find out how much the file would be after a long playing time ^^

 

It must be something different on my server so that these errors comes up. Because alot of ppl have this script but don't complain about these errors. So i have to deal with it right now.

Link to comment
Share on other sites

  • 0

The RPT on ArmA 2 servers always seemed to have a lot of these errors, the thing is the error it's referring to doesn't actually exist as the variable _typeofcursortarget is defined earlier in that fn_selfactions file at line 123. If the script itself is still working it would have to be defined or you wouldn't get an action menu option the garage. Honestly it should be perfectly fine to be ignored and set up the rotatelogs.bat tool (or something named like that in the server files, been a few years since I ran our ArmA 2 servers) and have it delete logs older than say 5. You should never hit a very large amount of space on the logs and all should be well, alternatively you could run with the -noLogs parameter but that is not recommended since you may need to refer to them for other things (cheating, admin abuse, other crucial errors). I would assume this appearing in the RPT is some type of bug with ArmA 2 since the variable it is referring to is clearly defined.

 

EDIT: Downloaded the server files and the tools I'm referring to is the rotate_logs.bat, configure this and add it to your restart loop and it will clear the old logs on restarts and the space it will take up won't be an issue.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...