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

Linux Starting on the OTServer World

Tcharlezin

New Member
Joined
Sep 21, 2018
Messages
4
Reaction score
0
Hello.
I am beginner at the OTServer World...

What i want?
- I want to run my own OTServer, just for training some skills and explore the engineer of this. So, i need to run a OT Server more likely as Global possible.

What i did?
- I have installed the otland/forgottenserver (master branch) and edubart/otclient (master branch). But only this.

What is the next steps?
- I dont know what version of tibia the forgottenserver (master) run, and don't know how to connect on this. Really need a "beginer" tutorial, not only a "compiling" tutorial.

What i have?
- I'am degree on computer science, have some experience on Linux, and some habilities on programming skills (senior at php). I am using ubuntu 16 to work on this.

If anyone can give some help, i will be grateful.
Have a nice day.
 
Well.. After posting i discover some points at file: src/definitions.h

static constexpr auto STATUS_SERVER_NAME = "The Forgotten Server";
static constexpr auto STATUS_SERVER_VERSION = "1.3";
static constexpr auto STATUS_SERVER_DEVELOPERS = "Mark Samman";

static constexpr auto CLIENT_VERSION_MIN = 1097;
static constexpr auto CLIENT_VERSION_MAX = 1098;
static constexpr auto CLIENT_VERSION_STR = "10.98";
 
I'm using the latest TFS too.
To run it, you need first to run a local database where the server will load many things as players, accounts, guilds, etc.
I use Xampp and PHPMyAdmin to do that.
You will have to import the schema.sql of the forgottenserver to the database.
Then you can create accounts by yourself or configurate an website (try Gesior AAC) to do that.
Once you have Xampp running with Apache and MySQL, you will be able to start the server.
You will have to configurate many things of the server in the config.lua file (such as server IP, that can be 127.0.0.1, and Database IP that will be 127.0.0.1).
Probably you will face many problems to get on the last step.

I'm a computer science student too and I'm studying the Tibia codes too :) Good luck!

Edit: For now, forget the source codes. Try to run a released version already compiled first.
 
I'm using the latest TFS too.
To run it, you need first to run a local database where the server will load many things as players, accounts, guilds, etc.
I use Xampp and PHPMyAdmin to do that.
You will have to import the schema.sql of the forgottenserver to the database.
Then you can create accounts by yourself or configurate an website (try Gesior AAC) to do that.
Once you have Xampp running with Apache and MySQL, you will be able to start the server.
You will have to configurate many things of the server in the config.lua file (such as server IP, that can be 127.0.0.1, and Database IP that will be 127.0.0.1).
Probably you will face many problems to get on the last step.

I'm a computer science student too and I'm studying the Tibia codes too :) Good luck!

Edit: For now, forget the source codes. Try to run a released version already compiled first.

Hello Togu (brother from SC haha), thanks for your reply.
I start the server without account manager, just editing the config.lua to put a database local, running mysql, and already imported the schema.

The TFS is compiled and is on. The OTClient too, compiled and "executing", but not tried to connect at the server yet. (did it at 4 a.m).

I was reading about TFS, and i didn't know if it have a "server" (like map, creatures, spells etc), or i need to download other files to do it.
The last time that i up a OT, was in 2008, hehe. And all was based on "txt" files.

I found orts on github (orts/server), but i don't know if i can put it running with TFS 1.3 (master).
 
I think the TFS project is a project focused on the sources.
The data pack (.lua and .xml files) are minimal just to test features implemented in C++.

Their map (located in data/world) just have rookgaard and a few hunting areas.
Their actions folder (things that happen when you "click" or "use" something) just have annihilator in quests.

So, if you are going to study C++ only, you don't need to download any data pack from other servers.

But if you are going study xml and lua, probably you will have to download an global data pack. That way you can see how it works and reproduce some Tibia features like levers removing stones, events like capture the flag, pvp arena, etc.

I learned a lot of c++, lua and xml studying TFS. It's very simple to make a communication between the config.lua file and the source code and it's very powerful too when you want to test something implemented.

Tip:
Use a searching feature that search things in more than one document (in visual studio is ctrl +f and then 'entire solution'). Then you can search for keywords like "getHealth", "getSkill", "You advanced from level", etc.
 
Back
Top