Raised This Month: $ Target: $400
 0% 

[req] problem with uq_jumpstats (mysql fix)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 05-04-2024 , 06:22   [req] problem with uq_jumpstats (mysql fix)
Reply With Quote #1

Thanks for reading.

I have a rather small issue with uq_jumpstats, I think if someone fixes this all people will benefit

I connected uq_jumpstats to mysql, and I find out that special characters are not working in the database, let me show you what I mean:

Quote:
It should look like this:

name "エ ォ オ カ ガ キ ギ ク グ ケ ゲ "
______________________________

But It looks like this in the web page:

Click image for larger version

Name:	o.jpg
Views:	35
Size:	5.4 KB
ID:	204275
______________________________

In the database It is the same issue:

Click image for larger version

Name:	oo.jpg
Views:	27
Size:	6.2 KB
ID:	204276
Who's willing to fix this?
________________________

Link to the plugin:

https://forums.alliedmods.net/showthread.php?t=141586
sigerman is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-04-2024 , 11:59   Re: [req] problem with uq_jumpstats (mysql fix)
Reply With Quote #2

You should use the player's steamid instead to save data. No support for non-steam.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 05-04-2024 , 15:29   Re: [req] problem with uq_jumpstats (mysql fix)
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
You should use the player's steamid instead to save data. No support for non-steam.
Did you at least checked the plugin before you open your mouth?
sigerman is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-04-2024 , 15:48   Re: [req] problem with uq_jumpstats (mysql fix)
Reply With Quote #4

Yes i did, it appears you are just having trouble reading the original post. No need to be rude anyways.

PHP Code:
7. How to save Top10 (steamidIpname)
 
kz_uq_top_by «1»
kz_uq_save_top «1» 
On/Off TOP10 (onoff)
kz_uq_maptop «1» On/Off MapTop (onoff)
kz_uq_save_extras_top «1» On/Off Extra Tops (onoff
__________________

Last edited by Napoleon_be; 05-04-2024 at 15:48.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 05-04-2024 , 21:15   Re: [req] problem with uq_jumpstats (mysql fix)
Reply With Quote #5

Quote:
Originally Posted by Napoleon_be View Post
Yes i did, it appears you are just having trouble reading the original post. No need to be rude anyways.

PHP Code:
7. How to save Top10 (steamidIpname)
 
kz_uq_top_by «1»
kz_uq_save_top «1» 
On/Off TOP10 (onoff)
kz_uq_maptop «1» On/Off MapTop (onoff)
kz_uq_save_extras_top «1» On/Off Extra Tops (onoff
You did not understand what I asked, and yet you juged me. The database saves the three options no matter what. The field name in the database, does not save with the correct characters. Even If you put the database in utf8, something is not right.

The functionality of a top in this plugin NEEDS to have a name, If It hadn't a name, then It would not be a top.
sigerman is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-05-2024 , 06:46   Re: [req] problem with uq_jumpstats (mysql fix)
Reply With Quote #6

Quote:
Originally Posted by sigerman View Post
You did not understand what I asked, and yet you juged me. The database saves the three options no matter what. The field name in the database, does not save with the correct characters. Even If you put the database in utf8, something is not right.

The functionality of a top in this plugin NEEDS to have a name, If It hadn't a name, then It would not be a top.
It doesn't matter if the names are correctly stored or not, as long as the steam id is correct which u can use to check anything, it's gucci. Imagine having two players with identical names but different steam id's. Yet you check for their names, what's gonna happen you think?

You're here for non-steam support and throwing all kinds of accusations my way.

I wish you good luck finding the right help with the way you're treating people.
__________________

Last edited by Napoleon_be; 05-05-2024 at 06:49.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 05-05-2024 , 07:50   Re: [req] problem with uq_jumpstats (mysql fix)
Reply With Quote #7

Grow up kid. Put yourself in places you want to be. Never underestimate anyone.
sigerman is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-05-2024 , 09:57   Re: [req] problem with uq_jumpstats (mysql fix)
Reply With Quote #8

Quote:
Originally Posted by sigerman View Post
Grow up kid. Put yourself in places you want to be. Never underestimate anyone.
Wtf is that even supposed to mean? Furthermore there's a reason why that plugin is listed as "Unapproved", not my problem you really are that simple minded.
__________________

Last edited by Napoleon_be; 05-05-2024 at 09:58.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
JocAnis
Veteran Member
Join Date: Jun 2010
Old 05-05-2024 , 11:36   Re: [req] problem with uq_jumpstats (mysql fix)
Reply With Quote #9

i guess you will need to modify utf encoding in the fields you need ("name" in your case)

open /scripting/includes/uq_jumpstats.sql

then change line for creating table for uq_players:

Code:
formatex(CreateInto, 1000, "CREATE TABLE IF NOT EXISTS uq_players (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,name VARCHAR(64) NOT NULL,ip VARCHAR(39) NOT NULL,authid VARCHAR(35) NOT NULL, lastseen INT(10) NOT NULL,INDEX(name,authid))");
	SQL_ThreadQuery(DB_TUPLE,"QueryHandle", CreateInto);


to

formatex(CreateInto, 1000, "CREATE TABLE IF NOT EXISTS uq_players (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,name VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,ip VARCHAR(39) NOT NULL,authid VARCHAR(35) NOT NULL, lastseen INT(10) NOT NULL,INDEX(name,authid))");
	SQL_ThreadQuery(DB_TUPLE,"QueryHandle", CreateInto);
of course you will need to delete your existing tables/data and start over again (there is option to update utf directly in your phpmyadmin settings, but "names" wont be automatically 'translated', logically..
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 05-06-2024 , 04:41   Re: [req] problem with uq_jumpstats (mysql fix)
Reply With Quote #10

Hello, I did exactly what you posted, and still having issues, let me show you in pictures what I am seeing:

Click image for larger version

Name:	sdafhsdfhsdfh.jpg
Views:	10
Size:	57.5 KB
ID:	204293

Click image for larger version

Name:	zgasfgsdf.jpg
Views:	13
Size:	6.3 KB
ID:	204294

Thanks for answering

Quote:
Originally Posted by JocAnis View Post
i guess you will need to modify utf encoding in the fields you need ("name" in your case)

open /scripting/includes/uq_jumpstats.sql

then change line for creating table for uq_players:

Code:
formatex(CreateInto, 1000, "CREATE TABLE IF NOT EXISTS uq_players (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,name VARCHAR(64) NOT NULL,ip VARCHAR(39) NOT NULL,authid VARCHAR(35) NOT NULL, lastseen INT(10) NOT NULL,INDEX(name,authid))");
	SQL_ThreadQuery(DB_TUPLE,"QueryHandle", CreateInto);


to

formatex(CreateInto, 1000, "CREATE TABLE IF NOT EXISTS uq_players (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,name VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,ip VARCHAR(39) NOT NULL,authid VARCHAR(35) NOT NULL, lastseen INT(10) NOT NULL,INDEX(name,authid))");
	SQL_ThreadQuery(DB_TUPLE,"QueryHandle", CreateInto);
of course you will need to delete your existing tables/data and start over again (there is option to update utf directly in your phpmyadmin settings, but "names" wont be automatically 'translated', logically..
sigerman is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode