Jump to content

Custom Spawn Dialog with Gear & HALO Selection, moving Map, Credits, Custom spawns and more ...


Halvhjearne

Recommended Posts

Thanks rvg?! I knew it was saying to add something but, didn't know what or where.

How do you know what to put inside the class and which control to put it under? For instance, with thanks to you, that one is now cleared but, now I have another one and I have a feeling there will be more... 

The next one I have is below:

 

spawn_error.jpg

Link to comment
Share on other sites

1 hour ago, ReDBaroN said:

Thanks rvg. I don't seem to have a base class for HALV_gear_list in Halv_defines.hpp..... Any ideas where I should add it?

Thanks again for all your help. 

The halv_defines.hpp is just a ressource (stylesheet) for all the buttons, background and so on in his dialogs.

Link to comment
Share on other sites

Ok, Sorry then that I'm being thick with all this stuff but, should both fixes have gone in spawndialog.hpp?

If so, would you guys mind giving me a steer as to where to insert? I've already tried putting the line  

pictureColor[] = {0,0,0,0}; //no color

as the last line in that  HALV_gear_list block in spawndialog.hpp and I still get the error.... 

Link to comment
Share on other sites

I just tried this:

		class HALV_gear_list: HALV_CT_TREE
		{
			idc = 7779;
			x = 0.35567 * safezoneW + safezoneX;
			y = 0.137091 * safezoneH + safezoneY;
			w = 0.438144 * safezoneW;
			h = 0.725818 * safezoneH;
			onTreeDblClick = "_this call Halv_ontreedoubleclick; false";
			onTreeSelChanged = "_this call Halv_ontreeselected; false";
			class colorPicture {
				pictureColor[] = {0,0,0,0}; //no color
			};
		};

and the error has changed to this:

 

spawn_error2.jpg

Just seen your latest post so, will try those. But, do I have the block correct?

Link to comment
Share on other sites

I have now tried this:

		class HALV_gear_list: HALV_CT_TREE
		{
			idc = 7779;
			x = 0.35567 * safezoneW + safezoneX;
			y = 0.137091 * safezoneH + safezoneY;
			w = 0.438144 * safezoneW;
			h = 0.725818 * safezoneH;
			onTreeDblClick = "_this call Halv_ontreedoubleclick; false";
			onTreeSelChanged = "_this call Halv_ontreeselected; false";
		};
		class colorPicture {Color[] = {1,1,1,1};};
	};
};

and I'm back to the first error....

Link to comment
Share on other sites

it should look like this:

\addons\halv_spawn\spawndialog.hpp

 

	class HALV_gear_list: HALV_CT_TREE
		{
			idc = 7779;
			x = 0.35567 * safezoneW + safezoneX;
			y = 0.137091 * safezoneH + safezoneY;
			w = 0.438144 * safezoneW;
			h = 0.725818 * safezoneH;
			onTreeDblClick = "_this call Halv_ontreedoubleclick; false";
			onTreeSelChanged = "_this call Halv_ontreeselected; false";
			colorPicture[] = {0.8,0,0,0.8};
			colorPictureSelected[] = {0.8,0,0,0.8};
			colorPictureDisabled[] = {0.8,0,0,0.8};
			colorPictureRight[] = {0.8,0,0,0.8};
			colorPictureRightSelected[] = {0.8,0,0,0.8};
			colorPictureRightDisabled[] = {0.8,0,0,0.8};
			
		};
Link to comment
Share on other sites

hey, this has sorted it perfectly :) Big thanks for your help!

I also used the same for the next error that came up with the Halv's Blackmarket trader for colorPicture and although it changed all the menus to red, it got rid of the error. I have changed the colours from 0.8,0,0,0.8 to 0,0,0,0 but, seem to have lost the icons for the items now so, will have a mess around with the colours and report back. 

That is, unless you already know what the colours should be in there.... ?

thanks again for your help man :biggrin:

Link to comment
Share on other sites

3 hours ago, ReDBaroN said:

cheers man. I'll keep trying as well. This stuff is enough to drive you crazy.... :wacko:

Ghostrider-DbD-, did you manage to nail this? You mentioned earlier that you were going through it as well....

Those fixes seem to be working fine on a test server. I will be rolling them out live later tonight. I am not very knowledgeable about dialogs and the suggestions from rvg?! are really appreciated.

Link to comment
Share on other sites

On 6/9/2016 at 6:35 PM, rvg?! said:

well it says what you should do, add a class linemarker.

So add this to HALV_RscMapControl:


class LineMarker

{

lineDistanceMin = 3e-005;

lineLengthMin = 2;

lineWidthThick = 0.013;

lineWidthThin = 0.005;

textureComboBoxColor = "#(argb,8,8,3)color(1,1,1,1)";

}

 

Confirmed working for me.

Link to comment
Share on other sites

  • 2 weeks later...
22.06.2016 21:26:16: Omar (127.0.0.1:2316) a894cf41f26ec6af5e75ddac567e71d0 - #0 "briefing\enddefault_ca.paa'/>",0,0,15,0,0,8406] spawn bis_fnc_dynamicText;
};
};
}else{
player setPos _position;
titleText[forma"
//Solution Line 2 !=\"briefing\enddefault_ca.paa'/>\",0,0,15,0,0,8406] spawn bis_fnc_dynamicText;};\n};\n}else{\nplayer setPos _position;\ntitleText[forma\"

22.06.2016 21:33:07: Omar (127.0.0.1:2304) a894cf41f26ec6af5e75ddac567e71d0 - #15 "eCollisionWith player;
player moveInDriver _chute;
_chute setVelocity [0,0,0];
waitUntil{vehicle player isEqualTo _chute};
if (a"
//Solution line 17 !="eCollisionWith player;\nplayer moveInDriver _chute;\n_chute setVelocity [0,0,0];\nwaitUntil{vehicle player isEqualTo _chute};\nif (a"

22.06.2016 21:38:28: Omar (127.0.0.1:2304) a894cf41f26ec6af5e75ddac567e71d0 - #21 "1 to _ammoamount do {
			_rnd = _ammo select 0;
			player addMagazine _rnd;
		};
	};
	player addWeapon _this;
	player selectWeap"
//Solution Line 22 !="_rnd = _ammo select 0;" >>>> !="player addMagazine _rnd;" >>>> !="player addMagazine _rnd;" >>>> !="_rnd = _ammo select 0;" >>>> !="player addMagazine _rnd;"

22.06.2016 21:47:42: Omar (127.0.0.1:2304) a894cf41f26ec6af5e75ddac567e71d0 - #24 "m = (_geararr select 9) call BIS_fnc_selectRandom;
player addbackpack _item;
(_addedgear select 9) pushBack ['random',_item];
}e"
//Solution Line 26 !="player addbackpack _item;" >>>> !="(_addedgear select 9) pushBack ['random',_item];"

22.06.2016 21:50:57: Omar (127.0.0.1:2304) a894cf41f26ec6af5e75ddac567e71d0 - #27 "NEEDTOBEDONER"};
closeDialog 0;
if(_removedefault)then{
removeAllWeapons player;removeAllItems player;removeAllAssignedItems pla"
//Solution Line 29 !="removeAllWeapons player;" 
//Solution Line 30 !="removeAllItems player;"

22.06.2016 21:56:47: Omar (127.0.0.1:2304) a894cf41f26ec6af5e75ddac567e71d0 - #43 "elect 7) select _sel) call BIS_fnc_selectRandom;
player forceAddUniform _item;
(_addedgear select 7) pushBack ['random',_item];
"
//Solution Line 45 !="player forceAddUniform _item;"

22.06.2016 21:59:19: Omar (127.0.0.1:2304) a894cf41f26ec6af5e75ddac567e71d0 - #45 "emoveAction _action;
if !(HALV_openchute)exitWith{
player setDammage 1;
HALV_openchute = nil;
};
HALV_openchute = nil;
privat"
//Solution Line 47 !="player setDammage 1;"

If anyone is getting battle eye kicks here is each and every kick I received with the posted solution. I may have added unnecessary exceptions in one or two logs, but in the end I got into my server and everything was working. 

Link to comment
Share on other sites

  • 4 weeks later...

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