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

MyAAC v1.0

slaw

Software Developer
Joined
Aug 27, 2007
Messages
3,784
Solutions
133
Reaction score
1,275
Location
Germany
GitHub
slawkens
Hello,

it has been almost 5 years since our last big release (v0.8.0).

The time has come - I would like to introduce you to MyAAC latest release - v1.0.

Why 1.0 and not 0.9? Because we want in the future to follow the Semantic Versioning schema (Semantic Versioning 2.0.0 (https://semver.org/)), where each breaking change will be a new Major release. So after 1.0 there will be 2.0, 3.0, and so on.

This release has been tested through diverse RC's und beta's.

Here I would like to thank people participating in the project, particularly: @gpedro (gpedro - Overview (https://github.com/gpedro)), @Leesne (Leesneaks - Overview (https://github.com/Leesneaks)), @fernandomatos (fernandomatos - Overview (https://github.com/fernandomatos)), @anyeor (anyeor - Overview (https://github.com/anyeor)). Sorry if I forgot about someone.

I would like also to thank following people, for their interest in helping to test this release: (discord usernames): max (.null_pointer.), Codinablack, Evil Hero (evilhero90), Unicornymous.

Screenshots:​

New dashboard​

1736772171707.webp

New Settings page​

1736771139311.webp

Brand New Installation Page​

1736772591672.webp

New exception handler - Whoops​

1736771376246.webp

New CLI script - php aac​

1736771727227.webp

Biggest changes:​

  • Reworked Admin Panel -> using Bootstrap v4 (@Leesne, @gpedro)
    • new Menu
    • new Dashboard: statistics, server status
    • new Admin Bar showed on top when admin logged in
    • new page: Server Data, to reload server data
    • Towns, NPCs & Items are stored in permanent cache
    • new pages: mass account & teleport tools
    • changelogs editor
    • revised Accounts & Players editors
    • option to add/modify admin menus with plugins
    • option to enable/disable plugins
    • better, updated TinyMCE editor (v6.x)
      • with option to upload images
    • list of open source libraries used in project page
  • Removed config.php -> moved to Admin Panel -> Settings page
  • Replace POT Query Builder to Eloquent ORM (@gpedro) (feat: replace POT Query Builder to Eloquent ORM by gpedro · Pull Request #230 · slawkens/myaac (https://github.com/slawkens/myaac/pull/230))
  • Use composer for external libraries (Composer (https://getcomposer.org))
  • New console script: aac - using symfony/console
    • usage: php aac (will list all available commands)
    • another example: php aac cache:clear
    • install plugin by command line: php aac plugin:install "/home/user/myaac-plugin.zip"
  • Brand new charming installation page (by @fernandomatos)
  • Better Plugins customization:
    • option to enable/disable plugins
    • option to add/modify admin menus with plugins (there is extra hook for this)
    • add pages, themes & commands with plugins - can be auto-loaded, if they are in correct folder
    • cronjobs: central control of the cronjob's, user need just to install one script by executing: php aac cronjob:install, and then more plugins can inject hook into this
  • New pages router: nikic/fast-route
  • Guild Wars support (available as plugin)
  • Google ReCAPTCHA v3 support (available as plugin)
  • Automated website tests (using Cypress)
  • phpdebug bar (PHP Debug Bar (http://phpdebugbar.com/)). Activated if env == 'dev', can be also activated in production by enabling "enable_debugbar" in local config
  • Better Exception Handler (Whoops - GitHub - filp/whoops: PHP errors for cool kids (https://github.com/filp/whoops))
  • csrf protection (CSRF Protection by slawkens · Pull Request #235 · slawkens/myaac (https://github.com/slawkens/myaac/pull/235))
  • Support for login and create account only by email (configurable)
    • with no need for account name
  • Support for login with accounts.number or accounts.id
    • suggest account number option
  • Better, updated TinyMCE editor (v6.x), with option to upload images
  • Page in Admin Panel with list of open source libraries used in project
  • Possibility to upgrade/downgrade database to specific version

And hundreds other improvements!

Demo: Latest News - Forgotten (https://next.my-aac.org)

Supported servers: Supported servers | MyAAC (https://docs.my-aac.org/misc/supported-servers)

Changelog: myaac/CHANGELOG.md at develop · slawkens/myaac (https://github.com/slawkens/myaac/blob/develop/CHANGELOG.md)

Download: Releases · slawkens/myaac (https://github.com/slawkens/myaac/releases)


Please use Support Board (Support (https://otland.net/forums/support.16/)) for support matters, and GitHub Issue Tracker (slawkens/myaac (https://github.com/slawkens/myaac/issues)) for reporting bugs.

The Google ReCaptcha plugin: MyAAC Plugins (https://plugins.my-aac.org/plugins/Google+ReCaptcha/2.0.1)

And more plugins in the website.
 
Last edited:
hi

Where do I activate it to create an account only using USE_ACCOUNT_NUMBER?

It will be set automatically, if you have in database the column: accounts.number, or if you don't have any of these columns: name + number (then id will be used).
 
It will be set automatically, if you have in database the column: accounts.number, or if you don't have any of these columns: name + number (then id will be used).
1738773613932.webp
I use it in the name, but it is a number, is there a way to change it to be manual?
 
Was grinding my arm to arm for months so someone release any updated/new AAC :DD

Thanks :)
 
View attachment 90008
I use it in the name, but it is a number, is there a way to change it to be manual?

This is wrong approach. You should change the name column to number, and also change in your server to use number instead.

But if you really want to use name, and limit it only to numbers, then you need to add following line, into system/pages/account/create

Before:
Code:
// email
if(!Validator::email($email))
    $errors['email'] = Validator::getLastError();

Add:
Code:
if (!Validator::accountId($account_name)) {
    $errors['account'] = Validator::getLastError();
}

You can also change in system/templates/account.create.html.twig

<input type="text" name="account"

to type="number"
 
Been using it on my server. Love it. Slaw is also very supportive and helpful. Active development. Pretty sure this is the best AAC with active development out there, and it has been here for over 5 years as well.
 
Trying to use it but get it:

PHP:
:  syntax error, unexpected token "{", expecting ")" in /var/www/html/system/cache/twig/ac/ac3cec028cf7fe3abf12f2a6cd7960fd.php on line 213" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET /?account/manage HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173", referrer: "http://177.54.147.173/"
2025/03/02 21:42:42 [error] 148024#148024: *84 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected token "{", expecting ")" in /var/www/html/system/cache/twig/ac/ac3cec028cf7fe3abf12f2a6cd7960fd.php on line 213" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET /?account/manage HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173", referrer: "http://177.54.147.173/"

using php8.4+
 
Trying to use it but get it:

PHP:
:  syntax error, unexpected token "{", expecting ")" in /var/www/html/system/cache/twig/ac/ac3cec028cf7fe3abf12f2a6cd7960fd.php on line 213" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET /?account/manage HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173", referrer: "http://177.54.147.173/"
2025/03/02 21:42:42 [error] 148024#148024: *84 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected token "{", expecting ")" in /var/www/html/system/cache/twig/ac/ac3cec028cf7fe3abf12f2a6cd7960fd.php on line 213" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET /?account/manage HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173", referrer: "http://177.54.147.173/"

using php8.4+

Are you sure you didn't modify anything in the twig cache file?

Show the content of /var/www/html/system/cache/twig/ac/ac3cec028cf7fe3abf12f2a6cd7960fd.php, so I can see what's wrong.

Other than that, I suggest clearing the cache in admin panel, or by command: "php aac cache:clear" (executed in main myaac folder), or manually by removing the system/cache/twig folder.
 
Are you sure you didn't modify anything in the twig cache file?

Show the content of /var/www/html/system/cache/twig/ac/ac3cec028cf7fe3abf12f2a6cd7960fd.php, so I can see what's wrong.

Other than that, I suggest clearing the cache in admin panel, or by command: "php aac cache:clear" (executed in main myaac folder), or manually by removing the system/cache/twig folder.

Hi, thanks for reply.
No, I didn't modify it. I just installed it and tried use it.
I also tried to remove it by deleting the mentioned folder.

here:
 
Hi, thanks for reply.
No, I didn't modify it. I just installed it and tried use it.
I also tried to remove it by deleting the mentioned folder.

here:

And are you sure you are using the 1.0+ version of the myaac? I can see ?account/manage in the error, which suggests me you are using the 0.8 version.

Check in file: common.php in the main folder, what version is there (if it's really 1.0).

The second question: on what site does the error happen? Like what is the address in browser, of the site you are on.
 
And are you sure you are using the 1.0+ version of the myaac? I can see ?account/manage in the error, which suggests me you are using the 0.8 version.

Check in file: common.php in the main folder, what version is there (if it's really 1.0).

The second question: on what site does the error happen? Like what is the address in browser, of the site you are on.
I had actually installed your acc from github through .git but it installed version 0.8 as mentioned.
However, after installing the current version (by downloading manually), I am facing a new problem. Which leads me to think, maybe it is the php package I am using? 8.4? that is causing these problems?

Also, Im using debian 11 and nginx.
The admin page works properly.

http://177.54.147.173/

PHP:
2025/03/03 09:22:30 [error] 172075#172075: *2283 FastCGI sent in stderr: "PHP message: PHP Parse error:  Unmatched '}' in /var/www/html/system/functions.php on line 1036" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173"
2025/03/03 09:22:31 [error] 172075#172075: *2283 FastCGI sent in stderr: "PHP message: PHP Parse error:  Unmatched '}' in /var/www/html/system/functions.php on line 1036" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173"
2025/03/03 09:22:31 [error] 172075#172075: *2283 FastCGI sent in stderr: "PHP message: PHP Parse error:  Unmatched '}' in /var/www/html/system/functions.php on line 1036" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173"
2025/03/03 09:22:31 [error] 172075#172075: *2283 FastCGI sent in stderr: "PHP message: PHP Parse error:  Unmatched '}' in /var/www/html/system/functions.php on line 1036" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173"
2025/03/03 09:22:31 [error] 172075#172075: *2283 FastCGI sent in stderr: "PHP message: PHP Parse error:  Unmatched '}' in /var/www/html/system/functions.php on line 1036" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173"

I don't know if I should post the reproduction problems here or in your repository, let me know.
 
I had actually installed your acc from github through .git but it installed version 0.8 as mentioned.
However, after installing the current version (by downloading manually), I am facing a new problem. Which leads me to think, maybe it is the php package I am using? 8.4? that is causing these problems?

Also, Im using debian 11 and nginx.
The admin page works properly.

http://177.54.147.173/

PHP:
2025/03/03 09:22:30 [error] 172075#172075: *2283 FastCGI sent in stderr: "PHP message: PHP Parse error:  Unmatched '}' in /var/www/html/system/functions.php on line 1036" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173"
2025/03/03 09:22:31 [error] 172075#172075: *2283 FastCGI sent in stderr: "PHP message: PHP Parse error:  Unmatched '}' in /var/www/html/system/functions.php on line 1036" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173"
2025/03/03 09:22:31 [error] 172075#172075: *2283 FastCGI sent in stderr: "PHP message: PHP Parse error:  Unmatched '}' in /var/www/html/system/functions.php on line 1036" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173"
2025/03/03 09:22:31 [error] 172075#172075: *2283 FastCGI sent in stderr: "PHP message: PHP Parse error:  Unmatched '}' in /var/www/html/system/functions.php on line 1036" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173"
2025/03/03 09:22:31 [error] 172075#172075: *2283 FastCGI sent in stderr: "PHP message: PHP Parse error:  Unmatched '}' in /var/www/html/system/functions.php on line 1036" while reading response header from upstream, client: 191.36.184.232, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm.sock:", host: "177.54.147.173"

I don't know if I should post the reproduction problems here or in your repository, let me know.

Well, that may be a cause, that you are using the php 8.4, because I never tried that version yet, but I highly doubt.

Please turn on development mode, in config.local.php, by changing following line:

$config['env'] = 'dev';

So I can look deeply into the error, by visiting your IP.
 
Well, that may be a cause, that you are using the php 8.4, because I never tried that version yet, but I highly doubt.

Please turn on development mode, in config.local.php, by changing following line:

$config['env'] = 'dev';

So I can look deeply into the error, by visiting your IP.

Done.
LUA:
Parse error: Unmatched '}' in /var/www/html/system/functions.php on line 1036
 
Done.
LUA:
Parse error: Unmatched '}' in /var/www/html/system/functions.php on line 1036

Are you sure you didn't modify that file? functions.php

Because there is automated tool on myaac, that checks if all files are ok, running in the GitHub Actions. From what I can see, there is some error in your functions.php.

Can u post the file on pastebin.com?

#edit
Write me on discord: slawkens, so we won't spam this thread.
 
Are you sure you didn't modify that file? functions.php

Because there is automated tool on myaac, that checks if all files are ok, running in the GitHub Actions. From what I can see, there is some error in your functions.php.

Can u post the file on pastebin.com?

#edit
Write me on discord: slawkens, so we won't spam this thread.
Check more once, I have replaced and restarted nginx and php.
its like the variable was returning "]]" incorrectly along with the other information.
 
Check more once, I have replaced and restarted nginx and php.
its like the variable was returning "]]" incorrectly along with the other information.

It looks like something is wrong with your config.lua. Can u post it? Cover the sensible variables like sqlPassword etc.

You can also post a link to github repo, where you downloaded that config.lua
 
It looks like something is wrong with your config.lua. Can u post it? Cover the sensible variables like sqlPassword etc.

You can also post a link to github repo, where you downloaded that config.lua

Hey, using OTBR repo.
Post automatically merged:

I probaly have found the problem.

I commented some things using
LUA:
--[[
something big ]]

And I was using it normally but from what I could tell this affects the way the site reads the file for some reason.
 
Last edited:
Hey, using OTBR repo.

I don't know what they changed in PHP 8.4, that makes it doesn't load the config.lua file.

But I guess the simplest solution for you would be to change to PHP 8.3, or 8.2.

I will test soon the PHP 8.4.

#edit
Ah okay, so its not PHP 8.4 fault, but your edits :P
Then I can sleep normally again.
 
Back
Top