[Premium Days]
I use the latest TFS and OTClient.
1. Premdays client crash: If you set the account premdays to 65535 of table
accounts(65535 means it never ends, I think), the client crashes:![]()
How to reproduce it:
- Close your client (because you need to reload the characters list by trying to log to the login server).
- Set your the premdays of account that you will use for test to 65535 exactly.
- Open your client and try to login. It will crashes when tries to connect to the login server. Note: Any value different of 65535 will work fine, so you need to try with 65535 as the premdays value.
2. Premdays text: No matter the text value of the Account Status is always 'Free Account'. I tested with lots of values, and it never changes. Also, the only issue is the text, because I still have the premium and everything works fine.
How to reproduce it:
- Close your client (just for be sure it will work).
- Set any value for the account premdays of table
accounts. - Open your client and try to login. It will still shows as Free Account.
Please give us the debug information otherwise it will be really difficult to find the bug.
@conde2 How can I do this? :)
When the bug occur please click on Debug ("Deupurar") and open it with Visual Studio and click break it should give the line where it caused the bug

this 0x016c6de8 {otclient.exe!__TI3?AVLuaException@@} {L=0x00000000
m_weakTableRef=19722960 m_cppCallbackDepth=...} LuaInterface *
Like this?
Have you made any changes in OTC ? please also provide the log generated by OTClient if there is any.
I'm pretty sure this is due to LuaJIT, maybe we need to use just LUA as library, I've read @edubart commenting about this while ago, that LuaJit does not support pcalls or something like that. Maybe he can help saying if this is true or not.
EDIT: I've confirmed this and will pull back Lua 5.1 (which works) to the offical OTClient-SDK
I have no changes on OTClient yet.
Ok! I will wait your update on OTClient-SDK. Thanks. :)
I think it was fixed now on: https://github.com/edubart/otclient/commit/df422c0991e80d8c579522e727a6693b5b637865
At least here works now. So I am closing this thread.

