Consgreet Plugin Testing...
MOMBoris
Join Date: 2003-03-22 Member: 14777Members
<div class="IPBDescription">Can ne1 try my consgreet plugin to test</div> ***JUST TO EDIT THIS***
The below file is a simple consgreet, works fine, but you must have "file_access_read 1" in your adminmod.cfg. Thanks for the help guys!
******
I know there is like a billion consgreet plugins out there, even some similar to this one
but I like doing my own thing and learning. This one uses keywords (ex. %HOSTNAME%)
to fill in spots in the file. You simply edit the consgreet file and add all the keywords where
you want them and this plugin will substitute with the info you want.
It is straight forward...no author promo's or anything else. Just pure basic consgreet, but custom.
Thanks,
- [MOM]Boris (Used to use username: Matt(Canada)) <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo-->
PS. Just a note, this is written and compiled for AdminMOD v2.50.51 (LATEST VERSION available is v2.50.52)...will still work in 2.50.52
The below file is a simple consgreet, works fine, but you must have "file_access_read 1" in your adminmod.cfg. Thanks for the help guys!
******
I know there is like a billion consgreet plugins out there, even some similar to this one
but I like doing my own thing and learning. This one uses keywords (ex. %HOSTNAME%)
to fill in spots in the file. You simply edit the consgreet file and add all the keywords where
you want them and this plugin will substitute with the info you want.
It is straight forward...no author promo's or anything else. Just pure basic consgreet, but custom.
Thanks,
- [MOM]Boris (Used to use username: Matt(Canada)) <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo-->
PS. Just a note, this is written and compiled for AdminMOD v2.50.51 (LATEST VERSION available is v2.50.52)...will still work in 2.50.52
Comments
For anyone with concerns...this will work on the latest version of AdminMOD.
i'll use it instead of my current one, i will update it soon
Thanks,
Matt
I'm new at this and I don't understand where i should set that variable. Server.cfg?
Thanks for your help.
You can set this in the server.cfg if you want but the adminmod.cfg already contains it, so you'll have to make sure that it is turned on at some point and stays on. Just search the adminmod.cfg for it, and it's self explainatory. Thanks for helping me out.
One other thing...make sure "consgreet.txt" is in the right directory. For NS that should be in the ns mod folder in your half-life dir. Ex "c:\sierra\half-life\ns" or dedicated "c:\hlds\ns" <--where your server.cfg is.
- Matt
file_access_read and file_access_write both set to 1 in admin mod config file.
c:\sierra\half-life\ns\addons\adminmod\plugin.ini contains this line:
addon/adminmod/scripts/plugin_consgreet_custom.amx
c:\sierra\half-life\ns\addons\adminmod\scripts contains the file:
plugin_consgreet_custom.amx
c:\sierra\half-life\ns contains the file:
consgreet.txt
I am using the previous version you had posted and using the above configuration. Am I missing something?
Thanks Matt.
addon/adminmod/scripts/plugin_consgreet_custom.amx
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
This part you should check, if this is a copy from the plugin.ini file, then you sould notice that "addons" is missing the "s" in the line. Check that
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->I am using the previous version you had posted and using the above configuration. Am I missing something?<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Get the latest version as I noticed some things didn't display right, like negative times, and the value of FF. Everything works fine in the newer version(as I know).
Other than that, looks correct. I think it is just that missing "s" in the plugin file. Also, I assume you have the latest adminmod?
- Matt
All I get is the AdminMod warning about being able to run commands on your client. No greeting.
Thanks for your help tho! Guess we just dont greet! <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo--> <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo-->
All I get is the AdminMod warning about being able to run commands on your client. No greeting.
Thanks for your help tho! Guess we just dont greet! <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo--> <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo--><!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Do you have any other plugins that work? I don't see what is wrong...
try this, I compiled a amx file with a little msg saying "missing file" if file not found, and "reading file information below" followed by the info in the consgreet file(it also states value of file_access_read). If you still don't see ANY msgs on connect, there is a problem with the plugin being called, make sure it is in the right place, and referenced in the adminmod plugin file.
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->c:\sierra\half-life\ns\addons\adminmod\plugin.ini contains this line:
addon/adminmod/scripts/plugin_consgreet_custom.amx
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
One thing I notice odd about this besides the missing "s" is the dir. plugin.ini should be in the dir ns\addons\adminmod\config\. you have it in the ns\addons\adminmod\ dir. check this.
Also check to see if any normal plugins work, like plugin_base, make sure you can get timeleft, nextmap, etc.
If this doesn't give any results, i'm lost for ideas...something is not right...
Anyways thanks for trying...if still wanting to get it to work, here's the file(backup other .amx file) :
It still didn't work...gonna try installing using HLDS directories when I get time.
Thanks a TON for your support!
EDGE.
I do wish that there were 'text format' controls so that I can make things look better.
I've noticed that sometimes the text doesn't look exactly like how I've input it into the consgreet.txt file.
- RAZ
(I like the 'variables' capability... simple and clean)
[edit]
I did recieve this error message though:
22:14:45 og L 03/26/2003 - 22:10:16: [ADMIN] ERROR: AMX string too small. Required size 21, is 20.
22:14:45 og L 03/26/2003 - 22:10:16: [ADMIN] ERROR: Plugin c:\hlserver\ns\addons\adminmod\scripts\plugin_consgreet_custom.amx returned error 10 when executing plugin_connect
NOTE: console is 125 characters max to one line I believe...If anyone can correct me...please do! It will wrap, but things get ugly. So for my plugin I limited lines to be max of 125 characters, so don't make them longer or they will be cut off!
----Take this into account and don't have long single lines of text (USERS don't like this anyway! <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo--> )
Thanks for helping me out...any suggestions for things you would like to see added, feel free. I like to keep the plugins SHORT and SWEET, no extras. (Get the job done, that's it)
- Matt <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo-->
Most excellent!
I did recieve this error message though:
22:14:45 og L 03/26/2003 - 22:10:16: [ADMIN] ERROR: AMX string too small. Required size 21, is 20.
22:14:45 og L 03/26/2003 - 22:10:16: [ADMIN] ERROR: Plugin c:\hlserver\ns\addons\adminmod\scripts\plugin_consgreet_custom.amx returned error 10 when executing plugin_connect<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
NO idea what is causing that...I have nothing in there that is using 20 or 21 size strings...very odd. Do you have a different adminmod version?
I put an updated file on the front of the post...it will fix the problem...although I do not know what is causing that...oh well, it's fixed!
- Matt <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo-->