mirror of
https://github.com/minetest/minetestmapper.git
synced 2025-06-30 15:40:23 +02:00
Apply Luanti rename
This commit is contained in:
@ -7,7 +7,7 @@ variant=win32
|
||||
[[ "$(basename "$CXX")" == "x86_64-"* ]] && variant=win64
|
||||
|
||||
#######
|
||||
# this expects unpacked libraries similar to what Minetest's buildbot uses
|
||||
# this expects unpacked libraries similar to what Luanti's buildbot uses
|
||||
# $extradlls will typically point to the DLLs for libgcc, libstdc++ and libpng
|
||||
libgd_dir=
|
||||
zlib_dir=
|
||||
|
@ -15,7 +15,7 @@ local function pairs_s(dict)
|
||||
return ipairs(keys)
|
||||
end
|
||||
|
||||
minetest.register_chatcommand("dumpnodes", {
|
||||
core.register_chatcommand("dumpnodes", {
|
||||
description = "Dump node and texture list for use with minetestmapper",
|
||||
func = function()
|
||||
local ntbl = {}
|
||||
@ -30,7 +30,7 @@ minetest.register_chatcommand("dumpnodes", {
|
||||
ntbl[prefix][name] = true
|
||||
end
|
||||
end
|
||||
local out, err = io.open(minetest.get_worldpath() .. "/nodes.txt", 'wb')
|
||||
local out, err = io.open(core.get_worldpath() .. "/nodes.txt", 'wb')
|
||||
if not out then
|
||||
return true, err
|
||||
end
|
||||
@ -39,7 +39,7 @@ minetest.register_chatcommand("dumpnodes", {
|
||||
out:write('# ' .. prefix .. '\n')
|
||||
for _, name in pairs_s(ntbl[prefix]) do
|
||||
local nn = prefix .. ":" .. name
|
||||
local nd = minetest.registered_nodes[nn]
|
||||
local nd = core.registered_nodes[nn]
|
||||
local tiles = nd.tiles or nd.tile_images
|
||||
if tiles == nil or nd.drawtype == 'airlike' then
|
||||
print("ignored(2): " .. nn)
|
||||
|
@ -13,14 +13,14 @@ except:
|
||||
############
|
||||
############
|
||||
# Instructions for generating a colors.txt file for custom games and/or mods:
|
||||
# 1) Add the dumpnodes mod to a Minetest world with the chosen game and mods enabled.
|
||||
# 1) Add the dumpnodes mod to a Luanti world with the chosen game and mods enabled.
|
||||
# 2) Join ingame and run the /dumpnodes chat command.
|
||||
# 3) Run this script and poin it to the installation path of the game using -g,
|
||||
# the path(s) where mods are stored using -m and the nodes.txt in your world folder.
|
||||
# Example command line:
|
||||
# ./util/generate_colorstxt.py --game /usr/share/minetest/games/minetest_game \
|
||||
# ./util/generate_colorstxt.py --game /usr/share/luanti/games/minetest_game \
|
||||
# -m ~/.minetest/mods ~/.minetest/worlds/my_world/nodes.txt
|
||||
# 4) Copy the resulting colors.txt file to your world folder or to any other places
|
||||
# 4) Copy the resulting colors.txt file to your world folder or to any other place
|
||||
# and use it with minetestmapper's --colors option.
|
||||
###########
|
||||
###########
|
||||
|
Reference in New Issue
Block a user