dual-universe / lua-examples

This repository has been created to serve as a sharing and learning platform for the Dual Universe community and the development of simple and complex Lua applications. You will find on this repo the examples released by Novaquark during the devblog and thread.
https://www.dualuniverse.game
GNU General Public License v3.0
59 stars 19 forks source link
dual-universe lua scripting

02

Official Dual Universe Lua Repository

What is Dual Universe

Dual Universe is a sci-fi MMORPG that takes place in a continuous, single-shard world. Players can freely modify the world by creating structures, spaceships, and even orbital stations, giving birth to empires and civilizations. It features a player-driven economy, politics, trade, and warfare.

Dual Universe is currently in open Beta, with a final release planned for 2022.

Official website: https://www.dualuniverse.game

About this repository

This repository has been created to serve as a sharing and learning platform for the Dual Universe community and the development of simple and complex Lua applications.

You will find on this repo the examples released by Novaquark in devblogs and other announcements of features along with other snippets we deem useful for the community.

Reminder: As the Lua feature evolves regularly, it is possible that a script or system may be broken or contain bugs. We will try to update the relevant examples if this is the case, but no guarantee of functionality can be given.

How to use it ?

Each example provided here consists of the following:

In order to ensure the readability of the code, and to cover as many cases as possible, we have decided to organise the code into files by filters. Also in some cases, when the examples are simple and small, we have decided to group them together to reduce clutter.

Thus you will find in the examples folder Lua files named according to the convention <slot>_<filter><index>.

For example:

Then, by following the instructions given, you can install these as required.