Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Problems saving players and problems with otc #54

Open
ricardoianelli opened this issue Oct 21, 2019 · 2 comments
Open

Problems saving players and problems with otc #54

ricardoianelli opened this issue Oct 21, 2019 · 2 comments

Comments

@ricardoianelli
Copy link

ricardoianelli commented Oct 21, 2019

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
Copy link

wadbott commented Nov 27, 2019

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
Copy link

goesraphael commented Sep 12, 2022

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<uint16_t>(player->sex) << ',';

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants