• 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 V1.2 House's dont Save

Heatblade12

Member
Joined
Aug 12, 2013
Messages
24
Reaction score
6
Note: i tried asking around, and im feeling impatient, so i decided to open a thread haha

i am working on houses right now,
i bought a house, got a Furniture NPC to buy stuff from, i place the chest into my house after buying a chest from him.

now. here is my problem, every time the server resets, or shuts down and reboots, the chest and its contents are missing. the house resets to the way it was bought, i just retain ownership of an empty house.

anyway to fix this? as i would like to store items here, that would not be deleted from a server reset.

-i figured what was happening is that the server was not saving each time i shut down the server. but i can not tell...
to my understanding is that the server calls the world to load every time it loads, now, should the server change the world ie, i place a chest in a house, remain the way it supposed to be?
sorry if im not making sense.-

Edit: Solved
 
Last edited:
I had the same problem. How are you closing your server? just pressing the x?

Whenever i have to shutdown my server I run /closeserver first (From a god or GM char). It goes and saves the houses and the players. Then I hard close it with the x.

It would be really useful if you put your server info & version (TFS 1.2 on Windows 10)
 
I had the same problem. How are you closing your server? just pressing the x?

Whenever i have to shutdown my server I run /closeserver first (From a god or GM char). It goes and saves the houses and the players. Then I hard close it with the x.

It would be really useful if you put your server info & version (TFS 1.2 on Windows 10)

i shutdown with the "X"
Should i create a GM character? because i have been useing nothing but a normal player char till now


i am running TFS 1.2 on windows 7.
where is my server info so i can help show it?

Edit: how do i use commands now that im "GOD"? i tried typing
/closeserver into chat, nothing seemed to happen
tried
"/save" as well, but did not work

Edit 2: here is my commands code, i dont see Save, closeserver, ect.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<commands>
    <command cmd="/reload" group="2" acctype="5" log="yes" />
    <command cmd="/raid" group="2" acctype="4" log="yes" />
    <command cmd="!sellhouse" group="1" acctype="1" log="no" />
</commands>
 
Last edited:
Your using TFS 1.2 and you only have 3 commands? Very strange. The official (I think) TFS github page (https://github.com/otland/forgottenserver) has a whole bunch of 'talkactions'. Check it them out here.

Where did you download this distribution?

Im not familiar with the distro your using, the TFS 1.2 that I'm using has talkactions instead of commands...

If you can point me towards where you downloaded your distro I may be able to investigate and find an answer for you
 
TFS 1.x has been moving the commands into talkactions, you can view the remainder of your GM/GOD and player commands there.
At a default, TFS 1.2 is set to save on an interval time of once per day, you will probably want to change this to save more frequently.
Using the X to close the server will not save the server first, you must first either save the server or close the server using the relevant commands. I can't remember if TFS 1.2 comes with a save command, you will have to check yourself! Shouldn't be hard to find one on these forums if not.

EDIT:
/closeserver kicks everybody from the game (except GM/GOD characters) and prevents anybody from logging in. It does NOT save the game. It only appears to because the players save when they are logged out.
You will need to create a new talkaction for /save if you want it.

EDIT2:
I learnt something new - you can use the command:
Code:
/closeserver shutdown
This will do what you want. You should use this to shut down your server.


data\talkactions\talkactions.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<talkactions>
<!-- commands -->
<talkaction words="/ban" separator=" " script="ban.lua" />
<talkaction words="/ipban" separator=" " script="ipban.lua" />
<talkaction words="/unban" separator=" " script="unban.lua" />
<talkaction words="/up" script="up.lua" />
<talkaction words="/down" script="down.lua" />
<talkaction words="/c" separator=" " script="teleport_creature_here.lua" />
<talkaction words="/goto" separator=" " script="teleport_to_creature.lua" />
<talkaction words="/owner" separator=" " script="owner.lua" />
<talkaction words="/t" script="teleport_home.lua" />
<talkaction words="/town" separator=" " script="teleport_to_town.lua" />
<talkaction words="/a" separator=" " script="teleport_ntiles.lua" />
<talkaction words="/pos" separator=" " script="position.lua" />
<talkaction words="/info" separator=" " script="info.lua" />
<talkaction words="/r" separator=" " script="removething.lua" />
<talkaction words="/kick" separator=" " script="kick.lua" />
<talkaction words="/openserver" script="openserver.lua" />
<talkaction words="/closeserver" separator=" " script="closeserver.lua" />
<talkaction words="/B" separator=" " script="broadcast.lua" />
<talkaction words="/m" separator=" " script="place_monster.lua" />
<talkaction words="/i" separator=" " script="create_item.lua" />
<talkaction words="/s" separator=" " script="place_npc.lua" />
<talkaction words="/addtutor" separator=" " script="add_tutor.lua" />
<talkaction words="/removetutor" separator=" " script="remove_tutor.lua" />
<talkaction words="/looktype" separator=" " script="looktype.lua" />
<talkaction words="/summon" separator=" " script="place_summon.lua" />
<talkaction words="/chameleon" separator=" " script="chameleon.lua" />
<talkaction words="/addskill" separator=" " script="add_skill.lua" />
<talkaction words="/mccheck" script="mccheck.lua" />
<talkaction words="/ghost" script="ghost.lua" />
<talkaction words="/clean" script="clean.lua" />
<talkaction words="/hide" script="hide.lua" />
<!-- player talkactions -->
<talkaction words="!buypremium" script="buyprem.lua" />
<talkaction words="!buyhouse" script="buyhouse.lua" />
<talkaction words="!leavehouse" script="leavehouse.lua" />
<talkaction words="!changesex" script="changesex.lua" />
<talkaction words="!uptime" script="uptime.lua" />
<talkaction words="!deathlist" script="deathlist.lua" />
<talkaction words="!kills" script="kills.lua" />
<talkaction words="!online" script="online.lua" />
<talkaction words="!serverinfo" script="serverinfo.lua" />
<!-- test talkactions -->
<talkaction words="!z" separator=" " script="magiceffect.lua" />
<talkaction words="!x" separator=" " script="animationeffect.lua" />
</talkactions>

Add save command
To data/talkactions.xml add:
Code:
<talkaction words="/save" script="save.lua" />
To data/talkactions/scripts/ add
new file "save.lua":
Code:
function onSay(player, words, param)
  if player:getGroup():getAccess() then
    saveServer()
  end
return true
end
 
Last edited:
Back
Top