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

SIMPLE ALL IN ONE: From nothing to a fully working dedicated server on Ubuntu

Edit again: I'm a totally idiot. Kids, remember to check if you are REALLY copying all the data pack and CHANGING THE MAP INSIDE CONFIG.LUA

Hi, everything works fine but for some reason, my town table only has 5 random towns, instead of the normal ones. I'm using the globa map.


What this causes is that if a player has town_id >= 6, it will say: Your character could not be loaded.

How to fix it?

What I already did:
1. config.lua with correct mysql credentials
2. config.php from the znote aac with correct mysql credentials

Hi, I have created a VM using Hyper-V with Ubuntu 20.04 and the installation of the script worked just fine. The problem I'm facing atm is that I'm receiving 'Your character could not be loaded'.
I'm able to create the account and my char list appears in the client. I just can't get into the game itself.

What I did:
1. Started the server
2. Open tcp/udp ports of 7171 and 7172

I've tried to search with this query(Your character could not be loaded) in this topic but I found nothing.

@edit sorry I'm dumb, it is related to the town id that the website was creating the character

@edit2

If anyone ever comes to this problem, be advised that:
1. You need to have the data pack inside your data folder. Download one from the forum
2. After that you need to build it, see on Github forgottenserver
3. You also need to look because the website has wrong town ids. To do so, just log in into your phpmyadmin
 

Attachments

  • 1593568308728.png
    1593568308728.png
    185.8 KB · Views: 24 · VirusTotal
Last edited:
It install master branch by default, which is the closest to TFS 1.3 you can get.
 
This page really goes years back but really good information. Learning Ubuntu and it serves the best basic.
 
@Don Daniello Is there a way to use gdb logs with this? I mean before the auto restart start the server i would like to start it with gdb, there is one problem with the server and we want to know from where comes the problem. Thanks
 
@Don Daniello Is there a way to use gdb logs with this? I mean before the auto restart start the server i would like to start it with gdb, there is one problem with the server and we want to know from where comes the problem. Thanks
There's a tfs-gdb.service included.
 
Post automatically merged:

got this output may you know what it means? or from where the problem is comming? please.
There's a tfs-gdb.service included.
Code:
           PID: 210459 (tfs)
           UID: 1000 (otsmanager)
           GID: 1000 (otsmanager)
        Signal: 11 (SEGV)
     Timestamp: Sun 2021-02-07 20:03:09 CET (13h ago)
  Command Line: /home/otsmanager/forgottenserver/build/tfs
    Executable: /home/otsmanager/forgottenserver/build/tfs
Control Group: /system.slice/tfs.service
          Unit: tfs.service
         Slice: system.slice
       Storage: /var/lib/systemd/coredump/core.tfs.1000.c39cca752d084696a6e1e56a12526d63.210459.1612724589000000000000.lz4
       Message: Process 210459 (tfs) of user 1000 dumped core.

                Stack trace of thread 210461:
                #0  0x00007f7109d66b80 n/a (n/a + 0x0)
                #1  0x0000560ba2b470b2 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x35b0b2)
                #2  0x0000560ba29ac304 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x1c0304)
                #3  0x0000560ba29d8401 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x1ec401)
                #4  0x0000560ba29d50c5 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x1e90c5)
                #5  0x0000560ba29fee01 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x212e01)
                #6  0x0000560ba29faf38 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x20ef38)
                #7  0x0000560ba29f5670 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x209670)
                #8  0x0000560ba29ee2c5 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x2022c5)
                #9  0x0000560ba29e74ec n/a (/home/otsmanager/forgottenserver/build/tfs + 0x1fb4ec)
                #10 0x0000560ba2bb5b72 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x3c9b72)
                #11 0x0000560ba2bb5ac0 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x3c9ac0)
                #12 0x0000560ba2bb5241 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x3c9241)
                #13 0x0000560ba2b3837e n/a (/home/otsmanager/forgottenserver/build/tfs + 0x34c37e)
                #14 0x0000560ba2b3809f n/a (/home/otsmanager/forgottenserver/build/tfs + 0x34c09f)
                #15 0x0000560ba2b37c53 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x34bc53)
                #16 0x0000560ba2b375dd n/a (/home/otsmanager/forgottenserver/build/tfs + 0x34b5dd)
                #17 0x0000560ba2b36ec8 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x34aec8)
                #18 0x00007f711d26dd84 n/a (libstdc++.so.6 + 0xd6d84)
                #19 0x00007f711d383609 start_thread (libpthread.so.0 + 0x9609)
                #20 0x00007f711cf5d293 __clone (libc.so.6 + 0x122293)

                Stack trace of thread 210462:
                #0  0x00007f711d38a7b1 futex_abstimed_wait_cancelable (libpthread.so.0 + 0x107b1)
                #1  0x0000560ba2b957df n/a (/home/otsmanager/forgottenserver/build/tfs + 0x3a97df)
                #2  0x0000560ba2b95e90 n/a (/home/otsmanager/forgottenserver/build/tfs + 0x3a9e90)
 
Last edited:
otsmanager@jumba:~/forgottenserver/build$ 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
CMake Warning (dev) at cmake/FindCryptoPP.cmake:73 (SET):
implicitly converting 'DOC' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:60 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found CryptoPP: /usr/include (found version "5.6.4")
-- Found PugiXML: /usr/include
-- MySQL Include dir: /usr/include/mysql library dir: /usr/lib/x86_64-linux-gnu
-- MySQL client libraries: /usr/lib/x86_64-linux-gnu/libmysqlclient.so;-ldl
-- 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 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 iostreams date_time
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindCURL.cmake:143 (find_package_handle_standard_args)
CMakeLists.txt:67 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/otsmanager/forgottenserver/build/CMakeFiles/CMakeOutput.log".
See also "/home/otsmanager/forgottenserver/build/CMakeFiles/CMakeError.log".



Have idea for this problem ?
 
How do you create a .com using this? I notice there is a hosts file in ansible folder but it doesn't seem to do it.
 
I think .com depends on your domain preference, just buy domain from google domains or something, and set your IP etc within their website, right? I don’t have experience with Ubuntu so I could be wrong and look like an idiot. Itutorial you have MUCH more experience than I do with OTs etc, so maybe I’m missing something obvious here.
 
I think .com depends on your domain preference, just buy domain from google domains or something, and set your IP etc within their website, right? I don’t have experience with Ubuntu so I could be wrong and look like an idiot. Itutorial you have MUCH more experience than I do with OTs etc, so maybe I’m missing something obvious here.
You can set up a .com for free with apache2 on linux. Some of the apache systems aren't the same because of the way this method works. So I am missing the files that you would normally use to create the .com. You don't have to buy a domain to host a .com.
 
As I said, I was probably missing something obvious, ty for the explanation :p
 
You can set up a .com for free with apache2 on linux. Some of the apache systems aren't the same because of the way this method works. So I am missing the files that you would normally use to create the .com. You don't have to buy a domain to host a .com.
Hello, have you anyone tutorial to setup .com for free?!
 
hi, is there a way to change the client from 10.98 to 8.6? I installed this on my vps and everything works fine except i dont know how to change the client protocol

Is there a way I can choose what tfs to install? (I want to install TFS 1.3)
 
TFS 1.3 was just the title for the development version between tfs 1.2 and tfs 1.4
Post automatically merged:

TFS 1.3 was just the title for the development version between tfs 1.2 and tfs 1.4
If you want 1.2 you can find it here
 
hi, is there a way to change the client from 10.98 to 8.6? I installed this on my vps and everything works fine except i dont know how to change the client protocol

Is there a way I can choose what tfs to install? (I want to install TFS 1.3)
just use this tfs instead when doing the steps:
 
Back
Top