Author Topic: Modify certain ConsoleLog entires to be more conclusive  (Read 3506 times)

0 Members and 1 Guest are viewing this topic.

Offline Vv00t-SN

  • Camper
  • ***
  • Posts: 374
  • I aim to please!
    • fuck you skoskav & everyone else fucking with my profile all the time.
Modify certain ConsoleLog entires to be more conclusive
« on: August 03, 2013, 07:36:37 am »
I) banned player attempting to join produces inconclusive log entry

consider the following scenario:
1) player gets banned (for example by using /banhw <hwid> or just by using "/ban <playernumber>")
2) banned player attempts to join at a later date
3) log merely states: <ip>:<port> requesting game...

this line in the log is inconclusive and not very helpful:
1) it does not state that the player attempting to join is banned --> no distinction possible between banned player attempting to join and non-banned player who joins the server but does not select a team
2) it does not show the player's hwid, although clearly a hwid check is carried out --> when wanting to unban that player, the admin has to "manually" figure out the player's hwid first!


Suggestion: modify the log line to provide more information. In fact, a lot more info could be helpful here, such as the ip of the original banner or the date of the ban:

<banned nick> <banned ip> <banned hwid> requesting game... (<banreason>; <banner ip>; <ban date>)

..or something like that.



II) normal chat cannot be formally distinguished from system messages, commands, etc.

Code: [Select]
(14:20:17) Time Left: 1 minutes
(14:20:19) NOP (176.11.101.26)
(14:21:17) Next map: ctf_Laos
(14:21:22) Laos
(14:22:26) NOP (176.11.101.26)
(14:22:45) 62.156.36.231:23073 requesting game...
(14:22:46) \\D// Zeager (SN) joining game (162.165.36.21:23073) HWID:79677976C09
(14:22:46) \\D// Zeager (SN) has joined alpha team.
(14:22:53) \\D// Zeager (SN) added to Game Admins
(14:22:58) /map ctf_Rotten(162.165.36.21[\\D// Zeager (SN)])
(14:23:03) ctf_Rotten by Biggles
(14:23:02) [\\D// Zeager (SN)] bla bla bla
(14:23:17) (TEAM)[\\D// Zeager (SN)] bla
(14:23:19) \\D// Zeager (SN) has left alpha team.

As you can see, commands and system messages are formally indistinguishable from non-team chat.

Suggestion: put (CHAT) or something in front of those lines.



These are just two things that bothered me for a while now. Im not sure how popular these suggestions are, since most people probably dont have to deal with these things often or at all. Nonetheless, I do think these modifications Ive suggested would be very helpful to some of us.

either this kid has a lightbulb up his butt, or his colon has a great idea.
Soldat Quote DB: http://qdb.soldatgather.com/

Offline Vos

  • Soldier
  • **
  • Posts: 231
    • http://kosoldat.forumer.com/index.php
Re: Modify certain ConsoleLog entires to be more conclusive
« Reply #1 on: August 03, 2013, 08:08:13 am »
I am definitely in favour about putting hwids in addition to just ips on the consolelog when a player is requesting to join, would be much easier instead of ''manually'' getting their hwid by looking back into logs or whatsoever.

I however dont think that the banner's IP is a must to be shown nor the reason of his ban, it will definitely be helpfull in some situations though, but not neccesarily a must if you ask me.

as for your second suggestion, it's probably better to put something like [Lobby] or [Game] or whatsoever in front of the requestings messages etc, i'd like that more personally.

all but all, good suggestions in my oppinion
For signatures, you are allowed only one image in your signature which may not be wider and taller than 300 and 125 pixels, and may not be over 20kB in file size. No BMPs are allowed.

Offline Furai

  • Administrator
  • Veteran
  • *****
  • Posts: 1908
    • TransHuman Design
Re: Modify certain ConsoleLog entires to be more conclusive
« Reply #2 on: August 03, 2013, 10:57:21 am »
I fully back up Vv00t-SN's suggestion. These things will be really useful.
"My senses are so powerful that I can hear the blood pumping through your veins."

Offline SyavX

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 338
Re: Modify certain ConsoleLog entires to be more conclusive
« Reply #3 on: August 03, 2013, 11:08:12 am »
http://bugs.soldat.pl/view.php?id=143
Quote
Date Submitted
2011-12-20 23:55

Offline Vos

  • Soldier
  • **
  • Posts: 231
    • http://kosoldat.forumer.com/index.php
Re: Modify certain ConsoleLog entires to be more conclusive
« Reply #4 on: August 03, 2013, 11:12:18 am »
its not a bug though
For signatures, you are allowed only one image in your signature which may not be wider and taller than 300 and 125 pixels, and may not be over 20kB in file size. No BMPs are allowed.

Offline Bistoufly

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 782
Re: Modify certain ConsoleLog entires to be more conclusive
« Reply #5 on: August 03, 2013, 11:29:02 am »

II) normal chat cannot be formally distinguished from system messages, commands, etc.

Code: [Select]
(14:20:17) Time Left: 1 minutes
(14:20:19) NOP (176.11.101.26)
(14:21:17) Next map: ctf_Laos
(14:21:22) Laos
(14:22:26) NOP (176.11.101.26)
(14:22:45) 62.156.36.231:23073 requesting game...
(14:22:46) \\D// Zeager (SN) joining game (162.165.36.21:23073) HWID:79677976C09
(14:22:46) \\D// Zeager (SN) has joined alpha team.
(14:22:53) \\D// Zeager (SN) added to Game Admins
(14:22:58) /map ctf_Rotten(162.165.36.21[\\D// Zeager (SN)])
(14:23:03) ctf_Rotten by Biggles
(14:23:02) [\\D// Zeager (SN)] bla bla bla
(14:23:17) (TEAM)[\\D// Zeager (SN)] bla
(14:23:19) \\D// Zeager (SN) has left alpha team.

As you can see, commands and system messages are formally indistinguishable from non-team chat.

Suggestion: put (CHAT) or something in front of those lines.



Thank you. Added in mantis. See: http://bugs.soldat.pl/view.php?id=368


Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Modify certain ConsoleLog entires to be more conclusive
« Reply #6 on: August 03, 2013, 06:33:05 pm »
I dont see the issue.
Normal chat looks like this:
[playername] chattext
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Modify certain ConsoleLog entires to be more conclusive
« Reply #7 on: August 03, 2013, 08:11:35 pm »
I'm not certain if this is the issue at hand, but related at least. When somebody named "MyNick" says "has left alpha team.", I suspect it would appear like this in the logs: "(00:00:00) [MyNick] has left alpha team.". This message is ambiguous between the person named "MyNick" saying "has left alpha team." and a person named "[MyNick]" actually leaving alpha team, which would result in the same line in the log ("(00:00:00) [MyNick] has left alpha team."), making it indistinguishable except by someone who backtracks/forwardtracks and checks if the person actually left; if they did not actually leave, the message has to have been a spoken one.
« Last Edit: August 04, 2013, 06:33:29 am by DorkeyDear »

Offline Vv00t-SN

  • Camper
  • ***
  • Posts: 374
  • I aim to please!
    • fuck you skoskav & everyone else fucking with my profile all the time.
Re: Modify certain ConsoleLog entires to be more conclusive
« Reply #8 on: August 04, 2013, 05:02:22 am »
I'm not certain if this is the issue at hand, but related at least. When somebody named "MyNick" says "has left alpha team.", I suspect it would appear like this in the logs: "(00:00:00) [MyNick] has left alpha team.". This message is ambiguous between the person named "MyNick" saying "has left alpha team." and a person named "[MyNick]" actually leaving alpha team.

no - one does have brackets [] around the nick, like Shoozza just mentioned, so it is technically possible to tell those two apart if you concentrate ;)

@Shoozza: Youre technically right, there are brackets around the nicks. However, the fact that I'm only just noticing this now (and others haven't noticed at all) should tell you that a more prominent "tag" could be useful - and if it's just to hide / skip past those lines when logviewing etc.

At any rate, part I) is the real issue here.

either this kid has a lightbulb up his butt, or his colon has a great idea.
Soldat Quote DB: http://qdb.soldatgather.com/

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Modify certain ConsoleLog entires to be more conclusive
« Reply #9 on: August 05, 2013, 04:41:40 am »
I think we can all agree on fact that current "protocol" cannot be even called a protocol, because it's just a randomly split out bundle of strings that you're struggling to parse. It can't be removed either though for backward compatibility reasons, but there can be added something new next to it.
I'm not going to write new admin protocol from scratch, I'm done with huge modifications after implementing SC3, at least for some time. But, it doesn't mean this won't be done, but that requires your help.
You have scripting, you have dll/so support. You have everything required to write a new admin protocol that'd be easy to parse, verbose and secure enough for you to use it. If somebody writes such a script (or library, preferbly pascal one :P), then i might find a motivation to add it to soldatserver (if Shoozza approves it as well). Until then, that script will have a chance to get popular ;)
« Last Edit: August 05, 2013, 04:49:03 am by FalconPL »
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline 14th_account

  • Soldier
  • **
  • Posts: 208
Re: Modify certain ConsoleLog entires to be more conclusive
« Reply #10 on: August 05, 2013, 07:21:39 am »
The first suggestion seems like it'd be a relatively quick fix.

As for having more distinguishable log lines, it doesn't seem like it'd be a too huge effort for us to add details and do some cleanup. What about a format like the following?

Code: [Select]
14:20:17 Message : Time Left: 1 minutes
14:20:19 Command : NOP (176.11.101.26)
14:21:17 Message : Next map: ctf_Laos
14:21:22 Message : Laos
14:22:26 Command : NOP (176.11.101.26)
14:22:45 Event   : 62.156.36.231:23073 requesting game...
14:22:46 Event   : \\D// Zeager (SN) joining game (162.165.36.21:23073) HWID:79677976C09
14:22:46 Event   : \\D// Zeager (SN) has joined alpha team.
14:22:53 Event   : \\D// Zeager (SN) added to Game Admins
14:22:58 Command : /map ctf_Rotten(162.165.36.21[\\D// Zeager (SN)])
14:23:03 Message : ctf_Rotten by Biggles
14:23:02 Chat    : [\\D// Zeager (SN)] bla bla bla
14:23:17 ChatTeam: [\\D// Zeager (SN)] bla
14:23:19 Event   : \\D// Zeager (SN) has left alpha team.

Or do a lot of server owners run some important log parsing tools that would break from this?

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: Modify certain ConsoleLog entires to be more conclusive
« Reply #11 on: August 05, 2013, 08:39:30 am »
it will break stuff. so if its changed we might want to change a bit more then that.

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline Fryer

  • Camper
  • ***
  • Posts: 261
  • Game dev
Re: Modify certain ConsoleLog entires to be more conclusive
« Reply #12 on: August 05, 2013, 01:29:30 pm »
I think one of the most annoying things to parse when reading the lines into a bot are the ambiguous chat lines that sometimes occur:
Quote
[weird nick] !cmd [] ] stuff
In the above there are three different possibilities for which nick to use. OFC there are tricks to figuring it out, but anything making stuff like this easier would be nice.
...PC vs Mac is like AK47 vs M4A1...
<DutchFlame`> i once heard running runescape in the background gave you a speedboost
<Mr> yes, it allocates more electrons, so there are more electrons available for Soldat -> they are streched less and it is more fluent

Soldat PolyWorks 1.5.0.13 - AimMode - Aim practise gamemode script - Fryer's SoldatStream Mod