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

Problem With Setup [7.4] TFS 1.2

Tamerlan

New Member
Joined
Mar 26, 2018
Messages
7
Reaction score
0
Hello
I test my abilities in setup Open Tibia Server I never do this earlier but some skills like during my work on Joomla are same (database)
I use this engine [7.4] TFS 1.2
And I follow two tutorials:

The thing is after I make account I cant login. Everything looks good (I give attachments with IMG because I cant add directly to post

I look that is encrypted sha1 it is and also in config.lua is sha1
I test many thinks what will happend if I give bad host to config.lua Theforgotten server even dont open
What if I dont open Theforgottenserver and I try open IP Changer and try login I get connect problem if I provide good instruction I only get like on IMG invalid account name but I give testtt and password testtt

I see that some engines have Account Manager you know account number and password 1 and 1. This engine dont have this

Regards
 

Attachments

@Tinkz
Earlier I also think about this. But to make sure I make three accounts. And on each one I make one character and still client tell me that "Invalid Account Name"
 
Does your config use Sha1 encoding? because your website is, so your server should, Also, did you setup the right database in your config.lua ? .... you are posting so less information...
 
Does your config use Sha1 encoding? because your website is, so your server should, Also, did you setup the right database in your config.lua ? .... you are posting so less information...

I write this in first post. As attachment I give config.lua and I give more screnshoots about encrypting.

About database, website work and make account so this is not the wrong part. But propably ots database. As attachments I give also screnshoots. Database password is also "test"

I upload files folders maybe I dont have something
 

Attachments

In your config .lua, you did not even set the name of your database,
-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = ""
mysqlPass = ""
mysqlDatabase = ""
mysqlPort = 3306
mysqlSock = ""
passwordType = "sha1"

How can your server reconize your database if you left blank its name ?
Also mysql user should not be empty, it should be root, or a user you've created...
 
Try with "id" on table of accounts... in account name put number 1 and ur password.
I test this and still client dont see account but something change now I get "Account name or password is not correct" earlier was "Invalid account name". I see also that new error message is on other account when I use ID instead account name from website

In your config .lua, you did not even set the name of your database,
-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = ""
mysqlPass = ""
mysqlDatabase = ""
mysqlPort = 3306
mysqlSock = ""
passwordType = "sha1"

How can your server reconize your database if you left blank its name ?
Also mysql user should not be empty, it should be root, or a user you've created...

Sry man I upload this empty config.lua this was clean backup. I upload this true version
 

Attachments

dude, I can't download ur source cause the github project seems unavailble, but try openning protocollogin.cpp , and there is all the message that are sent to the client, find the message you get in this and try to find out where the bugs comes from...
 
dude, I can't download ur source cause the github project seems unavailble, but try openning protocollogin.cpp , and there is all the message that are sent to the client, find the message you get in this and try to find out where the bugs comes from...

On the last page you have this engine [7.4] TFS 1.2 someone upload to github
This is reupload. As you see this from first page dont work

likely your source code doesn't allow for letters in account name.

Try changing it to just numbers...

You have right it works (Attachments)

So are two questions:
-Why only numbers someone choose in engine? And how it change to latin alphabet.
-Even if login still I cant go into game hmm why it happend?
 

Attachments

In terms of letters/characters in account number:
Post your accounts.h .cpp likely its specified there to take numbers only.

In terms of loading character:
Wrong townid, wrong spawn location, incorrect outfits, etc
 
In terms of letters/characters in account number:
Post your accounts.h .cpp likely its specified there to take numbers only.

In terms of loading character:
Wrong townid, wrong spawn location, incorrect outfits, etc

I change extension from .h to .txt because Forum not allow this extension.

To second question bunch of thinks with no tutorial cant help propably

Edit. Engine Show Something
Hmm I thinked that everything will work :/
 

Attachments

line 27
change
uint32_t name;
to
std::string name;


Then recompile, and check.
There may be more references, but i think this is main one; you need to check for definition of the structure, if this doesn't work or drops compilation errors.
 
Back
Top