BadgerCode / tttdamagelogs

Damagelogs and RDM Manager for Trouble in Terrorist Town (a Garry's Mod gamemode)
GNU General Public License v3.0
19 stars 23 forks source link

Weird Characters in name turn the names in the logs to numbers #23

Closed Yogpod closed 3 years ago

Yogpod commented 3 years ago

image image

BadgerCode commented 3 years ago

Hey. Thanks for raising this!

Could you add the name you used to this issue? This might be fixed by #22 , or it might need a similar fix to a different query.

Yogpod commented 3 years ago

Yogpod⁧⁧what

Yogpod commented 3 years ago

characters are in that text between what and my name

BadgerCode commented 3 years ago

Cheers!

BadgerCode commented 3 years ago

I don't seem to be able to replicate this with v3.3.2 of the addon. I used using SQLite (the default option) to store the old logs.

preview preview

Are you using SQLite (default option; built into Garry's Mod) or MySQL for your old logs? And could you tell me what operating system are you playing on?

Yogpod commented 3 years ago

SQLite, playing on windows, server is linux64, client is win64

BadgerCode commented 3 years ago

Cheers. I'll try it on my Linux server

BadgerCode commented 3 years ago

I've tested this on the following setup:

I was unable to reproduce the issue 🙁


These are the lines that set up each player's name & role for a round in the damage logs: https://github.com/BadgerCode/tttdamagelogs/blob/4a0ca3f9fed53603556760ab59ef45f7be4a135a/lua/damagelogs/server/init.lua#L88-L96

They run when the round begins (TTTBeginRound) and when the player first spawns.

I'm not sure what's causing the addon to lose your player name.

Yogpod commented 3 years ago

Looks like #22 fixed it

BadgerCode commented 3 years ago

Ah great. That's good to hear!

I will release that with the next update. If you want to download it now, you can get it on the next-version branch