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

[DevAAC] New AAC and best website for TFS 1.X

Per request, /#/ (hash) was dropped from URLs. This requires updated rewrite rules (.htaccess or nginx config), which are available in source code and in our wiki.
Everyone who has problems with DevAAC, make sure you set up your webserver to point directly to public_html. If you use "http://localhost" as domain, you must have DevAAC at exactly "http://localhost/", putting it in "http://localhost/DevAAC/public_html/" or any other combination WILL NOT work.
 
@withevo
Try to follow the same order of the folders that I have.
Look at the picture and also look that my web server uses the "public_html" as your "www"..
just that you can compare... I dont know if this help you.. but may be you dont need another setting in special..you are almost there...
Also, look at your config.lua if is starting with any comment tag like:

--Define blablabla..
I had an issue with this tags...

Setting the webserver to public.html , I already did that (mentioned it in EDIT3) [one does simply not read entire post before answering :D]
for a doublecheck i compared the pictures.
1. Folders are fine.
2. my MySQL port is 3300 (i manually set it when i installed webserver, because it said 3306 is in use) [I am going to cry into pillow, if this brings forth the access issue]

In EDIT3 i also said: fixed some TFS syntaxes (by that i ment the comment lines, my error log found 1 of the lines unactractive)

Per request, /#/ (hash) was dropped from URLs. This requires updated rewrite rules (.htaccess or nginx config), which are available in source code and in our wiki.
Everyone who has problems with DevAAC, make sure you set up your webserver to point directly to public_html. If you use "http://localhost" as domain, you must have DevAAC at exactly "http://localhost/", putting it in "http://localhost/DevAAC/public_html/" or any other combination WILL NOT work.
sigh*
Per request, /#/ (hash) was dropped from URLs.
uhuh? ye, ok, but.. what does it mean? Should i know what does it mean?

This requires updated rewrite rules (.htaccess or nginx config), which are available in source code and in our wiki.
you are talking about the 2 code lines in wiki for .thaccess right? and what is nginx, i have not seen that file in the folders and i definetly have not changed anything in there!!
Where i get this file and what i have to change/write in it?

Everyone who has problems with DevAAC, make sure you set up your webserver to point directly to public_html.
You finally said it! Too bad i already figured it out 5 days later after i downloaded DevAAC Zip. (the saltiness is real)

If you use "http://localhost" as domain..
Yes i am.
..you must have DevAAC at exactly "http://localhost/"..
Eh.. whaat?! You lost me already... How i put the folder in browser? this how i read this sentence.. and it continues
, putting it in "http://localhost/DevAAC/public_html/" or any other combination WILL NOT work.
will not work how? forbidden access? blank page? error 1337? undefined error?

In conclusion:
Don, you were able to raise more questions with your post.
How about tell us what we have to do in detail instead of saying, what is wrong.
 
Hell with that! finaly got ZnoteAAC to work thanx to #HalfAway

The problem was in the incorrect port.
 
That is a good news!!
Congrats and good luck with your server!!

just one thing: don't you forget that we were just trying to help you..
 
Hey, i keep getting:
Forbidden
You don't have permission to access / on this server

If alredy added it to my open ports ect.
Someone know how to fix this?
 
Hello, all user, this is my first post here, and i dont speak english very well, please be pacient :).

iam using windows7_64 with cygwin_64, configured mysql, apache2, php,tfs1.1,otclient all working :D.

i am trying to configure DevAcc1.0 and getting this error in my browser:

TFS_CONFIG is not defined properly.


This is my logerror in apache2:
Code:
[Sat Apr 04 11:05:27 2015] [notice] Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.2a DAV/2 PHP/5.6.7 configured -- resuming normal operations
[Sat Apr 04 11:05:31 2015] [error] [client 127.0.0.1] PHP Warning:  syntax error, unexpected TC_STRING in /home/wal/otfs/config.lua on line 2\n in /srv/www/devacc/DevAAC/DevAAC.php on line 106
[Sat Apr 04 11:05:31 2015] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/favicon.ico
[Sat Apr 04 11:05:36 2015] [error] [client 127.0.0.1] PHP Warning:  syntax error, unexpected TC_STRING in /home/wal/otfs/config.lua on line 2\n in /srv/www/devacc/DevAAC/DevAAC.php on line 106
[Sat Apr 04 11:05:36 2015] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/favicon.ico
This is my config.lua

Code:
-- Account manager
accountManager = true -- Caso você queira ACC Manager em seu servidor, coloque true ou caso acontrário coloque false
namelockManager = true -- Não mude!
newPlayerChooseVoc = false -- Esta opção serve para se o player escolhe sua vocação ao criar a conta no ACC Manager, true caso sim.
newPlayerSpawnPosX = 1018 -- Esta e a posição X do templo
newPlayerSpawnPosY = 1018 -- Esta e a posição Y do templo
newPlayerSpawnPosZ = 6 -- Esta e a posição Z do templo
newPlayerTownId = 1 -- Não mude!
newPlayerLevel = 1 -- O level que o player começa
newPlayerMagicLevel = 0 -- O magic level que o player começa
generateAccountNumber = false -- Se vai gerar uma ACC Number para o jogador (aconselho que deixe assim)

-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp"
hotkeyAimbotEnabled = true
protectionLevel = 1
killsToRedSkull = 3
killsToBlackSkull = 6
pzLocked = 60000
removeChargesFromRunes = true
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2 * 1000
experienceByKillingPlayers = false
expFromPlayersLevelRange = 75

-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
ip = "127.0.0.1"
bindOnlyGlobalAddress = false
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Welcome to The OTX Server!"
onePlayerOnlinePerAccount = true
allowClones = false
serverName = "OTXSERVER"
statusTimeout = 1 * 1000
replaceKickOnLogin = true
maxPacketsPerSecond = 25

-- Deaths
-- NOTE: Leave deathLosePercent as -1 if you want to use the default
-- death penalty formula. For the old formula, set it to 10. For
-- no skill/experience loss, set it to 0.
deathLosePercent = -1

-- Houses
-- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality
housePriceEachSQM = 1000
houseRentPeriod = "never"

-- Item Usage

timeBetweenActions = 200
timeBetweenExActions = 1000

-- Map
-- NOTE: set mapName WITHOUT .otbm at the end
mapName = "forgotten"
mapAuthor = "Komic"

-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = true
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100

-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "tibia"
mysqlPass = "12345"
mysqlDatabase = "tibia1"
mysqlPort = 3306
mysqlSock = ""

-- password
passwordType="sha1"


-- Misc.
allowChangeOutfit = true
freePremium = false
kickIdlePlayerAfterMinutes = 30
maxMessageBuffer = 4
emoteSpells = false
classicEquipmentSlots = false

-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = 5
rateSkill = 3
rateLoot = 2
rateMagic = 3
rateSpawn = 1

-- Monsters
deSpawnRange = 2
deSpawnRadius = 50

-- Stamina
staminaSystem = true

-- Scripts
warnUnsafeScripts = true
convertUnsafeScripts = true

-- Startup
-- NOTE: defaultPriority only works on Windows and sets process
-- priority, valid values are: "normal", "above-normal", "high"
defaultPriority = "high"
startupDatabaseOptimization = "yes"

-- Status server information
ownerName = "Rodrigo"
ownerEmail = ""
url = ""
location = "Brasil"

Someone have any idea of whats is wrong?
 
Last edited:
Thanks a lot, "--" was the problem in config.lua :D.

After that, the problem was php_ctype missing, but Solved.

Now i have some kind of trouble with date()...

index.php in the browser:

Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>OTS</title>

<!-- Bootstrap 3: http://getbootstrap.com/getting-started/#download -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">

<style>
body {
padding-top: 20px;
padding-bottom: 20px;
}

.jumbotron {
text-align: center;
border-bottom: 1px solid #e5e5e5;
}

.header {
border-bottom: 1px solid #e5e5e5;
margin-bottom: 30px;
}

.header h3 {
padding-bottom: 19px;
margin-top: 0;
margin-bottom: 0;
line-height: 40px;
}

.footer {
padding-top: 19px;
color: #777;
border-top: 1px solid #e5e5e5;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-10 col-sm-offset-1 col-md-6 col-md-offset-3">

<div class="jumbotron">
<h1>Hello!</h1>
<p>Here you can easily create your account and a character! If you already have an account,
fill in your current details and a new character will be added to your account!</p>
</div>


<form class="form-horizontal" role="form" method="post">
<div class="form-group ">
<label for="email" class="col-sm-3 control-label">Email</label>
<div class="col-sm-9">
<input type="email" class="form-control" name="email" id="email" value="" placeholder="Email (leave empty if only adding character)" autofocus>
</div>
</div>
<div class="form-group ">
<label for="account-name" class="col-sm-3 control-label">Account name</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="account-name" id="account-name" value="" placeholder="Account name" required minlength="2" maxlength="12">
</div>
</div>
<div class="form-group ">
<label for="password" class="col-sm-3 control-label">Password</label>
<div class="col-sm-9">
<input type="password" class="form-control" name="password" id="password" value="" placeholder="Password" required minlength="6" maxlength="20">
</div>
</div>
<hr />
<div class="form-group ">
<label for="character-name" class="col-sm-4 control-label">Character name</label>
<div class="col-sm-6">
<input type="text" class="form-control" name="character-name" id="character-name" value="" placeholder="Character name" required minlength="6" maxlength="20">
</div>
</div>
<div class="form-group ">
<label for="sex" class="col-sm-4 control-label">Sex</label>
<div class="col-sm-4">
<div class="radio">
<label>
<input type="radio" name="sex" id="sex" value="1" checked>
Male
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="sex" id="sex" value="0" >
Female
</label>
</div>
</div>
</div>
<div class="form-group ">
<label for="vocation" class="col-sm-4 control-label">Vocation</label>
<div class="col-sm-4">
<div class="radio">
<label>
<input type="radio" name="vocation" id="vocation" value="1" checked>
Sorcerer
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="vocation" id="vocation" value="2" >
Druid
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="vocation" id="vocation" value="3" >
Paladin
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="vocation" id="vocation" value="4" >
Knight
</label>
</div>
</div>
</div>

<div class="form-group">
<div class="col-sm-12 text-center">
<button type="submit" class="btn btn-primary btn-lg">Create account & character!</button>
</div>
</div>
</form>

<div class="footer">
<p>&copy; {
"code": 2,
"message": "Fatal error occured: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. at line 146 in file \/srv\/www\/devacc\/plugins\/templates\/simple.php"
}

My $TZ=America/Sao_Paulo

I read simple.php, and its allright( i think ), the error is targeting the wrong file...

Someone know whats wrong?
PS:i tried setting public_html to root directory, but no changes.
THANKS.
 
Last edited:
I solved the error aboveo_O in config.php, disabling the simple.php plugin and now e got a 404:(

Trying solution of Don Daniello on php.ini...
 
Gotcha, thanks very much Don Daniello, thats worked, the DevAcc account and character is working now :D:D:D.
 
Last edited:
I am getting trouble with DevAcc again, summary:

After the problem above be solved by Don, i had a problem with .htacces being ignored, the problem is that you have to edit httpd.conf and set [ AllowOverride all ] in the directory tag of root dir.

Now i got :

Code:
Server Information
Loading...
IP {{info.ip}}
Port {{info.loginProtocolPort}}
World Type: {{info.worldType | uppercase}}

In the url: http://127.0.0.1/api/v1/info

I am complete lost here, all vars on page is like that.

Thanks in advance.
(edited: some fixes of english :oops::rolleyes:)
 
Last edited:
Ok the post above does not show my misery, so here is my screenshot :

devacc.jpg
 
Last edited:
I've noticed that all characters created start with female citizen, even if they're a male character. in DevAAC\Models\Player.php I see that it sets looktype to 136. It doesn't seem to change it to the male outfit when creating a male character. Is there a spot I can easily add this?
 
I've noticed that all characters created start with female citizen, even if they're a male character. in DevAAC\Models\Player.php I see that it sets looktype to 136. It doesn't seem to change it to the male outfit when creating a male character. Is there a spot I can easily add this?
On first login the server prompts you to change the outfit anyway.
 
Which can be closed without changing it and I don't particularly want my male players being able to run around as a female.
 
Back
Top