• 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

@Don Daniello :
My last question:
How can I configure an admin account for the page? (I was using znote and there I could indicate the username or the account name in order to be the admin).
I was looking in the config.php and DevAAC.php and the only line liked this was : define('ACCOUNT_TYPE_GOD', 5)....

Thanks in advance
Best regards..
It's enough if your account has the GOD_TYPE (5). There isn't that much of admin functionality in DevAAC yet.

more samples using angular please ?
https://docs.angularjs.org/tutorial
 
@Don Daniello,
I'm studying the basic for php and etc.. in the other hand, I'm trying to develop a good way to couple the admin page in DevAAC.. if I have news, I tell you.. I have a lot of ideas..
I would like to help in this project...
 
I couldn't find the place to create a new guild and accept it... is under development or I made something wrong again?
 
This is my config.php

Code:
<?php
/* AT MINIMUM UNCOMMENT AND CONFIGURE PATH TO TFS - this is where config.lua is located
   examples:
     - /home/otsmanager/forgottenserver
     - C:\Users\OTS\forgottenserver
*/
define('TFS_ROOT', '/home/moment/tfs');
// ^^^^^^^ THIS IS VERY IMPORTANT ^^^^^^^

// ------------ OPTIONAL SETTINGS -------------
define('ALLOWED_VOCATIONS', serialize(array(0))); // if you want everyone to start with no vocation (RL style)
// define('ALLOWED_VOCATIONS', serialize(array(1, 2, 3, 4))); // default
define('NEW_PLAYER_LEVEL', 8);
define('NEW_PLAYER_TOWN_ID', 1);

define('HOUSES_AUCTIONS', true); // enable house auction system?
// define('HOUSES_AUCTION_TIME', 'P7D'); // DateInterval spec notation: http://www.php.net/manual/en/dateinterval.construct.php
define('HOUSES_PER_PLAYER', 1);
define('HOUSES_PER_ACCOUNT', 1);

// define('DISABLE_PLUGINS', false);
define('ENABLED_PLUGINS', serialize(array('ratelimiter.php', 'simple.php', 'ipban.php')));

// IF YOU WANT TO CHANGE SOMETHING ELSE, BE SMART AND FOLLOW THE PATTERN, CHECK index.php!

And it is not working. I enter the main website and it doesn't load info, I mean it is likely it doesn't read config.lua

FiNFi83.jpg
 
I couldn't find the place to create a new guild and accept it... is under development or I made something wrong again?
If I remember correctly, it was not implemented because it's available in-game in default TFS 1.0/1.1. You can raise an issue on GitHub to implement it.

Loads my other website but without design/layout.

As you probably figured, that's terribly wrong. It should display a JSON-formatted block of data. You have your rewrites configured incorrectly.
 
Downloaded extracted changed the config.php file and added the path what else to do, lol it was supposed to be easy and it is not.
 
i was able to pass the access problem, but webpage is not interacting with server.
i was able to gather some information while reading how other ppl resolved this problem, but doesn't seem to work on me or i simply do it wrong.
Picture 1 shows the WWW folder
Picture 2 shows the other folder where i have the unused folders and php files.

what i want to know is:
Where do i put the folders in Picture 2 and do i have to configure something so they will work?

If i find the correct place for these folders and they are going to be used by webpage, then most likely i can create an account in webpage, right?

Right now i have a Internal Server Error: undefined error & http://localhost/index.php is a blank page while: http://localhost/# is the webpage
 

Attachments

ok, i updated all the files i found in the github, but still have the same problem:
Webpage is not interacting with server.
Creating account gives: Internal Server Error: undefined error
http://localhost/index.php is a blank page while: http://localhost/# is the webpage

Now my WWW folders looks like this www Folder.
What files i have to modify? Or why is it still not working?!
and rly, what part of this DevAAC has been easy so far >.> 4th day and still trying to make account.
 

Attachments

ok, i updated all the files i found in the github, but still have the same problem:
Webpage is not interacting with server.
Creating account gives: Internal Server Error: undefined error
http://localhost/index.php is a blank page while: http://localhost/# is the webpage

Now my WWW folders looks like this www Folder.
What files i have to modify? Or why is it still not working?!
and rly, what part of this DevAAC has been easy so far >.> 4th day and still trying to make account.
Maybe if you give URL or open your err0r_log and paste it here, we could give you some advice.
 
apache error log
Code:
[Tue Jan 06 13:55:44.758312 2015] [core:warn] [pid 12972:tid 204] AH00098: pid file C:/UniServerZ/core/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Jan 06 13:55:50.763656 2015] [mpm_winnt:notice] [pid 12972:tid 204] AH00455: Apache/2.4.10 (Win32) PHP/5.4.35 configured -- resuming normal operations
[Tue Jan 06 13:55:50.763656 2015] [mpm_winnt:notice] [pid 12972:tid 204] AH00456: Apache Lounge VC10 Server built: Jul 19 2014 11:02:31
[Tue Jan 06 13:55:50.763656 2015] [core:notice] [pid 12972:tid 204] AH00094: Command line: 'C:\\UniServerZ\\core\\apache2\\bin\\httpd_z.exe -d C:/UniServerZ/core/apache2 -f C:\\UniServerZ\\core\\apache2\\conf\\httpd.conf -d C:\\UniServerZ\\core\\apache2'
[Tue Jan 06 13:55:51.156678 2015] [mpm_winnt:notice] [pid 12972:tid 204] AH00418: Parent: Created child process 99076
[Tue Jan 06 13:55:54.492869 2015] [mpm_winnt:notice] [pid 99076:tid 632] AH00354: Child: Starting 150 worker threads.
[Tue Jan 06 13:56:03.851404 2015] [:error] [pid 99076:tid 1856] [client 127.0.0.1:65339] PHP Warning:  chdir(): No such file or directory (errno 2) in C:\\UniServerZ\\www\\index.php on line 84
[Tue Jan 06 13:56:03.852404 2015] [:error] [pid 99076:tid 1856] [client 127.0.0.1:65339] PHP Warning:  require(./DevAAC.php): failed to open stream: No such file or directory in C:\\UniServerZ\\www\\index.php on line 85
[Tue Jan 06 13:56:03.852404 2015] [:error] [pid 99076:tid 1856] [client 127.0.0.1:65339] PHP Fatal error:  require(): Failed opening required './DevAAC.php' (include_path='.;C:/UniServerZ/home/us_pear/PEAR') in C:\\UniServerZ\\www\\index.php on line 85
[Tue Jan 06 13:56:04.964468 2015] [:error] [pid 99076:tid 1872] [client 127.0.0.1:65338] PHP Warning:  chdir(): No such file or directory (errno 2) in C:\\UniServerZ\\www\\index.php on line 84
[Tue Jan 06 13:56:04.965468 2015] [:error] [pid 99076:tid 1872] [client 127.0.0.1:65338] PHP Warning:  require(./DevAAC.php): failed to open stream: No such file or directory in C:\\UniServerZ\\www\\index.php on line 85
[Tue Jan 06 13:56:04.965468 2015] [:error] [pid 99076:tid 1872] [client 127.0.0.1:65338] PHP Fatal error:  require(): Failed opening required './DevAAC.php' (include_path='.;C:/UniServerZ/home/us_pear/PEAR') in C:\\UniServerZ\\www\\index.php on line 85
[Tue Jan 06 13:56:05.889521 2015] [:error] [pid 99076:tid 1872] [client 127.0.0.1:65340] PHP Warning:  chdir(): No such file or directory (errno 2) in C:\\UniServerZ\\www\\index.php on line 84
[Tue Jan 06 13:56:05.890521 2015] [:error] [pid 99076:tid 1872] [client 127.0.0.1:65340] PHP Warning:  require(./DevAAC.php): failed to open stream: No such file or directory in C:\\UniServerZ\\www\\index.php on line 85
[Tue Jan 06 13:56:05.890521 2015] [:error] [pid 99076:tid 1872] [client 127.0.0.1:65340] PHP Fatal error:  require(): Failed opening required './DevAAC.php' (include_path='.;C:/UniServerZ/home/us_pear/PEAR') in C:\\UniServerZ\\www\\index.php on line 85
now if put the index.php file from DevAAC to the www folder like this error things wants i get these errors:
Code:
[Tue Jan 06 14:04:33.544557 2015] [:error] [pid 99076:tid 1872] [client 127.0.0.1:49324] PHP Warning:  chdir(): No such file or directory (errno 2) in C:\\UniServerZ\\www\\index.php on line 84
[Tue Jan 06 14:04:33.550557 2015] [:error] [pid 99076:tid 1872] [client 127.0.0.1:49324] PHP Warning:  require(../vendor/autoload.php): failed to open stream: No such file or directory in C:\\UniServerZ\\www\\DevAAC.php on line 33
[Tue Jan 06 14:04:33.550557 2015] [:error] [pid 99076:tid 1872] [client 127.0.0.1:49324] PHP Fatal error:  require(): Failed opening required '../vendor/autoload.php' (include_path='.;C:/UniServerZ/home/us_pear/PEAR') in C:\\UniServerZ\\www\\DevAAC.php on line 33
[Tue Jan 06 14:04:33.996583 2015] [:error] [pid 99076:tid 1872] [client 127.0.0.1:49331] PHP Warning:  chdir(): No such file or directory (errno 2) in C:\\UniServerZ\\www\\index.php on line 84
[Tue Jan 06 14:04:33.997583 2015] [:error] [pid 99076:tid 1872] [client 127.0.0.1:49331] PHP Warning:  require(../vendor/autoload.php): failed to open stream: No such file or directory in C:\\UniServerZ\\www\\DevAAC.php on line 33
[Tue Jan 06 14:04:33.997583 2015] [:error] [pid 99076:tid 1872] [client 127.0.0.1:49331] PHP Fatal error:  require(): Failed opening required '../vendor/autoload.php' (include_path='.;C:/UniServerZ/home/us_pear/PEAR') in C:\\UniServerZ\\www\\DevAAC.php on line 33
from previous post u can see that i have vendor folder in www and i have autoload.php in that folder.
sooo, whats the deal'io?
 
@whitevo You have moved index.php from public_html to upper directory. This obviously doesn't work.
 
@whitevo You have moved index.php from public_html to upper directory. This obviously doesn't work.
Are you trolling me?
Plz dont, read my messages, look my pictures and give some actual help, so far u have not done it.

First of all what is upper directory?
i have not moved index.php my own, file is in the WWW folder like your 'easy intstructions say'
Besides as far from i understand it reads the index.php codes but it does not like this line from the index.php file :
[striketrough] chdir(APP_ROOT); [/striketrough]

EDIT: i realized the error log is starts from bottom and goes upward.
so the line what gives the problem is actually this one:
$loader = require '../vendor/autoload.php';

and error is this:

PHP Fatal error: require(): Failed opening required '../vendor/autoload.php' (include_path='.;C:/UniServerZ/home/us_pear/PEAR') in C:\\UniServerZ\\www\\DevAAC.php on line 33

Side-note:
i do not have us_pear/PEAR in my uniserverZ directory, but i don't understand the instructions to install it either, BUT i also read that php 4.3 and above doesnt require it:
http://pear.php.net/manual/en/installation.introduction.php

EDIT2:
Im slowly starting to figure this out error by error. I learned the what does these php codes/punctuation means (require; $; .. ; / ; ' ; \ ; etc)
and the logic of 'what does each line say to me?' is slowly starting to get to me.

EDIT3:
1. i configured apache default root file from www to www/public_html
2. fixed some errors in syntaxes
3. fixed some more syntaxes is the TFS file
4. Reached to the same point i started from beginning:
Code:
[Wed Jan 07 00:01:52.833447 2015] [:error] [pid 172564:tid 1844] [client 127.0.0.1:56857] PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1045] Access denied for user 'Whiserv'@'localhost' (using password: YES)' in C:\\UniServerZ\\www\\vendor\\illuminate\\database\\Illuminate\\Database\\Connectors\\Connector.php:47\nStack trace:\n#0 C:\\UniServerZ\\www\\vendor\\illuminate\\database\\Illuminate\\Database\\Connectors\\Connector.php(47): PDO->__construct('mysql:host=loca...', 'Whiserv', 'Vwfs3bJC9JcMFCx...', Array)\n#1 C:\\UniServerZ\\www\\vendor\\illuminate\\database\\Illuminate\\Database\\Connectors\\MySqlConnector.php(20): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=loca...', Array, Array)\n#2 C:\\UniServerZ\\www\\vendor\\illuminate\\database\\Illuminate\\Database\\Connectors\\ConnectionFactory.php(59): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)\n#3 C:\\UniServerZ\\www\\vendor\\illuminate\\database\\Illuminate\\Database\\Connectors\\ConnectionFactory.php(47): Illuminate\\Database\\Connectors\\ConnectionFactory->createSingleConnection(Array)\n#4 C:\\UniServerZ\\www\\vendor\\illuminate\\database in C:\\UniServerZ\\www\\vendor\\illuminate\\database\\Illuminate\\Database\\Connectors\\Connector.php on line 47

Does this mean htacces file is still uncomplete? or what..

EDIT4:
Code:
[Wed Jan 07 00:59:29.368149 2015] [:error] [pid 172564:tid 1804] [client 127.0.0.1:59340] PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1045] Access denied for user 'whiserv'@'localhost' (using password: YES)' in C:\\UniServerZ\\www\\vendor\\illuminate\\database\\Illuminate\\Database\\Connectors\\Connector.php:47\nStack trace:\n#0 C:\\UniServerZ\\www\\vendor\\illuminate\\database\\Illuminate\\Database\\Connectors\\Connector.php(47): PDO->__construct('mysql:host=loca...', 'whiserv', 'test', Array)\n#1 C:\\UniServerZ\\www\\vendor\\illuminate\\database\\Illuminate\\Database\\Connectors\\MySqlConnector.php(20): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=loca...', Array, Array)\n#2 C:\\UniServerZ\\www\\vendor\\illuminate\\database\\Illuminate\\Database\\Connectors\\ConnectionFactory.php(59): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)\n#3 C:\\UniServerZ\\www\\vendor\\illuminate\\database\\Illuminate\\Database\\Connectors\\ConnectionFactory.php(47): Illuminate\\Database\\Connectors\\ConnectionFactory->createSingleConnection(Array)\n#4 C:\\UniServerZ\\www\\vendor\\illuminate\\database\\Illuminate\\Da in C:\\UniServerZ\\www\\vendor\\illuminate\\database\\Illuminate\\Database\\Connectors\\Connector.php on line 47, referer: http://localhost/
did new user to whiserv database with same name like database itself and different password (so everything will be lower case)
nothing changed.
 
Last edited:
up
while im still online maybe someone can help me with this.
 
@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...
 

Attachments

Back
Top