New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added packet version checks for random options #1524
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't make something like Pincode Packetver check?
#define PACKETVER_SUPPORTS_PINCODE PACKETVER>=20110309
#define PACKETVER_SUPPORTS_RANDOM_OPTIONS PACKETVER >= 20150226|
Yeah I just wanted to make this one reviewable for changes right now and will do that in another follow up, since this is actually used in more places than this. |
|
I have added these changes, and yes of course it fixes the issue for my old 2012-04-10 exe, because of removing extra bytes in item structure, and mmo_charstatus structure size less then 0xFFFF (65k bytes). size of item structure without random option = ~40 bytes Size of each element in mmo_charstatus (generated for another emulator based on rAthena, but between classic rAthena is not too much difference as you see on size, i can do the same for classic rAthena, but the size will be huge too). (all defined values (for arrays) are +- the same. Maybe just skill db not clean, and i'm using 1250 skills. Size in bytes, and not really accurate. But show "mmo_charstatus" size eater. Size of mmo_charstatus without RANDOM Option structure.Size of mmo_charstatus elements with RANDOM OPTION structure.Guys, I don't even know how it can be optimized) But you did well, I believe in you what you can handle with it. If you need any help - write, I will try what I can to help. |
|
Just push #1115 already. :P |
|
just telling, |
|
Since this should also be fixed with #1115 I will close this one. |
This should address a few issues that were reported since we published item random options.
Might be related/solve:
#1515
#1523
Please test if this pull resolves your problems.
@Anacondaqq @admkakaroto