Re: [Mod] Tectonic Map Generator 0.2 [mg_tectonic]
Posted: Wed Jul 03, 2019 15:52
Really nice mapgen. Here's a screenshot:
The official Minetest discussion board
https://forum.minetest.net/
Just epic.Dokimi wrote:
You have to set kelp height in the 4 high bytes of param2 ( param2 = 16*height )Dokimi wrote:A few comments have gone missing here after forum crash:
...
...Main point though... 0.2 is very close to release!!! (I think I've dealt with the worst of the bugs... this map is very hard to test though... so big!)
Only one thing is really stopping me from releasing 0.2 at the moment: a bug with the new kelp blocks.
The kelp is there... but the kelp is not there!
(In contrast the new rooted corals work fine)
Anyone know what could be causing this??
Code: Select all
vm:get_param2_data(data2)
Code: Select all
data[vi] = MISCID.c_kelpsand
data2[vi] = math.random(4, 6) * 16
Code: Select all
register_decoration({name = "default:kelp" ....
Code: Select all
minetest.register_node("default:sand_with_kelp", {
...
paramtype2 = "leveled"
...
on_place =
local height = math.random(4, 6)
...
minetest.set_node(pos, {name = "default:sand_with_kelp", param2 = height * 16})
Code: Select all
minetest.register_node("test:path", {
description = "Sendero",
drawtype = "signlike",
tiles = {"test_path.png"},
inventory_image = "test_path.png",
wield_image = "test_path.png",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
groups = {choppy = 1 }, --?
legacy_wallmounted = true, --?
sounds = default.node_sound_dirt_defaults(), --node_sound_gravel_defaults()?
})
Code: Select all
--SINGLENODE
minetest.set_mapgen_params({mgname = "singlenode", flags = "nolight"})
--Despite being the up to date method this doesn't work
--minetest.set_mapgen_setting("mgname", "singlenode", true)
--minetest.set_mapgen_setting("flags", "nolight", true)
Code: Select all
minetest.register_on_mapgen_init(function(mapgen_params)
minetest.set_mapgen_setting("mg_name", "singlenode", true)
minetest.set_mapgen_setting("mg_flags", "nolight", true)
end)
Could you explain the problem with noise?'we will ignore noise (thorn0906's solution crashes when actually used'
Wow. Exciting stuff.Odracir wrote:
Some enhancements:...
...Have a bunch of enhancements in mind.
Hooray!Odracir wrote: * Bye bye 2600 m parachute insertion - Fast new player spawn.
That will be very useful for development.Odracir wrote: * Added chat command /xteleport x,z
Not sure what you've done, but my attempts to do this caused the following bug:Odracir wrote: * Exposed heat and humidity to other mods.
I make no claim to understand it either! It is useful for keeping a record or all changes + back ups of old versions though.Odracir wrote: I know I should do a pull request to GitHub, but dont have git installed, and dont know how it works.
See the graph in the main post to get a feel for heights. (This is based on doing all the calculations (waves etc) in a spreadsheet - essential if you ever feel like changing the landscape shape).Odracir wrote: YMAX = 2600 Enough for highest mountains?
YMIN = -48 default is OK ?
You are probably right.Odracir wrote: * Line 2011 - Commented out a void = false in the second loop
causes
WARNING[Emerge-0]: Assignment to undeclared global "void" inside a function at ...
and seems unused here ?
This will be me copy pasting something from somewhere else! Not sure if it is still needed here.Odracir wrote: ... I dont understand the return nil goal....
if not minetest.registered_nodes[name] then
return nil
...
Thorn done something (I've forgotten what) to save the noise values so the climate function could be called by other mods. When I actually tried using that it failed (not sure why).Odracir wrote: * In mgtec.climateCould you explain the problem with noise?'we will ignore noise (thorn0906's solution crashes when actually used'
Only CPU use, or something more, increasing RAM consumption, crash ... ?
What is 'thorn0906's solution' ?
(I am noises noob)
[/list]
Much needed!Odracir wrote: The main thing, squeeze on_generated speed..
Code: Select all
2019-11-18 13:29:27: WARNING[Main]: Undeclared global variable "lnodes_fr" accessed at ...i/Giochi/minetest/bin/../mods/mg_tectonic/plants.lua:690
2019-11-18 13:29:27: [Main]: on_mapgen_init
2019-11-18 13:29:27: ERROR[Main]: ModError: Failed to load and run script from /home/utente/Programmi/Giochi/minetest/bin/../mods/mg_tectonic/init.lua:
2019-11-18 13:29:27: ERROR[Main]: ...mmi/Giochi/minetest/bin/../mods/mg_tectonic/init.lua:648: bad argument #2 to 'random' (interval is empty)
2019-11-18 13:29:27: ERROR[Main]: stack traceback:
2019-11-18 13:29:27: ERROR[Main]: [C]: in function 'random'
2019-11-18 13:29:27: ERROR[Main]: ...mmi/Giochi/minetest/bin/../mods/mg_tectonic/init.lua:648: in function 'func'
2019-11-18 13:29:27: ERROR[Main]: ...mmi/Giochi/minetest/bin/../builtin/game/register.lua:620: in function 'register_on_mapgen_init'
2019-11-18 13:29:27: ERROR[Main]: ...mmi/Giochi/minetest/bin/../mods/mg_tectonic/init.lua:623: in main chunk
2019-11-18 13:29:27: ERROR[Main]: Controlla debug.txt per i dettagli.
2019-11-18 13:29:27: ACTION[Main]: Server: Shutting down
Code: Select all
2019-11-18 13:39:07: WARNING[Main]: Undeclared global variable "lnodes_fr" accessed at ...i/Giochi/minetest/bin/../mods/mg_tectonic/plants.lua:690
2019-11-18 13:39:07: ERROR[Main]: ModError: Failed to load and run script from /home/utente/Programmi/Giochi/minetest/bin/../mods/mg_tectonic/init.lua:
2019-11-18 13:39:07: ERROR[Main]: ...mmi/Giochi/minetest/bin/../mods/mg_tectonic/init.lua:596: bad argument #2 to 'random' (interval is empty)
2019-11-18 13:39:07: ERROR[Main]: stack traceback:
2019-11-18 13:39:07: ERROR[Main]: [C]: in function 'random'
2019-11-18 13:39:07: ERROR[Main]: ...mmi/Giochi/minetest/bin/../mods/mg_tectonic/init.lua:596: in function 'func'
2019-11-18 13:39:07: ERROR[Main]: ...mmi/Giochi/minetest/bin/../builtin/game/register.lua:620: in function 'register_on_mapgen_init'
2019-11-18 13:39:07: ERROR[Main]: ...mmi/Giochi/minetest/bin/../mods/mg_tectonic/init.lua:574: in main chunk
2019-11-18 13:39:07: ERROR[Main]: Controlla debug.txt per i dettagli.
2019-11-18 13:39:07: ACTION[Main]: Server: Shutting down
Looking at the ffending code...bad argument #2 to 'random' (interval is empty):
This means that you're 2nd argument provided is smaller than the first, to fix it, you would have to give it an integer greater than or equal to the first
Minetest uses Lua 5.1 , no first option.There are a few ways to address this problem:
* Upgrade to Lua 5.2. That one has since fixed this issue by treating the input arguments as lua_Number instead.
* Switch to LuaJIT which does not have this integer overflow issue.
* Patch the Lua 5.1 source yourself with the fix and recompile.
* Modify your random range so it does not overflow
Code: Select all
WARNING[Main]: Undeclared global variable "lnodes_fr" accessed at ...1.0-win64\bin\..\mods\mg_tectonic-development/plants.lua:690
WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead (at ...5.1.0-win64\bin\..\mods\mg_tectonic-development\init.lua:623)
It is.Diamond knight wrote:Is this still laggy as all heck like it was back when I stopped using it half a yearish ago?