• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. darkshin

    Lua How to make an in lua defined class and call as parameter of a C++ function

    AMAGAD IT WORKED IT ALL OUT !!!!!!!!!!!!!!!! UHUUUULL IM SO HAPPY! HUUUGE THANKS CODEX!!
  2. darkshin

    Lua How to make an in lua defined class and call as parameter of a C++ function

    Hahaha no problem! But maybe u can help me now with the main problem. Ill try something and post it for you to see. Im doing it for a week now :o. You are really helping me
  3. darkshin

    Lua How to make an in lua defined class and call as parameter of a C++ function

    @Codex NG I've found where the mistake was, and it wasn't at parsing or sending. Thanks for the attention to this matter! Regarding the another, I will spent more time on it another day. #Tired xD
  4. darkshin

    Lua How to make an in lua defined class and call as parameter of a C++ function

    Ive added a print, just below getLevelByName, to print the results, take a look: At the server, we can see that the value was returned individually, while at the client it was casted once by character, resulting in 5 tables of 5 results. When I wanted 5 tables with 1 result. So the issue is...
  5. darkshin

    Lua How to make an in lua defined class and call as parameter of a C++ function

    Not directly, but at the client I can print all levels from the players correctly, but all inside the same table {}, not different as it should be {}{}
  6. darkshin

    Lua How to make an in lua defined class and call as parameter of a C++ function

    Its defined at IOLoginData.h (c++)
  7. darkshin

    Lua How to make an in lua defined class and call as parameter of a C++ function

    You mean that the problem lies at where it's being parsed?
  8. darkshin

    Lua How to make an in lua defined class and call as parameter of a C++ function

    Wow! Thats complex... I will study it and make some tries, I can barely understand that right now... in the meanwhile, can you help me with one more thing? Problem: at the output, I receive a name for each i. But for level, I receive each level of every account.characters for each i. So it...
  9. darkshin

    Lua How to make an in lua defined class and call as parameter of a C++ function

    Hey guys!! I'm having a bad time programming here. So I come here to ask for help! The question is: "How to make an in lua defined class and call as parameter of a C++ function?" Explanation: I have a class in sources like "Creature" and I want to call a function from the sources inside a lua...
  10. darkshin

    Trying to change Protocol Login from lua into C++ file

    I think I've worked the sources out... now need to fix modules errors :P
  11. darkshin

    Trying to change Protocol Login from lua into C++ file

    Thanks! So, If I want a "getTable()" at C++ I will have to make one XD I've solved what I asked here. So I edited.
  12. darkshin

    Trying to change Protocol Login from lua into C++ file

    @Summ Do you know if "std::to_string" at the following code, could replace "iptostring"? character.worldIp = std::to_string(msg->getU32()); //iptostring Also, do you know if I have to create a function or there's something already set up to replace "getTable()" from the following code: int8_t...
  13. darkshin

    Trying to change Protocol Login from lua into C++ file

    Oh Thank you! That is what I was looking for!
  14. darkshin

    Trying to change Protocol Login from lua into C++ file

    This one (I believe): void Game::processLoginError(const std::string& error) { g_lua.callGlobalField("g_game", "onLoginError", error); }
  15. darkshin

    Trying to change Protocol Login from lua into C++ file

    Yes, but these callbacks are used at lua to call a C++ function, example: signalcall(self.onLoginError, self, errorMessage) This event refers to the: void Game::processLoginError(const std::string& error) { g_lua.callGlobalField("g_game", "onLoginError", error); } Thing is... I can't...
  16. darkshin

    Trying to change Protocol Login from lua into C++ file

    DEVELOPMENT SO FAR: https://gist.github.com/DarkShinz/5ffbc9e72519366f5537 (without compiler errors) BUGS SO FAR: Something related to the removal of the protocolLogin.lua file of the modules affected some other structures. I think it's related to a connection sutff or something, because some...
  17. darkshin

    Lua Doubt and errors with string formats.

    Oh thank you. But none of this worked again :/ I guess I should leave it and find another way to do what I want.
  18. darkshin

    Lua Doubt and errors with string formats.

    Hello Guys! I'm having some bad time trying to make a C++ function read a string sent by a lua function. The string format used in C++ function is: (const std::string & text) And this is how I'm setting up the string that will be sent: local text =...
  19. darkshin

    Programmer Bounty added to grant Object Builder 10.76 Support.

    Oh @beastn will release it. I'm sure of it. Haha, it's because the thread was created after a discussion at object builder's thread. So, who readed the discussion there understand's that the support means to support the new format that the tibia data evolved. xD
Back
Top