• 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+ Beds stopped working

Hayvosh

Member
Joined
Feb 7, 2019
Messages
40
Solutions
2
Reaction score
10
Location
Sweden
Hello,

Using TFS 1.5 Nekiro downgrade with 7.72 client.
I upgraded to TFS 1.5 from 1.4 a few days ago, and just noticed the beds stopped working.
Nothing happens when I click on them to enter them, no error code in client either or the server log.
How can I check the bed config, not really sure where to begin to investigate the error?
 
Solution
Ok, after some digging and comparing old vs. new code from TFS 1.4 and TFS 1.5 from Nekiros 7.72 branch I found the issue.
In Actions.cpp on line 345/355 there was a line missing "bed>sleep(player);".
This was present in the 1.4 source but missing in the 1.5, so I added it back and it works again!

actions.cpp
C++:
        if (bed->trySleep(player)) {
            player->setBedItem(bed);
            bed->sleep(player); //Added this line back (missing in TFS 1.5)
              //g_game.sendOfflineTrainingDialog(player);
Ok, after some digging and comparing old vs. new code from TFS 1.4 and TFS 1.5 from Nekiros 7.72 branch I found the issue.
In Actions.cpp on line 345/355 there was a line missing "bed>sleep(player);".
This was present in the 1.4 source but missing in the 1.5, so I added it back and it works again!

actions.cpp
C++:
        if (bed->trySleep(player)) {
            player->setBedItem(bed);
            bed->sleep(player); //Added this line back (missing in TFS 1.5)
              //g_game.sendOfflineTrainingDialog(player);
 
Solution
Back
Top