May 22, 2019, 07:47:34 AM

Author Topic: given lvl logging  (Read 1989 times)

Offline Joao

  • Level 7 Expert
  • *****
  • Posts: 615
  • Country: br
given lvl logging
« on: June 30, 2014, 04:47:31 AM »
pls I really need to catch some bad admins giving lvl to theirselves... how can I log level giving and stuff in wcs version wcs_v0.78.5g.4g.3


?? please I need help... I ain't no coder so pls dont tell me to it myself as I can't.

Offline Kamiqawa

  • Watchdog
  • Level 7 Expert
  • *****
  • Posts: 784
  • Country: fi
Re: given lvl logging
« Reply #1 on: June 30, 2014, 09:47:25 AM »
Have you checked wcs's own logs? I think it might already log it. If not, you can use wcs.logging.log to log it but quickly went through the file snd therr already eas some logs.
Ps. Im currently on cruise in the middle of the sea so I have no stable internet and Im just using my phone so sry for all the typos
« Last Edit: June 30, 2014, 09:50:56 AM by Kamiqawa »
Want your own custom color for your forum username? No worries! La Muerte is here ready to fulfill your every rainbow-colored wish!

As a special offer of the day you can go talk with Tha Pwned first, and come ahead of the line!

I AM PINK!


Offline Joao

  • Level 7 Expert
  • *****
  • Posts: 615
  • Country: br
Re: given lvl logging
« Reply #2 on: June 30, 2014, 11:47:03 PM »
how to use  wcs.logging.log ?

Offline Joao

  • Level 7 Expert
  • *****
  • Posts: 615
  • Country: br
Re: given lvl logging
« Reply #3 on: July 01, 2014, 01:58:39 AM »
I tried

logging.log('wcsadmin: Information: ' + getplayername(userid) + ' (' + getplayersteamid(userid) + ') gave ' + amount + ' levels to all')

some places in the code, but before that wcs.logging.log ... none works ?? why?

Offline Joao

  • Level 7 Expert
  • *****
  • Posts: 615
  • Country: br
Re: given lvl logging
« Reply #4 on: July 01, 2014, 10:30:43 PM »
pls kami help me >.<

Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1062
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: given lvl logging
« Reply #5 on: July 02, 2014, 02:55:44 AM »
pls kami help me >.<

Kamiqawa is in the middle the sea on a cruise, that he replied in the first place is a miracle :p
I guess you'd just have to be patient and wait for him to come home, I don't think bumping the thread will make him respond faster, he already said he'll be helping you once he's home and have the time :)
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."


Offline Joao

  • Level 7 Expert
  • *****
  • Posts: 615
  • Country: br
Re: given lvl logging
« Reply #6 on: July 02, 2014, 07:52:43 AM »
ok.. i forgot.. if you or anyone is able to help me I appreciate..

Offline Kamiqawa

  • Watchdog
  • Level 7 Expert
  • *****
  • Posts: 784
  • Country: fi
Re: given lvl logging
« Reply #7 on: July 02, 2014, 01:10:52 PM »
I'm home but not on PC until later today - I'll help you in couple of hours.
Want your own custom color for your forum username? No worries! La Muerte is here ready to fulfill your every rainbow-colored wish!

As a special offer of the day you can go talk with Tha Pwned first, and come ahead of the line!

I AM PINK!


Offline Kamiqawa

  • Watchdog
  • Level 7 Expert
  • *****
  • Posts: 784
  • Country: fi
Re: given lvl logging
« Reply #8 on: July 02, 2014, 11:44:07 PM »
1. Rename your old wcs/addons/admin/admin.py to adminBUP.py or w/e to back it up.
2. Put in the new admin.py file from the attachment zip of this reply
3. Restart the server
4. Logs now appear in wcs/logs folder as usual



Went a bit late but no can do, too busy with everything else.

Tested briefly, should now log everything ["to log" means, in practice, that it prints all wcsadmin menu give functions to server console and saves it to wcs/logs/xxxx.txt
Added logs for giving cash, xp and levels via menu to one person or to all players so now you should be able to track everything. By the way, I don't know if you even knew this but you can also give cash/xp/levels via console command wcsgivecash/xp/level <uid> <amount> - it's now being logged too. One note though, you shouldn't trust the amount of reports 100% as some of the logs may appear twice on the same activation [mainly if stuff is given to all players it creates two log lines instead of just one - I didn't really bother reading the code because I was busy and a bit lazy, hope you don't mind, lol].

Go, have fun with it, lol. And if you could, I would love to hear if it works fine for you so maybe someone else could find it helpful too!

Best regards,
Kamiqawa
« Last Edit: July 02, 2014, 11:54:20 PM by Kamiqawa »
Want your own custom color for your forum username? No worries! La Muerte is here ready to fulfill your every rainbow-colored wish!

As a special offer of the day you can go talk with Tha Pwned first, and come ahead of the line!

I AM PINK!


Offline Joao

  • Level 7 Expert
  • *****
  • Posts: 615
  • Country: br
Re: given lvl logging
« Reply #9 on: July 04, 2014, 11:07:35 PM »
OMG Kami.. I can't say with words how thankful I am !!

Seriously its just perfect! Look! :O

Thankkkks a lottt!!!

L 07/04/2014 - 17:06:50: wcsadmin: Information: |ImP™| Sirr (STEAM_0:1:686xxx97) gave 1 levels to |ImP™| Sirr (STEAM_0:1:68862797)
L 07/04/2014 - 17:06:53: wcsadmin: Information: |ImP™| Sirr (STEAM_0:1:688xxx97) gave 1 levels to all players
L 07/04/2014 - 17:06:55: wcsadmin: Information: |ImP™| Sirr (STEAM_0:1:688xxx797) gave 1 xp to |ImP™| Sirr (STEAM_0:1:68862797)
L 07/04/2014 - 17:06:57: wcsadmin: Information: |ImP™| Sirr (STEAM_0:1:68xxx797) gave 1 xp to all players
L 07/04/2014 - 17:07:01: wcsadmin: Information: |ImP™| Sirr (STEAM_0:1:68xxx797) gave 1 cash to |ImP™| Sirr (STEAM_0:1:68862797)
L 07/04/2014 - 17:07:04: wcsadmin: Information: |ImP™| Sirr (STEAM_0:1:68xxx797) gave 1 cash to all players

Offline Kamiqawa

  • Watchdog
  • Level 7 Expert
  • *****
  • Posts: 784
  • Country: fi
Re: given lvl logging
« Reply #10 on: July 05, 2014, 11:05:04 AM »
 :) glad you liked it!
Want your own custom color for your forum username? No worries! La Muerte is here ready to fulfill your every rainbow-colored wish!

As a special offer of the day you can go talk with Tha Pwned first, and come ahead of the line!

I AM PINK!


Offline Joao

  • Level 7 Expert
  • *****
  • Posts: 615
  • Country: br
Re: given lvl logging
« Reply #11 on: July 05, 2014, 11:26:06 AM »
i didnt like it! I love it ! haha thanks a lot man, peace!!

Offline Joao

  • Level 7 Expert
  • *****
  • Posts: 615
  • Country: br
Re: given lvl logging
« Reply #12 on: July 07, 2014, 08:22:57 PM »
prob is high values of lvl in ESC menu doesnt show the "Admin Name gave 50 levels to everyone"

Offline Joao

  • Level 7 Expert
  • *****
  • Posts: 615
  • Country: br
Re: given lvl logging
« Reply #13 on: July 08, 2014, 03:25:15 AM »
can you tell me whenever you can how to do the same with levelbank?