Currency, Supply runs, not saving

Keldegar
Posts: 32
Joined: Sat Mar 15, 2014 4:37 pm

Currency, Supply runs, not saving

Post by Keldegar » Wed Mar 26, 2014 3:52 pm

I'm having an issue on my server where player currency, supply runs they have done, etc. are not saving when the user logs out.

Any ideas what this could be?

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Currency, Supply runs, not saving

Post by kjLotus » Wed Mar 26, 2014 5:12 pm

probably an issue with char_points table, if nobody else is having the same problem then it's probably because your table structure is wrong

Keldegar
Posts: 32
Joined: Sat Mar 15, 2014 4:37 pm

Re: Currency, Supply runs, not saving

Post by Keldegar » Wed Mar 26, 2014 8:04 pm

i think it's because i need to update, it's been a few months since the last pull.

how do I update without losing all my char data and customizations? have a good guide for updating?

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Currency, Supply runs, not saving

Post by whasf » Thu Mar 27, 2014 8:06 am

Edit the design of the table, and manually add in the new fields
-- Whasf

nasomi
Posts: 141
Joined: Wed Feb 13, 2013 8:51 am

Re: Currency, Supply runs, not saving

Post by nasomi » Thu Mar 27, 2014 8:28 am

There is an issue I've been ahving where if a player has less than 200 tabs and they buy refresh, it resets their tabs to zero.

Keldegar
Posts: 32
Joined: Sat Mar 15, 2014 4:37 pm

Re: Currency, Supply runs, not saving

Post by Keldegar » Thu Mar 27, 2014 11:55 am

whasf i don't need to update the lua or cpp files for the new currency packets?

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Currency, Supply runs, not saving

Post by kjLotus » Thu Mar 27, 2014 11:57 am

Keldegar wrote:whasf i don't need to update the lua or cpp files for the new currency packets?
if you update one thing, you better update everything

Keldegar
Posts: 32
Joined: Sat Mar 15, 2014 4:37 pm

Re: Currency, Supply runs, not saving

Post by Keldegar » Thu Mar 27, 2014 12:06 pm

that's what I thought -- so how do you update without erasing all of the player data or custom item things? is there a guide? I tried to search the wiki for updating, but didn't find anything. how do private servers update and preserve their user-base?

for WoW (MangOS) their updates to .sql were append updates, they did not erase any data.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Currency, Supply runs, not saving

Post by kjLotus » Thu Mar 27, 2014 12:14 pm

git will merge code files for you, for the database you'll have to execute some alter table statements to keep your data

Keldegar
Posts: 32
Joined: Sat Mar 15, 2014 4:37 pm

Re: Currency, Supply runs, not saving

Post by Keldegar » Thu Mar 27, 2014 12:17 pm

how do I compare my database to the current sql files? is there an easy way?

thanks for your help, by the way.

Post Reply