Jump to content
BullyBoii

How to create a cfgHint for use with BIS_fnc_advHint

Recommended Posts

This is what i have so far...

class CfgHints
{
class CONQUEST
{
	displayName = "CONQUEST";

	class CON_introInfo
	{
		arguments[] = {};
		description = "Conquest Information text";
		displayName = "CONQUEST Information";
		tip = "On lower difficulties, dots will stick to their units anywhere on the screen, making it easier to distinguish between friends and foes.";
	};
};
};

and i am calling it via the command...

[["CONQUEST", "CON_introInfo"]] call BIS_fnc_advHint;

however, when it is called in game, i get the following error message

"hint "CfgHints >> CONQUEST >> CON_introInfo does not exist"

please can someone offer an explination, cant get my head around why this is not working

Share this post


Link to post
Share on other sites

_this select 7: String (optional) - Used config, default is configFile. You can use configFile, missionConfigFile, campaignConfigFile

This is a part of info in the header of that function (you can see it in function viewer in the game). Your hint is probably in a different config file. If you defines that hint in description.ext file in mission folder, then your hint is in missionConfigFile which isn't default config file of this function.

I will change this function and make it to check all config files.

Share this post


Link to post
Share on other sites

thanks DarkDruid, yeh didnt think about that, did think that it just looked at the missionConfig... :)

thanks for the help

Share this post


Link to post
Share on other sites

Ok...

i have this in my description.ext:

class CfgHints
{
   class test1
   {
       displayName = "thisisatest";

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

I try to call the hint with:

[["test1", "test2"]] call BIS_fnc_advHint;  

But i get the same message like BullyBoii..."does not exist".

Why, where to i put what ?

Share this post


Link to post
Share on other sites

To quote what was said directly before you:

If you defines that hint in description.ext file in mission folder, then your hint is in missionConfigFile which isn't default config file of this function.

Share this post


Link to post
Share on other sites

Yeah i got that, but what does it mean ?

What do i have to add to my script example ?

...this BI Wiki is really written in secret code...

Share this post


Link to post
Share on other sites

It means the function is checking a different configuration file (not missionConfigFile), hence it won't work with description.ext until DarkDruid updates it to check all configuration files.

Share this post


Link to post
Share on other sites

Ok, so BIS_fnc_advHint is not working at the moment if you use description.ext ?

But whats with that ?

_this select 7: String (optional) - Used config, default is configFile. You can use configFile, missionConfigFile, campaignConfigFile

In my function viewer i dont see that, looks to me like it has already been updated. But if thats the case, why am i unable to get it working ?

Just look at the date of his post... 07-04-2013 (!)

Edited by Wiggum

Share this post


Link to post
Share on other sites

Oh wow, excuse me I didn't see the original date! :o

So I've taken a closer look at the function and mine shows this:

_this select 7: Bool (optional) - Show the hint in a mission only once (true) or multiple times (false)

Share this post


Link to post
Share on other sites

Ok, now we are all confused, can someone help with that ?

And why does the BI Wiki be so cryptic all the time about everything ?

How can we get the BIS_fnc_advHint to work in our missions ?

Share this post


Link to post
Share on other sites
Ok...

i have this in my description.ext:

class CfgHints
{
   class test1
   {
       displayName = "thisisatest";

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

I try to call the hint with:

[["test1", "test2"]] call BIS_fnc_advHint;  

But i get the same message like BullyBoii..."does not exist".

Why, where to i put what ?

When I put your description.ext example in a mission, I am able to display that hint without any error message. If you are still unable to display it, could you please report this on Feedback Tracker and provide step-by-step repro? Thanks

Ok, now we are all confused, can someone help with that ?

And why does the BI Wiki be so cryptic all the time about everything ?

I was able to find what you needed to know in the documentation (http://community.bistudio.com/wiki/Arma_3_Advanced_Hints_%28Field_Manual%29#Config - the first sentence in this chapter). However, if you have any specific proposals which could lead to more transparent and simple documentation, feel free to write them down and send them to me. Any constructive feedback and improvement proposals are welcome. Thanks

Share this post


Link to post
Share on other sites

Now i feel stupid because now it works for me too...

Could it be the last game update ?

Because im sure i did not work, i just used a BLUFOR present trigger to call the hint, nothing fance.

Thanks DarkDruid ! :)

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

×