2017 © Pedro Peláez
 

project modulargaming

Basic Modular Gaming application.

image

modulargaming/modulargaming

Basic Modular Gaming application.

  • Friday, August 1, 2014
  • by modulargaming
  • Repository
  • 12 Watchers
  • 21 Stars
  • 43 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 22 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Modular Gaming

Modular Gaming is a open source persistent browser based game framework built upon Kohana 3.3 with modules such as ORM and KOstache., (*1)

Released under a BSD license, Modular Gaming can be used legally for any open source, commercial, or personal project., (*2)

Requirements

  • PHP 5.3.3+
  • MySQL
  • Composer (Dependency Manager)

Installation

Step 1: Download

Download Modular Gaming from Github and install composer dependencies., (*3)

    $ git clone https://github.com/modulargaming/modulargaming.git
    $ cd modulargaming

    $ curl -s https://getcomposer.org/installer | php
    $ php ./composer.phar install --dev

Alternatively you can also use composer create-project to download the project and the dependencies., (*4)

    $ composer create-project modulargaming/modulargaming modulargaming dev-master

If you cannot use Composer you can download a packaged copy of Modular Gaming from http://www.sourceforge.net/projects/modulargaming/files/, (*5)

Step 2: File Permissions

$ chmod 0777 application/{cache,logs}
$ chmod 0777 assets
$ chmod 0777 media

Step 3: Run the installer

Open .htaccess and make the following changes:, (*6)

  • Set the correct RewriteBase

Start the installer and follow the instructions by browsing to the Modular Gaming install with your web browser., (*7)

  • Once you have completed install, delete the install.php file.

Step 4: Admin

Register your admin account at /user/register. Promote your newly created account to admin by using the minion task:, (*8)

$ php minion User:Promote --username=admin

You should now verify that you have admin access by accessing the administration panel at /admin/., (*9)

Step 5: Cron jobs

$ php ./minion Pet:Decrease
$ php ./minion Item:Restock

Step 6: Configuration of modulargaming

Open .htaccess and make the following changes:, (*10)

  • Set the correct environment, either development or production.

Open application/bootstrap.php and make the following changes:, (*11)

  • Set the default directory for your application if it does not automatically work, (*12)

  • Set the default cookie salt, (*13)

  • Set the default timezone for your application, (*14)

Open application/config/auth.php and make the following changes:, (*15)

  • Set the default hash key

Open application/config/email.php and make the following changes:, (*16)

  • Set the default from address

Testing

We use BDD, with 2 different tools, phpspec and behat., (*17)

$ curl -s https://getcomposer.org/installer | php
$ ./composer.phar install --dev

Documentation

The userguide module included in all Modular Gaming releases also allows you to view the documentation locally. It is accessible from your site via /guide, (*18)

Reporting bugs

If you've stumbled across a bug, please help us out by reporting the bug you have found. Simply log in or register and submit a new issue, leaving as much information about the bug as possible, e.g., (*19)

  • Steps to reproduce
  • Expected result
  • Actual result

This will help us to fix the bug as quickly as possible, and if you'd like to fix it yourself feel free to fork us on GitHub and submit a pull request!, (*20)

Contributing

Contributions are encouraged and welcome; however, please review the Developer Certificate of Origin in the LICENSE.md file included in the repository. All commits must be signed off using the -s switch., (*21)

The Versions