Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Status of the JK2 Admin Bot

Page: 1 of 1
 MatrixCPA
05-09-2002, 2:16 AM
#1
Well, guess what. 1.03 broke the bot badly. The console status command now truncates player names. I can probably work around it, but it's going to take a LONG time to work with since I'll need to completely recode the player recognition system. Thanks a ton Raven. :mad:
 SuperCharlie
05-09-2002, 2:27 AM
#2
I feel your pain man..
Sorry to hear that..
SC
 Hell Raiser
05-09-2002, 9:35 PM
#3
Originally posted by MatrixCPA
Well, guess what. 1.03 broke the bot badly. The console status command now truncates player names. I can probably work around it, but it's going to take a LONG time to work with since I'll need to completely recode the player recognition system. Thanks a ton Raven. :mad:

Well, "it" happens. Get back up on that horse and keep on truckin. :D
 SimMacDaddy
05-09-2002, 11:39 PM
#4
Well man, i just use getstatus instead of status :) Then i parse the output. Hope that helps.


SimMacDaddy was here ....
 MatrixCPA
05-10-2002, 12:49 AM
#5
getstatus is not a valid console command.
 SimMacDaddy
05-10-2002, 6:17 AM
#6
Yes, sorry, i used to send raw udp packages. it's pretty simple, when you setup an UDP connection. Then i send four Chr(255) + getstatus + Lineend (i think its \X000 but I'm not sure, gotta look at the code ;)) That worked perfectly for me.
 MatrixCPA
05-10-2002, 11:59 PM
#7
Ah, I see. But, does that info contain the client numbers as well? Or just the player list. The key for me is the connection between a player's name and their client number. I emailed Raven and they said that if it doesn't risk a buffer overrun somewhere, they'll change it back. :) I have my fingers crossed.
 SimMacDaddy
05-11-2002, 12:10 AM
#8
Sorry, it just lists the player names in ascending order, but without the id displayed. Maybe you can combine those two, tho achieve what you tryin' to do ? :)
 MatrixCPA
05-11-2002, 12:28 AM
#9
The only think I could think of would be to get a status and serverstats at the exact same time and then take the full names from the serverstatus and combine them with the clientnumber order. It's a pain though because you need to get them with 0 delay because if someone joins in between, it'll mess that up. I'm just gonna hold out for Raven to "untruncate" the status command.
 Falryx
05-16-2002, 4:25 PM
#10
Hey Matrix,

Ever thought about how to have the bot work remotely (or even if that's possible)? The system I run on requires only game servers running, so all my administration stuff has to be done from a remote server -- I'd love a valid admin-bot, but need one which can work from afar.
 MatrixCPA
05-17-2002, 4:52 AM
#11
Sorry, this bot needs to trail the server logs and that basically requires that it run on the same box.
 Yonatanz
05-18-2002, 5:39 PM
#12
MatrixCPA, I am not familiar with your admin bot, and I am not aware of its capabilities... can you link me to some website with more information?
I am looking for some addon or something that will allow me to set a list of players, each one with his own unique password, and let only these ppl play on the server.
Is your bot capable of doing that? if so, it will be of great help for me.
 Aerys
05-21-2002, 12:56 AM
#13
FWIW, my wishlist:

Players are informed of the server rules when they join the game.

Players who attack unarmed players (saber down) are kicked after a certain number of violations.

Players who use vulgar language or epithets are kicked.

Like I said, it IS a WISHlist... :)
 NITEMARE
05-21-2002, 8:45 AM
#14
i hope u get a grip of this patch soon matrixcpa. cuz i am a server admin too and was dreaming of a ladder system for our board(a full time ladder from the stats). but despite the basic problematics of gathering information from the logs and put it on html, there is also the problem of unique nicknames. its no good to have a ladder if the system cannot recognize the real guys. mabe the patch brought us some advantages after all. now the shadow color is invisible, but one stil can select one. since its invisible to the other players, but not to the server i hope, it could be possible to have unique names recognized as the real ones by the system.
 MatrixCPA
05-21-2002, 2:43 PM
#15
Originally posted by Aerys
FWIW, my wishlist:

Players are informed of the server rules when they join the game.

Players who attack unarmed players (saber down) are kicked after a certain number of violations.

Players who use vulgar language or epithets are kicked.

Like I said, it IS a WISHlist... :)

The bot is already capable of providing a "message of the day" which is a broadcast from the console every X seconds. If the rules are short and sweet, that wouldn't be a problem. However, the message is frequently lost if there's a lot of killin' or shoutin' going on.

The is no way to tell from the server console what players have their saber up or down. So, #2 isn't possible yet.

The bot is already capable of kicking players with vulgar names (as defined by the admin). It can also detect what players say or teamsay, so #3 is possible.

It looks like modified status command works perfectly. However, I've yet to figure out how to get the CUIC's to show up in the log. I have g_logClientInfo "1" set, which I figure would do the trick...but nothing yet. I'll mess around with it a bit and see what I can get.
 Aerys
05-21-2002, 3:14 PM
#16
Yes, I figured it would require some sort of intelligent packet sniffer to do something like #2... hence the WISHlist... :)

Thanks for your work and sharing, as always...
 NITEMARE
05-21-2002, 3:40 PM
#17
good feature it would be tho. a log parser could then gather more stats, like stance or special moves ussage ect...
 CCGA_Spectere
05-22-2002, 4:52 PM
#18
Has anyone had any luck with redirecting the log file to a specific IP and port number? I believe the settings in the config are:

mp_logmessages "1"
logaddress "XXX.XXX.XXX.XXX"
logport "XXXX"

If this would work, then all you have to do is redirect the log to a port. Open a UDP connection to that port and parse what comes through. That way you can get all the information (Team points, Team members..., etc.) I'm doing something like this with Counter Strike but can't get it to work. Any help would be appreciated.

Thanks
 MatrixCPA
05-22-2002, 8:07 PM
#19
I don't know of any way to redirect the logs off the server through the application itself. The 3 cvars you listed above don't exist in JK2. Now, it may be possible to have a mod or separate application stream the log to another box. At this time, I'm not aware of any such mods/applications.
 NITEMARE
05-22-2002, 9:22 PM
#20
wel that would be very usefull. why do i have to join the server everytime i want to know whats going on? if i would get the chat messages and other console stuff with a remote console, it would be much easier to manage the server. the only thing i got for now ist the console from the all seeing eye which doesn't give me any feedback besides mapchange info when i change the map manually...
 CCGA_Spectere
05-22-2002, 11:50 PM
#21
Thanks MatrixCPA. I figured it may not be possible. It shouldn't be too hard to get some type of mod that does it. I know that CounterStrike and Half-life has that ability. We just need to figure a way to emulate the same function.

I'll keep you posted if I figure anything out.
 MatrixCPA
05-23-2002, 12:01 AM
#22
Nitemare, if you are connecting to the remote console, you can see all the chat messages, kills, etc--basically everything that you get in the log, you see in the console. If you are running the server on 'nix then it's pretty simple to get into the server console. If you're running it on windows, then you need something like PCanywhere to use the server console remotely.
 NITEMARE
05-23-2002, 7:08 AM
#23
heh thx, but we just have a sponsored server and jk2 is a new feature for the host. so they dont have any extras installed, well and there are not many extras to choosem from anyway...
i can't put anything but maps and skins on the ftp, so ill have to wait...and wait...and wait...
 CCGA_Spectere
05-23-2002, 8:56 AM
#24
Is there a way to get the messages from a remote console using the UDP protocol? I can send rcon commands to the server using UDP, but I want to be able to see the messages. If I could do this, then I wouldn't need to parse the logs.
 MatrixCPA
05-23-2002, 2:52 PM
#25
I don't believe there is any built-in facility to output the console in that manner. It would probably take an external app to do the job of reading the log and redirecting the output.
 KnightHawk420
05-23-2002, 6:54 PM
#26
So hmmm what is the status of the admin bot?

I run a server with 2 rules, and am getting sick of hitting my bind all the time for it. If I just had a util to flash a server msg I'd be happy. :)
Page: 1 of 1