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

Nostalrius 7.7

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/saveserver.lua:eek:nSay
data/talkactions/scripts/saveserver.lua:10: attempt to call field 'saveGameState' (a nil value)
stack traceback:
[C]: in function 'saveGameState'
data/talkactions/scripts/saveserver.lua:10: in function <data/talkactions/scripts/saveserver.lua:1>

hi i know its been a longtime but i get this error after doing all you say
i think u can change "Game.saveGameState()" to "saveServer()" in scripts without add sources and it may works
 
i think u can change "Game.saveGameState()" to "saveServer()" in scripts without add sources and it may works
Saving server...
Saved house items in: 3.016 s




now im trying to find any script to exchange gold/plat/crystal coins

did u think i can try any from tfs 1.2 or 1.3 since nostalrius is based on it
 
Hi all. I am new to OT hosting and generally to compiling large projects wit c++. Two days ago i managed to make the ansible script work in the basic tutorial, and I think I nearly nailed compiling this project with this repo (which i forked and made some corrections).

Here's the fork of the basic ansible script:

And here's the repo which gets pulled by the ansible script:

I noticed that it won't compile with gcc due to some flags, so I switched to clang.
Everything good until linking starts.

Code:
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["make", "-j2"], "delta": "0:02:57.619479", "end": "2023-11-07 21:58:55.429315", "msg": "non-zero return code", "rc": 2, "start": "2023-11-07 21:55:57.809836", "stderr": "/usr/bin/ld: CMakeFiles/tfs.dir/src/combat.cpp.o: in function `ValueCallback::getMinMaxValues(Player*, CombatDamage&, bool) const':\ncombat.cpp:(.text+0x4cf): undefined reference to `lua_pcallk'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/combat.cpp.o: in function `TargetCallback::onTargetCombat(Creature*, Creature*) const':\ncombat.cpp:(.text+0x2d97): undefined reference to `lua_pcallk'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/configmanager.cpp.o: in function `ConfigManager::load()':\nconfigmanager.cpp:(.text+0xcb): undefined reference to `lua_pcallk'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/configmanager.cpp.o: in function `ConfigManager::getGlobalBoolean(lua_State*, char const*, bool)':\nconfigmanager.cpp:(.text+0xd23): undefined reference to `lua_getglobal'\n/usr/bin/ld: configmanager.cpp:(.text+0xd6f): undefined reference to `lua_rawlen'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/configmanager.cpp.o: in function `ConfigManager::getGlobalString[abi:cxx11](lua_State*, char const*, char const*)':\nconfigmanager.cpp:(.text+0xeaf): undefined reference to `lua_getglobal'\n/usr/bin/ld: configmanager.cpp:(.text+0xf33): undefined reference to `lua_rawlen'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/configmanager.cpp.o: in function `ConfigManager::getGlobalNumber(lua_State*, char const*, int)':\nconfigmanager.cpp:(.text+0x103c): undefined reference to `lua_getglobal'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::protectedCall(lua_State*, int, int)':\nluascript.cpp:(.text+0x1705): undefined reference to `lua_pcallk'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::getEvent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':\nluascript.cpp:(.text+0x1b31): undefined reference to `lua_getglobal'\n/usr/bin/ld: luascript.cpp:(.text+0x1bdd): undefined reference to `lua_setglobal'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::getMetaEvent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':\nluascript.cpp:(.text+0x1d57): undefined reference to `lua_getglobal'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::getStackTrace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':\nluascript.cpp:(.text+0x2183): undefined reference to `lua_getglobal'\n/usr/bin/ld: luascript.cpp:(.text+0x2256): undefined reference to `lua_callk'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerFunctions()':\nluascript.cpp:(.text+0x4ae5): undefined reference to `lua_setglobal'\n/usr/bin/ld: luascript.cpp:(.text+0x4b19): undefined reference to `lua_setglobal'\n/usr/bin/ld: luascript.cpp:(.text+0x4b4d): undefined reference to `lua_setglobal'\n/usr/bin/ld: luascript.cpp:(.text+0x4b81): undefined reference to `lua_setglobal'\n/usr/bin/ld: luascript.cpp:(.text+0x4bb5): undefined reference to `lua_setglobal'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o:luascript.cpp:(.text+0x4be9): more undefined references to `lua_setglobal' follow\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::luaIsInArray(lua_State*)':\nluascript.cpp:(.text+0x51bda): undefined reference to `lua_compare'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::luaAddEvent(lua_State*)':\nluascript.cpp:(.text+0x52382): undefined reference to `lua_getglobal'\n/usr/bin/ld: luascript.cpp:(.text+0x523b6): undefined reference to `lua_getglobal'\n/usr/bin/ld: luascript.cpp:(.text+0x5241e): undefined reference to `lua_callk'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerGlobalVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)':\nluascript.cpp:(.text+0x52de8): undefined reference to `lua_setglobal'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerGlobalBoolean(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':\nluascript.cpp:(.text+0x52e4d): undefined reference to `lua_setglobal'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerGlobalMethod(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':\nluascript.cpp:(.text+0x52ea8): undefined reference to `lua_setglobal'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':\nluascript.cpp:(.text+0x530b2): undefined reference to `lua_setglobal'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)':\nluascript.cpp:(.text+0x530fa): undefined reference to `lua_getglobal'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerMethod(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':\nluascript.cpp:(.text+0x53179): undefined reference to `lua_getglobal'\n/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerClass(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':\nluascript.cpp:(.text+0x54bfc): undefined reference to `lua_setglobal'\n/usr/bin/ld: luascript.cpp:(.text+0x54c9d): undefined reference to `lua_getglobal'\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\nmake[2]: *** [CMakeFiles/tfs.dir/build.make:1239: tfs] Error 1\nmake[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/tfs.dir/all] Error 2\nmake: *** [Makefile:91: all] Error 2", "stderr_lines": ["/usr/bin/ld: CMakeFiles/tfs.dir/src/combat.cpp.o: in function `ValueCallback::getMinMaxValues(Player*, CombatDamage&, bool) const':", "combat.cpp:(.text+0x4cf): undefined reference to `lua_pcallk'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/combat.cpp.o: in function `TargetCallback::onTargetCombat(Creature*, Creature*) const':", "combat.cpp:(.text+0x2d97): undefined reference to `lua_pcallk'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/configmanager.cpp.o: in function `ConfigManager::load()':", "configmanager.cpp:(.text+0xcb): undefined reference to `lua_pcallk'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/configmanager.cpp.o: in function `ConfigManager::getGlobalBoolean(lua_State*, char const*, bool)':", "configmanager.cpp:(.text+0xd23): undefined reference to `lua_getglobal'", "/usr/bin/ld: configmanager.cpp:(.text+0xd6f): undefined reference to `lua_rawlen'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/configmanager.cpp.o: in function `ConfigManager::getGlobalString[abi:cxx11](lua_State*, char const*, char const*)':", "configmanager.cpp:(.text+0xeaf): undefined reference to `lua_getglobal'", "/usr/bin/ld: configmanager.cpp:(.text+0xf33): undefined reference to `lua_rawlen'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/configmanager.cpp.o: in function `ConfigManager::getGlobalNumber(lua_State*, char const*, int)':", "configmanager.cpp:(.text+0x103c): undefined reference to `lua_getglobal'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::protectedCall(lua_State*, int, int)':", "luascript.cpp:(.text+0x1705): undefined reference to `lua_pcallk'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::getEvent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':", "luascript.cpp:(.text+0x1b31): undefined reference to `lua_getglobal'", "/usr/bin/ld: luascript.cpp:(.text+0x1bdd): undefined reference to `lua_setglobal'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::getMetaEvent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':", "luascript.cpp:(.text+0x1d57): undefined reference to `lua_getglobal'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::getStackTrace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':", "luascript.cpp:(.text+0x2183): undefined reference to `lua_getglobal'", "/usr/bin/ld: luascript.cpp:(.text+0x2256): undefined reference to `lua_callk'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerFunctions()':", "luascript.cpp:(.text+0x4ae5): undefined reference to `lua_setglobal'", "/usr/bin/ld: luascript.cpp:(.text+0x4b19): undefined reference to `lua_setglobal'", "/usr/bin/ld: luascript.cpp:(.text+0x4b4d): undefined reference to `lua_setglobal'", "/usr/bin/ld: luascript.cpp:(.text+0x4b81): undefined reference to `lua_setglobal'", "/usr/bin/ld: luascript.cpp:(.text+0x4bb5): undefined reference to `lua_setglobal'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o:luascript.cpp:(.text+0x4be9): more undefined references to `lua_setglobal' follow", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::luaIsInArray(lua_State*)':", "luascript.cpp:(.text+0x51bda): undefined reference to `lua_compare'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::luaAddEvent(lua_State*)':", "luascript.cpp:(.text+0x52382): undefined reference to `lua_getglobal'", "/usr/bin/ld: luascript.cpp:(.text+0x523b6): undefined reference to `lua_getglobal'", "/usr/bin/ld: luascript.cpp:(.text+0x5241e): undefined reference to `lua_callk'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerGlobalVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)':", "luascript.cpp:(.text+0x52de8): undefined reference to `lua_setglobal'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerGlobalBoolean(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':", "luascript.cpp:(.text+0x52e4d): undefined reference to `lua_setglobal'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerGlobalMethod(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':", "luascript.cpp:(.text+0x52ea8): undefined reference to `lua_setglobal'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':", "luascript.cpp:(.text+0x530b2): undefined reference to `lua_setglobal'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)':", "luascript.cpp:(.text+0x530fa): undefined reference to `lua_getglobal'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerMethod(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':", "luascript.cpp:(.text+0x53179): undefined reference to `lua_getglobal'", "/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerClass(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':", "luascript.cpp:(.text+0x54bfc): undefined reference to `lua_setglobal'", "/usr/bin/ld: luascript.cpp:(.text+0x54c9d): undefined reference to `lua_getglobal'", "clang: error: linker command failed with exit code 1 (use -v to see invocation)", "make[2]: *** [CMakeFiles/tfs.dir/build.make:1239: tfs] Error 1", "make[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/tfs.dir/all] Error 2", "make: *** [Makefile:91: all] Error 2"]

From googling a bit it seems like a problem with lua. I checked which libs tfs 1.2 used back then but they haven't changed much. It has always been

- liblua5.2-dev
- libluajit-5.1-dev

Any tips? The reason behind is... I wanted to make this out of nostalgia for old tibia and to make it easier for everyone :)
 
Back
Top