Jump to content
AshleyMosey

Description.ext & Advanced Hints

Recommended Posts

So im trying to add an Advanced Hint to my mission so that I can have it pop up when players join my server 

im still in the testing phase but if I put the below into my Description.ext I get '.c':' ' encountered instead of  '=' and I cant figure out why 

iv even put it into its own file hintscfg.hpp & done #include "hintscfg.hpp" but I still get the same error 

Description.ext

Spoiler

#include "hintscfg.hpp"
author            = "Captan Chunck";
OnLoadName        = "Warlords Takistan";
OnLoadMission    = "Sector Control / PvP as well as COOP and even solo play against the AI. if black screen persits on load respawn";
loadScreen        = "epicfaillogo.paa";

class Params
{
class MKY_EFX
{
        title = "Sand Particle EFX strength";
        values[] = {0,1,2,3,4};
        texts[] = {"Random","Light","Moderate","Heavy","Disabled"};
        default = 0;
};
class BIS_WLStartingDaytime
{
    title = $STR_A3_combatpatrol_params_1;
    values[] = {100, -6, 0, 6, -12};
    texts[] = {$STR_A3_WL_param37_value1, $STR_A3_combatpatrol_params_3, $STR_A3_MP_COOP_m03_noon, $STR_A3_MP_COOP_m03_evening, $STR_A3_combatpatrol_params_6};
    default = -6;
};
class BIS_WLTimeAcceleration
{
    title = $STR_A3_WL_param2_title;
    values[] = {1, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24};
    texts[] = {$STR_special_none, "x2", "x4", "x6", "x8", "x10", "x12", "x14", "x16", "x18", "x20", "x22", "x24"};
    default = 6;
};
class BIS_WLProgress
{
    title = $STR_A3_WL_param1_title;
    values[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13};
    texts[] = {$STR_special_none,$STR_A3_WL_forcedProgress_perc_1,$STR_A3_WL_forcedProgress_perc_2,$STR_A3_WL_forcedProgress_perc_3,$STR_A3_WL_forcedProgress_perc_4,$STR_A3_WL_forcedProgress_perc_5,$STR_A3_WL_forcedProgress_perc_6,$STR_A3_WL_forcedProgress_perc_7,$STR_A3_WL_forcedProgress_perc_8,$STR_A3_WL_forcedProgress_perc_9,$STR_A3_WL_forcedProgress_perc_10,$STR_A3_WL_forcedProgress_perc_11,$STR_A3_WL_forcedProgress_perc_12};
    default = 1;
};
class BIS_WLFTEnabled
{
    title = $STR_A3_fastravel1;
    values[] = {1, 0, 2, 3, 4};
    texts[] = {$STR_A3_WL_param3_value1, $STR_A3_WL_param3_value2, $STR_A3_WL_param3_value3, $STR_A3_WL_param3_value4, $STR_A3_WL_param3_value5};
    default = 1;
};
class BIS_WLScanEnabled
{
    title = $STR_A3_WL_param4_title;
    values[] = {1, 0};
    texts[] = {$STR_DISP_OPT_ENABLED, $STR_DISP_OPT_DISABLED};
    default = 1;
};
class BIS_WLVotingResetEnabled
{
    title = $STR_A3_WL_menu_resetvoting;
    values[] = {1, 0};
    texts[] = {$STR_DISP_OPT_ENABLED, $STR_DISP_OPT_DISABLED};
    default = 1;
};
class BIS_WLAIVoting
{
    title = $STR_A3_WL_param5_title;
    values[] = {1, 0};
    texts[] = {$STR_DISP_OPT_ENABLED, $STR_DISP_OPT_DISABLED};
    default = 0;
};
class BIS_WLArsenalEnabled
{
    title = $STR_A3_Arsenal;
    values[] = {1, 0};
    texts[] = {$STR_DISP_OPT_ENABLED, $STR_DISP_OPT_DISABLED};
    default = 1;
};
class BIS_WLMarkersTransparency
{
    title = $STR_A3_WL_param7_title;
    values[] = {4, 3, 2, 1, 0};
    texts[] = {$STR_A3_WL_param7_value1, $STR_A3_WL_markerAlpha_perc_1, $STR_A3_WL_markerAlpha_perc_2, $STR_A3_WL_markerAlpha_perc_3, $STR_A3_WL_param7_value2};
    default = 2;
};
class BIS_WLPlayersTransparency
{
    title = $STR_A3_WL_param8_title;
    values[] = {4, 3, 2, 1, 0};
    texts[] = {$STR_A3_WL_param7_value1, $STR_A3_WL_markerAlpha_perc_1, $STR_A3_WL_markerAlpha_perc_2, $STR_A3_WL_markerAlpha_perc_3, $STR_A3_WL_param7_value2};
    default = 2;
};
class BIS_WLFatigueEnabled
{
    title = $STR_A3_fatigue1;
    values[] = {1, 0};
    texts[] = {$STR_DISP_OPT_ENABLED, $STR_DISP_OPT_DISABLED};
    default = 0;
};
class BIS_WLMusic
{
    title = $STR_A3_rscattributemusic_title;
    values[] = {1, 0};
    texts[] = {$STR_DISP_OPT_ENABLED, $STR_DISP_OPT_DISABLED};
    default = 1;
};
class BIS_WLVoice
{
    title = $STR_A3_orange_faction_idap_cfgidentities_expo_name;
    values[] = {1, 0};
    texts[] = {$STR_DISP_OPT_ENABLED, $STR_DISP_OPT_DISABLED};
    default = 1;
};
class BIS_WLStartCP
{
    title = $STR_A3_WL_param12_title;
    values[] = {0, 100, 250, 500, 1000, 2500, 5000};
    texts[] = {"0", "100", "250", "500", "1000", "2500", "5000"};
    default = 1000;
};
class BIS_WLCPMultiplier
{
    title = $STR_A3_WL_param13_title;
    values[] = {1, 2, 3, 4, 5};
    texts[] = {"1x", "2x", "3x", "4x", "5x"};
    default = 3;
};
class BIS_WLVotingTimeout
{
    title = $STR_A3_WL_param14_title;
    values[] = {5, 10, 15, 20, 25, 30};
    texts[] = {"5", "10", "15", "20", "25", "30"};
    default = 15;
};
class BIS_WLVehicleSpan
{
    title = $STR_A3_WL_param15_title;
    values[] = {900, 1800, 3600, 5400, 7200, 1000000};
    texts[] = {"15", "30", "60", "90", "120", $STR_A3_WL_param15_value1};
    default = 3600;
};

};
class CfgWLRequisitionPresets
{
    class WLTakistan // --- class name used in the Init module
    {
        class WEST // --- assets available for BLUFOR
        {
            class Infantry
            {
                class rhsusf_army_ocp_ah64_pilot // --- US Army Pilot
                {
                    cost = 100;
                    requirements[]={};
                };
                
                class rhsusf_army_ocp_crewman // --- US Army Co Pilot
                {
                    cost = 100; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class rhsusf_army_ocp_rifleman_10th // --- US Army Infantry
                {
                    cost = 100; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class rhsusf_army_ocp_autorifleman // --- US Army M249 Gunner
                {
                    cost = 150; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class rhsusf_army_ocp_javelin // --- US Army AT
                {
                    cost = 600; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class rhsusf_army_ocp_maaws // --- US Army AT
                {
                    cost = 300; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class rhsusf_army_ocp_aa // --- US Army AA
                {
                    cost = 400; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class rhsusf_army_ocp_sniper // --- US Army AA
                {
                    cost = 400; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class rhsusf_army_ocp_uav // --- US Army AA
                {
                    cost = 400; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class rhsusf_army_ocp_medic // --- US Army AA
                {
                    cost = 400; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
            };
            class Vehicles
            {
                class rhsusf_m1025_d_m2
                {
                    cost = 1000;
                    requirements[]={}; //M1025A2
                };
                
                class rhsusf_m966_d //M1043A2
                {
                    cost = 1500;
                    requirements[]={}; 
                };
                
                class rhsusf_m1043_d_mk19 //M966A1
                {
                    cost = 2000;
                    requirements[]={};
                };
    
                class UK3CB_B_MTVR_Repair_DES //Repair Truck
                {
                    cost = 3000;
                    requirements[]={};
                };
                
                class UK3CB_B_MTVR_Refuel_DES //Refuel Truck
                {
                    cost = 700;
                    requirements[]={};
                };
                
                class UK3CB_B_MTVR_Reammo_DES //Ammo Truck
                {
                    cost = 4000;
                    requirements[]={};
                };
            
                class rhsusf_m1a1aimd_usarmy 
                {
                    cost = 12000;
                    requirements[]={};
                };
                
                class rhsusf_m1a1aim_tuski_d
                {
                    cost = 14000;
                    requirements[]={};
                };
                
                class rhsusf_m1a2sep1d_usarmy
                {
                    cost = 12000;
                    requirements[]={};
                };
                
                class rhsusf_m1a2sep1tuskid_usarmy 
                {
                    cost = 14000;
                    requirements[]={};
                };

                class rhsusf_m113d_usarmy_M240 
                {
                    cost = 1500;
                    requirements[]={};
                };
                
                class rhsusf_m113d_usarmy
                {
                    cost = 2000;
                    requirements[]={};
                };
                
                class rhsusf_m113d_usarmy_MK19 
                {
                    cost = 2000;
                    requirements[]={};
                };
                
            };
            class Aircraft
            {
                class RHS_A10
                {
                    cost = 32000;
                    requirements[]={"A"};
                };

                class RHS_CH_47F_light
                {
                    cost = 20000;
                    requirements[]={"H"};
                };
                
                class RHS_UH60M_d
                {
                    cost = 12000;
                    requirements[]={"H"};
                };
                    
                class RHS_AH64DGrey
                {
                    cost = 24000;
                    requirements[]={"H"};
                };
                class RHS_AH64D
                {
                    cost = 24000;
                    requirements[]={"H"};
                };
                
            };
            class Gear
            {
                class Box_NATO_Ammo_F
                {
                    cost = 200;
                    requirements[]={};
                };
                
                class ACE_medicalSupplyCrate_advanced
                {
                    cost = 200;
                    requirements[]={};
                };
                
                class ACE_NVG_Wide
                {
                    cost = 350;
                    requirements[]={};
                };
            };
            
        };
        class EAST // --- assets available for BLUFOR
        {
            class Infantry
            {
                class UK3CB_TKA_O_JET_PILOT // --- TAK Army Pilot
                {
                    cost = 100; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class UK3CB_TKA_O_CREW // --- US Army Co Pilot
                {
                    cost = 100; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class UK3CB_TKM_O_RIF_1 // --- US Army Infantry
                {
                    cost = 100; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class UK3CB_TKM_O_MG // --- US Army M249 Gunner
                {
                    cost = 150; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class UK3CB_TKM_O_AT // --- US Army AT
                {
                    cost = 500; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
            
                class UK3CB_TKM_O_AA // --- US Army AA
                {
                    cost = 400; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class UK3CB_TKM_O_SNI // --- US Army AA
                {
                    cost = 400; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class UK3CB_TKM_O_SPOT // --- US Army AA
                {
                    cost = 400; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
                class UK3CB_TKM_O_MD // --- US Army AA
                {
                    cost = 400; // --- Command Points required
                    requirements[]={}; // --- dispositions required ("A" = airstrip, "H" = helipad, "W" = water (harbor))
                };
                
            };
            class Vehicles
            {
                class UK3CB_TKM_O_Hilux_Zu23
                {
                    cost = 1500;
                    requirements[]={}; //M1025A2
                };
                
                class UK3CB_TKM_O_Hilux_Spg9 //M1043A2
                {
                    cost = 2000;
                    requirements[]={}; 
                };
                
                class UK3CB_TKM_O_Hilux_Pkm //M966A1
                {
                    cost = 1000;
                    requirements[]={};
                };
                
                class UK3CB_TKM_O_Ural_Zu23 //M966A1
                {
                    cost = 2000;
                    requirements[]={};
                };
                
                class UK3CB_TKM_O_V3S_Zu23 //M966A1
                {
                    cost = 2000;
                    requirements[]={};
                };
                
                class UK3CB_TKM_O_Ural_Repair //Repair Truck
                {
                    cost = 3000;
                    requirements[]={};
                };
                
                class UK3CB_TKM_O_Ural_Fuel //Refuel Truck
                {
                    cost = 700;
                    requirements[]={};
                };
                
                class UK3CB_TKM_O_Ural_Ammo //Ammo Truck
                {
                    cost = 4000;
                    requirements[]={};
                };
            
                class UK3CB_TKM_O_T34
                {
                    cost = 12000;
                    requirements[]={};
                };
                
                class UK3CB_TKM_O_T55
                {
                    cost = 14000;
                    requirements[]={};
                };

                class UK3CB_TKM_O_MTLB_PKT 
                {
                    cost = 1500;
                    requirements[]={};
                };
                
                class UK3CB_TKM_O_BTR60
                {
                    cost = 2000;
                    requirements[]={};
                };
                
                class UK3CB_TKM_O_BMP1 
                {
                    cost = 2500;
                    requirements[]={};
                };
                
            };
            class Aircraft
            {
                class UK3CB_TKA_O_Su25SM_CAS
                {
                    cost = 32000;
                    requirements[]={"A"};
                };
                
                class UK3CB_TKA_O_Antonov_AN2_Armed
                {
                    cost = 12000;
                    requirements[]={"A"};
                };

                class UK3CB_TKA_O_Mi_24V
                {
                    cost = 12000;
                    requirements[]={"H"};
                };
                
                class UK3CB_TKA_O_UH1H_M240
                {
                    cost = 24000;
                    requirements[]={"H"};
                };
                
            };
            class Gear
            {
                class Box_NATO_Ammo_F
                {
                    cost = 200;
                    requirements[]={};
                };
                                
                class ACE_medicalSupplyCrate_advanced
                {
                    cost = 200;
                    requirements[]={};
                };
                
                class ACE_NVG_Wide
                {
                    cost = 350;
                    requirements[]={};
                };
            };
            
        };
    };
};

hintscfg.hpp

Spoiler

class cfghints
{
   class test1
   {
       displayName = "test";

       class test2
       {
           arguments[] = {};
           description = "test Information text";
           displayName = "test Information";
           tip = "test test test";
       };
   };
};


Any help with this or even a full example on how to do what I'm trying to do would help massively 

Share this post


Link to post
Share on other sites
1 hour ago, AshleyMosey said:

if I put the below into my Description.ext I get '.c':' ' encountered instead of  '=' and I cant figure out why

There are weird characters embedded in your CfgHints definition. Once cleared it passes ok.

 

Copy your code for hintscfg.hpp and in a new reply to this thread place it in a code block( using the <> button ).

Notice all the little red dots! remove them and copy the code back to your file.

embeddedcharacters.png?raw=1

Share this post


Link to post
Share on other sites

wtf how did i not see those are they hidden I'm guessing ?? 

I ended up Opting for hintC instead although iv got some unusual side effects from this the Hint works out perfectly but now if I enable my mission with AI it completely brakes the Warlords modules and I don't know why here's my code below

Also I cant seem to get rid of the bullet point that the hintC is auto inserting but its no big deal if it isn't possible 

Welcomehint.sqf

Spoiler

waitUntil {!isNil "preloadFinished"};
private _text = "";
private _headdertext = parseText "WELCOME TO EPIC FAIL WARLORDS - TAKISTAN";
private _separator1 = parseText "<br />-----------------------------------------------------------------------------------------------------<br />";
private _link = parseText "<br /><a href='http://invite.gg/epicfailgu'>CLICK HERE TO JOIN DISCORD</a><br />";   
private _imageText = parseText "<img size='23' color='#ff0000' image='epicfaillogo.paa'/>";
private _txt = composeText [_text, _separator1, _headdertext, _separator1, _imageText, _separator1, "Please join Our discord", _link]; 
"" hintC _txt;


initPlayerLocal.sqf
 

Spoiler

addMissionEventHandler ["PreloadFinished", {preloadFinished = true;}];
_iff = [units group player] execVM "a3\missions_f_exp\campaign\functions\fn_exp_camp_iff.sqf";
[] execVM "Welcomehint.sqf";


The Result being this: 
P43duv8.png

Share this post


Link to post
Share on other sites
22 hours ago, AshleyMosey said:

Also I cant seem to get rid of the bullet point that the hintC is auto inserting

Could always create your own display instead of using hintC.

Example for running from the debugConsole for testing, edit to suit your needs.

Spoiler

[] spawn {
	disableSerialization;
	
	createDialog "RscDisplayCommon";
	waitUntil{ !isNull( uiNamespace getVariable[ "RscDisplayCommon", displayNull ] ) };
	
	_hintWidth = 400 * pixelW;
	_hintHeight = 600 * pixelH;
	_hintPadding = 20;
	_hintPaddingW = _hintPadding * pixelW;
	_hintPaddingH = _hintPadding * pixelH;
	
	_display = uiNamespace getVariable "RscDisplayCommon";

	_background = _display ctrlCreate[ "ctrlStaticPicture", -1 ];
	_background ctrlSetPosition[
		safeZoneX + ( safeZoneW / 2 ) - ( _hintWidth / 2 ), 
		safeZoneY + ( safeZoneH / 2 ) - ( _hintHeight / 2 ), 
		_hintWidth, _hintHeight
	];
	_background ctrlSetText "#(argb,8,8,3)color(0,0,0,0.75)";
	_background ctrlCommit 0;

	_button = _display ctrlCreate[ "ctrlButton", -1 ];
	_button ctrlSetPosition[
		safeZoneX + ( safeZoneW / 2 ), 
		safeZoneY + ( safeZoneH / 2 ) + ( _hintHeight / 2 ) - _hintPaddingH, 
		_hintWidth / 2,
		_hintPaddingH
	];
	_button ctrlCommit 0;
	_button ctrlSetText "Continue";
	_button ctrlAddEventHandler[ "ButtonClick", {
		closeDialog 1;
	}];

	_staticTxt = _display ctrlCreate[ "ctrlStructuredText", -1 ];
	_staticTxt ctrlSetPosition[
		safeZoneX + ( safeZoneW / 2 ) - ( _hintWidth / 2 ) + _hintPaddingW, 
		safeZoneY + ( safeZoneH / 2 ) - ( _hintHeight / 2 ) + _hintPaddingH, 
		_hintWidth - ( _hintPaddingW * 2 ),
		_hintHeight - ( _hintPaddingH * 2 ) 
	];
	_staticTxt ctrlCommit 0;

	private _text = "";
	private _headdertext = parseText "WELCOME TO EPIC FAIL WARLORDS - TAKISTAN";
	private _separator1 = parseText "<br />-----------------------------------------------------------------------------------------------------<br />";
	private _link = parseText "<br /><a href='http://invite.gg/epicfailgu'>CLICK HERE TO JOIN DISCORD</a><br />";   
	private _imageText = parseText "<img size='23' color='#ff0000'/>"; //removed image for testing
	WelcomeTxt = composeText [_text, _separator1, _headdertext, _separator1, _imageText, _separator1, "Please join Our discord", _link]; 
	
	_staticTxt ctrlSetStructuredText WelcomeTxt;
	
	_display displayAddEventHandler[ "Unload", {
		hint WelcomeTxt;
	}];
};

 

 

 

22 hours ago, AshleyMosey said:

although iv got some unusual side effects from this the Hint works out perfectly but now if I enable my mission with AI it completely brakes the Warlords modules

I have no experience with the Warlord Modules, hopefully someone else can help you out with that.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×