This is a simple Gacha Club API. With it you can make a server for online character import-export and data transfer.
- Rent a web hosting (For example here: Contabo).
-
- Method 1: Download the files frim this GitHub repo.
- Method 2: If the web server support Git use it to setup the server.
- Upload files into the web host.
- Create the database and run the
database/database.sql
file. (Recomened to use phpMyAdmin.) - Apply Enviorment variables or write them directly into the
scripts/lib/connect.php
. (Follow Enviorment variables steps bellow.) - Switching out the links inside the Gacha Club mod. (Follow Gacha Club files steps bellow.)
- Using CloudFlare proxy for the web space.* (Optional)
* It's recomened to use CloudFlare proxy, because the Adobe AIR runtime somewhy don't know the Let's Encrypt certificates. (It's required for https connections)
You need to setup these variables to enable connection between the PHP files and the database.
SERVER
: mysql server address- default:
"localhost"
- For example:
"127.0.0.1"
,"localhost"
- default:
PORT
: mysql server port (1
-65535
)- Default:
3306
- Default:
USER
: mysql username- For example:
"root"
- For example:
PASSWORD
: mysql user password- For example:
"password@123"
- For example:
DATABASE
: mysql database name- For example:
"gacha-club"
- For example:
If you can't setup enviorment variables write the values directly into the
scripts/lib/connect.php
file into the$static_<name>
variables.
You need to switch out from these files these links:
- File:
club_export.php
- Uploading OC to the server (Export)
- ActionScript file:
gacha_club_fla/importexpoort_<number>.as
- Old link:
https://gacha.club/gclubdata/club_export.php
- New link:
https://<your_domain>/scripts/club_export.php
(or similar)
- File:
club_import.php
- Downloading OC from the server (Import)
- ActionScript file:
gacha_club_fla/importexpoort_<number>.as
- Old link:
https://gacha.club/gclubdata/club_import.php
- New link:
https://<your_domain>/scripts/club_import.php
(or similar)
- File:
club_register.php
- Uploading transfer datas to the server (Data Transfer)
- ActionScript file:
gacha_club_fla/accounts_<number>.as
- Old link:
https://lunime.com/gachaclub/gclubdata/club_register.php
- New link:
https://<your_domain>/scripts/club_register.php
(or similar)
- File:
club_login.php
- Downloading transfer datas from the server (Restore)
- ActionScript file:
gacha_club_fla/restore_<number>.as
- Old link:
https://lunime.com/gachaclub/gclubdata/club_login.php
- New link:
https://<your_domain>/scripts/club_login.php
(or similar)
Gacha Club PHP API is licensed under the MIT License. You're free to use, modify, and distribute the code as you see fit.