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

TFS 1.X+ Parcel System Failure 1.3 860

Lbtg

Intermediate OT User
Joined
Nov 22, 2008
Messages
2,312
Reaction score
134
Hello, i have a problem if player is trying to send parcel to offline plaeyer the parcel is GONE/not recieved,
if player sends parcel to ONLINE player, the parcel gets sent/recieved


Anyone got any idea whats the problem , how to fix ?


Thanks in advance :)
 
Solution
There is optimization that make depot not save, if player did not visit it after login.
Parcel system (mailbox.cpp) logins offline player, adds items to his depot and saves player, but does not mark depot as 'visited'. So 'savePlayer' code does not save depot... which makes item disappear.

There are 3 possible fixes for that:
1. Make depot always sav , even if player did not visit depot -> edit iologindata.cpp and replace if (player->lastDepotId != -1) { with if (true) {
2. Add in mailbox.cpp code that set lastDepotId of player to any town id.
3. Rewrite part of items system, so it marks depot as visited, when any item is added to it.
There is optimization that make depot not save, if player did not visit it after login.
Parcel system (mailbox.cpp) logins offline player, adds items to his depot and saves player, but does not mark depot as 'visited'. So 'savePlayer' code does not save depot... which makes item disappear.

There are 3 possible fixes for that:
1. Make depot always sav , even if player did not visit depot -> edit iologindata.cpp and replace if (player->lastDepotId != -1) { with if (true) {
2. Add in mailbox.cpp code that set lastDepotId of player to any town id.
3. Rewrite part of items system, so it marks depot as visited, when any item is added to it.
 
Last edited:
Solution
Back
Top