From 619dbffbfaefa51c3e67d1dba397b546fa743652 Mon Sep 17 00:00:00 2001 From: JustinAJ Date: Tue, 2 Sep 2014 20:50:16 -0400 Subject: [PATCH] Corrected precision to 16 digits instead of 8. --- Release/Plugins/RenX.Core.lib | Bin 52542 -> 52542 bytes RenX.Commands/RenX_Commands.cpp | 4 ++-- RenX.Core/RenX_Server.cpp | 4 ++-- .../ExcessiveHeadshots.cpp | 2 +- RenX.Logging/RenX_Logging.cpp | 2 +- RenX.SetJoin/RenX_SetJoin.cpp | 8 ++++---- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Release/Plugins/RenX.Core.lib b/Release/Plugins/RenX.Core.lib index fb1ded9079c2bf2854570631974c0ab3c7bdda62..e21e5eea875019013391156b155971745a972e7a 100644 GIT binary patch delta 2621 zcmZ8jTTGN!5QbtAs{$3{ZbB#_O*JA7&{hcr1gUaqkxQYat*MYEG_eR`)AXT8cexa~ zv+ST0%2hzX&9bZu0&amt(FKLFJ~j3dOPf9z6Tyc*G&H3%XMX-;ecSV$xqS1@%=ve^ z&11UF!w~54dgN>10F5=$7_<4?_Gip6A6$A3n2UYfM{HBYUeD3JQKx|iC4{V&c)K&Q z7f<_iA>ssK6B;Pc`?-%msXj$Sbm@cfw60GOC%XT2lJ3uxzN;cXmlCpC${u8sZztqb znY7`k56h%YTDjl$kvz|=18#0^o^D&?S*avZkp%?_o1mz%=hH=w zwJthMo&P{NX&|(U3wZ-6`C=g%JNChV-Wzh8HNr-U=B$!}u#Ab-jBr$EwT!wnO{E{N z$x>t3YY17cd0WkFwh@w8`;m$u7qY2+Um)DP%sSSCYPHqTy|XS}x!1tU^@K#!ALSUW zTKM<7U5E_TpHq>z20}6$z7|NFRcpLLz(&It3P6(dH1cT;LxdUV{w+g=xOadSeiz7J zh6XigXA{|2oAjzpijj~Uqd`G5unmY@0CX#eXfM>MF_>6?GZUlChc8f!j0;GR2GSoWjsf0qyNvTwDj8 z@;g{AO24O*((msys>QR&4?9`p+Eh|&ne*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3KzZDQJRLb0HIb%c`82+Wty6$++(ILH%u@VBJN~e6;V8EVNOGrQ zK)r7`7zbrQ7RF;(2t&b&hj$ByWOPVFhv3X;WFS9`+JPs6xAJxCdvV~2?RbpFm zmG7lT(6~UJRxTIGMR-L+p=Qny@;nbF2={IDa>qZkDU{aNM|CtN_o->@9UNGQ=F`yTsDSw4U>vmOi$1^E8oN z^Zdc4YWdHHc0v3dAtzq*<^>T2l(z+)!ft=bM35SPt2lh&x_y7O^ diff --git a/RenX.Commands/RenX_Commands.cpp b/RenX.Commands/RenX_Commands.cpp index b14b83b..385d3f7 100644 --- a/RenX.Commands/RenX_Commands.cpp +++ b/RenX.Commands/RenX_Commands.cpp @@ -355,7 +355,7 @@ void PlayerInfoIRCCommand::trigger(IRC_Bot *source, const Jupiter::ReadableStrin else msg += "IP Not Found" IRCBOLD; } if (player->steamid != 0) - msg.aformat(" - Steam ID: " IRCBOLD "0x%.8llx" IRCBOLD, player->steamid); + msg.aformat(" - Steam ID: " IRCBOLD "0x%.16llx" IRCBOLD, player->steamid); if (player->adminType.size() != 0) { msg += " - Admin Type: " IRCBOLD; @@ -412,7 +412,7 @@ void SteamIRCCommand::trigger(IRC_Bot *source, const Jupiter::ReadableString &ch Jupiter::String &playerName = RenX::getFormattedPlayerName(player); msg.format(IRCCOLOR "03[Steam] " IRCCOLOR "%.*s (ID: %d) ", playerName.size(), playerName.ptr(), player->id); if (player->steamid != 0) - msg.aformat("is using steam ID " IRCBOLD "0x%.8llx" IRCBOLD, player->steamid); + msg.aformat("is using steam ID " IRCBOLD "0x%.16llx" IRCBOLD, player->steamid); else msg += "is not using steam."; source->sendMessage(channel, msg); } diff --git a/RenX.Core/RenX_Server.cpp b/RenX.Core/RenX_Server.cpp index f6ee16c..61d31c6 100644 --- a/RenX.Core/RenX_Server.cpp +++ b/RenX.Core/RenX_Server.cpp @@ -689,7 +689,7 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line) default: case 0: if (player->steamid != 0) - player->uuid.format("0x%.8llx", player->steamid); + player->uuid.format("0x%.16llx", player->steamid); break; case 1: player->uuid = player->name; @@ -792,7 +792,7 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line) default: case 0: if (player->steamid != 0) - player->uuid.format("0x%.8llx", player->steamid); + player->uuid.format("0x%.16llx", player->steamid); break; case 1: player->uuid = player->name; diff --git a/RenX.ExcessiveHeadshots/ExcessiveHeadshots.cpp b/RenX.ExcessiveHeadshots/ExcessiveHeadshots.cpp index c73ff07..7c41c5e 100644 --- a/RenX.ExcessiveHeadshots/ExcessiveHeadshots.cpp +++ b/RenX.ExcessiveHeadshots/ExcessiveHeadshots.cpp @@ -55,7 +55,7 @@ void RenX_ExcessiveHeadshotsPlugin::RenX_OnKill(RenX::Server *server, const RenX { server->kickPlayer(player); server->sendPubChan(IRCCOLOR "13[Aimbot]" IRCCOLOR " %.*s was banned from the server! Kills: %u - Deaths: %u - Headshots: %u", player->name.size(), player->name.ptr(), player->kills, player->deaths, player->headshots); - server->sendAdmChan(IRCCOLOR "13[Aimbot]" IRCCOLOR " %.*s was banned from the server! Kills: %u - Deaths: %u - Headshots: %u - IP: " IRCBOLD "%.*s" IRCBOLD " - Steam ID: " IRCBOLD "0x%.8llx" IRCBOLD, player->name.size(), player->name.ptr(), player->kills, player->deaths, player->headshots, player->ip.size(), player->ip.ptr(), player->steamid); + server->sendAdmChan(IRCCOLOR "13[Aimbot]" IRCCOLOR " %.*s was banned from the server! Kills: %u - Deaths: %u - Headshots: %u - IP: " IRCBOLD "%.*s" IRCBOLD " - Steam ID: " IRCBOLD "0x%.16llx" IRCBOLD, player->name.size(), player->name.ptr(), player->kills, player->deaths, player->headshots, player->ip.size(), player->ip.ptr(), player->steamid); } } } diff --git a/RenX.Logging/RenX_Logging.cpp b/RenX.Logging/RenX_Logging.cpp index e2d0e20..b538a62 100644 --- a/RenX.Logging/RenX_Logging.cpp +++ b/RenX.Logging/RenX_Logging.cpp @@ -63,7 +63,7 @@ void RenX_LoggingPlugin::RenX_OnJoin(RenX::Server *server, const RenX::PlayerInf if (player->steamid == 0) server->sendAdmChan(IRCCOLOR "12[Join]" IRCCOLOR "%.*s " IRCBOLD "%.*s" IRCBOLD " joined the game fighting for the %.*s from " IRCBOLD "%.*s" IRCBOLD ", but is not using Steam.", teamColor.size(), teamColor.ptr(), player->name.size(), player->name.ptr(), teamName.size(), teamName.ptr(), player->ip.size(), player->ip.ptr()); else - server->sendAdmChan(IRCCOLOR "12[Join]" IRCCOLOR "%.*s " IRCBOLD "%.*s" IRCBOLD " joined the game fighting for the %.*s from " IRCBOLD "%.*s" IRCBOLD " using Steam ID " IRCBOLD "0x%.8llx" IRCBOLD ".", teamColor.size(), teamColor.ptr(), player->name.size(), player->name.ptr(), teamName.size(), teamName.ptr(), player->ip.size(), player->ip.ptr(), player->steamid); + server->sendAdmChan(IRCCOLOR "12[Join]" IRCCOLOR "%.*s " IRCBOLD "%.*s" IRCBOLD " joined the game fighting for the %.*s from " IRCBOLD "%.*s" IRCBOLD " using Steam ID " IRCBOLD "0x%.16llx" IRCBOLD ".", teamColor.size(), teamColor.ptr(), player->name.size(), player->name.ptr(), teamName.size(), teamName.ptr(), player->ip.size(), player->ip.ptr(), player->steamid); } void RenX_LoggingPlugin::RenX_OnPart(RenX::Server *server, const RenX::PlayerInfo *player) diff --git a/RenX.SetJoin/RenX_SetJoin.cpp b/RenX.SetJoin/RenX_SetJoin.cpp index 9fe9117..eb6a97b 100644 --- a/RenX.SetJoin/RenX_SetJoin.cpp +++ b/RenX.SetJoin/RenX_SetJoin.cpp @@ -27,7 +27,7 @@ void RenX_SetJoinPlugin::RenX_OnJoin(RenX::Server *server, const RenX::PlayerInf { if (player->steamid != 0) { - const Jupiter::ReadableString &setjoin = Jupiter::IRC::Client::Config->get(configSection, Jupiter::StringS::Format("0x%.8llx", player->steamid)); + const Jupiter::ReadableString &setjoin = Jupiter::IRC::Client::Config->get(configSection, Jupiter::StringS::Format("0x%.16llx", player->steamid)); if (setjoin.isEmpty() == false) server->sendMessage(Jupiter::StringS::Format("[%.*s] %.*s", player->name.size(), player->name.ptr(), setjoin.size(), setjoin.ptr())); } @@ -45,7 +45,7 @@ void ViewJoinGameCommand::trigger(RenX::Server *source, RenX::PlayerInfo *player { if (player->steamid != 0) { - const Jupiter::ReadableString &setjoin = Jupiter::IRC::Client::Config->get(configSection, Jupiter::StringS::Format("0x%.8llx", player->steamid)); + const Jupiter::ReadableString &setjoin = Jupiter::IRC::Client::Config->get(configSection, Jupiter::StringS::Format("0x%.16llx", player->steamid)); if (setjoin.isEmpty() == false) source->sendMessage(Jupiter::StringS::Format("[%.*s] %.*s", player->name.size(), player->name.ptr(), setjoin.size(), setjoin.ptr())); else source->sendMessage(player, STRING_LITERAL_AS_REFERENCE("Error: No setjoin found.")); @@ -75,7 +75,7 @@ void DelJoinGameCommand::trigger(RenX::Server *source, RenX::PlayerInfo *player, { if (player->steamid != 0) { - if (Jupiter::IRC::Client::Config->remove(configSection, Jupiter::StringS::Format("0x%.8llx", player->steamid))) + if (Jupiter::IRC::Client::Config->remove(configSection, Jupiter::StringS::Format("0x%.16llx", player->steamid))) source->sendMessage(player, Jupiter::StringS::Format("%.*s, your join message has been removed.", player->name.size(), player->name.ptr())); else source->sendMessage(player, STRING_LITERAL_AS_REFERENCE("Error: Setjoin not found.")); } @@ -104,7 +104,7 @@ void SetJoinGameCommand::trigger(RenX::Server *source, RenX::PlayerInfo *player, { if (parameters.isEmpty() == false) { - Jupiter::IRC::Client::Config->set(configSection, Jupiter::StringS::Format("0x%.8llx", player->steamid), parameters); + Jupiter::IRC::Client::Config->set(configSection, Jupiter::StringS::Format("0x%.16llx", player->steamid), parameters); Jupiter::IRC::Client::Config->sync(); source->sendMessage(player, Jupiter::StringS::Format("%.*s, your join message is now: %.*s", player->name.size(), player->name.ptr(), parameters.size(), parameters.ptr())); }