Skip to content
IDMarinas edited this page May 31, 2021 · 2 revisions

🌟 Game Skeleton version 5.0.* to 5.1.*

With version 4.4.0 a skeleton is included to start creating your game customization. It is not necessary to modify any file of the core of the game and it comes with the necessary commands to be able to make your customization.

Info updated for each version

See Readme of local Skeleton for additional information.

Requeriments

First steps

  • You need have installed npm, composer and gulp as global commands.

    Gulp globally, run command npm install gulp-cli -g Composer globally see https://getcomposer.org/download/

Method 1

  • Run command composer create-project idmarinas/lotgd-skeleton MyCustomLoTGD to create a skeleton of LoTGD Core

    It will create a MyCustomLoTGD directory with a new LoTGD Core application inside.

  • Run command npm install for install all nodes packages.
    • Note: When Fomantic Ui asks you to install, select "Skip install" and then accept everything.
    • Not is necesary install in proyect folder.

Method 2

  • Clone repository in your directory.
  • Run command composer install for install all composer packages.
  • Run command composer lotgd:skeleton:prepare
    • This copy files to _core_files/ folder for you.
    • Olso copy files needed for commands in your MyCustomLoTGD directory.
  • Run command npm install for install all nodes packages.
    • Note: When Fomantic Ui asks you to install, select "Skip install" and then accept everything.
    • Not is necesary install in proyect dir.

Prepare your custom LoTGD

  • Now only need prepare all your customizations and modules

Prepare for deployment

  • Run command npm run lotgd-dev for build a version for development server, located in dist/dev/
  • Run command npm run lotgd-prod for build a version for production server, located in dist/prod/

Install in PRODUCTION server

  1. Upload files of dist/prod/ folder to your server.
  2. If is a upgrade installation:
    • Remove file .env.local.php because instalation generate other time, for updated.
  3. Run command composer lotgd:prod:install

    This run commands
    - composer install --no-dev --no-interaction --no-plugins --no-scripts
    - composer dump-env prod
    - php bin/console cache:clear

  4. Change permits of this file .env.local.php to only read.

    This file store sensitive data.

  5. ⚠️ This step is ONLY if you are UPGRANDING from version 4.12.0 IDMarinas Edition.

    Not run this commands in a Clean install.

    • Run command doctrine:migrations:version doctrine:migrations:sync-metadata-storage
    • Run command doctrine:migrations:version --add DoctrineMigrations\Version20210201163318
      • Mark this migration as installed, and avoid problems in future versions.
  6. Run command in your server php bin/console lotgd:install

    This is the installer of LoTGD Game
    - Installer detect version installed in server.
    - Confirm if is correct or select version installed from list.
    - Note: version 5.0.0 only can upgrade from 4.12.0 version

  7. Wait for the process to finish.
  8. Enter in your server url. http://www.your.server

Tips

  • Composer and Package
    • You can add new dependencies as your project needs them, but do NOT remove any of the default ones.
    • Note: Please do not change the versions of the dependencies.

Skeleton for version 4.4.0 to 4.12.0

New versions: 5.2.* and newer

Game

New versions: 5.0.* to 5.1.*

Game

Older versions: 4.4.* to 4.12.*

Game

Older versions: 4.3.* and earlier

Game Installation

Game Build

Game Development

Advices/Answers

Clone this wiki locally