Nagware Plugin

Place for people to discuss public servers, and also for admins to lay out the details of their servers
User avatar
SilverFox
Private First Class
Private First Class
Posts: 163
Joined: Wed Oct 06, 2004 6:51 pm
Contact:

Nagware Plugin

Post 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.
Last edited by SilverFox on Fri Jan 20, 2006 1:49 am, edited 1 time in total.
User avatar
The Knights Who Say Ni
Private First Class
Private First Class
Posts: 556
Joined: Mon Sep 26, 2005 7:21 pm
Location: Uplyme, England
Contact:

Post by The Knights Who Say Ni »

are you going to bring out a windows version?
Image
Sig Made By AlliedArmour

TGPH
User avatar
SilverFox
Private First Class
Private First Class
Posts: 163
Joined: Wed Oct 06, 2004 6:51 pm
Contact:

Post by SilverFox »

Source is available, just need someone willing to compile a binary.
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post 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.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post 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.
ImageJeffM
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post by JPT »

oh. ok. I just wanted to know.
User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post 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.
Attachments
nagware.zip
Nageware for Windows
(23.22 KiB) Downloaded 62 times
User avatar
The Knights Who Say Ni
Private First Class
Private First Class
Posts: 556
Joined: Mon Sep 26, 2005 7:21 pm
Location: Uplyme, England
Contact:

Post 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...)
Attachments
BZFlagnagware.jpg
this is the error
(21.96 KiB) Downloaded 30 times
Image
Sig Made By AlliedArmour

TGPH
User avatar
The Knights Who Say Ni
Private First Class
Private First Class
Posts: 556
Joined: Mon Sep 26, 2005 7:21 pm
Location: Uplyme, England
Contact:

Post 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...
Image
Sig Made By AlliedArmour

TGPH
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post 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 ?
User avatar
ducatiwannabe
Private First Class
Private First Class
Posts: 3249
Joined: Tue Aug 10, 2004 3:55 pm
Location: Planet Earth
Contact:

Post by ducatiwannabe »

And how exactly do you set up a plugin? :P
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post 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
Last edited by JPT on Sat Jan 21, 2006 5:24 pm, edited 4 times in total.
User avatar
ducatiwannabe
Private First Class
Private First Class
Posts: 3249
Joined: Tue Aug 10, 2004 3:55 pm
Location: Planet Earth
Contact:

Post by ducatiwannabe »

Ok, I have it downloaded. How do I set it up to one of my servers?
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post 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:
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post 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)
User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post 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?
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post by JPT »

Could the developer of this plugin post a sample config file ?
I think, there is something thislike needed.
User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post 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.
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post by JPT »

thanks !
That was the missing peace of the plugin
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post 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.
User avatar
The Knights Who Say Ni
Private First Class
Private First Class
Posts: 556
Joined: Mon Sep 26, 2005 7:21 pm
Location: Uplyme, England
Contact:

Post 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...
Image
Sig Made By AlliedArmour

TGPH
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post by JPT »

I don't need them both.
I just need one.
Perhaps, the other one, was already set up...
User avatar
The Knights Who Say Ni
Private First Class
Private First Class
Posts: 556
Joined: Mon Sep 26, 2005 7:21 pm
Location: Uplyme, England
Contact:

Post by The Knights Who Say Ni »

well i need both so mabey you already had one of them
Image
Sig Made By AlliedArmour

TGPH
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post 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
...
User avatar
ducatiwannabe
Private First Class
Private First Class
Posts: 3249
Joined: Tue Aug 10, 2004 3:55 pm
Location: Planet Earth
Contact:

Post 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:
Post Reply