Skip to content
IDMarinas edited this page Jan 31, 2021 · 1 revision

🌟 Game Skeleton

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

  • Go to https://github.com/idmarinas/lotgd-local-skeleton
  • Clic in button "Use this template" follow the steps.
  • Clone your repository in your PC
  • Run command npm install for install all node packages.
    • Note: When Fomantic Ui asks you to install, select "Skip install" and then accept everything.
    • Not is necesary install in proyect folder.
  • Run command composer install for install all composer packages.
  • Download lasted zip release and copy files to _core_files/ folder
  • ...
  • Make your custom modules
  • ...
  • Run command npm run lotgd-prod for build a version for production server, located in dist/prod/
  • Run command npm run lotgd-dev for build a version for development server, located in dist/dev/

You probably need to install Gulp globally, run the following command npm install gulp-cli -g

Install in PRODUCTION server

  • Upload files of dist/prod/ folder to your server.
  • Start the installation of the game by accessing the URL: https://your.site/installer.php
  • Follow all the steps shown on the screen.
  • Potential errors:
    • When accessing your installation, an error is registered that a class (or classes) cannot be found. For example 'Lotgd\Local\Entity\ModInventory'.
      • These are mainly errors of not finding module classes.
      • Solution:
        • Delete the 'vendor/' folder
        • Run composer install --no-dev --preferer-dist --no-interaction --optimize-autoloader --no-plugins --no-scripts in the game installation folder on your server, this
      • This should solve the problem.

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.

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