• 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

What do you mean?

I tested and field works normally, destory field works normally on FF when its on a loose stone pile...
Oh really? it didnt worked for me, took me a while to fix it yesterday lol, can u tell me what version are you using? im using the one from github.
Also are you using original tibia client or otclient?
 
Last edited:
Quests are bugged, when you open a chest, you can open it infinite amount of times and receive the item.
 
PHP:
Building CXX object CMakeFiles/tfs.dir/src/behaviourdatabase.cpp.o
/home/otsmanager/forgottenserver/src/behaviourdatabase.cpp: In member function ‘int32_t BehaviourDatabase::searchDigit(const string&)’:
/home/otsmanager/forgottenserver/src/behaviourdatabase.cpp:1150:14: error: catching polymorphic type ‘class std::invalid_argument’ by value [-Werror=catch-value=]
 1150 |  catch (std::invalid_argument) {
      |              ^~~~~~~~~~~~~~~~
/home/otsmanager/forgottenserver/src/behaviourdatabase.cpp:1153:14: error: catching polymorphic type ‘class std::out_of_range’ by value [-Werror=catch-value=]
 1153 |  catch (std::out_of_range) {
      |              ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/tfs.dir/build.make:147: CMakeFiles/tfs.dir/src/behaviourdatabase.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:160: CMakeFiles/tfs.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Ubuntu while compiling.

cmake results:
PHP:
cmake ..
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cotire 1.7.6 loaded.
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Success
-- Performing Test COMPILER_KNOWS_STDLIB
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Found GMP: /usr/include/x86_64-linux-gnu 
-- Found PugiXML: /usr/include 
-- Could NOT find LuaJIT (missing: LUA_INCLUDE_DIR)
-- MySQL Include dir: /usr/include/mysql  library dir: /usr/lib/x86_64-linux-gnu
-- MySQL client libraries: mysqlclient
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found Lua: /usr/lib/x86_64-linux-gnu/libluajit-5.1.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "")
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.53.0") found components: system filesystem
-- CXX target tfs cotired without unity build.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/otsmanager/forgottenserver/build
 
Post automatically merged:

PHP:
Building CXX object CMakeFiles/tfs.dir/src/behaviourdatabase.cpp.o
/home/otsmanager/forgottenserver/src/behaviourdatabase.cpp: In member function ‘int32_t BehaviourDatabase::searchDigit(const string&)’:
/home/otsmanager/forgottenserver/src/behaviourdatabase.cpp:1150:14: error: catching polymorphic type ‘class std::invalid_argument’ by value [-Werror=catch-value=]
1150 |  catch (std::invalid_argument) {
      |              ^~~~~~~~~~~~~~~~
/home/otsmanager/forgottenserver/src/behaviourdatabase.cpp:1153:14: error: catching polymorphic type ‘class std::out_of_range’ by value [-Werror=catch-value=]
1153 |  catch (std::out_of_range) {
      |              ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/tfs.dir/build.make:147: CMakeFiles/tfs.dir/src/behaviourdatabase.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:160: CMakeFiles/tfs.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Ubuntu while compiling.

cmake results:
PHP:
cmake ..
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cotire 1.7.6 loaded.
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Success
-- Performing Test COMPILER_KNOWS_STDLIB
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Found GMP: /usr/include/x86_64-linux-gnu
-- Found PugiXML: /usr/include
-- Could NOT find LuaJIT (missing: LUA_INCLUDE_DIR)
-- MySQL Include dir: /usr/include/mysql  library dir: /usr/lib/x86_64-linux-gnu
-- MySQL client libraries: mysqlclient
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Lua: /usr/lib/x86_64-linux-gnu/libluajit-5.1.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "")
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.53.0") found components: system filesystem
-- CXX target tfs cotired without unity build.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/otsmanager/forgottenserver/build

Try to change that line with
C++:
catch (std::out_of_range)
to
C++:
catch (std::out_of_range&)
 
Post automatically merged:



Try to change that line with
C++:
catch (std::out_of_range)
to
C++:
catch (std::out_of_range&)

Worked! However, there are more after that.


C++:
/home/otsmanager/forgottenserver/src/combat.cpp: In static member function ‘static bool Combat::closeAttack(Creature*, Creature*, fightMode_t)’:
/home/otsmanager/forgottenserver/src/combat.cpp:883:38: error: suggest parentheses around ‘&&’ within ‘||’ [-Werror=parentheses]
  883 |    if (hit || -totalDamage > defense && (randTest == 5 * (randTest / 5))) {
      |               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/otsmanager/forgottenserver/src/combat.cpp: In static member function ‘static bool Combat::rangeAttack(Creature*, Creature*, fightMode_t)’:
/home/otsmanager/forgottenserver/src/combat.cpp:1036:25: error: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Werror=sign-compare]
 1036 |   if (rand() % distance <= skillValue) {
      |       ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/otsmanager/forgottenserver/src/combat.cpp: In static member function ‘static bool Combat::canUseWeapon(Player*, Item*)’:
/home/otsmanager/forgottenserver/src/combat.cpp:1242:72: error: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int32_t’ {aka ‘int’} [-Werror=sign-compare]
 1242 |  if (!player->hasFlag(PlayerFlag_HasInfiniteMana) && player->getMana() < weapon->getManaConsumption()) {
      |                                                      ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
 
cc1plus: all warnings being treated as errors
fix warnings or remove flag
 
cc1plus: all warnings being treated as errors
fix warnings or remove flag
After compiling with
make -i

C++:
otsmanager@116-202-120-158:~/forgottenserver/build$ sudo systemctl status tfs
● tfs.service - The Forgotten Server
     Loaded: loaded (/etc/systemd/system/tfs.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2020-05-28 14:14:35 CEST; 1min 22s ago
   Main PID: 57435 (code=exited, status=203/EXEC)

May 28 14:14:35 116-202-120-158 systemd[1]: tfs.service: Scheduled restart job, restart counter is at 5.
May 28 14:14:35 116-202-120-158 systemd[1]: Stopped The Forgotten Server.
May 28 14:14:35 116-202-120-158 systemd[1]: tfs.service: Start request repeated too quickly.
May 28 14:14:35 116-202-120-158 systemd[1]: tfs.service: Failed with result 'exit-code'.
May 28 14:14:35 116-202-120-158 systemd[1]: Failed to start The Forgotten Server.
 
I'm encountering some strange issues.

I made a God character and was just teleporting around the map checking everything out. I'm currently on my phone at work, but I can provide some pics later if what I'm saying is not sufficient.

1. While teleporting around edron (north of town close to cave entrance to demons), my God character froze and the client crashed. From then on I couldn't login to that character without the client crashing. I then made a second God character, and the same thing randomly happened again and my viewport locked onto the temple in edron and glitched out. Any idea what's causing this? Stock nostalrius, no added items or anything. Just made a generic God character and started walking/teleporting around.

2. I was on a God character in edron demon cave north of town UE'n monsters to clear my path. The first cast is correct, but when I spam it a second time 3/4 of it is cut off and it casts it where I was before. (It looks like a normal explosion rune)

These are two issues I have experienced in the first 15 minutes of trying the server. I'm sure it's something menial that I have overlooked since I havent read of anyone else having these issues.

Does it perhaps have something to do with the stack byte position thing?

Is there any guide out there on how to enable that?

Thank you.

Have you figure it out?
 
Hello guys!

I'm trying to compile in linux (Ubuntu) and got these errors, I tried to search for the solution myself on the internet, but until now I couldn't. Can you help me ?
I'm very grateful 😍😘🥰

1591547295900.png


CMakelist.txt:


Lua:
cmake_minimum_required(VERSION 2.8)

set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)

project(tfs)

list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

include(cotire)

add_compile_options(-Wall -Werror -pipe -fvisibility=hidden)

if (CMAKE_COMPILER_IS_GNUCXX)
    add_compile_options(-fno-strict-aliasing)
endif()

include(FindCXX11)

# Find packages.
find_package(GMP REQUIRED)
find_package(PugiXML REQUIRED)
find_package(LuaJIT)
find_package(MySQL)
find_package(Threads)

option(USE_LUAJIT "Use LuaJIT" ${LUAJIT_FOUND})

if(USE_LUAJIT)
    find_package(LuaJIT REQUIRED)
    if(APPLE)
      set(CMAKE_EXE_LINKER_FLAGS "-pagezero_size 10000 -image_base 100000000")
    endif()
else()
    find_package(Lua)
endif()

find_package(Boost 1.53.0 COMPONENTS system filesystem REQUIRED)

include(src/CMakeLists.txt)
add_executable(tfs ${tfs_SRC})

include_directories(${MYSQL_INCLUDE_DIR} ${LUA_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${PUGIXML_INCLUDE_DIR} ${GMP_INCLUDE_DIR})
target_link_libraries(tfs ${MYSQL_CLIENT_LIBS} ${LUA_LIBRARIES} ${Boost_LIBRARIES} ${Boost_FILESYSTEM_LIBRARIES} ${PUGIXML_LIBRARIES} ${GMP_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})

set_target_properties(tfs PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "src/otpch.h")
set_target_properties(tfs PROPERTIES COTIRE_ADD_UNITY_BUILD FALSE)
cotire(tfs)
 
I ended up having a bunch of little issues with ubuntu and ended up compiling it with Debian 9 and had a lot of luck.


So far I haven't been able to successfully compile it because I'm getting a bunch of compare warning when trying to compare a few uints vs ints.

I've went in a change some of the variables but I'm afraid I'm going to break something down the line.

So far I've changed the getMana() and getManaConsumption() functions to uint32_t from int32_t, and changed the distance variable in combat.cpp from int32_t to uint32_t.
I'm getting some more errors of the same warnings in player.cpp when it comes to BAN stuff.

My rationality is these values shouldn't be negative for in-game purposes right?
 
Has anyone compiled Nostalrius and is running it smoothly on a Mac?

I've compiled it using the TFS instructions and it seems to run just fine. But if I move to an x coordinate larger than 32 757, the client freezes to a halt. I'm guessing that the client "sees" 10 more tiles beyond the player position, which puts the largest value it sees at 32 767, which is the max value of a short unsigned int. Since unsigned short ints are used to store the position, my guess is that the position values are being converted to a signed int for some reason.

Any ideas why this would happen only when I compile on a mac? Suggestions on how to fix it? Any help is much appreciated!
 
Has anyone compiled Nostalrius and is running it smoothly on a Mac?

I've compiled it using the TFS instructions and it seems to run just fine. But if I move to an x coordinate larger than 32 757, the client freezes to a halt. I'm guessing that the client "sees" 10 more tiles beyond the player position, which puts the largest value it sees at 32 767, which is the max value of a short unsigned int. Since unsigned short ints are used to store the position, my guess is that the position values are being converted to a signed int for some reason.

Any ideas why this would happen only when I compile on a mac? Suggestions on how to fix it? Any help is much appreciated!
I spent daaaaaays to realize this hahaha. It seems that whole problem lies on updating the player position on the internal map tree. I couldn't find out how the position values were influencing it.

I ended up giving up on that. Since any release version would be played on Linux.
 
I spent daaaaaays to realize this hahaha. It seems that whole problem lies on updating the player position on the internal map tree. I couldn't find out how the position values were influencing it.

I ended up giving up on that. Since any release version would be played on Linux.

Good to know I'm not alone! Less good to know you gave up 😂

I also found an old thread here where someone mentions that it happens on both Mac and Linux

Did you find the function where it "breaks"?
 
Hello guys!

I'm trying to compile in linux (Ubuntu) and got these errors, I tried to search for the solution myself on the internet, but until now I couldn't. Can you help me ?
I'm very grateful 😍😘🥰

View attachment 46391


CMakelist.txt:


Lua:
cmake_minimum_required(VERSION 2.8)

set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)

project(tfs)

list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

include(cotire)

add_compile_options(-Wall -Werror -pipe -fvisibility=hidden)

if (CMAKE_COMPILER_IS_GNUCXX)
    add_compile_options(-fno-strict-aliasing)
endif()

include(FindCXX11)

# Find packages.
find_package(GMP REQUIRED)
find_package(PugiXML REQUIRED)
find_package(LuaJIT)
find_package(MySQL)
find_package(Threads)

option(USE_LUAJIT "Use LuaJIT" ${LUAJIT_FOUND})

if(USE_LUAJIT)
    find_package(LuaJIT REQUIRED)
    if(APPLE)
      set(CMAKE_EXE_LINKER_FLAGS "-pagezero_size 10000 -image_base 100000000")
    endif()
else()
    find_package(Lua)
endif()

find_package(Boost 1.53.0 COMPONENTS system filesystem REQUIRED)

include(src/CMakeLists.txt)
add_executable(tfs ${tfs_SRC})

include_directories(${MYSQL_INCLUDE_DIR} ${LUA_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${PUGIXML_INCLUDE_DIR} ${GMP_INCLUDE_DIR})
target_link_libraries(tfs ${MYSQL_CLIENT_LIBS} ${LUA_LIBRARIES} ${Boost_LIBRARIES} ${Boost_FILESYSTEM_LIBRARIES} ${PUGIXML_LIBRARIES} ${GMP_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})

set_target_properties(tfs PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "src/otpch.h")
set_target_properties(tfs PROPERTIES COTIRE_ADD_UNITY_BUILD FALSE)
cotire(tfs)

Hello guys,

Compilled on linux Ubuntu 20.04

I used this tutorial: UBUNTU
and also i installed it:
Lua:
apt-get install autoconf libboost-all-dev libgmp-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libxml2-dev libxml++2.6-dev libmysql++-dev libsqlite0-dev libsqlite3-dev build-essential

Remove -werror from CMakeLists.txt and weapons.ccp from CMakeLists.txt (ot/src).
 
Hello guys!

Im trying to compile the server in Ubuntu 18.04 and these erros appears : 1592898983298.png

Anyone have a suggestion?
Tkss!
 
Back
Top