Help adding help topic

Post here if you need help setting up your server, etc.
starrynte
On Lightcycle Grid
Posts: 26
Joined: Thu Jun 25, 2009 12:59 am

Help adding help topic

Post by starrynte »

I did ADD_HELP_TOPIC "test" "testing" "testing123", but when I did /help test, nothing showed up...I am currently using http://fight-clan.org/stuff/Builds/arma ... .win32.exe, though may upgrade to http://fight-clan.org/stuff/Builds/arma ... .win32.exe in the near future. (It's dedicated server for windows with sty included)
User avatar
ChrisGW
On Lightcycle Grid
Posts: 25
Joined: Sat May 16, 2009 11:47 am

Re: Help adding help topic

Post by ChrisGW »

if you are in game you need to write:
/admin add_help_topic "[topic_name]" "[short_descripe]" "[Descripe]"
you forgot /admin ?

otherwise i didnt notice a mistake.
Last edited by ChrisGW on Sat Oct 24, 2009 12:13 pm, edited 1 time in total.
User avatar
theroze
Match Winner
Posts: 596
Joined: Mon Aug 10, 2009 7:30 am
Location: 47 72 69 64

Re: Help adding help topic

Post by theroze »

Ok, ingame, type /help. There will come a list with all help topics. If you can see the topic "Test", you must write /help Test . /help test wont work cause of the little "t".
apparition wrote:You being able to kill so many players that quickly and efficiently is evidence that the community skill level must be dropping... Sad :/
Reigning champion of: Sir-spam-a-lot 2011
User avatar
ConVicT
Shutout Match Winner
Posts: 1001
Joined: Fri Feb 17, 2012 2:33 am

Re: Help adding help topic

Post by ConVicT »

Hi, I'm trying to do the same thing here and the same is happening to me :?
"/admin ADD_HELP_TOPIC TEST TESTING THIS IS A TEST"
RA: Added help topic "TEST"

Then I try "/help" and "/help TEST"
Nothing happens :?
Any suggestions?

Also, can I use "\n" in "ADD_NEW_TOPIC"?

Funny thing is, I remember doing this away back in 2009 when this thread was created and remember it working perfectly well for me. :?
Word
Reverse Adjust Outside Corner Grinder
Posts: 4258
Joined: Wed Jan 07, 2009 6:13 pm

Re: Help adding help topic

Post by Word »

I barely remember how to do this, but it shouldn't be too difficult to figure out again. Try putting the help message in quotes? I think there was some kind of marker for start and end that needed to be added.
User avatar
ConVicT
Shutout Match Winner
Posts: 1001
Joined: Fri Feb 17, 2012 2:33 am

Re: Help adding help topic

Post by ConVicT »

ok, so I've now tried

Code: Select all

// These two turn out the same "RA: Added help topic "1"
ADD_HELP_TOPIC 1 1 1 
ADD_HELP_TOPIC "1" "1" "1"

// These give me RA: Added help topic "[1]" all brackets do the same! 
ADD_HELP_TOPIC (1) (1) (1)
ADD_HELP_TOPIC {1} {1} {1}
ADD_HELP_TOPIC <1> <1> <1>
ADD_HELP_TOPIC [1] [1] [1]
Still, when I get "RA: Added help topic "[1]", naturally, I type /help [1].
Still comes up nothing, not even an INVALID_COMMAND

Confused :?
Word
Reverse Adjust Outside Corner Grinder
Posts: 4258
Joined: Wed Jan 07, 2009 6:13 pm

Re: Help adding help topic

Post by Word »

Heh, not what I meant.
Try putting the help message in quotes?
Try using a single (short) word (the headline of your help topic, if you will), then add the text in quotes, e.g.:

add_help_topic dbinding "Using multiple keys is called...etc."
User avatar
vov
Match Winner
Posts: 568
Joined: Thu Feb 17, 2011 8:40 pm

Re: Help adding help topic

Post by vov »

On sty+ct servers, /help seems to be broken. That's probably it. I'll have a quick search if there's a way to fix it.

Edit:
In this thread Z-Man apparently fixed it in sty+ct r755 but it seems to be back again. On my sty+ct r786 server it does what's described in the old thread:
Z-Man wrote:It's not exactly broken, but sty had a previous feature that blocks it: /help displays the content of the setting HELP_MESSAGE there.
User avatar
ConVicT
Shutout Match Winner
Posts: 1001
Joined: Fri Feb 17, 2012 2:33 am

Re: Help adding help topic

Post by ConVicT »

Word wrote:Heh, not what I meant.
Try putting the help message in quotes?
Try using a single (short) word (the headline of your help topic, if you will), then add the text in quotes, e.g.:

add_help_topic dbinding "Using multiple keys is called...etc."
I get what you mean but even if I made the <topic> quoted it should'a showed as "RA: Added help topic ""1""

So no, that's not it.

I think vov might be right because back when I remember it working, I wasn't using sty+ct.
If you find out, please let me know, vov.
Cheers.
User avatar
vov
Match Winner
Posts: 568
Joined: Thu Feb 17, 2011 8:40 pm

Re: Help adding help topic

Post by vov »

Having had a quick look at the code, it seems to be like this:
In r755, Z-Man fixed it, while in r767 kyle added it back in again. Not sure if there was a bug with it or (what I suspect) an oopsie. If you can compile your server yourself; remove the lines of code as done in r755 (link above), then /help should work with the topics as expected. I'll quickly try it out myself on my sty+ct server.
User avatar
vov
Match Winner
Posts: 568
Joined: Thu Feb 17, 2011 8:40 pm

Re: Help adding help topic

Post by vov »

Having tested it on my server after performing the changes of r755 (removing the lines from the "old" help command), it seems to work without a problem.
As for its syntax, what just worked for me: ADD_HELP_TOPIC test "This is a test" "Text Text Text Text Text\nText Text Text"
User avatar
ConVicT
Shutout Match Winner
Posts: 1001
Joined: Fri Feb 17, 2012 2:33 am

Re: Help adding help topic

Post by ConVicT »

It's one of Duke's Rx servers I use, I'll have to ask him to do it.

Thanks, vov.
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Help adding help topic

Post by Light »

ConVicT wrote:It's one of Duke's Rx servers I use, I'll have to ask him to do it.

Thanks, vov.
What server are you hosted on?
User avatar
ConVicT
Shutout Match Winner
Posts: 1001
Joined: Fri Feb 17, 2012 2:33 am

Re: Help adding help topic

Post by ConVicT »

London.
I am co-owner of "The Prison Yard".
User avatar
ConVicT
Shutout Match Winner
Posts: 1001
Joined: Fri Feb 17, 2012 2:33 am

Re: Help adding help topic

Post by ConVicT »

vov wrote: As for its syntax, what just worked for me: ADD_HELP_TOPIC test "This is a test" "Text Text Text Text Text\nText Text Text"
Yeah, I tried that way too, it still gave me nothing :(
I've asked around and apparently making my server +ap is the way to go.
Not only will that work, but there's a lot of extras on there.
Thanks for the help, everyone, I really appreciate it.

P.S Would it make a difference, Light? As far as I can see, they're all the same.
Attachments
Capture.PNG
Post Reply