luizadauto / aionxemu

Automatically exported from code.google.com/p/aionxemu
6 stars 6 forks source link

Rev325 Toll saving problem #458

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Core revision:325

Bug description:
Add 100 into "toll_count" inside "account_data" table, enter in game and open 
Game Shop, i have 0 Toll.
Use a command "//gameshop 100" and add 100 into my account, i can buy something.
Make logout relogin with same or other character in same accounti have some 
Toll.
Check toll_count into account_data i see 0.
I close and reload the game, open same account i not have TOLL.

Into Login Server i can see this Warning:
[INFO] 2011-06-22 05:24:32 - recived packet: null
[WARN] 2011-06-22 05:25:19 - Unknown packet recived from Game Server: 0x09 state
=AUTHED

Into Game Server i can see this error:
[ERROR] 2011-06-22 05:28:54 - Missing D for: [C] 0x01 CM_ACOUNT_AUTH_RESPONSE

Original issue reported on code.google.com by xar...@gmail.com on 22 Jun 2011 at 3:45

GoogleCodeExporter commented 8 years ago
tryed to recreate but in my case i can't recreate the bug with client 2.1.0.12

Original comment by gosth...@gmail.com on 22 Jun 2011 at 1:11

GoogleCodeExporter commented 8 years ago
I have client 2.1.0.12

Original comment by xar...@gmail.com on 22 Jun 2011 at 3:07

GoogleCodeExporter commented 8 years ago
You did not apply the update correctly as it seems for me. AND you are not 
supposed to add the toll through the database while the server is running. That 
what the command is for.

Original comment by pziko...@gmail.com on 22 Jun 2011 at 7:10

GoogleCodeExporter commented 8 years ago
you can add the toll in the database without problems with the server running 
as long as the account is not online

Original comment by gosth...@gmail.com on 22 Jun 2011 at 9:35

GoogleCodeExporter commented 8 years ago
Select a player and use this command "//gameshop settoll 100"
I have added 100 Toll in your account.
I can see 100 Toll in Gameshop.
Close the client.
Open the client
Open Gameshop 
I have 0 Toll
What's wrong?

THX

Original comment by xar...@gmail.com on 22 Jun 2011 at 11:27

GoogleCodeExporter commented 8 years ago
you ask what is wrong but in order to answer you that please show me the 
structure of your account_data table from Database aionx_ls

Original comment by gosth...@gmail.com on 23 Jun 2011 at 5:13

GoogleCodeExporter commented 8 years ago
`account_data` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(45) NOT NULL,
  `password` varchar(65) NOT NULL,
  `activated` tinyint(1) NOT NULL DEFAULT '1',
  `access_level` tinyint(3) NOT NULL DEFAULT '0',
  `membership` tinyint(3) NOT NULL DEFAULT '0',
  `last_server` tinyint(3) NOT NULL DEFAULT '-1',
  `last_ip` varchar(20) DEFAULT NULL,
  `ip_force` varchar(20) DEFAULT NULL,
  `expire` date DEFAULT NULL,
  `toll_count` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

Original comment by xar...@gmail.com on 23 Jun 2011 at 12:58

Attachments:

GoogleCodeExporter commented 8 years ago
everything seems ok, that means your problem is in the server files as PZIKO333 
sayed.
also [ERROR] 2011-06-22 05:28:54 - Missing D for: [C] 0x01 
CM_ACOUNT_AUTH_RESPONSE say that you have some missing files or patch wasn't 
aplyed ok

Original comment by gosth...@gmail.com on 23 Jun 2011 at 8:36

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Ok, thx
I've compiled it all again.
I have an error in the console
I can not start the login server.

Original comment by xar...@gmail.com on 24 Jun 2011 at 5:33

Attachments:

GoogleCodeExporter commented 8 years ago
ok now is worst, looks like you have compilation errors. 
i have attached the compiled r326 loginserver

Original comment by gosth...@gmail.com on 24 Jun 2011 at 6:08

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you for your interest but same problem.
If i use "MySQL5AccountDAO" from r322 i can run LoginServer but i have the 
original problem.

Original comment by xar...@gmail.com on 24 Jun 2011 at 8:05

GoogleCodeExporter commented 8 years ago
really have no ideea why for you isn't building corectly, anyway here is my 
full builded server files
http://www.megaupload.com/?d=ZB0WAC4O

Original comment by gosth...@gmail.com on 24 Jun 2011 at 10:06

GoogleCodeExporter commented 8 years ago
Re-compile and remake your database, we strongly suggest you don't modify your 
database manually.

Original comment by cocain...@gmail.com on 24 Jun 2011 at 1:31

GoogleCodeExporter commented 8 years ago
ARGHHHH XD
Many thanks to all i have solved the problem.
But it isn't a DB or a CFG or a damage/correpted file.
The problem was caused by a wrong file inside a wrong folder.
I had "ax-login-1.0.1.jar" into "loginserver/libs" , copied them accidentally.
I can not believe it XD.

thanks again. 

Original comment by xar...@gmail.com on 24 Jun 2011 at 3:14

GoogleCodeExporter commented 8 years ago
glad to hear that everything was solved

Original comment by gosth...@gmail.com on 24 Jun 2011 at 4:50