LCKB
Save Ignition Bar - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128)
+----- Thread: Save Ignition Bar (/showthread.php?tid=1050)

Pages: 1 2


- Scura - 04-15-2021


Hi guys

Was looking for a method for save the ignition bar progress. I've seen many server that are using this features: every time you logout they save the state of the ignition bar, and once you re-log, they add it to your account. Someone have in mind how to manage that ? 




- Veni - 04-15-2021


On logout save m_ep variable to database. I think it was this variable at least.

 

It's implemented in November source.




- Scura - 04-15-2021



53 minutes ago, Veni said:




On logout save m_ep variable yo database. I think it was this variable at least.



 



It's implemented in November source.




Guess it should be in Reza 1776 so... thank you Veni ... didn't understand why you are not "honarable" member ... i've learn a lot from your guides (like CASH_TICKET, i took inspiration from that for my custom ban system (also learned how to connect GS with Auth_DB with a really clean code) and you are a pretty active member of this community

 

i've coded a custom console for my ban system just by looking at your code lol:

/monthly_2021_04/image.png.1d8e491730375d1bc9fd7ad4db1d3c8f.png" />

 

guess i need to save that variable in the db.t_characters..

 

 




- Veni - 04-15-2021


How did you learn how to make a custom console because of me lol

And I'm still learning myself, only recently started using/learning C# myself, but using WinForms rather than WPF.

Only thing you will find in rezas clean release is the member variable, just add that to the save character query function and you should be good to go. obviously also load it on login.

Edit: and yes, it should be within t_characters. add a new column for it.




- Scura - 04-15-2021



5 minutes ago, Veni said:




How did you learn how to make a custom console because of me lol

And I'm still learning myself, only recently started using/learning C# myself, but using WinForms rather than WPF.

Only thing you will find in rezas clean release is the member variable, just add that to the save character query function and you should be good to go. obviously also load it on login.



Edit: and yes, it should be within t_characters. add a new row for it.




I've learned how to connect the DB_Auth to GameServer, the rest was only about some query in database! I've learned some C at university, was pretty clear the code to me by reading your code in the Cash_ticket reply! Also you have used some nice check at the item which are really usefull while programming (like check for invalid packets for try to avoid some crash/dupe i guess) ?




- Scura - 04-17-2021


found where veni said, you can close 




- Karl82 - 03-02-2022


can u explain it /index.php?/profile/21802-scura/&do=hovercard" data-mentionid="21802" href="/index.php?/profile/21802-scura/" rel="">@Scura?




- Desarija - 03-03-2022



10 hours ago, Karl82 said:




can u explain it /index.php?/profile/21802-scura/&do=hovercard" data-mentionid="21802" href="/index.php?/profile/21802-scura/" rel="">@Scura?




If you own a november source, just search for a_ep in the character saving/loading files and how it is transfered to m_ep. Dont forget to add a_ep to t_characters




- Karl82 - 03-03-2022


mmm ok...




- Desarija - 03-04-2022



11 hours ago, Karl82 said:




mmm ok...




Like this

DBProcess_SelectChar.cpp

dbChar.GetRec("a_ep", pChar->m_ep);

DBManager_SaveCharacterInfo.cpp

updateQuery += boost:Confusedtr(boost::format(", a_ep=%d") % pChar->m_ep);