Skip to content

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.

License

Notifications You must be signed in to change notification settings

dual-universe/lua-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  • A description of the example.
  • An image representing the result (if possible).
  • A list of requirements (which elements/links are needed to use the system).
  • Installation instructions.

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 slot
  • system_onUpdate.lua: code for the onUpdate filter in the system slot
  • unit_onTimer1.lua : code for the first onTimer filter in the unit slot
  • ...etc

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages