Author Topic: More natural language in event logging  (Read 3043 times)

0 Members and 1 Guest are viewing this topic.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
More natural language in event logging
« on: September 10, 2009, 07:32:56 PM »
Check it out! Here's the output while at console:
Quote
ulx slap *
(Console) slapped [ULX]Megiddo,Bot37 with 0 damage
[ULX]Megiddo: !slap *
[ULX]Megiddo slapped themself,Bot37 with 0 damage

And here's that same event from the client:
Quote
(Console) slapped You,Bot37 with 0 damage
[ULX]Megiddo: !slap *
You slapped yourself,Bot37 with 0 damage

"You" and "yourself" is also colored in a reserved color. :D
Console is shown as black, other player names are shown in group colors, arguments (0 in this case) are shown in green, everything else is a light blue.

Thanks goes to the local fuzzy spark for this idea. :)
« Last Edit: September 10, 2009, 07:38:15 PM by Megiddo »
Experiencing God's grace one day at a time.

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: More natural language in event logging
« Reply #1 on: September 11, 2009, 11:54:32 AM »
Needs a space after the comma!

Offline Dv2236

  • Jr. Member
  • **
  • Posts: 89
  • Karma: 0
    • MyGamingVoid
Re: More natural language in event logging
« Reply #2 on: September 11, 2009, 02:54:11 PM »
Ya after this svn update I got a server load screen that looks like this.
Code: [Select]
///////////////////////////////
//      Ulysses Library      //
///////////////////////////////
// Loading...                //
//  shared/defines.lua       //
//  shared/misc.lua          //
//  shared/util.lua          //
//  server/upgrade.lua       //
//  server/hook.lua          //
//  server/gamemode_hooks.lua//
//  shared/table.lua         //
//  shared/player.lua        //
//  server/player.lua        //
//  shared/messages.lua      //
//  shared/concommand.lua    //
//  shared/commands.lua      //
//  server/concommand.lua    //
//  server/util.lua          //
//  shared/sh_ucl.lua        //
//  server/ucl.lua           //
//  server/phys.lua          //
//  server/player_ext.lua    //
//  server/entity_ext.lua    //
// Load Complete!            //
///////////////////////////////
[ULIB] Loading SHARED module: ulx_init.lua
///////////////////////////////
//       ULX Admin Mod       //
///////////////////////////////
// Loading...                //
//  sh_defines.lua           //
//  lib.lua                  //
//  base.lua                 //
Warning! Called deprecated function ULib.begin_subconcommand. Use the functions
under ULib.cmds.* now
Warning! Called deprecated function ULib.concommand. Use the functions under ULi
b.cmds.* now
Warning! Called deprecated function ULib.concommand. Use the functions under ULi
b.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
//  log.lua                  //
//  MODULE: chat.lua         //
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
//  MODULE: fun.lua          //
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
//  MODULE: menus.lua        //
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.concommand. Use the functions under ULi
b.cmds.* now
Warning! Called deprecated function ULib.concommand. Use the functions under ULi
b.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.concommand. Use the functions under ULi
b.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.concommand. Use the functions under ULi
b.cmds.* now
//  MODULE: rcon.lua         //
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
//  MODULE: slots.lua        //
//  MODULE: teleport.lua     //
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
//  MODULE: toolmode.lua     //
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
//  MODULE: user.lua         //
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
//  MODULE: util.lua         //
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
//  MODULE: vote.lua         //
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
//  MODULE: votemap.lua      //
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
Warning! Called deprecated function ULib.add_subconcommand. Use the functions un
der ULib.cmds.* now
//  MODULE: userhelp.lua     //
//  end.lua                  //
// Load Complete!            //
///////////////////////////////
[resource.AddFile] File materials\expression 2\cog_world.vtf didn't exist!
================================
===  Wire  1621 (exported)   Installed  ===
================================
======== Beam NetVars Lib v0.71 Installed ========
ERROR! Module 'zlib_b64' not found!
==== Advanced Duplicator v.1.72 shared module installed! ====
Added EntCheckHook: AdvDupe_NoItems
Added EntCheckHook: AdvDupe_DisallowedClasses
Added EntCheckHook: AdvDupe_ModelCheck
==== Advanced Duplicator v.1.85 server module installed! ====
Registering gamemode 'sandbox' derived from 'base'
ScriptEnforce is disabled

Stacker Version 2.6 loaded.

Loading Wire Tools
[resource.AddFile] File models\ZeikJT\Holograms\torus3.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\torus3.jpg didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\prism.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\prism.jpg didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\cone.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\cone.jpg didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\torus2.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\torus2.jpg didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\torus.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\torus.jpg didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\icosphere3.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\icosphere3.jpg didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\cylinder.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\cylinder.jpg didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\sphere.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\sphere.jpg didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\cube.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\cube.jpg didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\icosphere2.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\icosphere2.jpg didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\pyramid.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\pyramid.jpg didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\icosphere.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\icosphere.jpg didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\sphere3.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\sphere3.jpg didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\sphere2.ani didn't exist!
[resource.AddFile] File models\ZeikJT\Holograms\sphere2.jpg didn't exist!
Executing dedicated server config file
Adding master server 69.28.140.247:27011
Adding master server 72.165.61.189:27011
Connection to Steam servers successful.
   VAC secure mode is activated.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: More natural language in event logging
« Reply #3 on: September 11, 2009, 03:01:12 PM »
Yep. Give me some time, I have to go through each function one by one and change it over.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: More natural language in event logging
« Reply #4 on: September 11, 2009, 03:38:18 PM »
Reminds me of an error I see in older HL2 mods about a worldblend on displacement texture "going away soon".
Fun thing is, I've been seeing that error almost 4 or 5 years now.
Good thing... the mods that were updated even as late as january of this year are still using it :P

Oh, and atomicspark... the thread is 'more natural' ... not "grammatically and punctuationally correct"
:P
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: More natural language in event logging
« Reply #5 on: September 11, 2009, 04:05:14 PM »
It'll be more annoying! :(

Edit: Well, I assume we'll still have a one log entry/echo per target still. So there wouldn't really be a comma. Unless we decided to make logs complicated.
« Last Edit: September 11, 2009, 11:07:10 PM by atomicspark »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: More natural language in event logging
« Reply #6 on: September 12, 2009, 11:02:25 AM »
It'll be more annoying! :(

Edit: Well, I assume we'll still have a one log entry/echo per target still. So there wouldn't really be a comma. Unless we decided to make logs complicated.

I don't see any real reason why they should be separated, do you?
Experiencing God's grace one day at a time.

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: More natural language in event logging
« Reply #7 on: September 12, 2009, 12:34:50 PM »
Yes, for neatness and predictability!

Imagine, if you will, if you targeted a 16 slot server. It is more noticeable when it's separated, instead of just a long string of random characters. Having it separated also makes it a lot easier to scan for player names in the logs too.

I just think this is one of those things that shouldn't be changed, just to be changed. There was nothing wrong with the old format. Sure it's kind of weird when you target yourself, but how often does that actually happen? :P