• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Can't Login

silveralol

Advanced OT User
Joined
Mar 16, 2010
Messages
1,484
Solutions
9
Reaction score
217
hello! I'm here bacause I have a fatal error in my server ...
I'm using tfs 1.2 the data pack ORTS...
my error is caused by the data pack ...
my character list dont load with this data pack
when I try enter without accname and password the client give the msg "invalid account name"
but when I enter with a password the client don't load the character list and still try connect and later take the error 200002
with the default tfs data I can login!
How I fix this problem?
 
Did you compile tfs or you've downloaded compiled?
Compiled in my pc... on ubuntu as on windows! not is problem of TFS man, is the datapack ... I make some scripts but not influenting in the character list, just global events, raids, monsters, creaturescripts, spells :v
 
yes... my list of characters don't load, still trying connect but don't appears nothing else the error 200002
 
First ill note that Linux is case sensitive so if the account name is "a" you can't enter "A" (unless there is a "to lower case" function - doubt that).
Second thing is that the datapack can't really throw errors like this, the only thing the datapack can return is the character login (by returning a login script or bugging the client by sending a faulty package).

Start by making sure the ports are open aswell that you are using the correct IP in your config.lua (not related to the datapack).
If the problem still exists id start checking where the server breaks the connection (use std::cout << "smth" << std::endl; ) at all the returns in mainly protocollogin.cpp.
Might be quicker and easier if you don't wanna find the problem to try a newer / older TFS.
 
First ill note that Linux is case sensitive so if the account name is "a" you can't enter "A" (unless there is a "to lower case" function - doubt that).
Second thing is that the datapack can't really throw errors like this, the only thing the datapack can return is the character login (by returning a login script or bugging the client by sending a faulty package).

Start by making sure the ports are open aswell that you are using the correct IP in your config.lua (not related to the datapack).
If the problem still exists id start checking where the server breaks the connection (use std::cout << "smth" << std::endl; ) at all the returns in mainly protocollogin.cpp.
Might be quicker and easier if you don't wanna find the problem to try a newer / older TFS.
I check the ip in config.lua, are default 127.0.0.1 ...
but I think that it don't is the cause of the error
when I try enter without account name and password the client send the message "invalid account name" ...
when I try using my acc name and my password he doesn't enter in 15 ~ 20 seconds the client send the message "error disconnected from server (200002)."
what scripts can affect in the login? I just use the pack of monsters (https://otland.net/threads/monsterp...ibia-10-7-tfs-1-1-based-on-real-tibia.215685/) and make globalevents, well, one of my globalevents load a map but I think that is not the problem ...
can be migrations? or my database, but I'm using the default TFS database ... just create the tables of the znote ACC
 
I check the ip in config.lua, are default 127.0.0.1 ...
but I think that it don't is the cause of the error
when I try enter without account name and password the client send the message "invalid account name" ...
when I try using my acc name and my password he doesn't enter in 15 ~ 20 seconds the client send the message "error disconnected from server (200002)."
what scripts can affect in the login? I just use the pack of monsters (https://otland.net/threads/monsterp...ibia-10-7-tfs-1-1-based-on-real-tibia.215685/) and make globalevents, well, one of my globalevents load a map but I think that is not the problem ...
can be migrations? or my database, but I'm using the default TFS database ... just create the tables of the znote ACC

If you use 127.0.0.1 you can only access the server by that same computer.
So google my ip and enter what it tells you to enter.
If you got a server edition OS then use your terminal / server website to get it.
 
If you use 127.0.0.1 you can only access the server by that same computer.
So google my ip and enter what it tells you to enter.
If you got a server edition OS then use your terminal / server website to get it.
I'll try... but why in Windows is the same thing ? windows is not case sensitive ... and another question, why with another data pack I can enter normally?
I've tried use the same config.lua default from the tfs using my data but not have effect .-.
I think that I need test script by script to it work :S
 
I'll try... but why in Windows is the same thing ? windows is not case sensitive ... and another question, why with another data pack I can enter normally?
I've tried use the same config.lua default from the tfs using my data but not have effect .-.
I think that I need test script by script to it work :S

Well I can't think of anything that can kill the connection expect TFS.
If you get to the char list and then get "connection lost" or something like that, you got a login script that returns something that isen't true.
Well could also be that your datapack has bugs so TFS exists before you start it, but I suppose you have checked that already.
 
Well I can't think of anything that can kill the connection expect TFS.
If you get to the char list and then get "connection lost" or something like that, you got a login script that returns something that isen't true.
Well could also be that your datapack has bugs so TFS exists before you start it, but I suppose you have checked that already.
I found the error... I try use the latest source without the reward chest system ... and my login have the register ... when I coment the creaturescript.xml and coment the register in login works flawlessly! thanks for the help
 
Back
Top