How to surpress the plugins /help info
-
Hiho,
first of all my programming knowledge is just very basic. pls forgive me if im being blind or just kinda “slow-thinker” on some points^^atm im experimenting with the flhook plugin version and i ran into a not very appealing looking issue:
i edited the flhooks settings.cpp file in order to add all the commands, that are added by plugins, to the ‘/help infoscreen’ with the use of HkAddHelpEntry.
(cuz in my eyes it looks way better and sorted)
Everything works fine.As u can see on the above picture there are additional entries at the /help screen added by the plugins.
Is there any way to surpress this @ FlHooks src?
Or do i need to edit the plugins?
(i dont have all the src, cuz im using the ones ported by deathkiller at this -> klick thread)ty in advance
-
cough bump cough
-
Again player control plugin will do it for you. Run PlayerCntlSetup.exe - choose Messages tab - tick Enable custom /help blahblahblah and make custom help message blank - save - rehash
-
Did that and now nothing appears after typing /help.
(just like it should with an empty [help] section)I know that i could just copy paste all of the strings that flhook will show when u typed /help into playercntl.ini, but i really like flhooks way of the text layout a whole lot better.
at my screenshot u can see the effect when im not using playercntl or disable the custom help “screen”.
upper section = flhook layout
red surrounded section with a sad smiley nect to it ^^ = text which are loaded from the plugins
Thats what i want to avoid/surpress.Maybe im just to picky ^_^
-
quick & dirty update: its solved woohoo
for people who might get into the same “troubles”:
- grab the flhook src + ur plugin src
- goto ur flhook’s settings.cpp
- find HkAddHelpEntry
- setup ur /help msgs just like u want it
- recompile flhook & test ingame
- go to ur plugin src (mostly u will find the next step @ main.cpp)
- find EXPORT void UserCmd_Help
- comment the whole function (so that it wont get compiled)
- find p_PI->lstHooks.push_back(PLUGIN_HOOKINFO((FARPROC*)&UserCmd_Help, PLUGIN_UserCmd_Help, 0));
- comment the whole line
- recompile the plugin
et voila, not very professional but it works :D:D
hope it kinda helps someone else
edit:
& dont forget to set custom help = no again @ playerctnl -
http://forge.the-starport.net/issues/520
Wondering that will fit well for Disco - that does not look like a whim.