thank you! ill check it outMultiworld system by aurelion5670 · Pull Request #929 · opentibiabr/otservbr-global
Multiworld System for OTServ Global, multiworld flag is already enabled but it doesn't affect the main server at all. What it contains? - Separated players by worlds. - Separated market list...github.com
You got a start here in case that you are interested (And one that you can adapt by yourself), but there isn't guides for doing multiworlds even on the lastest branch
You need few changes, that code is just a base to adapt it to other basesWere you able to get this implemented?
I was getting a client exception when logging in, fetching the character list.
You need few changes, that code is just a base to adapt it to other bases
On my case, i had cast system and i built it together with a partner, so we did custom methods to get by sql the world_id by the player
did you find out how this work? im getting debug when try to open characterlist with normal cipsoft 7.72 clientAlso, what else is required for the login server using this setup?
Just update both configs to set worldId, and the game protocol port. Run both servers, what determines which server acts as the login server on 7171?
+---------------------------------------------------------------
Debug Assertion 7.72 Utils.cpp 340
Wed Aug 19 10:57:56 2020
Windows Version: 6.2 build 9200 on 2
Graphic Engine: 2
Last Packet Types: 100 020 010 010 000 000 000 000 000 000
Last Packet: 112 000 020 034 000 051 010 087 101 108 099 111 109 101 032 116
Player.cpp 383: exception occurred, reason:
Network.cpp 885: exception occurred (ErrorCode = 0), reason:
Control.cpp 1280: exception occurred (Type = 100), reason:
Communication.cpp 1162: exception occurred (Count = 2), reason:
Network.cpp 470: exception occurred (MaxLength = 30), reason:
Utils.cpp 340: assertion failed (Position = 45) (Size-Length = -1676), reason:
Position<=Size-Length
----------------------------------------------------------------
ERROR: protected lua call failed: C++ call failed: InputMessage eof reached
stack traceback:
[builtin#146]: at 0x011ef230
[C]: in function 'getString'
/modules/gamelib/protocollogin.lua:247: in function 'parseCharacterList'
/modules/gamelib/protocollogin.lua:178: in function </modules/gamelib/protocollogin.lua:159>
maybe i did something wrong in protocollogin.cpp?
did you fix your's? i saw some post where you had same problem if yes maybe u can share with me the fix? like i said i think the problem is on protocollogin.cpp but dont know where pleaseYeah, it will be.
[Error - mysql_real_query] Query: TRUNCATE TABLE `players_online` WHERE `world_id` = 0
Message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE `world_id` = 0' at line 1
>> Loaded all modules, server starting up...
can somebody help me i'm having this error in console
also i've createed a new account and it says that passwd or acc number is wrongLua:[Error - mysql_real_query] Query: TRUNCATE TABLE `players_online` WHERE `world_id` = 0 Message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE `world_id` = 0' at line 1 >> Loaded all modules, server starting up...
I've have already solve it, there no errors displayed in console but can't log in into the character listYou need to update your players_online table to include a column for "world_id"