• 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!

Nostalrius distro

Doyouevenlift

Advanced OT User
Joined
Jan 2, 2015
Messages
322
Reaction score
156
Asdddd.png

Sup guys. Im getting this error when I enter the server. Error occurs when I switch characters.
Got this distro going with OTC by Meha. Anyone got a clue?
 
iologindata.cpp
bool IOLoginData::savePlayer(Player* player)
C++:
query << "`sex` = " << player->sex << ',';
to
C++:
query << "`sex` = " << static_cast<uint16_t>(player->sex) << ',';
 
@emil92b I'm having the same issue as @Doyouevenlift. I changed the code in iologindata.cpp to what you put in your post, then recompiled the server and tested it out. But still having issues with the server not saving characters after they log out :(

Any other suggestions?

EDIT: I was able to figure it out by changing "Save" to 1 instead of 0 in the database for the character and also updating a line in the iologin.cpp file.
 
Last edited:
Back
Top