-
-
Notifications
You must be signed in to change notification settings - Fork 3
Skeleton 4
IDMarinas edited this page Jan 31, 2021
·
1 revision
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.
See Readme of local Skeleton for additional information.
- Download the latest file for the version to be installed from lotgd-check-requeriments-X.Y.php to check your server
- See Readme of Core for additional information.
- 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 indist/prod/
- Run command
npm run lotgd-dev
for build a version for development server, located indist/dev/
You probably need to install Gulp globally, run the following command
npm install gulp-cli -g
- 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.
- When accessing your installation, an error is registered that a class (or classes) cannot be found. For example 'Lotgd\Local\Entity\ModInventory'.
-
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.