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

[LittleTips] For new creators | List bugs and solve.

ROKI721

Well-Known Member
Joined
Mar 12, 2011
Messages
179
Solutions
5
Reaction score
61
Location
Poland
I write here small tips for new "noobs" server creators. Its small solved propably with editor, client and start engine.
This Threat can be helped only new creators.
I can mistake of any line, dont suggest my opinion, i'm not god.
Maybe little bad english, sorry.

[ENG]
Error with log-in

-bad configuration config.lua

Auto logout for sign in
-error with login.lua or other creaturescripts

Error login (Game)
-Bad configuration config.lua IP=""

Error with MYSQL on start server
-cant connect database/bad configuration config.lua -> mysql or db lines.

Error with items.otb
-Bad Engine Version or not compatibile items.otb with own engine.

Error with item atrib
-Item have bad attrib in items.xml

I have server online but i cant log-in with this
-line Bind under IP=""

Good Spells, edited spells.xml, i cant use any spell
-You can cut any letter ("/>", ' " ')

Minimal and Max version to server login
-XML -> servers.xml

My Knight if use exura fastest advance to 100 Magic Level
-XML -> vocations.xml -> Knight/Elite Knight and edit manamultiplier to more (="2.0" change to ="3.0")



Remere's MAP Editor (Server Map = Errors)
map only 32 bits

-Import Map on own RME and save.

RME ERROR (Cant change version)
-DELETE ALL RME FILES, C:/Program_Files or Program_Files (x86) + %appdata% + regedit and install latest version..

BAD Version MAP (8.32) Downloaded 8.54
-Dont open, just import.

I have huge castle and i dont see myself
-Add Special Ground on +1/+2 on around of walls (north+west). Comming to RAW -> Grounds -> Void (8.5-8.7)



Client
How make multiclient?
-Change RSA (Otland Tutorials)

How edit/make skin?
-Export all pics (png) and edit. (pic Editor)

How change IP to my IP? (STOP IP Changer)
-Edit login0 and tibia0 IPs (Otland Tutorials)

Problem with edit .spr/dat (bugs with log-in)
-Bad using Object Editor you must first add right table.

How edit buttons?
-Using HexEditor (CTRL+F) and find ur button.

How make own extension?
-You can find and change Tibia.spr in HexEditor to 5-7 other letter (Tibia.spr = 9 letters, Server = 6 letters and we can add 3 more, Server.dd = 9 letters)
-Tibia.dat (9 letters too, Server.ee = 9 letters yea? Your file must be other name or extension [Server.dd Server.ee or Server.dd and ServerOTS]).


It can help solve problem with offtopics.
Otland have thousands topics with new creator problems.
 
This is a good initiative which probably will help a lot of new comers. Great job!
 
Hello again, i find thread with OTClient auth token problem.
I create solve it.
All Solve on spoilers guys.


OTClient [Remove Auth Token]

Go open otc_folder/modules/clien_entergame/entergame.lua
Find
protocolLogin:login(server_ip, server_port, G.account, G.password, G.authenticatorToken, G.stayLogged)

change to
protocolLogin:login(server_ip, server_port, G.account, G.password, G.stayLogged)
Find
G.authenticatorToken = enterGame:getChildById('accountTokenTextEdit'):getText()

change to
--G.authenticatorToken = enterGame:getChildById('accountTokenTextEdit'):getText()

Find
enterGame:getChildById('accountTokenTextEdit'):clearText()

change to
--enterGame:getChildById('accountTokenTextEdit'):clearText()

Open entergame.otui and delete it:
MenuLabel
!text: tr('Token')
anchors.left: prev.left
anchors.top: prev.bottom
text-auto-resize: true
margin-top: 8

TextEdit
id: accountTokenTextEdit
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 2

=====
How i can add imbuing to bows or legs etc?

Open your_ots_folder/data/lib and search imbuing.lua if u find it, edit this file.
Find
["armor"] = {... , ... , ...}
and add your ITEM_ID

or if it weapon example: ["crossbow"] = {ITEM_ID}
If you can add new bonus to crossbows u must find:

Example: ["swiftness"] = {"boots"}, and edit to:
["swiftness"] = {"boots", "crossbow"},
=====
WEB (PHPMYADMIN)
I change password mysql and dont login to phpmyadmin.
Go to path Example: Xampp
C:/xampp/phpmyadmin/
and edit config.inc.php
go to next spoiler.
$cfg['Servers'][$i]['auth_type'] =
$cfg['Servers'][$i]['user'] =
$cfg['Servers'][$i]['password'] =
$cfg['Servers'][$i]['extension'] =
$cfg['Servers'][$i]['AllowNoPassword'] =

Change to with:
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'Your PHPMYADMIN/MYSQL PASS';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
=====
I have block port 80
1. Check if you have open skype or skype proccess and kill it.
1a Optional). Change Apache port -> Xampp Control Panel -> Services -> PORT
2. Restart or Refresh Services
=====

Refresh Thread, new tips for few days.
Post automatically merged:

If u have problem with compile TFS from Github on DEBIAN10
Code:
https://github.com/otland/forgottenserver
(Error with boost lib)
Code:
apt-get install git cmake build-essential libluajit-5.1-dev libmariadb-dev-compat libboost-filesystem-dev libboost-system-dev libboost-iostreams-dev libpugixml-dev libcrypto++-dev
add on end line:
libboost-date-time-dev
I rep it to admins. (100% problem with compile on Debian10 without it ^libs)
 
Last edited:
Hey, next tips for newcomers gods and otsmasters.

My friends cannot login to my server!
1. Check your ports you must unlock/forward ports: 80,8080,7171,7172,7173 and 3306, 443.
1a) 80-http, 8080, https (secure), 7171 - login, 7172 - game, 7173 - cast, 3306 - mysql, 443 - https (secure with ssl).
Code:
You can forward ports in router if you use pass and ip from router deafult: 192.168.1.1/ 192.168.0.1/192.168.1.254 or 0.254
You can don't forward ports but you can use DMZ on your IPv4.
2. Check your config.lua
IP = "Win+R -> CMD -> ipconfig /all -> IPv4"
Code:
STOP use localhost, your router or switch cannot search 'localhost', your device use service DHCP and can use only adress 192.168.1.1 to 1.254.
Your router have ip 1.1 or 1.254 when you use localhost then if you going on website must write pass.
URL = "Domain from noip.com example: xyz.noip.com"
Code:
2a) Create account on noip.com and download duc, noip.com give you free domain on 1 month xyz.noip.com.
Then your globalIP example: 77.111.111.111 is xyz.noip.com but only your IPv4.
3. All your friends login to URL = "xyz.noip.com" on ipchanger but you on localhost.

[ Documents ]
Code:
https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
https://en.wikipedia.org/wiki/Localhost
https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol

sorry for easy english, i wake up before this post!
 
[ Object Builder ]
Why my item is blank or after add items in object editor, my dat has broken.

[ Instruction How add item with itemeditor and object editor without errors.]
1. Open Object Builder, add sprites "right table" (use slicer or import/new).
2. Create new item on left side and pick graphic from right side, after pick ur attrib item.
3. Compile or Recompile.
4. Exit Object Builder and enter to item editor.
5. Load Items.otb and own new spr/dat.
6. Go to "Edit -> Create missing items" or old version "Tools -> Create missing client items".
7. Waiting for load all new items with graphics and attribs.
8. DONE, compile/save your items.otb and run/start server.
 
Back
Top