Page 1 of 3

Nagware Plugin

Posted: Thu Jan 19, 2006 5:13 am
by SilverFox
We've stopped using the revoke scriptand are now using the Nagware Plugin by menotume. This plugin sends a message to unregistered players every x minutes and optionally kicks them after y minutes. Its quite configurable and is working VERY well for us so far. Other popular servers are encouraged to use this plugin to help encourage registration and in turn discourage cheating, spamming, and childish behavior in general.

Please post any questions about using the plugin here.

Posted: Thu Jan 19, 2006 5:47 pm
by The Knights Who Say Ni
are you going to bring out a windows version?

Posted: Thu Jan 19, 2006 6:05 pm
by SilverFox
Source is available, just need someone willing to compile a binary.

Posted: Thu Jan 19, 2006 6:48 pm
by JPT
Which programm(s) is/are necessary to compile the source on windows xp ?
Or could it be done on Linux ?

Edit: A little Introduction for this would be cool. I can try.

Posted: Thu Jan 19, 2006 7:10 pm
by JeffM
it won't build on windows... it needs some code changes.

when it does build on windows, it'll be included in the binary builds.

Posted: Fri Jan 20, 2006 6:01 pm
by JPT
oh. ok. I just wanted to know.

Posted: Fri Jan 20, 2006 10:24 pm
by RPG
All I had to do was change the name of one fucntion that was used 14 times. I didn't test it though, because I'm in a rush right now, but I did get it to build for Windows.

Posted: Sat Jan 21, 2006 11:25 am
by The Knights Who Say Ni
ok thats cool except it says it cant find the plugin when I know that the path is right and my server runs as it should if I run the server normally but if I add in your plugin line i get this error:
(I am using other plugins masterbot and trackplayhistory dont know if that makes a diffrence...)

Posted: Sat Jan 21, 2006 11:32 am
by The Knights Who Say Ni
ok i found the problem i think, i have MSVCP71.dll and it wants MSVCP71D.dll
do i need some thging else i have the latest version of bzflag (2.0.5b4) do i need and older version...

And removing the other plugins dosent work...

Posted: Sat Jan 21, 2006 3:30 pm
by JPT
I get this error, too.

I have 2.0.4, 2.0.5b4 and 2.0.5b5, but the dll is not on my Computer.

Edit: I installed the old versions 1.10.8 and 2.0.2 but the file isn't included.

Is this a path or a name error ?

Posted: Sat Jan 21, 2006 3:46 pm
by ducatiwannabe
And how exactly do you set up a plugin? :P

Posted: Sat Jan 21, 2006 3:48 pm
by JPT
Okay: They are runtime librarys.
There you can download: http://www.dll-files.com/dllindex/dll-f ... l?msvcr71d, http://www.dll-files.com/dllindex/dll-f ... l?msvcp71d
Q: How do I install the dll-file?
A: You need an unzip software in order to extract the dll-file from the zip-file you've downloaded. We recommend our users to use ExpressZIP.
Then use ExpressZIP to select the dll-file and extract it to your system directory. By default, this is C:\Windows\System (Windows 95/98/Me), C:\WINNT\System32 (Windows NT/2000), or C:\Windows\System32 (Windows XP).
You may also put it in the directory of the program, that is asking for the file.
If putting it in the system directory isn't enough, you may need to use regsvr32 by the following way:
1. Press Start and select Run
2. Type CMD and press Enter
3. Type regsvr32 "filename".dll and press Enter
EDIT: IMPORTANT: I did a spelling mistake. it is not msvcp71d.dll.
It is msvcr71d.dll
I already changed the link.

EDIT2: The other dll is necessary, too

If you downloaded the file, just copy it to C:\windows\system32

Posted: Sat Jan 21, 2006 4:00 pm
by ducatiwannabe
Ok, I have it downloaded. How do I set it up to one of my servers?

Posted: Sat Jan 21, 2006 4:15 pm
by JPT
You don't need to set it up.
You just copy it into C:\windows\system32.
It could need a reboot.
That's all.

P.S.: I corrected my spelling mistake in the name. It was linked to a similar, but wrong file. :oops:

Posted: Sat Jan 21, 2006 4:44 pm
by JPT
In my log, i found this:
...
2006-01-21 17:33:56: +++ nagware plugin command-line error.
2006-01-21 17:33:56: Command line args: PLUGINNAME,configname
2006-01-21 17:33:56: nagware plugin NOT loaded!
2006-01-21 17:33:56: Plugin:M:\bzflagstuff\plugins\nagware.dll loaded
2006-01-21 17:33:56: shockwaveDeath plugin loaded
2006-01-21 17:33:56: Plugin:M:\bzflag\shockwaveDeath.dll loaded
...
I didn't see the plugin working.
Is there something missing ? (e.g.: a config file)

Posted: Sat Jan 21, 2006 4:46 pm
by RPG
That's odd, it worked fine with me. I heard somewhere that BZ is using a DLL file from MSVC++, but I don't remember details. I have MSVC++ instealled, so that's why it may have worked for me.

Hmm.

Does this happen when nagware is not loaded?

Posted: Sat Jan 21, 2006 4:53 pm
by JPT
Could the developer of this plugin post a sample config file ?
I think, there is something thislike needed.

Posted: Sat Jan 21, 2006 4:59 pm
by RPG
Yes, you must specify a config file. load it like this:

Code: Select all

-loadplugin /path/to/nagware,/path/to/config.cfg
Here is the default config file you can tinker around with:

Code: Select all

# Sample configuration file for the nagware plugin.
#

# permission tag to use to grant "/nag" command permissions
# defaults to "NAG" if not specified.
permname = say

# Apply logic to observers ?  (yes/no)
# default is no
kickobs = yes

# minplayers: There must be this many players before anybody is
#    kicked, but the warnings will still happen.
# default is 1
minplayers  = 2

# messagesuffix: Message to be added to the end of all other defined messages.
messagesuffix = \nRegister at http://my.bzflag.org/bb/ and use your login in the bzflag connect screen.

# Message: Messages to be sent to players at specified times.
#   Format is:  TIME,[REPEAT] MESSAGE
#       *) Time and repeat are in minutes, whole numbers only (0 is allowed)
#       *) If repeat is specified, the message will be repeated every [REPEAT] minutes until the next
#          message is applied (if any), or the player is kicked.
message = 1 This server requires global registration.
message = 2 Dieser Server erfordert globale Registrierung.\nCe serveur exige l'enregistrement global\nEste camarero requiere matrĂ­cula global
message = 3,1 You will be kicked from this server shortly, please register and come back!
message = 6,2 You are now marked to be kicked randomly.

# Same format as above, except 'repeat' is not used.
# If not defined, no players will be kicked.
kickmessage = 7 You have been kicked because you are not registered.

Posted: Sat Jan 21, 2006 5:02 pm
by JPT
thanks !
That was the missing peace of the plugin

Posted: Sat Jan 21, 2006 5:16 pm
by JPT
Somehow i get this error:
...
M:\bzflagstuff\plugins\nagware.conf)
2006-01-21 18:13:57: +++ nagware plugin config file error, plugin NOT loaded
2006-01-21 18:13:57: Plugin:M:\bzflagstuff\plugins\nagware.dll loaded
...
I used exactly your file.

Posted: Sat Jan 21, 2006 5:16 pm
by The Knights Who Say Ni
JPT wrote: EDIT: IMPORTANT: I did a spelling mistake. it is not msvcp71d.dll.
It is msvcr71d.dll
no you need both of them...

Posted: Sat Jan 21, 2006 5:17 pm
by JPT
I don't need them both.
I just need one.
Perhaps, the other one, was already set up...

Posted: Sat Jan 21, 2006 5:19 pm
by The Knights Who Say Ni
well i need both so mabey you already had one of them

Posted: Sat Jan 21, 2006 5:20 pm
by JPT
OK. But what's about the error:
...
M:\bzflagstuff\plugins\nagware.conf)
2006-01-21 18:13:57: +++ nagware plugin config file error, plugin NOT loaded
2006-01-21 18:13:57: Plugin:M:\bzflagstuff\plugins\nagware.dll loaded
...

Posted: Sat Jan 21, 2006 5:31 pm
by ducatiwannabe
So let me get this straight...I click my shortcut to bzfs, go to properties, and then on the Target: line it should look like this

"C:\Program Files\BZFlag2.0.5b4\bzfs.exe" -loadplugin C:\Program Files\BZFlag2.0.5b4\msvcp71d.dll,\C:\Program Files\BZFlag2.0.5b4\dw2.conf

If not can somebody please PM me or tell me step by step how to get this working :shock: