Saddler 680 Posted February 18, 2014 Share Posted February 18, 2014 (edited) Hey Metin2Dev I have some problems after change the gold to long long. First: I add 5KKK - 5.000.000.000 gold to my characther. Strange thing here is, on inventory appear 5.000.000.000 Yang, but in real he just receive 705.032.704 yang. Now, lets reload character. Yeah, now we have 705kk in gold. Other issue Buying itens: First: I have 5k and the scroll blessing cost 5k too. I will buy then. Here's the result: I don't test other stuff with gold, but if someone experienced that and can help me will be good. Regards. Edited August 15, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Former Staff .InyaProduction 1124 Posted February 18, 2014 Former Staff Share Posted February 18, 2014 You still got an unsigned int as limit somewhere Link to comment Share on other sites More sharing options...
Vanilla 1455 Posted February 19, 2014 Share Posted February 19, 2014 Did you check the database? Seems like the gamecore and the client recognizes your gold amount as long long, but the mysql-server can't store it so it'll overflow when you reload or buy something to refresh the values. We are the tortured. We're not your friends. As long as we're not visible. We are unfixable. Link to comment Share on other sites More sharing options...
Saddler 680 Posted February 19, 2014 Author Share Posted February 19, 2014 (edited) Did you check the database? Seems like the gamecore and the client recognizes your gold amount as long long, but the mysql-server can't store it so it'll overflow when you reload or buy something to refresh the values. I change the player db for gold I need to do more something? Regards Edited August 15, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Vanilla 1455 Posted February 19, 2014 Share Posted February 19, 2014 since your yang got resetted to 4,2kkk I guess there's some more behind that since it's the length of unsigned int. The command allows you to set such high values, but somewhere in the game source there's a restriction you seem to not have noticed yet. I'm not sure about it but maybe you can check the dbcache too. And look for syserr/syslog, maybe they'll provide you overflow-messages. 1 We are the tortured. We're not your friends. As long as we're not visible. We are unfixable. Link to comment Share on other sites More sharing options...
Alpha 482 Posted February 20, 2014 Share Posted February 20, 2014 Changes needed: MySQL Table DBCache and game (common/tables.h) Game Packets to the Client (every point packet) Some type changes in functions like do_set or other functions To change the gold limit you have to change the type of the points to long long not only the gold stuff Also the Client packets and you need to change the gold display from l to L Link to comment Share on other sites More sharing options...
DasKuchen 11 Posted April 15, 2014 Share Posted April 15, 2014 You changed GOLD_MAX = in length.h ? Link to comment Share on other sites More sharing options...
Premium Syreldar 1875 Posted April 15, 2014 Premium Share Posted April 15, 2014 That seems to be an unsigned-int limit, 2^32-1 You must check length.h, and check syserr too, to be sure it's not recognized as overflow. "Nothing's free in this life. Ignorant people have an obligation to make up for their ignorance by paying those who help them. Either you got the brains or cash, if you lack both you're useless." Syreldar Link to comment Share on other sites More sharing options...
Premium Syreldar 1875 Posted April 15, 2014 Premium Share Posted April 15, 2014 since your yang got resetted to 4,2kkk I guess there's some more behind that since it's the length of unsigned int. The command allows you to set such high values, but somewhere in the game source there's a restriction you seem to not have noticed yet. I'm not sure about it but maybe you can check the dbcache too. And look for syserr/syslog, maybe they'll provide you overflow-messages. ah, pretty what he said before me, didn't noticed. "Nothing's free in this life. Ignorant people have an obligation to make up for their ignorance by paying those who help them. Either you got the brains or cash, if you lack both you're useless." Syreldar Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now