Jump to content

Console errors after RUST update

Closed 2.1.18 Next Version

VENIQQ
VENIQQ

Posted

05/02 21:46:20 | MySql handle raised an exception (MySqlException: Incorrect string value: '\xF0\x9F\x8C\x9F' for column `of_xstatistics`.`StoredDataT_pve`.`UserName` at row 1)
at MySqlConnector.Core.ServerSession.ReceiveReplyAsync (MySqlConnector.Protocol.Serialization.IOBehavior ioBehavior, System.Threading.CancellationToken cancellationToken) [0x0011b] in <dbba0abc564f4cbc913b724e430f6d9b>:0
at MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync (MySqlConnector.Protocol.Serialization.IOBehavior ioBeha

Monster

Posted

Do you have players with non-standard characters in their nicknames or emojis?

VENIQQ

Posted

Yes I have, and their nicknames are not being stripped by the plugin

VENIQQ

Posted

@MonsterIs there any way to strip player names from characters that prevent DB write? Can this be embedded in one of the releases so that I don't need to GPT-shitcode this? 😄

  • Like 1
VENIQQ

Posted

This was fixed by adjusting default UserName column type in MySQL.
You can fix it for the plugin by adjusting

ALTER TABLE StoredDataT_pve

MODIFY UserName VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

I suppose you can fix this in your code by forcing "UserName" column charset to utf8 when table is initially created by the plugin. line 867.

_mySql.ExecuteNonQuery(Sql.Builder.Append($"CREATE TABLE IF NOT EXISTS {config.DB.TableName2} (userID BIGINT(17) PRIMARY KEY, ActStats BOOLEAN, PlayTimeAll INT(10), KillAll INT(10), DeathAll INT(10), FirstCon INT(10), LastCon INT(10), UserName VARCHAR(64), ActTOPChat BOOLEAN);"), _mySqlConnection);

 

Monster

Posted

Changed Status from Pending to Closed

Changed Fixed In to Next Version

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.9k
Customers served
Files Sold
156.7k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.