L2JMobius

Free Users => Shares/Contributions => Topic started by: G-hamsteR on January 15, 2024, 05:58:26 PM

Title: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 15, 2024, 05:58:26 PM
Hello L2JMobius Community!

I am excited to share with you the L2JMobius ACM (https://gitlab.com/nick_anto/l2jmobius-acm) (Account Manager Panel). This open-source tool is specifically designed to enhance the experience for both players and administrators of any server that is based on L2JMobius. It should be working with any Chronicle as long as it's L2JMobius.

Key Features for Players:

Account Creation: Easy and user-friendly process to create and verify an account.
Password Reset: Users can reset their password using a special link sent to their email address.
Character Unstuck: Players can unstuck their offline characters using this panel.
Donation System: Users can donate to your server using Paypal or Stripe and receive the items directly to their inventory.

Key Features for Administrators:

Donation Management: Keep track of all donations with ease.
Account Oversight: Full control and management of registered accounts. Ability to change access rights, change their password, check login history, and more.
Character Management: Oversee and manage all game characters efficiently, change their access, unstuck them, give them items, and more.
Server Management: Manage your server and its players by executing server tasks from your web panel. Java implementation is required.

Why L2JMobius ACM?
In the L2JMobius community, many users, like myself, have long been in search of a comprehensive tool that simplifies account and character management. Despite a thorough search, I found that the market lacked open-source solutions that met these specific needs. Most available options were paid, non-hosted solutions, predominantly offered as Software as a Service (SaaS). This not only imposes a recurring cost but also raises concerns about privacy and security. Such models often mean that your account information could be stored on external servers, potentially exposing sensitive data to third-party entities. Recognizing this gap, I was motivated to create L2JMobius ACM – a solution designed to be both accessible and secure, keeping your data within your control.

Open Source and Community Driven:
L2JMobius ACM is open source. We are an open-source community that believes in the power of community-driven development and welcomes contributions, feedback, and suggestions. You can find the code, documentation, and more at Gitlab (https://gitlab.com/nick_anto/l2jmobius-acm).

Getting Started:
To start using L2JMobius ACM, check the project on GitLab. I have included a comprehensive guide to help you set it up seamlessly.

Your Feedback Matters:
Feel free to share your experiences, report bugs, or suggest improvements. Together, we can make L2JMobius ACM even better.

Project links:
Source code: https://gitlab.com/nick_anto/l2jmobius-acm (https://gitlab.com/nick_anto/l2jmobius-acm)
FAQ: https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/faq.md (https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/faq.md)
Screenshots: https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/screenshots.md (https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/screenshots.md)


Thank you for your support and enthusiasm. Feel free to reply to this topic for any help.

Updates:

Multi-server version:
For the multiserver version check this: https://gitlab.com/nick_anto/l2jmobius-acm-multiserver/ (https://gitlab.com/nick_anto/l2jmobius-acm-multiserver/)
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Mobius on January 15, 2024, 06:12:59 PM
Thank you for sharing the L2JMobius ACM with the community.

Your post clearly outlines the benefits and features of this tool, and it's evident that a lot of thought and effort went into its development.
It's especially commendable that you've made this an open-source project, fostering a collaborative environment.

To ensure that all members benefit from this, I have pinned your message.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: dramaa on January 15, 2024, 07:35:59 PM
ngl, i have not seen anyone share something so precious for free ... good job and applause to you
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Naker on January 16, 2024, 04:12:57 PM
uuuuu nice, I will give some love as well. Any idea what else to add??
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 16, 2024, 04:50:04 PM
If I see interest, I could add some more features, like Discord webhooks for notifications for admins (for new account creations, donations, etc), inventory view, etc
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Mobius on January 18, 2024, 08:00:44 PM
Topic cleaned, do not spam.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 19, 2024, 01:27:27 PM
I just created a public demo for everyone who wants to try it before installing it.

Demo url: https://l2jmobius-acm.lineage2arc.com

Admin account:
Code: [Select]
username: admin
password: 123456

Test Paypal account for trying out a donation:
Code: [Select]
email: [email protected]
password: VUOe#55H

Test credit card for trying out a donation using Stripe:
Code: [Select]
Card number: 4242424242424242
Card Holder: Test Test
CVV: 111
Expiry: 11/28

With yesterday's localization update, Ubuntu is highly recommended. The project uses gettext for translations and gettext has a few issues on Windows.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: anarki on January 19, 2024, 08:14:00 PM
If I see interest, I could add some more features, like Discord webhooks for notifications for admins (for new account creations, donations, etc), inventory view, etc


Very good job. It deserves a round of applause! Keep improving it and adding other things to it :)
I want to ask if it is possible to support more than one game server?
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 19, 2024, 08:44:01 PM
Thank you for your kind words!  😁

Right now it doesn't, but it could potentially be possible. How would this work? Would the user choose the server upon login? Or there should just be a drop-down list to select servers on every page?

(https://iili.io/JaT3GAx.png)

And would administrators need separate settings for each server? In the end, wouldn't it be best to just use this ACM in multiple subdomains, one for each server?

The structure and the current database tables must change. Donation items, payments, etc must be stored per gameserver. An easier update would be to separate gameserver and loginserver, since many users probably use 2 different databases for this. And this would allow you to run ACM on different subdomains and just have 3 different links for people to choose from.

EDIT: I just pushed a new version where login and gameservers are seperated.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: anarki on January 19, 2024, 09:47:36 PM
The one with the server drop down menu is great :) Databases are split and renamed. Accordingly, the donate system should be for the individual servers. In my case I use one domain. This makes me think of a master account. That is, the donation system should be connected to the login server... that is, the items from the donations should go to the login server and then you should choose a server and a character in which to use them :) It became complicated... ??? 8)
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: bctey on January 20, 2024, 04:04:57 PM
How to install this ACM
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 20, 2024, 06:22:36 PM
How to install this ACM

Check this guide: https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/installation-on-debian.md?ref_type=heads

It's a little complex, but it ensures security.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: CondorUA on January 26, 2024, 05:00:28 PM
Hi all. I turned on the function of displaying online players and GMs in the settings, after using it I received the error as in the screenshot, I can’t do anything else. Please tell me how to solve the problem.

(https://iili.io/JczClYx.png)


Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 26, 2024, 10:58:06 PM
My bad, I removed some parts that were used there.

Here is the fix: https://gitlab.com/nick_anto/l2jmobius-acm/-/commit/41bb9b3767a931c8edaddd9de045466b8ad1bf8c
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: CondorUA on January 27, 2024, 01:29:23 PM
My bad, I removed some parts that were used there.

Here is the fix: https://gitlab.com/nick_anto/l2jmobius-acm/-/commit/41bb9b3767a931c8edaddd9de045466b8ad1bf8c
Everything is fine. The problem has been resolved. After testing, several more problems were identified.
Problem with switching the interface language, for some reason the interface language is tied to the system (browser) interface language
There is a problem with viewing characters on an account; an error appears when selecting an account.

Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: CondorUA on January 27, 2024, 01:39:41 PM
I will repeat a little, the work of the author of the program is excellent, but there are not enough functions.
For example, for testing the delivery of donated items to characters, there is not enough internal balance in the personal account; if there was an internal balance, testing would be easier and players could replenish this balance with the required amount of internal currency.
I would also like to see support for multiple servers, when during authorization the player selects his server and enters the authorization data.
I would also like to see tools for customizing the cabinet interface.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 27, 2024, 05:09:18 PM
Everything is fine. The problem has been resolved. After testing, several more problems were identified.
Problem with switching the interface language, for some reason the interface language is tied to the system (browser) interface language
There is a problem with viewing characters on an account; an error appears when selecting an account.


This was caused by a recent update where utf8_encode was replaced. I just pushed a fixed. Could you test it?

https://gitlab.com/nick_anto/l2jmobius-acm/-/commit/55fea88857ecc913248f832eae05bf2178cbbf04

Regarding the translations, gettext is having some issues on Windows. It uses the system's available language packs. On Ubuntu (which I'm using) it's far more easier. All you have to do is install these languages. Check this installation guide, on part 6: https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/installation-on-debian.md?ref_type=heads

Donations right now work per item. I could potentially add an internal balance to the account and make the player use this balance for purchases. Let me think about it a little.

Could you also share your .mo files? I saw that you have translated everything into Russian :D

Edit: For changing the appearance of the ACP, you can use css or edit the views of the html files. All the colors and display options are under public\assets\css\style.css

To change the HTML and the structure of some page, check the views folder. I would like to avoid adding configs for colors, etc, since it will be an extra unnecessary check. You can also change your logo by replacing the file at \public\assets\img
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: CondorUA on January 27, 2024, 06:08:01 PM

This was caused by a recent update where utf8_encode was replaced. I just pushed a fixed. Could you test it?
Could you also share your .mo files? I saw that you have translated everything into Russian :D

Thank you, now everything works, character statistics are displayed when you click on the account name

Translation
https://disk.yandex.ru/d/RPupNBizYwc-Ag (https://disk.yandex.ru/d/RPupNBizYwc-Ag)
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 27, 2024, 06:22:12 PM
https://disk.yandex.ru/d/RPupNBizYwc-Ag (https://disk.yandex.ru/d/RPupNBizYwc-Ag)

Thank you very much! I just pushed a new version that uses in-game balance. After you update your files, navigate to your ACM settings and you can see an option to use internal balance as currency.

After you enable it, you can edit the balance of accounts from the account edit section. Give it a try, I haven't tested it on a live environment yet.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: CondorUA on January 27, 2024, 07:02:45 PM
Thank you very much! I just pushed a new version that uses in-game balance. After you update your files, navigate to your ACM settings and you can see an option to use internal balance as currency.

After you enable it, you can edit the balance of accounts from the account edit section. Give it a try, I haven't tested it on a live environment yet.

Thank you, everything works. The balance is replenished, items are purchased and delivered to players
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 27, 2024, 07:18:56 PM
Glad to hear it  ;D

I just tested the payments using Stripe and Paypal and they work. I had to apply some fixes. The account's balance is updated after a successful payment.

I will make a multi-server version in the future, but I will create a separate branch and maintain both of them because the logic is completely different and it will be hard to implement it in this one.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: CondorUA on January 28, 2024, 10:23:52 AM
Glad to hear it  ;D

I just tested the payments using Stripe and Paypal and they work. I had to apply some fixes. The account's balance is updated after a successful payment.

I will make a multi-server version in the future, but I will create a separate branch and maintain both of them because the logic is completely different and it will be hard to implement it in this one.

Great. I thought of a few more things that would be nice to have in the admin section.
Create a separate Administrator section, which will be shown only to the Administrator when he is authorized in his personal account, implement a player reward function there, for example, send an ID item to all players, also implement a filter by level, for example, send an ID item to players of 85 95 100 105 110 levels
Implement switching themes, dark and light.
Implement two-factor authentication to protect against unauthorized login, either through the application or when creating an account, an additional authorization key will be generated for your personal account.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Cz3siek on January 28, 2024, 01:30:15 PM
hello, i try to instal that ACM but no succesfull, system ubuntu but no nginx but apache, after install all and configure i get message "404 Not Found",
all privilages for folder and files is add just script index.php redirect to /en.

On screenshots and demo site looks nice, but dont think many ppl will use that cos is made for main site and too modern technology like for me, i am to old change mind to use composer that i dont understand how is work :).
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: CondorUA on January 28, 2024, 01:51:42 PM
hello, i try to instal that ACM but no succesfull, system ubuntu but no nginx but apache, after install all and configure i get message "404 Not Found",
all privilages for folder and files is add just script index.php redirect to /en.

On screenshots and demo site looks nice, but dont think many ppl will use that cos is made for main site and too modern technology like for me, i am to old change mind to use composer that i dont understand how is work :).
on a test server, deploy a backup copy of your server, install nginx and combine nginx+apache, test for functionality
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 28, 2024, 02:59:50 PM
There is a .htaccess file included for apache installations. All you have to do is point your vhosts to the /public folder.

Send me the steps you followed and I will guide you. Composer is mandatory, you have to install it. If you can't add it for some reason, give me your php version and I can send you the vendor folder with all installed composer files
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Cz3siek on January 28, 2024, 07:35:51 PM
Thanks for answer.
So my server is private machine HP ProLiant 7th Gen.
OS Ubuntu 22.04,
MariaDb 10.6.16,
Apache 2.4.52,
php8.2.
All i installed from Debian guide, and all is installed ( all php extensions, composer, and ofc many other thinks i use on my server :) ).
Just when i try open site used my host address
apachece give me answer 404, but like you say need some aditional .htaccess maybe that will help.
About Nginx, i just realy dont like this one for web server, i try few times use that but always have problem,
maybe cos old man have concret brain thinking :P.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 28, 2024, 08:21:23 PM
I will create a complete Apache guide and post it tomorrow
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Cz3siek on January 28, 2024, 11:00:22 PM
to solve problem with apache needs edit virtual host files on folder
/etc/apache2/sites-available

and there you will have files with your domain name or like on my i have one default for port 80 and my host name for ssl port 443
on both i add inside:

    <Directory "/var/www/html/l2jmobius-acm/public">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

and ofc need reload apache

and make sure all modules is enabled

sudo a2enmod rewrite

sudo apachectl restart

or
sudo systemctl restart apache2

one me it helps and works all perfect.




Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: CondorUA on January 29, 2024, 04:36:01 PM
I never got around to installing this on Debian. I tried both apache and nginx and still get the error Error updating version file.
After entering the command sudo apt install php8.2-getttext
I get an answer
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package php8.2-getttext
E: Couldn't find any package by glob 'php8.2-getttext'

(https://iili.io/JcSQzGI.png)
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Lavion on January 29, 2024, 04:44:25 PM
This is amazing work! 
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 29, 2024, 06:14:21 PM
I never got around to installing this on Debian. I tried both apache and nginx and still get the error Error updating version file.
After entering the command sudo apt install php8.2-getttext
I get an answer
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package php8.2-getttext
E: Couldn't find any package by glob 'php8.2-getttext'

(https://iili.io/JcSQzGI.png)

Create a file named .version inside your project folder and make it writable. This problem means that your nginx/apache doesn't have the rights to create this file.

eg:
Code: [Select]
cd /var/www/l2jmobius-acm
touch .version
chmod 777 .version

UPDATE: I added a task manager that allows administrators to handle some in-game tasks from the ACM. You can kick/jail/chatban, etc players, shutdown/restart the server or make an announcement. Check this for more information: https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/task-manager.md?ref_type=heads. It requires a Java implementation too. I have added the java file that you need to insert. It could work for any Chronicle, but it certainly works for CT_0 Interlude. If someone finds any issue with later Chronicles, send me a message and I will try to adapt it.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: CondorUA on January 29, 2024, 11:36:56 PM
Create a file named .version inside your project folder and make it writable. This problem means that your nginx/apache doesn't have the rights to create this file.

eg:
Code: [Select]
cd /var/www/l2jmobius-acm
touch .version
chmod 777 .version

UPDATE: I added a task manager that allows administrators to handle some in-game tasks from the ACM. You can kick/jail/chatban, etc players, shutdown/restart the server or make an announcement. Check this for more information: https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/task-manager.md?ref_type=heads. It requires a Java implementation too. I have added the java file that you need to insert. It could work for any Chronicle, but it certainly works for CT_0 Interlude. If someone finds any issue with later Chronicles, send me a message and I will try to adapt it.

Everything is fine, after making the changes it worked. Many thanks for the help.
Tested the new Task Manager, everything works fine on The Source Of Flame, rebooting the server, Announcements and sending items to all players work.
There are several suggestions. They are very important for the game.
If it is possible to implement the destruction of an item with an ID for all players, then this will be a very useful function.
Thank you very much for this Control Panel. Good luck in work and in life.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 30, 2024, 12:06:42 PM
Everything is fine, after making the changes it worked. Many thanks for the help.
Tested the new Task Manager, everything works fine on The Source Of Flame, rebooting the server, Announcements and sending items to all players work.
There are several suggestions. They are very important for the game.
If it is possible to implement the destruction of an item with an ID for all players, then this will be a very useful function.
Thank you very much for this Control Panel. Good luck in work and in life.

Do you mean destruction from all online players, or from all players in general?
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: CondorUA on January 30, 2024, 12:34:35 PM
Do you mean destruction from all online players, or from all players in general?
Destroying an item from all players, as well as from the warehouse and the clan warehouse
This is necessary for rare cases when a glitch occurs, for example, with voting and players receive too much of an item, also if there is a problem with the item, for example, players can get an item in a location that is not yet available
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 30, 2024, 01:49:58 PM
Destroying an item from all players, as well as from the warehouse and the clan warehouse
This is necessary for rare cases when a glitch occurs, for example, with voting and players receive too much of an item, also if there is a problem with the item, for example, players can get an item in a location that is not yet available

You can create an admin command to handle something like this. ACM is basically used for everyday staff so that you won't have to login in-game for common tasks. If something is serious like this one, you can do it from in game.

Make a command like admin_delete_item_from_all <item_id>. If you need help with this, start a topic in the forum and I will help you implement it.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: nasseka on January 30, 2024, 03:41:43 PM
sql query works too.
You can create an admin command to handle something like this. ACM is basically used for everyday staff so that you won't have to login in-game for common tasks. If something is serious like this one, you can do it from in game.

Make a command like admin_delete_item_from_all <item_id>. If you need help with this, start a topic in the forum and I will help you implement it.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on January 30, 2024, 06:03:01 PM
sql query works too.

He needs to have the server offline for the query to work. But it's on rare occasions, so I guess restarting the server won't harm that much.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: CondorUA on January 31, 2024, 08:37:18 AM
He needs to have the server offline for the query to work. But it's on rare occasions, so I guess restarting the server won't harm that much.
You are right, to make these changes you need to restart the server
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: anarki on February 03, 2024, 09:33:01 PM
Thank you for your kind words!  😁

Right now it doesn't, but it could potentially be possible. How would this work? Would the user choose the server upon login? Or there should just be a drop-down list to select servers on every page?

(https://iili.io/JaT3GAx.png)

And would administrators need separate settings for each server? In the end, wouldn't it be best to just use this ACM in multiple subdomains, one for each server?

The structure and the current database tables must change. Donation items, payments, etc must be stored per gameserver. An easier update would be to separate gameserver and loginserver, since many users probably use 2 different databases for this. And this would allow you to run ACM on different subdomains and just have 3 different links for people to choose from.

EDIT: I just pushed a new version where login and gameservers are seperated.


How do I do this? I have 4 game servers with different database names, but they are on the same protocol connected to one login?
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on February 03, 2024, 09:35:16 PM
It's not yet possible. I will create a separate project for multiple gameservers shortly. It's a huge change and I have to redesign the basic project's structure. I will probably start developing it next week and keep you posted.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Andariel on February 04, 2024, 10:19:43 PM
I tried to see if I can donate, but I don't receive the item in the game.. in the database it appears that he donated
does the player have to be logged in or not? by which method is the item sent to the player?
https://prnt.sc/Y0VH3THeuuoZ (https://prnt.sc/Y0VH3THeuuoZ) 
https://prnt.sc/jWIpaVe0x5b9 (https://prnt.sc/jWIpaVe0x5b9)
https://prnt.sc/-_YxtnH5BvkD (https://prnt.sc/-_YxtnH5BvkD)
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Andariel on February 04, 2024, 11:55:06 PM
my bad... i  need to set :) CustomMailManagerEnabled = True


but i find other bug when I choose another language, nothing happens
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on February 05, 2024, 10:39:45 AM
my bad... i  need to set :) CustomMailManagerEnabled = True


but i find other bug when I choose another language, nothing happens

I use gettext for translations and it's having a few bugs on Windows. It's working on Debian.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on February 05, 2024, 03:46:36 PM

How do I do this? I have 4 game servers with different database names, but they are on the same protocol connected to one login?

I started developing the multi-server version today. I will probably finish it within the week. Take a look at the new configs. It will support up to 8 gameservers.

https://gitlab.com/nick_anto/l2jmobius-acm-multiserver/-/blob/main/.env.example?ref_type=heads

I will post an update once it's completed.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: anarki on February 05, 2024, 07:33:33 PM
I started developing the multi-server version today. I will probably finish it within the week. Take a look at the new configs. It will support up to 8 gameservers.

https://gitlab.com/nick_anto/l2jmobius-acm-multiserver/-/blob/main/.env.example?ref_type=heads

I will post an update once it's completed.

You are the best... i go test now  :)

Have to delete old db ?
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on February 05, 2024, 09:01:06 PM
It's not working yet, but you can check its progress. I will let you know once it's completed.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Black Judge on February 11, 2024, 09:10:53 PM
Hello. I want to thank you for such a super development. When implementing this solution into the Fafurion server, I encountered the following problems.
Please tell me, did I do everything right?

Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Andariel on February 12, 2024, 09:43:25 PM
I think it could be useful and a way to vote and reward for it
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on February 13, 2024, 10:04:31 AM
Hello. I want to thank you for such a super development. When implementing this solution into the Fafurion server, I encountered the following problems.
Please tell me, did I do everything right?



Hi, try to change player.getSummon() to player.getPet().
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on February 13, 2024, 10:06:44 AM
I think it could be useful and a way to vote and reward for it

I could, but most servers want this functionality in-game. They either have a NPC or the player types a command to receive rewards.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Black Judge on February 14, 2024, 02:14:24 PM
Hi, try to change player.getSummon() to player.getPet().
everything worked out, thank you very much
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: anarki on February 14, 2024, 11:58:38 PM
Hello friends! Is there a way to make the account panel work with another site from the same IP address? Because this setting does not allow to open sites other than acm. ???

https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/installation-on-windows.md#4-configure-apache-via-xampp (https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/installation-on-windows.md#4-configure-apache-via-xampp)
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Black Judge on February 15, 2024, 12:41:54 AM
Hello friends! Is there a way to make the account panel work with another site from the same IP address? Because this setting does not allow to open sites other than acm. ???

https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/installation-on-windows.md#4-configure-apache-via-xampp (https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/installation-on-windows.md#4-configure-apache-via-xampp)
it's easier to do in Linux
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on February 15, 2024, 02:40:27 PM
Hello friends! Is there a way to make the account panel work with another site from the same IP address? Because this setting does not allow to open sites other than acm. ???

https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/installation-on-windows.md#4-configure-apache-via-xampp (https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/docs/installation-on-windows.md#4-configure-apache-via-xampp)

You can setup as many websites and domains as you want. Add them all to your httpd-vhosts.conf.

For example,

Code: [Select]
<VirtualHost *:80>
  DocumentRoot "C:/xampp/htdocs"
  ServerName localhost
</VirtualHost>
<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/l2jmobius-acm/public"
    ServerName yourdomain.com
    <Directory "C:/xampp/htdocs/l2jmobius-acm/public">
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

... etc

Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Black Judge on February 17, 2024, 04:13:56 PM
Hello. I have a question. It is possible to somehow implement a function in ACM that would include sending an item to the character_premium_items table
I conducted tests on my server, items can be obtained from the vitamin manager, but I need your help in implementing the sending of items from ACM to the character_premium_items table
Thank you in advance

Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on February 17, 2024, 05:17:49 PM
Check controllers/webhooks/stripe.php and paypal.php

These files are responsible for delivering the items. Right now it uses the custom_mail table. You can modify it and change the table and the sql query.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Black Judge on February 19, 2024, 05:55:50 AM
Check controllers/webhooks/stripe.php and paypal.php

These files are responsible for delivering the items. Right now it uses the custom_mail table. You can modify it and change the table and the sql query.

Hello. Thanks for the tip. I checked, everything works, but not quite as I would like. The player cannot purchase several items, a new donation overwrites the previous one, if it was not received before, the notification does not immediately come that you can pick up an item, only after relogging or entering the game.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on February 19, 2024, 04:58:41 PM
Send me your character_premium_items table sql with sample data so I can take a look and help you.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Black Judge on February 22, 2024, 09:40:13 PM
Send me your character_premium_items table sql with sample data so I can take a look and help you.
hi, I wrote you a personal message
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: veriongt on March 24, 2024, 07:11:13 PM
i have succesfully set it up and working perfectly from localhost
the problem i have is on my mane site i create a subdomain *acp* and i forward it with A zone to the ip that i have the acm set up
DNS Propagation completed
Port 80,443 is opened

but when i try to go to the subdomain i get error 403 sometimes with vpn from different countrys work but not all the time

any idea why?
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: anarki on March 24, 2024, 08:28:52 PM
Is there a way to get this thing under port 80 or because of a donation the system can't? and one more question, will multi account manager work?
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on March 26, 2024, 06:43:37 PM
i have succesfully set it up and working perfectly from localhost
the problem i have is on my mane site i create a subdomain *acp* and i forward it with A zone to the ip that i have the acm set up
DNS Propagation completed
Port 80,443 is opened

but when i try to go to the subdomain i get error 403 sometimes with vpn from different countrys work but not all the time

any idea why?

Are you on Windows or Linux? Are you using Cloudflare?
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on March 26, 2024, 06:46:07 PM
Is there a way to get this thing under port 80 or because of a donation the system can't? and one more question, will multi account manager work?

You must use SSL for this to work, otherwise you won't be able to use Stripe as a payment proccessor. An easy alternative is to proxy the requests through Cloudflare. Cloudflare adds its own SSL and you can keep listening to port 80.

The multi-server option is not yet done. I am too busy with my work these days. I will probably continue its development in a few weeks.

If you are familiar with PHP, here is the logic for the multi-server version. https://gitlab.com/nick_anto/l2jmobius-acm-multiserver

What's actually left is to split all settings into "General" and "Server" ones.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: l2aa on April 07, 2024, 08:50:45 PM

To automatically credit a donation, do you need to register a PayPal business account? How is PayPal working normally?
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on April 07, 2024, 10:45:53 PM
No, I didn't use Paypal Checkout on purpose. You can use a regular account. Just add your email address. There are no tokens needed.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: mikelcarr on April 09, 2024, 02:27:05 PM
Quote
Missing staff:
The IDs of classes are up to c6. If someone could fill-in the gaps for newer chronicles I would appreciate it. https://gitlab.com/nick_anto/l2jmobius-acm/-/blob/main/helpers/game-classes.php?ref_type=heads

I did a commit with all the classes up to 7.3 (Essence Seven Signs). If it didn't commit as supposed, tell me and I'll post whenever you want the code up to day.

Also, I would like you to add to the FAQ if someone is willing to use ACM to send items/donation stuff they should enable Custom_Mail at

Quote
...\game\config\Custom\CustomMailManager.ini

CustomMailManagerEnabled = True

Otherwise, it will just fill the table without sending anything to the player.

Cheers!
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on April 09, 2024, 09:30:02 PM
I did a commit with all the classes up to 7.3 (Essence Seven Signs). If it didn't commit as supposed, tell me and I'll post whenever you want the code up to day.

Also, I would like you to add to the FAQ if someone is willing to use ACM to send items/donation stuff they should enable Custom_Mail at

Otherwise, it will just fill the table without sending anything to the player.

Cheers!

Thank you for your help! Could you create a merge request so I can include your changes to the project? Otherwise I can make the same changes using your files.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: home on April 19, 2024, 09:15:35 PM
how to install on hosting?
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on April 20, 2024, 12:49:58 AM
how to install on hosting?

Depends on your panel. I can't create any guides for panels. It should be possible, but it requires some general knowledge of composer, php and nginx or Apache.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Galagard on April 20, 2024, 04:42:20 AM
Hello and thanks for this incredible work...

I try to install in a Fedora for tests, followed ubuntu tutorial, but the error "Error updating version file." don't fixed by chmod in .version file

any hints? thanks in advance
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Galagard on April 20, 2024, 10:38:10 AM
Another problem here, after i managed nginx to work "properly" (because nginx cannot use the folders "sites-available" and "sites-enabled" by default, i don't know why... probably use default.d directory to manage sites) now, the script is not rendered, just download with random name...

i really need a little help on that, i use apache and don't manage this to work in any way in apache too
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on April 20, 2024, 12:04:36 PM
Another problem here, after i managed nginx to work "properly" (because nginx cannot use the folders "sites-available" and "sites-enabled" by default, i don't know why... probably use default.d directory to manage sites) now, the script is not rendered, just download with random name...

i really need a little help on that, i use apache and don't manage this to work in any way in apache too

I am sending you a personal message with my Discord. Ask me there, I will help you.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Galagard on April 20, 2024, 12:51:33 PM
I am sending you a personal message with my Discord. Ask me there, I will help you.

Please, take a look in the reply
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Galagard on April 21, 2024, 07:16:04 AM
Got success with httpd here, and is a awesome tool, congrats and thanks for support, G-hamsteR


I translate to pt-BR soon


cheers
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on April 21, 2024, 09:20:30 AM
I did a commit with all the classes up to 7.3 (Essence Seven Signs). If it didn't commit as supposed, tell me and I'll post whenever you want the code up to day.

Also, I would like you to add to the FAQ if someone is willing to use ACM to send items/donation stuff they should enable Custom_Mail at

Otherwise, it will just fill the table without sending anything to the player.

Cheers!

I commited your changes. Thank you!

Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on April 21, 2024, 10:47:25 AM
Major update:

The multi-server version is live. You can find it at https://gitlab.com/nick_anto/l2jmobius-acm-multiserver/ (https://gitlab.com/nick_anto/l2jmobius-acm-multiserver/).

Migrating from the normal version to this version requires you to run the following queries:

Code: [Select]
ALTER TABLE `acm_donation_items` ADD `gs_id` TINYINT(1) NOT NULL DEFAULT '1' AFTER `price`;
ALTER TABLE `acm_donations` ADD `gs_id` TINYINT(1) NOT NULL DEFAULT '1' AFTER `tnx_id`;

The new .env file contains information for up to 8 gameservers in addition to the login server's configuration.

Settings are the same for all the gameservers. Only the donation list changes for each gameserver. You can switch between gameservers using the dropdown on the top-right corner.

Paypal and Stripe have not been tested. They should work, but someone must give them a try.

If you encounter any problems, feel free to post them here. I will be providing support.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: anarki on April 21, 2024, 07:20:41 PM
This happened at the first launch of the panel, in principle, I did everything correctly, but I'm clearly making a mistake somewhere. Can I have a bit of help?

Code: [Select]
Warning: Undefined array key "GS1_HOST" in E:\xampp\htdocs\l2jmobius-acm-multiserver\helpers\settings.php on line 96

Warning: Undefined array key "GS1_PORT" in E:\xampp\htdocs\l2jmobius-acm-multiserver\helpers\settings.php on line 97

Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'game1.acm_settings' doesn't exist in E:\xampp\htdocs\l2jmobius-acm-multiserver\classes\DB.class.php:32 Stack trace: #0 E:\xampp\htdocs\l2jmobius-acm-multiserver\classes\DB.class.php(32): PDOStatement->execute(NULL) #1 E:\xampp\htdocs\l2jmobius-acm-multiserver\classes\DB.class.php(27): DB->query('SELECT * FROM a...', NULL) #2 E:\xampp\htdocs\l2jmobius-acm-multiserver\classes\Settings.class.php(12): DB->fetch('SELECT * FROM a...') #3 E:\xampp\htdocs\l2jmobius-acm-multiserver\helpers\settings.php(106): Settings->__construct(Object(DB)) #4 E:\xampp\htdocs\l2jmobius-acm-multiserver\helpers\functions.php(5): require_once('E:\\xampp\\htdocs...') #5 E:\xampp\htdocs\l2jmobius-acm-multiserver\public\index.php(5): require_once('E:\\xampp\\htdocs...') #6 {main} thrown in E:\xampp\htdocs\l2jmobius-acm-multiserver\classes\DB.class.php on line 32

 ???
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Galagard on April 22, 2024, 12:12:35 AM
A error creating acm_settings table or reading it... verify your database if exist's a acm_settings table
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on April 22, 2024, 12:27:38 AM
This happened at the first launch of the panel, in principle, I did everything correctly, but I'm clearly making a mistake somewhere. Can I have a bit of help?

Code: [Select]
Warning: Undefined array key "GS1_HOST" in E:\xampp\htdocs\l2jmobius-acm-multiserver\helpers\settings.php on line 96

Warning: Undefined array key "GS1_PORT" in E:\xampp\htdocs\l2jmobius-acm-multiserver\helpers\settings.php on line 97

Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'game1.acm_settings' doesn't exist in E:\xampp\htdocs\l2jmobius-acm-multiserver\classes\DB.class.php:32 Stack trace: #0 E:\xampp\htdocs\l2jmobius-acm-multiserver\classes\DB.class.php(32): PDOStatement->execute(NULL) #1 E:\xampp\htdocs\l2jmobius-acm-multiserver\classes\DB.class.php(27): DB->query('SELECT * FROM a...', NULL) #2 E:\xampp\htdocs\l2jmobius-acm-multiserver\classes\Settings.class.php(12): DB->fetch('SELECT * FROM a...') #3 E:\xampp\htdocs\l2jmobius-acm-multiserver\helpers\settings.php(106): Settings->__construct(Object(DB)) #4 E:\xampp\htdocs\l2jmobius-acm-multiserver\helpers\functions.php(5): require_once('E:\\xampp\\htdocs...') #5 E:\xampp\htdocs\l2jmobius-acm-multiserver\public\index.php(5): require_once('E:\\xampp\\htdocs...') #6 {main} thrown in E:\xampp\htdocs\l2jmobius-acm-multiserver\classes\DB.class.php on line 32

 ???

There was an error which I think I fixed with the latest commit. Try to update to the latest version.
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Galagard on April 22, 2024, 03:34:08 AM
I know it may seem obvious, but SEPARATE the loginserver and gameserver databases, for those who have just one server it's okay... there will be no way to use the system with 2 servers with the login tables inserted in both, so it's the tip. 8)
Well, after the tip, the ERROR
"Error updating Gameserver version file."  :'(
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: anarki on April 22, 2024, 08:39:18 PM
I know it may seem obvious, but SEPARATE the loginserver and gameserver databases, for those who have just one server it's okay... there will be no way to use the system with 2 servers with the login tables inserted in both, so it's the tip. 8)
Well, after the tip, the ERROR
"Error updating Gameserver version file."  :'(

Here we are talking about several servers on one protocol... One login and several game servers on one version, not several logins and game servers :) then it is clear that separate acm panels will be needed :)
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: anarki on April 22, 2024, 08:43:13 PM
There was an error which I think I fixed with the latest commit. Try to update to the latest version.


Yoooo... it started and now I'm going to test it. And I have a question?
Are all database tables now imported into the login? Or is something wrong?


Now I see... when a server is selected, a table is automatically created in the game server :) have to test donate system...
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: Galagard on April 23, 2024, 01:02:51 AM
Here we are talking about several servers on one protocol... One login and several game servers on one version, not several logins and game servers :) then it is clear that separate acm panels will be needed :)
Yes of course, is only e tip
Quote
Yoooo... it started and now I'm going to test it. And I have a question?
Are all database tables now imported into the login? Or is something wrong?
I noticed that, only one table is inserted in gameserver, all the rest in loginserver...
Title: Re: Introducing L2JMobius ACM: An Account Management and Donations Panel
Post by: G-hamsteR on April 23, 2024, 12:03:40 PM
Yes, all the tables are in login server. They are there to handle settings and donations. Only the task manager is added to the gameservers, which your server needs in order to perform these tasks.