© 1990-2021 Stephen Gose LLC.

CubeVille™

an Online Life-Simulation Game


CubeVille™ is a full-featured online virtual-space for your web community. It is fully customizable with your unique branding and in-game modules. Learn how to create more social network websites from these "How to" books:

CubeVille™ is a massive-multiplayer, text-based, menu-driven, Role-Playing Game (aka "RPG" or "MMORPG") for membership communities. It is licensed as a "White-labeled" PHP framework solution from Renown Games with or without web hosting. As a complete gaming solution, it was developed using the most current "full-stack" web technologies.

CubeVille™ uses a "multifunctional full-stack" PHP gaming script — e.g., a 3-tier architecture including both the "front-side client" and "back-end servers" — that lets you create your "White Labeled" membership community to your liking. The "front-end" JavaScripts are sent to members from your website, while the server back-end processes members' actions. CubeVille™ is easily tailored to your specific community's needs and lets you create the most proven respected virtual life-simulation game on the Worldwide Web to date! It was developed to study ethnic, cultural, and social interactions within a common-interest community. It is based on those Sociological studies of group dynamics. It has many other configurable options and settings, from which, you could modify (or newly create!) your desired community interactions.

A primary feature of CubeVille™ is its e-commerce capabilities. You can create "virtual products and services" for registered members as either digital products, reoccurring purchases (such as "subscriptions"), or just simple "digital-licensed downloads" (for example, "software source code" or documents). This social gaming platform provides a virtual world in an affordable Software as a Service (SaaS) model.

Instead of investing thousands of dollars to develop, and even more to maintain, a massive gaming system, this application package lets you have a socially networked syndicated gaming system for either a small annual subscription-lease or a one-time purchase fee in other "Fantasy Gaming Themes" or a "Contemporary theme" setting such as CubeVille™.

CubeVille™ delivers what you and your members want:
Young adults want to:

You want to:

Within your community's activities, registered members receive a free "home-base" account (known as a "Hamlet" inside the Fantasy theme) and an account "personae" to represent their virtualized community life-style. Registered Members — using their virtual "in-game currencies" (aka "Cubits") — can buy vehicles, properties, items, home-base upgrades, "Avatars", storage garages or hangars for their transport vehicles, waterfront piers (aka "Quay"), pets, characteristic-point enhancements, and so much more to improve their "respect and popularity" (? i.e., assuming a non-criminal) "community status". Members have the opportunity to work in a variety of careers (using the "Career Portal" (a Work-in-Progress (WIP)), earn actual college education (using the "Education Portal"), exercise in gyms, heal their health in hospitals, and many other activities that are hidden within the software. To earn extra money, gold, experience, and other such bonuses, members will upgrade their personae through chosen activities found in the "Gaming Portals".

For any query or problems feel free to contact us at the following Emails:

and much more...
  1. Upload the files from the script's "Source" folder into your web host account. (watch this 1-minute video: "Drag & Drop File Manager").

  2. Create a dedicated MySQL database (watch this 1-minute video: "Advanced Database Manager").
    Practice setting up a database and review this interactive tutorial here.

  3. Inside the "Source/config.php" file, Open and fill-in lines 3, 4, 5, and 6 with your database's information.

  4. Enter your newly created database using "PHPMyAdmin".
    * Use your live web hosting access; this won't work in the demonstration mode.

  5. Then, Import your database source code file (SQL/"Database SQL.sql") using the "PHPMyAdmin" import tab.

    Note: If you are updating the CubeVille™ gaming engine, you must perform a clean installation: 1) delete all CubeVille™ related database tables; 2) then replace those with the updated content and follow these "Installation Steps" again. This is required because the database tables' structure could be modified. To backup your data export all CubeVille™ related database tables.

  6. Generate your "ReCaptcha" v2 keys; see the instructions below. Log into your admin account using the defaults: admin and admin [Username & Password]. Then, inside the "Admin Panel", Add your unique "ReCaptcha v2" keys on the "Settings" page.

  7. Change the default "admin" account password from "admin" and record your changes.

The game demonstration uses: demo and demo [Username & Password]
This account is reset every five minutes or on log out.


  1. Go to the "Advanced" Tab and then select "CRON jobs".

    * NOTE: If your chosen web host does not support Cron Jobs you can use this website: Cron-Job.org


  2. To set up a cronjob you will need to press the "Create A New Cronjob" button and set a few parameters: the schedule, execution command, and the email to where the cronjob result notifications should be sent. Experience level - you can choose between Standard or Advanced levels of experience - this is how you might set up its scheduled times.

Here is an example of a cron job schedule:


Example commands:
php /home/<web hosting name>/<domain>/cubeville/cron/energyrefill.php
php /home/<web hosting name>/<domain>/cubeville/cron/full-energyrefill.php

Follow these official Paypal instructions:

https://developer.paypal.com/docs/api-basics/notifications/ipn/IPNSetup/#setting-up-ipn-notifications-on-paypal

Example Callback URL:

https://yoursite.com/paypal-ipn.php
  1. Login To Your PayPal Account

  2. Manually Change To Developer URL & Click On “My Account” — Once you have logged into your Paypal account, you must manually change the URL to “https://developer.paypal.com/“. Or, simply click here – https://developer.paypal.com/. After this, you'll select the drop-down menu and click on "My Account" sub-menu.

  3. Click On “My Apps & Credentials” — In the developer dashboard, click on “My Apps & Credentials” available in the left sidebar.

  4. Navigate To “REST API Apps” — Once clicked, scroll down to the “REST API Apps” section and click on “Create App” button.

  5. Create New App — Once you clicked on "Create App" button (in step 4 above), a pop-up window should appear, in which you'll enter this application's details such as "App Name" and "Sandbox Developer Account".
    App Name should be the name of your application that you are creating.
    Sandbox Developer Account takes your PayPal sandbox email address.
    For example, If your PayPal email address is “mypaypal@gmail.com” then your Sandbox email address will be “mypaypal-facilitator@gmail.com“. Clearly, all you have to do is add “-facilitator” just before the “@” symbol.
    After this, click on “Create App” button.

  6. Generate Client ID & Secret Key For Your App — Once you have created your app by clicking the “Create App” button (from step 5), you are now required to generate Client ID & Secret Key for your app by first, click on the “Live” button.
    After this, your Client ID & Secret Key will be generated automatically.

  7. Select App Feature Options — Before moving to the next step make sure to select following checkboxes (after scrolling down) to make your app fully functional —
    • Accept Payments
    • Invoicing
    • Payouts

    After this, click on “Save”.

  8. Add PayPal Client ID & Secret Key In Admin Settings — The last step involves the addition of Client ID & Secret Key in your Pabbly Form Builder.
    From your form builder, select Payment element. Now click on Configure Payment.
    In that, select PayPal Payment Gateway, two new input fields will appear. One for Secret key and other for Client ID.

After setting up your products/Payment details, click on the “Save Payment Settings” button to save the settings. Now, you are all set to collect payments via PayPal Payment Gateway.
NOTE: PayPal and Stripe payment gateway charge some amount as a "Transaction Fees" on every customer transaction of yours.

The Site Key and Secret Key can be generated on this page:
https://www.google.com/recaptcha/admin/create

Choose reCAPTCHA v2 -> “I’m not a robot” Checkbox. Then fill in the other details and submit the form.


Finally, the reCAPTCHA v2 public and private keys are found on the following page:

Put the generated keys in the related fields on the Game Settings page of the Admin Panel.

Your "application type" determines which Facebook products and associated APIs become available. If this is your first time creating such an item or you're just want to explore the creation flow, choose the "Something Else" option. Otherwise, we'll create a Facebook App for Legends of Renown Deeds™ using "Build or Connect to a Game". Later, when you are more familiar with their products and APIs, refer to their app types document to determine which type of category is best suited for Legends of Renown Deeds™, then create a new app and choose an appropriate type.
You will need the following:

Follow the steps below to create a Facebook App and generate an "App ID" and "App Secret" designations.

  1. Go to the Facebook for Developers page and log into with your Facebook account.

  2. After you logon, click the "My Apps" menu tab

  3. You will see any existing apps you may have created. If this is your first Facebook App, click on the "Create App" button". A popup window should appear; you must select a type for this application you're creating. The choice you make determines how Facebook will process our game. There are five possible application types. Review the supporting documents for more detailed information here.:
    • Business Integration;
    • Build or Connect to a Game — as either a "Gaming Service" (a game hosted on your website), an "Instant Game" (a game hosted on Facebook's servers);
    • Build Connected Experiences — apps that integrate consumer-related products like Facebook Login to provide app users with a more connected experience;
    • More Options.
    Once you choose an "app type", your app will only be presented with products, permissions, and features that are available to that app type. I'm choosing "Build Connected Experiecnes" to simplify my deployment because I'm simply creating a "Facebook Login" for our hosted game. Click "Continue".

  4. Type in your app Display Name, contact email. Click the "Create App" button.

  5. Since I chose the "Build Connected Experience", I can "Add Products" to my game. I'll choose only the Facebook Login (for now). (more detailed information here.)

  6. In this next window, I'll choose "Web" and then answer the 5 "Quick Start" questions.

  7. Let's go directly to our "Setting > Basic" in the left menu; we'll skip the remainder of the "Quick start" for now.

  8. In "Setting > Basic", you'll see your "App ID" and "App Secret" — the App ID is visible and App Secret key is hidden. To see your "hidden App Secret", click on "Show" button. Now that you know both of the "App ID" and "App Secret" Keys, let's add those into our configuration file ("Source/config.php" Lines 9, 10, and 11). The "App ID" and "App Secret" are only accessible, by default, from your Facebook account. We must make these available for public access.

  9. In the settings, type your "app domain" name, your contact email, the URL of your "Privacy Policy", "Terms of Service", and "Cookie Policy". Upload an App Icon, and assign a category and sub-Category. This will be used by the FB servers, after authentication, to return control to our application.

  10. Now go to "Status & Review", and toggle your app as — LIVE — available for public.

https://developers.google.com/identity/sign-in/web/sign-in

Used resources:

    © 1990-2021 Stephen Gose LLC. All rights reserved.