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
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.
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:
render.lua
: code for the Lua screen's renderscript.controlunit.json
: string for use with control units using the Paste Lua configuration from clipboard
functionality in game.system_onStart.lua
: code for the onStart
filter of the system
slotsystem_onUpdate.lua
: code for the onUpdate
filter in the system
slotunit_onTimer1.lua
: code for the first onTimer
filter in the unit
slotThen, by following the instructions given, you can install these as required.