Skip to Content
ModulesTools

Move from another engine

The Migration module: bring over accounts, balance and Steam links from GameCMS and LR Web and the store catalogue from Tebex, with a dry run and a rollback.

The module moves accounts, balance and Steam links from an old GameCMS or LR Web site to Flute, and pulls a store catalogue from Tebex. The old site stays as it is: the wizard only reads its database or API, shows a dry run and writes after that. Any move can be paused, continued and rolled back.

The module has no public pages or Studio blocks. The admin menu gains "Move from another engine" in the "Maintenance" group, and the admin home gets a "Moving from another engine?" step in the "Community setup" list. The player's history shows "Moved from GameCMS" or "Merged with a GameCMS account" with the amount credited.

The Move from another engine wizard on the Where are you moving from? step
DependenciesGamesPermissionsStudio blocksBot commandsCron tasks
Flute 2.0; Tebex needs Shopanyadmin.migrationnonenone"Removing old migration reports", daily in the scheduler

What moves

The wizard lists the sources and what each one brings on its first step. Some data is carried by other modules when they are installed; without them the matching checkbox does not appear in the rules.

SourceWhat movesWith other modulesWhat stays on the old site
GameCMS 5, UniGameCMS and versions before 5accounts, Steam links, balance, sign-up datesNews: news. Tickets: tickets with answers. GiveCore: bought privileges. Sentinel: chat and voice blockspasswords, roles and rights, design
LR Web 0.2 and the Neo v3 template, personal area lk or lk_systemaccounts by SteamID, Steam sign-in, personal-area balanceCases: case categories and cases as switched-off drafts. DailyBonus: daily bonus streaks. Skinchanger: players' skin collectionsregistration dates, top-up history, Neo tickets and reviews, game plugin data, design
Tebex, through the Headless APIstore categories, products as draftsShop is requiredpurchases and subscriptions, delivery commands, coupons

GameCMS passwords do not move, because the site cannot check their format. A moved player signs in with Steam or sets a new password via "Forgot password". Roles do not move either, and new accounts get no welcome letters or referral credits.

Move accounts from GameCMS

Before you start, turn on the Steam sign-in as described in sign-in methods. Accounts that signed in with Steam on the old site then arrive already linked to it.

Open the wizard

Open AdminMove from another engine and click "New move". On the "Source" step pick GameCMS.

Connect the database or a dump

If the old database is reachable from the site's server, fill in "Host", "Port" (3306 by default), "Database", "User" and "Password". Leave "Table prefix" empty if the tables are named users, news with nothing in front. A separate database user with read access only is the safer choice.

If the old server is gone, pick "Dump file" and upload a mysqldump export, .sql or .sql.gz. A file above the server's upload limit goes over FTP into storage/app/private/migration/dumps and then shows in the "Dump" list.

Put the old site's address into "Old site address", for example https://old-site.example: the wizard takes avatars and news pictures from there. Click "Check connection".

Check it is the right database

The "What the old base holds" screen shows the schema, the number of accounts, the balance total and how many news items, tickets, bought services and chat blocks the database has. If the numbers do not look like your site, go back and fix the database name or the prefix.

Set the rules

In "When the account already exists here" pick "Skip", "Fill empty fields" or "Fill and add the balance". An account is recognised by Steam when the old site took it from a Steam sign-in, or by e-mail if it is confirmed on the new site.

Turn on "Carry the balance" if players' money moves too. "Balance rate" multiplies the old amount, 1 keeps it as is. A balance above "Ceiling per account" is not credited and goes to the report. "E-mail the moved accounts" sends "The site has moved" to everyone with an e-mail.

Look at the dry run

Click "Dry run". The wizard writes nothing and shows how many accounts will be created, merged and credited, and what is skipped with the reason. "Full report, CSV" downloads the whole list.

The dry run with Will be created, Will be merged, Will be credited and skipped records with reasons

Start the move

Click "Next", check the rules and click "Start the move". The site asks you to confirm your login. The move runs in the background in batches, and its page shows the progress.

The page of a running move: progress, rules and the Pause button

Without a running queue worker, the move advances while its page stays open. A big move can be finished from the console, without the web request time limits. The move number is in its title, for example "GameCMS #12":

php flute migration:run 12

The command continues a move or rollback that has already started. Starting a new move and rolling one back are done only in the admin panel.

Import the catalogue from Tebex

The Tebex source appears once the Shop module is installed. Pick Tebex in the wizard and paste the public token into "Store key": Tebex panel → Developers → API Keys → Public Token. No secret key is needed, the token opens only the catalogue.

During the check, the "Store" line shows the store's name and currency. In the rules, "Price rate" multiplies Tebex prices, and "Term of Tebex subscriptions, days" turns a subscription package into a product with a right for that many days, which a repeat purchase extends. 0 means for good, the default is 30 days.

After the move the categories are in the store, and the products sit as switched-off drafts with a name, description, picture and price, but no rewards or server. Open each product, set what the buyer gets (see store products) and switch it on.

This is a one-off catalogue import, and the products are not linked to Tebex afterwards. Selling through Tebex for FiveM and RedM with the "Pull from Tebex" button is the job of the Tebex module.

Pause, repeat and rollback

The move page has "Pause", "Continue" and "Roll back". A pause takes effect after the current batch. A move stopped by an error continues from the same place, but only while the site still keeps the old site's credentials, 6 hours by default.

Every moved record is remembered for good, so a repeated move never credits a balance twice: such records show as "Already moved" in the report. A rollback removes the accounts the move created that nobody ever signed in to and takes back the credited balance, never below zero. Accounts that someone signed in to or that spent money stay with their records. The news, tickets, blocks, privileges and products of that move are taken back by their modules. A rollback also asks you to confirm your login.

Settings

The wizard's limits are in the module settings, in the "Moving" section: AdminMove from another engineSettings, at /admin/modules/Migration/settings.

FieldWhat it changesDefault
"Balance ceiling per account"suggested in a new move, an amount above it is not credited100000
"Records per batch"how many records of the old base are read and written at once, 50 to 5000500
"Conflicts on screen"how many first conflicts are listed by name, the CSV has them all100
"Keep reports, days"how long CSV reports live, records of what was moved are kept for good30
"Keep credentials, hours"how long the old site's encrypted password or key lives for an unfinished move6
"Picture size, MB"a heavier picture is not downloaded, the record comes without it5
"Dump size, MB"how much a dump uploaded through the wizard may weigh256

The admin.migration permission opens the wizard, starting and rolling back. Each move lands in the journal as "Site migration".

For developers

A module adds its data to the wizard through Flute\Modules\Migration\Contracts\MigrationStep: supports() names the source the step reads (gamecms, lrweb, tebex), import() moves one batch, undo() takes a record back on rollback. Register it in the provider's boot(), guarded so the module works without Migration:

if (module_active('Migration') && class_exists(MigrationSteps::class)) {
    $container->get(MigrationSteps::class)->register(MyStep::class);
}

Every record is written through MigrationBatch::record(), which guards against a second move of the same record. A record the step refuses throws RecordRefused with a translation key for the reason. A new source implements SourceAdapter, and an account source also AccountSource. When a move finishes, the module fires migration.run.finished (MigrationRunFinished) with totals per record kind and the amount credited.

How the core side works: Events and listeners, Another module in the provider, Extension points.

Troubleshooting

For any other message, use the error lookup.

No sources: Tebex needs the store module.

The wizard shows a source only when some module can take its data. Install Shop for Tebex; GameCMS and LR Web are covered by Migration itself.

The old site's credentials are no longer kept. Connect again in the wizard to continue.

The database password or Tebex key is kept only for "Keep credentials, hours". Go through the "Connection" step again, then click "Continue" on the move page.

MessageWhat to do
"The base has no users table. Check the database name and the prefix."check "Database" and "Table prefix"
"The users table lacks columns: …"this is not a GameCMS database or another version of it
"Could not connect to the database."check the host, port and the user's access from the site's server
"This is an internal address"the host is in a private network: click "I confirm, connect" if the database really is there
"Reading a dump needs the PHP extension pdo_sqlite."enable pdo_sqlite in the PHP settings
"The dump could not be read. Check it is mysqldump output."export the database again with mysqldump
"The dump was not uploaded: too big or not the right file."put the file over FTP into storage/app/private/migration/dumps
"Tebex refused the key or did not answer."copy the Public Token again from Developers → API Keys
"A step of the move failed, details are in the error log. It can continue once fixed."check the errors, then "Continue"

For LR Web the check reports that the Steam sign-in is off: an LR Web account is only a Steam account and does not move without that sign-in method. Turn Steam on and check again.

Next

On this page