LiXizhi / ParaCraft

http://paracraft.org 3D animation and game maker
https://keepwork.com
29 stars 18 forks source link
npl paracraft paraengine tatfook

Paracraft Client/Server App

Paracraft can be started in Client mode or Server mode. Clieng mode is a 3d application. Server mode can be run under linux without any GUI. The source code is inside git submodules.

Install Guide

Install NPLRuntime first and then clone this respository and run ./start.sh or ./paracraft.bat for win32 3D client.

git clone --recursive https://github.com/LiXizhi/paracraft.git
cd paracraft
./start.sh

package dependencies: (already included in git submodules)

Start Paracraft Client

Start by running paracraft.bat, or from NPLRuntime using following command line parameters.

npl mc="true" loadpackage="npl_packages/paracraft/" bootstrapper="script/apps/Aries/main_loop.lua"

To install and debug buildin system mod, please also run npl_packages/ParacraftBuildinMod/InstallPackages.bat

Start Pure Server

Starting a pure server with the default port with ./start.sh. It is recommended that you launch the server app in your docker container. One can also start pure server with any world like worlds/DesignHouse/test and ip/port. See below.

npl world="worlds/DesignHouse/test" ip="0.0.0.0" port="6001" loadpackage="npl_packages/paracraft/"

One can also run from any folder like /opt/server_001/ with the dev param. Please note the world directory must always be relative to dev folder or current working directory.

npl world="worlds/DesignHouse/test" port="6001" loadpackage="npl_packages/paracraft/" dev="/opt/server_001/"

Command Line Parameters

Here is an example with all parameters:

npl servermode="true" autosave="10" world="worlds/DesignHouse/test" port="6001" loadpackage="npl_packages/paracraft/" dev="/opt/server_001/"