Ezzz-dev / Nostalrius

Nostalrius is a 7.7 Tibia Clone Project based on The Forgotten Server 1.2 and CipSoft files.
100 stars 67 forks source link

Problems saving players and problems with otc #54

Open ricardoianelli opened 4 years ago

ricardoianelli commented 4 years ago

Hi! I'm having the following issues when logging off (saving character)

image

Obs.: I've used the nostalrius.sql to generate the db.

wadbott commented 4 years ago

POSSIBLE SOLUTION FOR OTC PROBLEMS

Problems: Getting disconnected every 30 seconds and weird game screen behaviors such as items/players desappear, totally black screen, disappearing ladder (splashes blood stacking).

First open otclient.vcxproj goes to game.cpp then with CTRL + F look for if(version >= 770) and add enableFeature(Otc::GameClientPing);

Second goes to protocolgameparse.cpp then with CTRL + F look for parseTileAddThing and add

if(g_game.getClientVersion() >= 772) stackPos = msg->getU8();

goesraphael commented 1 year ago

I have the solution, but I can't post here, because I need to use the signal " ` " and this signal here is to code LOL.

Lets Try:

Open iologindata.cpp, and the function to save player, you have to cast sex as an actual sex.

// Search for query << "sex = " << player->sex << ',';

// Cahange for query << "sex = " << static_cast(player->sex) << ',';

OBS: the signal " ` " appears before and after the word sex.