From f9886fca5a34d250e9a4b03ce47fd4f462bf9846 Mon Sep 17 00:00:00 2001 From: Remy Marquis Date: Tue, 30 Jun 2020 14:11:18 +0200 Subject: [PATCH] Updated for Lua 5.4 --- constants.rst | 2 +- index.rst | 4 ++-- standard.rst | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/constants.rst b/constants.rst index 1a406ab..fedf61e 100644 --- a/constants.rst +++ b/constants.rst @@ -518,5 +518,5 @@ LUA_PATH ./legacy/?.lua; Ease use of the require LUA_CPATH ./legacy/lualibs/?.so; Ease use of the require function fs_homepath/legacy/lualibs/?.so to load libraries LUA_DIRSEP / Directory separator -_VERSION Lua 5.3 Lua version +_VERSION Lua 5.4 Lua version ================= ==================================== ================== diff --git a/index.rst b/index.rst index 1bc3860..4b5e4b3 100644 --- a/index.rst +++ b/index.rst @@ -10,7 +10,7 @@ Welcome to the Legacy Lua API's documentation! The **Legacy mod** is the default mod shipped with `ET: Legacy `_. It supports server-side modifications via the `Lua `_ scripting language, with the Legacy Lua API being the interface for communication between them. -The embedded **Lua 5.3** interpreter will load user-defined scripts if present in the `legacy` directory. The Lua API provides an "et" library of `function calls `__ that allow access to the server engine, and also provides `callbacks `__ so a server side mod may trigger on specific server events. +The embedded **Lua 5.4** interpreter will load user-defined scripts if present in the `legacy` directory. The Lua API provides an "et" library of `function calls `__ that allow access to the server engine, and also provides `callbacks `__ so a server side mod may trigger on specific server events. In some cases values can be returned to Legacy mod, whenever something is intercepted (i.e. a command) and prevented to be further handled. This way, new commands can easily be defined or existing ones can be altered. @@ -21,7 +21,7 @@ For example, if a player dies the `et_Obituary( victim, killer, meansOfDeath ) < Legacy's Lua API follows mostly the `ETPub `_ implementation with partial code of the NoQuarter implemention. The ETPub implementation being built to be compatible with `ETPro's Lua `_, all scripts written in ETPro's documentation should be valid and more or less compatible with Legacy mod's Lua API. -.. important:: As Legacy uses the newer Lua 5.3, you might want to check the **Incompatibilities with the Previous Version** sections of the `Lua 5.1 `_, `Lua 5.2 `_, and `Lua 5.3 `_ manuals while porting scripts written for other mods. +.. important:: As Legacy uses the newer Lua 5.4, you might want to check the **Incompatibilities with the Previous Version** sections of the `Lua 5.1 `_, `Lua 5.2 `_, `Lua 5.3 `_, and `Lua 5.4 `_ manuals while porting scripts written for other mods. .. toctree:: :maxdepth: 2 diff --git a/standard.rst b/standard.rst index be30e4a..e03b8b9 100644 --- a/standard.rst +++ b/standard.rst @@ -4,11 +4,11 @@ Standard libraries The following **standard Lua libraries** are initialized by default and are available to scripts: -* `basic `_ -* `string `_ -* `table `_ -* `math `_ -* `i/o `_ -* `os `_ (available features vary depending on your OS) +* `basic `_ +* `string `_ +* `table `_ +* `math `_ +* `i/o `_ +* `os `_ (available features vary depending on your OS) -.. tip:: For more information about Lua, check out the `Reference Manual `_, the online edition of the book `Programming in Lua `_ or the `Lua-users wiki `_. +.. tip:: For more information about Lua, check out the `Reference Manual `_, the online edition of the book `Programming in Lua `_ or the `Lua-users wiki `_.