Installing Your Game
This will take about 10 minutes total. We've made it as simple as humanly possible - just follow the pictures and copy what you see.
Two Ways to Install
🚀 Automatic Setup
Let our installer create everything automatically. You just provide your cPanel login.
- ✅ Database created automatically
- ✅ All permissions set correctly
- ✅ Zero technical knowledge needed
- ⏱️ Takes 5 minutes
⚙️ Manual Setup
Create the database yourself in cPanel. Takes a bit longer but gives you more control.
- ✅ More control over settings
- ✅ No need to share cPanel password
- ⏱️ Takes 10 minutes
Method 1: Automatic Setup (Easiest)
Step 1: Upload Your Files
-
Log into cPanel
Go to your cPanel URL (something like
yourdomain.com/cpanel) -
Open File Manager
Click the "File Manager" icon.
-
Go to public_html folder
Click
public_htmlon the left sidebar. -
Upload the ZIP
Click "Upload" → Choose
nxcodes-engine.zip→ Wait for it to finish -
Extract it
Right-click the ZIP file → "Extract" → "Extract File(s)"
-
Delete the ZIP
Right-click
nxcodes-engine.zip→ "Delete"
Step 2: Run the Automatic Installer
-
Open the installer
Go to:
https://yourgame.com/install -
Choose "Automatic Setup"
On the first screen, click the big "Automatic Setup" button.
-
Enter your cPanel credentials
cPanel Username:
cPanel Password:
🔒 Is this safe? Yes! We only use these credentials once to create your database, then we forget them. They're never stored.
Click "Let's Go!"
-
Watch the magic happen
The installer will automatically:
- Create your database
- Create a database user
- Set all permissions
- Test the connection
⏱️ This takes about 30 seconds. You'll see a progress bar.
-
Set up your game
Now just fill in the easy stuff:
Game Name: What's your game called?
Your Email: For admin notifications
Admin Username: Your login name
Admin Password: Choose a strong password
License Key: From your purchase email
-
Pick your template
Choose a starting world or start blank.
-
Done!
Your game is live! Click "Go to Admin Panel" to start building.
Method 2: Manual Setup
Step 1: Upload Your Files
(Same as automatic method above - upload ZIP, extract, delete ZIP)
Step 2: Create Your Database
-
Open MySQL Databases in cPanel
From cPanel home, click "MySQL Databases"
📸 Look for this icon: [MySQL Databases] -
Create New Database
Under "Create New Database", type:
mygameClick "Create Database"
✏️ WRITE THIS DOWN - Part 1:You'll see a success message that says something like:
"Added the database username_mygame"
Copy this ENTIRE name (including the username_ part):
username_mygameDatabase Name: _________________ -
Create Database User
Scroll down to "MySQL Users"
Username: Type
gameuserPassword: Click "Generate Password" button
✏️ WRITE THIS DOWN - Part 2:A popup shows your generated password. Copy it!
Database User: username_gameuser
Database Password: _________________💡 You'll see the full username in the success message (like username_gameuser). Write down the WHOLE thing.
Click "Create User"
-
Connect User to Database
Scroll down to "Add User To Database"
In the first dropdown: Select your user (
username_gameuser)In the second dropdown: Select your database (
username_mygame)Click "Add"
-
Set Permissions
On the next page, check "ALL PRIVILEGES" at the top
Click "Make Changes"
- Database Name (example:
john_mygame) - Database User (example:
john_gameuser) - Database Password (the long random one)
Step 3: Run the Manual Installer
-
Open the installer
Go to:
https://yourgame.com/install -
Choose "Manual Setup"
Click the "Manual Setup" button
-
Enter your database info
This is where you use what you wrote down:
✅ Leave this as "localhost" - it's correct 99% of the time
📋 Copy EXACTLY what you wrote down (include the username_ part!)
📋 Copy EXACTLY what you wrote down (include the username_ part!)
📋 That long random password you copied
Click "Test Connection"
✅ If it says "Success!", click "Next"
❌ If it fails, double-check you typed everything EXACTLY as shown in cPanel (including any username_ prefixes)
-
Game Configuration
Fill in your game details (name, admin account, license key)
-
Choose Template
Pick a starting world
-
Install!
Click "Install My Game" and wait for it to complete
What's Next?
/install folder right now!
Go back to cPanel File Manager → Find the "install" folder → Right-click → Delete. This prevents anyone else from accessing the installer.
-
Visit your admin panel
Go to:
https://yourgame.com/admin -
Log in with your admin credentials
Use the username and password you created during installation
-
You're in!
Welcome to your game's command center. Let's start building.
Common Problems & Solutions
❌ "Can't connect to database"
Cause: Database info is wrong
Fix:
- Did you include the
username_prefix? (likejohn_mygamenot justmygame) - Did you copy the password correctly? Try generating a new simple one.
- Did you add the user to the database with full privileges?
❌ "Automatic setup failed"
Cause: Your hosting might not support cPanel API
Fix: Use Manual Setup instead - it always works!
❌ "Server requirements not met"
Cause: Your server needs PHP 8.1+
Fix: Contact your hosting support. Say: "Please enable PHP 8.1 or higher for my account." They'll do it in minutes.
❌ "Invalid license key"
Cause: License key not typed correctly
Fix:
- Copy the ENTIRE key from your email (including dashes)
- Make sure there are no spaces before or after
- If still failing, email us at support@nxcodes.com
❌ "Blank white page"
Cause: Usually file permissions
Fix:
- In File Manager, select all folders
- Click "Permissions" at the top
- Set folders to
755 - Set files to
644 - Check "Recurse into subdirectories"
- Click "Change Permissions"
Still Stuck? We're Here to Help!
🎉 You Did It!
You just installed your own browser game. That's legitimately impressive.
Most people never get past the "thinking about it" phase. You actually built something.
Now go make it awesome.
Start Building Your World →