Janitor v0.6

Questions, comments, and news on the server side plug-ins and it's API
Post Reply
User avatar
[dmp]
Captain
Captain
Posts: 282
Joined: Mon Dec 09, 2002 3:20 pm
Location: CPH, Denmark
Contact:

Janitor v0.6

Post by [dmp] » Wed Aug 17, 2005 3:00 am

Janitor v0.6 - a preview
========================

The "inetd" for bzfs. Janitor is build with the purpose to aim for solving
small tasks without needing to write a plugin. It reacts on slashcommands (such
as /whine) and performs an action defined by the server owner. Currently only
shell commands can be executed, and the output can be directed to the player
invoking the command.

A note
======

This needs alot of testing. I've been working on this without a real test, but
if someone will help me with it, let me know. And if you like it, remember to
thank my gf too for allowing me to get pale the last few days. I hope that
this text is somewhat readable - even at this late hour (almost 5am).

Requirements
============

- BZFlag Server API 10
- Works only on unix (only tested with linux). I'll be happy to port it to
other unices if you can provide me with and environment.
- Patience


.. read more in ReadMe.txt. Feedback is welcome!
Attachments
ReadMe.txt
ReadMe.txt.
(8.88 KiB) Downloaded 362 times
Janitor_0.6-linuxbin.tar.gz
linux so
(28.67 KiB) Downloaded 264 times
Janitor_0.6.tar.gz
(11.35 KiB) Downloaded 256 times
I don't need huge pictures here.

Guest

Post by Guest » Wed Aug 17, 2005 10:10 am

Wow, seeems very powerful! :D

User avatar
[dmp]
Captain
Captain
Posts: 282
Joined: Mon Dec 09, 2002 3:20 pm
Location: CPH, Denmark
Contact:

Post by [dmp] » Wed Aug 17, 2005 1:01 pm

I was once a old bbs door writer (doors = plugin sfor bbs'es.) in the good old days where 2400 baud was fast. There I made a rather popular pager, so users could call for the sys-op and have a life talk with him/her.

So I figured it would be fun to make something similar to BZFlag - at first I was mainly concerned about making bzfs execute a binary - but as i worked on it i realized that it could be more generic if i forget the "pager" part and just made it a execute-something when something happens.

So parts of it was rewritten and here is the result. :)

I like to implement the 0.7 features soon. That would make the "execute something" more complete (Im alittle worried about abuse, so my focus is limiting what/when people can invoke).

Once thats written new features is added (so not just /<something> triggers the plugin, but also other events). One idea im considering is to improve "execute" with e protocol like function, så you could script simple plugin. ie: let the script send back simple commands to the script (eg, shutdown server). If that ever happens, you can write simple plugins in whatever language you like. (But they would ofcause be slower than real plugins).

0.7 is gonna be implemented in the next days. What happens after 0.7 is basicually decided on feedback. (I dont run a server, i dont need it and cant test it live :( )
I don't need huge pictures here.

User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Post by I_Died_Once » Wed Aug 17, 2005 2:34 pm

meacan - I am very willing to test this on Planet MoFo. I see it requires a .conf file of its own, and I am at a loss as to what exactly it does or can do. Post or send me a .conf file and I'll use it.
...This has been a recording.

User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Post by I_Died_Once » Wed Aug 17, 2005 2:54 pm

OK, after a l ittle looking, I found your config file, and used it as per the instructions. THis is info from my terminal

Code: Select all

Plugin:/home/death/bzflag/plugins/shockwaveDeath/shockwavedeath.so loaded
killall plugin loaded
Plugin:/home/death/bzflag/plugins/vocaliser/vocaliser.so loaded
Janitor v0.6 By Meacan (Aka Dennis Moellegaard Pedersen)
Janitor: Registering /page
Janitor: Registering /page1
Janitor: Registering /page2
Janitor: Registering /page3
Janitor: Registering /page4
Janitor: Registering /page5
Janitor: Registering /whine
Janitor: Registering /fortune
Janitor: Registering /janitor
Janitor: Registering /page6
Janitor: Registering /page7
Janitor: Registering /whoami
Plugin:/home/death/bzflag/plugins/Janitor/Janitor.so loaded
So, its loaded, and its running on Planet MoFo - make sure it says *Loaded* on the public list.

Test yourself away.
...This has been a recording.

User avatar
[dmp]
Captain
Captain
Posts: 282
Joined: Mon Dec 09, 2002 3:20 pm
Location: CPH, Denmark
Contact:

Name

Post by [dmp] » Fri Aug 19, 2005 12:22 pm

Thanks for trying, but it seems that my configuration dosnt not match your configuration as all the commands fail :). But thanks for trying. The next release will have a configuration file that will work on your system :) (and be much more powerfull)

I dont find Janitor very good. Janitor sounds like some maintenance tool. which it isnt.
I don't need huge pictures here.

User avatar
[dmp]
Captain
Captain
Posts: 282
Joined: Mon Dec 09, 2002 3:20 pm
Location: CPH, Denmark
Contact:

Janitor v 0.7

Post by [dmp] » Tue Aug 23, 2005 1:16 am

Update: I've been working on Janitor. I'm gonna begin focusing more on testing and stop adding new stuff. Before releasing it. But the most interesting changes are:

Code: Select all

        - Rewrote large portions of the code
        - If player leaves, all events triggered by this player is killed
        - added support for "event" trigger type. Allows you to trigger
                your event on; capture, die, spawn, join, part, suicide and
                teamkill
        - added new action: bzflag. Only supports changing of variables
I've had a running server, where the colorsky changed to the last killed tankcolor :) (Not my idea). And you got a fortune text telling you something interesting(?) upon login. And added a /dns command, to allow players with BAN perm to lookup ips<->hostnames (by using host command).

Its somewhat unstable, so unless you want to run tests, it isnt ready for use yet :(
I don't need huge pictures here.

User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Post by I_Died_Once » Wed Aug 24, 2005 1:25 am

Well post or send me a .so file, or something I can run "make" on. PM me for (temporary) admin access for testing on Planet MoFo whenever you're ready.

I also added you to the uber secert, cool people only, Planet MoFo private forums group.

Woot
...This has been a recording.

User avatar
[dmp]
Captain
Captain
Posts: 282
Joined: Mon Dec 09, 2002 3:20 pm
Location: CPH, Denmark
Contact:

Post by [dmp] » Wed Aug 24, 2005 11:04 am

Thanks for the offer, but it isnt really what I was looking for. Its no problem setting up a server and see if ti works - but it would be better to have other people testing it. Trying to create new configurations and play with it in general.

But it seems that it might not be as useful to people as i hoped it were - so im considering dropping it and just make simple plugins.
I don't need huge pictures here.

Post Reply