xeL Posted September 19, 2013 Posted September 19, 2013 (edited) Hello, Since a period I work on the L2OFF GM Panel and many people told me to add option for cached packets send for my application to not restart every time the server after they make a modification. OK , for that I need your help for make me understand 100% how cached works for database modification and I need some information from you. So please , if you want to help me , fell free to post all you know about chaced propierties . App: http://www.maxcheaters.com/forums/index.php?/topic/168444-l2off-gm-panel-v15-new/ Thank you in advance! Best Regards Edited September 19, 2013 by xeL
Sighed Posted September 19, 2013 Posted September 19, 2013 (edited) Cached works with L2Server in the shared memory about shared memory read THIS, as it name says, its a cache for better understanding read THIS it will give you some idea about it.So mostly the CacheD stores the data for future use for the L2Server, and acts like a bridge between L2Server and SQL Server, executing all the queries and stored procedures. So when you send a packet directly to the CacheD is made available in-game, opposed to when you write it directly inside the database which doesn't make it available in-game cause the CacheD didn't loaded it in memory. Also there is an old C4 dupe if i remember that occurs here due to a duplicated stack of items, one from CacheD and other from L2Server but that is a different story. About formats of the packets, you can find them in the CacheD functions, i will check in my cloud and see if i can find a library that will work for you. P.S: Mac correct me if im wrong, confused or missed something :P Edited September 19, 2013 by Sighed
xeL Posted September 19, 2013 Author Posted September 19, 2013 (edited) Thank you Sighed very much. I notice that is a bridge between l2server and database but i didn't knew how directly works. :) . If you can find that library will be very usefull. Thank you for help again. I apriciate. Edited September 19, 2013 by xeL
mcbigmac Posted September 19, 2013 Posted September 19, 2013 Any changes can only be made to a character that is offline. So often - you select directly in DB by char_name, get char_id and use it kickuser and then use one of the modify packets. In one of your threads, i pastebinned the formats for all availeble packets in c4\gf. (There's more in GF, but they're mostly the same).
xeL Posted September 20, 2013 Author Posted September 20, 2013 Any changes can only be made to a character that is offline. So often - you select directly in DB by char_name, get char_id and use it kickuser and then use one of the modify packets. In one of your threads, i pastebinned the formats for all availeble packets in c4\gf. (There's more in GF, but they're mostly the same). Seems I didn't sow it on my post last time. Thank you for it mcbigmac for it. http://www.maxcheaters.com/forum/index.php?/topic/168410-l2off-database-modification-without-restart-server/
Sighed Posted September 20, 2013 Posted September 20, 2013 I Found it, here is the paste, im not sure but these packets also should work with GF, i might make a separate one for GF when i will have some time. Anyway here you go, its pretty easy to understand.http://pastebin.com/faREHjDj
xeL Posted September 20, 2013 Author Posted September 20, 2013 Thank you Sighed. I will try my best to make it work. And to finish it as soon as posible . Best regards
bartoruiz Posted September 22, 2013 Posted September 22, 2013 Cached packets are evil stuff, dont mess with them :S
osito2dancer Posted November 28, 2014 Posted November 28, 2014 Do you guys have a list of opcodes and functions to feed to CacheD 2012 port? I'm trying to find them but i cannot google efficiently enough to find it >.<
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now