Rename Minetest to Luanti
This commit is contained in:
parent
f13927149b
commit
fd2a96dd2d
@ -86,7 +86,7 @@ The music tracks are included under `mods/lzr_ambience/sounds`.
|
|||||||
The name to the left is the file name as used in Lazarr!
|
The name to the left is the file name as used in Lazarr!
|
||||||
The name in brackets is the original file name.
|
The name in brackets is the original file name.
|
||||||
If neccessary, music files have been transcoded to Ogg Vorbis
|
If neccessary, music files have been transcoded to Ogg Vorbis
|
||||||
so they work in Minetest.
|
so they work in Luanti.
|
||||||
|
|
||||||
- `lzr_ambience_leopaz_exploring_the_ocean.ogg` (`01_exploring_the_ocean.wav`),
|
- `lzr_ambience_leopaz_exploring_the_ocean.ogg` (`01_exploring_the_ocean.wav`),
|
||||||
`lzr_ambience_leopaz_seaside_village.ogg` (`02_seaside_village.wav`),
|
`lzr_ambience_leopaz_seaside_village.ogg` (`02_seaside_village.wav`),
|
||||||
|
@ -25,10 +25,10 @@ operations. Use the book in front of you to select the first level.
|
|||||||
The spinning information blocks will guide you through the levels.
|
The spinning information blocks will guide you through the levels.
|
||||||
|
|
||||||
## Installing
|
## Installing
|
||||||
You need Minetest version 5.9.0 (or later) to play this.
|
You need Luanti version 5.9.0 (or later) to play this.
|
||||||
Download Minetest from <https://www.minetest.net>.
|
Download Luanti from <https://www.minetest.net>.
|
||||||
|
|
||||||
Refer to Minetest documentation to learn how to install a game in Minetest.
|
Refer to Luanti documentation to learn how to install a game in Luanti.
|
||||||
|
|
||||||
Once installed, create a world and start. The world contains your game's
|
Once installed, create a world and start. The world contains your game's
|
||||||
progress and custom levels.
|
progress and custom levels.
|
||||||
|
@ -21,7 +21,7 @@ Maybe this image should be vectorized for higher quality.
|
|||||||
## `header_es.png`
|
## `header_es.png`
|
||||||
|
|
||||||
Spanish version of `header.png`. This is currently unused by the game because
|
Spanish version of `header.png`. This is currently unused by the game because
|
||||||
translated menu images are not (yet) supported in Minetest (as of 5.9.0).
|
translated menu images are not (yet) supported in Luanti (as of 5.9.1).
|
||||||
|
|
||||||
## `*.xcf` files
|
## `*.xcf` files
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# IMPORTANT: These settings MUST be equal to the values
|
# IMPORTANT: These settings MUST be equal to the values
|
||||||
# specified in mods/lzr_check_movement_settings/init.lua.
|
# specified in mods/lzr_check_movement_settings/init.lua.
|
||||||
# These values are currently identical to the default
|
# These values are currently identical to the default
|
||||||
# settings as of Minetest 5.9.1, but they are explicitly
|
# settings as of Luanti 5.9.1, but they are explicitly
|
||||||
# repeated here for reference. The precise values matter
|
# repeated here for reference. The precise values matter
|
||||||
# to guarantee the levels still work as originally designed.
|
# to guarantee the levels still work as originally designed.
|
||||||
# These values should NOT be changed lightly! Doing so
|
# These values should NOT be changed lightly! Doing so
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
--[[ This mod is basically a compromise solution
|
--[[ This mod is basically a compromise solution
|
||||||
for a long-known bug.
|
for a long-known bug.
|
||||||
|
|
||||||
It checks if Minetest is running with the recommended
|
It checks if Luanti is running with the recommended
|
||||||
player movement settings. If the player has set any of the
|
player movement settings. If the player has set any of the
|
||||||
relevant movement settings to a non-default value, that will
|
relevant movement settings to a non-default value, that will
|
||||||
take preference over the game settings, which will break
|
take preference over the game settings, which will break
|
||||||
@ -17,7 +17,7 @@ to realize otherwise they're playing Lazarr! with the
|
|||||||
"wrong" physics.)
|
"wrong" physics.)
|
||||||
|
|
||||||
The player is then given a choice to either return to
|
The player is then given a choice to either return to
|
||||||
Minetest and fix the problem or to ignore it and
|
Luanti and fix the problem or to ignore it and
|
||||||
continue playing.
|
continue playing.
|
||||||
Both a dialog message and a chat message will be displayed.
|
Both a dialog message and a chat message will be displayed.
|
||||||
|
|
||||||
@ -72,13 +72,13 @@ lzr_check_movement_settings.register_on_dismiss_warning = function(callback)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local STR_WARNING_1 = S("WARNING: The player movement settings are not at the recommended values for Lazarr! The physics might not work as intended!")
|
local STR_WARNING_1 = S("WARNING: The player movement settings are not at the recommended values for Lazarr! The physics might not work as intended!")
|
||||||
local STR_WARNING_2 = S("Please exit the game and reset the following Minetest settings to their default value:")
|
local STR_WARNING_2 = S("Please exit the game and reset the following Luanti settings to their default value:")
|
||||||
-- concatenate invalid settings with list separator (comma)
|
-- concatenate invalid settings with list separator (comma)
|
||||||
local STR_INVALID_SETTINGS = table.concat(invalid_settings, S(", "))
|
local STR_INVALID_SETTINGS = table.concat(invalid_settings, S(", "))
|
||||||
|
|
||||||
local disconnect = function(player)
|
local disconnect = function(player)
|
||||||
minetest.log("action", "[lzr_check_movement_settings] "..player:get_player_name().." chose to leave the game")
|
minetest.log("action", "[lzr_check_movement_settings] "..player:get_player_name().." chose to leave the game")
|
||||||
minetest.disconnect_player(player:get_player_name(), S("You quit. Remember, Lazarr! expects the following Minetest settings to be reset to the default value: @1", STR_INVALID_SETTINGS))
|
minetest.disconnect_player(player:get_player_name(), S("You quit. Remember, Lazarr! expects the following Luanti settings to be reset to the default value: @1", STR_INVALID_SETTINGS))
|
||||||
end
|
end
|
||||||
|
|
||||||
local show_dialog = function(player_name)
|
local show_dialog = function(player_name)
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
-- Lazarr! version 1.4.0 and previously used a persistent map.
|
-- Lazarr! version 1.4.0 and previously used a persistent map.
|
||||||
-- Later versions switched to a transient map via game.conf.
|
-- Later versions switched to a transient map via game.conf.
|
||||||
-- But Minetest won't automatically transform old maps from
|
-- But Luanti won't automatically transform old maps from
|
||||||
-- persistent to transient on a game update; this is why manual
|
-- persistent to transient on a game update; this is why manual
|
||||||
-- intervention is neccessary.
|
-- intervention is neccessary.
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ local S = minetest.get_translator("lzr_check_world_backend")
|
|||||||
local FS = function(...) return minetest.formspec_escape(S(...)) end
|
local FS = function(...) return minetest.formspec_escape(S(...)) end
|
||||||
|
|
||||||
-- We manually parse the world.mt file because apparently,
|
-- We manually parse the world.mt file because apparently,
|
||||||
-- Minetest does not allow us to access this information
|
-- Luanti does not allow us to access this information
|
||||||
-- in another
|
-- in another
|
||||||
local function get_world_backend()
|
local function get_world_backend()
|
||||||
local worldfile = io.open(minetest.get_worldpath().."/world.mt", "r")
|
local worldfile = io.open(minetest.get_worldpath().."/world.mt", "r")
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
--[[
|
--[[
|
||||||
Damage mod. This mod introduces a custom "damage" mechanic for players.
|
Damage mod. This mod introduces a custom "damage" mechanic for players.
|
||||||
It is completely separate from Minetest's built-in health system,
|
It is completely separate from Luanti's built-in health system,
|
||||||
which is ignored in this game.
|
which is ignored in this game.
|
||||||
|
|
||||||
Players can have 0 to lzr_damage.MAX_DAMAGE. Damage in this mod is
|
Players can have 0 to lzr_damage.MAX_DAMAGE. Damage in this mod is
|
||||||
@ -18,7 +18,7 @@ Damage is mostly useful as an effect to simulate the player being
|
|||||||
lzr_damage = {}
|
lzr_damage = {}
|
||||||
|
|
||||||
-- Note this game does NOT use regular damage and health, as defined
|
-- Note this game does NOT use regular damage and health, as defined
|
||||||
-- by Minetest, it's disabled. The "damage" here applies only to this mod!
|
-- by Luanti, it's disabled. The "damage" here applies only to this mod!
|
||||||
lzr_damage.MAX_DAMAGE = 4
|
lzr_damage.MAX_DAMAGE = 4
|
||||||
|
|
||||||
-- Reduce damage when player didn't take damage every HEAL_TIME
|
-- Reduce damage when player didn't take damage every HEAL_TIME
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## Get Item for Lazarr!
|
## Get Item for Lazarr!
|
||||||
|
|
||||||
This Minetest mod allows the player to get easy access to
|
This Luanti mod allows the player to get easy access to
|
||||||
items in the game for the level editor or when the player
|
items in the game for the level editor or when the player
|
||||||
has the 'give' privilege.
|
has the 'give' privilege.
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
local S = minetest.get_translator("lzr_hook")
|
local S = minetest.get_translator("lzr_hook")
|
||||||
|
|
||||||
if not minetest.raycast then
|
if not minetest.raycast then
|
||||||
minetest.log("error", "lzr_hook requires Minetest version 5.0 or newer")
|
minetest.log("error", "lzr_hook requires Luanti version 5.0 or newer")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ local rotate = {
|
|||||||
local facedir = param2 % 32
|
local facedir = param2 % 32
|
||||||
for _, cycle in ipairs(facedir_cycles[axis]) do
|
for _, cycle in ipairs(facedir_cycles[axis]) do
|
||||||
-- Find the current facedir
|
-- Find the current facedir
|
||||||
-- Minetest adds table.indexof, but I refuse to use it because it returns -1 rather than nil
|
-- Luanti adds table.indexof, but I refuse to use it because it returns -1 rather than nil
|
||||||
for i, fd in ipairs(cycle) do
|
for i, fd in ipairs(cycle) do
|
||||||
if fd == facedir then
|
if fd == facedir then
|
||||||
return param2 - facedir + cycle[1+(i-1 + amount) % 4] -- If only Lua didn't use 1 indexing...
|
return param2 - facedir + cycle[1+(i-1 + amount) % 4] -- If only Lua didn't use 1 indexing...
|
||||||
|
@ -109,7 +109,7 @@ Parameters:
|
|||||||
|
|
||||||
* basename: Itemstring identifier of the base node
|
* basename: Itemstring identifier of the base node
|
||||||
May be preceded by a color to force a node name, as handled by minetest.register_node
|
May be preceded by a color to force a node name, as handled by minetest.register_node
|
||||||
* def: Definition table to define the node. All fields of the Minetest node definition can be applied here,
|
* def: Definition table to define the node. All fields of the Luanti node definition can be applied here,
|
||||||
but note that some fields will be overwritten.
|
but note that some fields will be overwritten.
|
||||||
To use after_dig_node, you must specify it as __after_dig_node.
|
To use after_dig_node, you must specify it as __after_dig_node.
|
||||||
To use after_place_node, you must specify it as __after_place_node.
|
To use after_place_node, you must specify it as __after_place_node.
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
-- The main mapgen code.
|
-- The main mapgen code.
|
||||||
|
|
||||||
--[[ THIS FILE WILL BE RUN TWICE!
|
--[[ THIS FILE WILL BE RUN TWICE!
|
||||||
1) In the global Minetest environment,
|
1) In the global Luanti environment,
|
||||||
2) In the heavily-restricted threaded mapgen environment
|
2) In the heavily-restricted threaded mapgen environment
|
||||||
|
|
||||||
This means this file is very restricted and only has
|
This means this file is very restricted and only has
|
||||||
access to functions that are available in both the
|
access to functions that are available in both the
|
||||||
global and the mapgen environment. Refer to Minetest's
|
global and the mapgen environment. Refer to Luanti's
|
||||||
Lua API documentation for details.
|
Lua API documentation for details.
|
||||||
|
|
||||||
In the global environment, this file runs to expose the
|
In the global environment, this file runs to expose the
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
-- Override Minetest's default node dropping handling.
|
-- Override Luanti's default node dropping handling.
|
||||||
-- Node drops are added to digger's inventory,
|
-- Node drops are added to digger's inventory,
|
||||||
-- but they will NOT spawn item entities if the inventory is full or non-existing.
|
-- but they will NOT spawn item entities if the inventory is full or non-existing.
|
||||||
minetest.handle_node_drops = function(pos, drops, digger)
|
minetest.handle_node_drops = function(pos, drops, digger)
|
||||||
|
@ -190,7 +190,7 @@ end
|
|||||||
-- but this solution was determined to be the "next best" one
|
-- but this solution was determined to be the "next best" one
|
||||||
-- without too much disruption.
|
-- without too much disruption.
|
||||||
-- TODO: Halt the day-night cycle entirely without hacks as soon
|
-- TODO: Halt the day-night cycle entirely without hacks as soon
|
||||||
-- Minetest allows us to do so.
|
-- Luanti allows us to do so.
|
||||||
local timer = TIMEOFDAY_RESET_TIME
|
local timer = TIMEOFDAY_RESET_TIME
|
||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function(dtime)
|
||||||
timer = timer + dtime
|
timer = timer + dtime
|
||||||
|
@ -16,6 +16,6 @@ Authors of source code
|
|||||||
----------------------
|
----------------------
|
||||||
Originally by Kahrl <kahrl@gmx.net> (LGPLv2.1+) and
|
Originally by Kahrl <kahrl@gmx.net> (LGPLv2.1+) and
|
||||||
celeron55, Perttu Ahola <celeron55@gmail.com> (LGPLv2.1+)
|
celeron55, Perttu Ahola <celeron55@gmail.com> (LGPLv2.1+)
|
||||||
Various Minetest developers and contributors (LGPLv2.1+)
|
Various Luanti developers and contributors (LGPLv2.1+)
|
||||||
Modfications by Wuzzy for Lazarr! (LGPLv2.1+)
|
Modfications by Wuzzy for Lazarr! (LGPLv2.1+)
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ function lzr_stairs.register_stair(subname, recipeitem, groups, images, descript
|
|||||||
groups = new_groups,
|
groups = new_groups,
|
||||||
sounds = sounds,
|
sounds = sounds,
|
||||||
node_box = {
|
node_box = {
|
||||||
-- This stair nodebox is unusual and differs from most other Minetest games.
|
-- This stair nodebox is unusual and differs from most other Luanti games.
|
||||||
-- The segments have been made slightly different so that a laser will alway
|
-- The segments have been made slightly different so that a laser will alway
|
||||||
-- be completely blocked off from any direction.
|
-- be completely blocked off from any direction.
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -9,7 +9,7 @@ This mod is only for content related to the Player API and the player object.
|
|||||||
Authors of source code
|
Authors of source code
|
||||||
----------------------
|
----------------------
|
||||||
Originally by celeron55, Perttu Ahola <celeron55@gmail.com> (LGPLv2.1+)
|
Originally by celeron55, Perttu Ahola <celeron55@gmail.com> (LGPLv2.1+)
|
||||||
Various Minetest developers and contributors (LGPLv2.1+)
|
Various Luanti developers and contributors (LGPLv2.1+)
|
||||||
|
|
||||||
Authors of media (textures, models and sounds)
|
Authors of media (textures, models and sounds)
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
-- Minetest 0.4 mod: player
|
-- Minetest Game mod: player
|
||||||
-- See README.txt for licensing and other information.
|
-- See README.txt for licensing and other information.
|
||||||
|
|
||||||
player_api = {}
|
player_api = {}
|
||||||
|
@ -3,7 +3,7 @@ License of source code
|
|||||||
|
|
||||||
GNU Lesser General Public License, version 2.1
|
GNU Lesser General Public License, version 2.1
|
||||||
Copyright (C) 2011 celeron55, Perttu Ahola <celeron55@gmail.com>
|
Copyright (C) 2011 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||||
Copyright (C) 2011 Various Minetest developers and contributors
|
Copyright (C) 2011 Various Luanti developers and contributors
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it under the terms
|
This program is free software; you can redistribute it and/or modify it under the terms
|
||||||
of the GNU Lesser General Public License as published by the Free Software Foundation;
|
of the GNU Lesser General Public License as published by the Free Software Foundation;
|
||||||
|
@ -6,7 +6,7 @@ This mod makes it possible for multiple mods to modify player physics (speed, ju
|
|||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
### For players
|
### For players
|
||||||
Mods and games in Minetest can set physical attributes of players, such as speed and jump strength. For example, player speed could be set to 200%. But the way this works makes it difficult for multiple mods to *modify* physical attributes without leading to conflicts, problems and hilarious bugs, like speed that changes often to nonsense values.
|
Mods and games in Luanti can set physical attributes of players, such as speed and jump strength. For example, player speed could be set to 200%. But the way this works makes it difficult for multiple mods to *modify* physical attributes without leading to conflicts, problems and hilarious bugs, like speed that changes often to nonsense values.
|
||||||
|
|
||||||
The Player Physics API aims to resolve this conflict by providing a “common ground” for mods to work together in this regard.
|
The Player Physics API aims to resolve this conflict by providing a “common ground” for mods to work together in this regard.
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ Of course, not all mods need the Player Physics API. Mods that don't touch playe
|
|||||||
The rest of this document is directed at developers.
|
The rest of this document is directed at developers.
|
||||||
|
|
||||||
### For developers
|
### For developers
|
||||||
The function `set_physics_override` from the Minetest Lua API allows mod authors to override physical attributes of players, such as speed or jump strength.
|
The function `set_physics_override` from the Luanti Lua API allows mod authors to override physical attributes of players, such as speed or jump strength.
|
||||||
|
|
||||||
This function works fine as long there is only one mod that sets a particular physical attribute at a time. However, as soon as at least two different mods (that do not know each other) try to change the same player physics attribute using only this function, there will be conflicts as each mod will undo the change of the other mod, as the function sets a raw value. A classic race condition occurs. This is the case because the mods fail to communicate with each other.
|
This function works fine as long there is only one mod that sets a particular physical attribute at a time. However, as soon as at least two different mods (that do not know each other) try to change the same player physics attribute using only this function, there will be conflicts as each mod will undo the change of the other mod, as the function sets a raw value. A classic race condition occurs. This is the case because the mods fail to communicate with each other.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Show Wielded Item [`show_wielded_item`]
|
# Show Wielded Item [`show_wielded_item`]
|
||||||
This Minetest mod displays the name of the wielded item above the hotbar and
|
This Luanti mod displays the name of the wielded item above the hotbar and
|
||||||
statbars.
|
statbars.
|
||||||
|
|
||||||
This mod is compatible with the HUD Bars [`hudbars`] mod.
|
This mod is compatible with the HUD Bars [`hudbars`] mod.
|
||||||
|
@ -12,10 +12,10 @@ local unified_inventory_mod = minetest.get_modpath("unified_inventory")
|
|||||||
-- Legacy support: Name of the HUD type field for 'hud_add'.
|
-- Legacy support: Name of the HUD type field for 'hud_add'.
|
||||||
local hud_type_field_name
|
local hud_type_field_name
|
||||||
if minetest.features.hud_def_type_field then
|
if minetest.features.hud_def_type_field then
|
||||||
-- Minetest 5.9.0 and later
|
-- Luanti 5.9.0 and later
|
||||||
hud_type_field_name = "type"
|
hud_type_field_name = "type"
|
||||||
else
|
else
|
||||||
-- All Minetest versions before 5.9.0
|
-- All Luanti versions before 5.9.0
|
||||||
hud_type_field_name = "hud_elem_type"
|
hud_type_field_name = "hud_elem_type"
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ local function set_hud(player)
|
|||||||
off.y = -76 - vmargin*rows
|
off.y = -76 - vmargin*rows
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Dirty trick to avoid collision with Minetest's status text (e.g. “Volume changed to 0%”)
|
-- Dirty trick to avoid collision with Luanti's status text (e.g. “Volume changed to 0%”)
|
||||||
if off.y >= -167 and off.y <= -156 then
|
if off.y >= -167 and off.y <= -156 then
|
||||||
off.y = -181
|
off.y = -181
|
||||||
end
|
end
|
||||||
@ -108,7 +108,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
|
|
||||||
if huds[player_name] then
|
if huds[player_name] then
|
||||||
|
|
||||||
-- Get description (various fallback checks for old Minetest versions)
|
-- Get description (various fallback checks for old Luanti versions)
|
||||||
local def = minetest.registered_items[wname]
|
local def = minetest.registered_items[wname]
|
||||||
local desc
|
local desc
|
||||||
if wstack.get_short_description then
|
if wstack.get_short_description then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user