[Mod] More Commands! [1.0.11] [morecommands]

User avatar
bigfoot
Member
Posts: 203
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot
Location: Somewhere between polar bears and penguins.

Re: [Mod] More Commands! [1.0.10] [morecommands]

by bigfoot » Post

Does anybody have any suggestions?
*bump*

User avatar
bigfoot
Member
Posts: 203
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot
Location: Somewhere between polar bears and penguins.

Re: [Mod] More Commands! [1.0.11] [morecommands]

by bigfoot » Post

Updated to version 1.0.11.

hajo
Member
Posts: 602
Joined: Thu Oct 13, 2016 10:45
Location: DE
Contact:

Re: [Mod] More Commands! [1.0.10] [morecommands]

by hajo » Post

bigfoot547 wrote:Does anybody have any suggestions?
When I want a worldmap, almost everytime I find some unexplored gaps,
or an 'uneven' border. So, I have to fly/teleport there, then make a new map.

How about some commands, like
* mapgap 0,0 - find nearest unexplored mapchunk (spiraling outward from given coordinate)
* gapfill - call mapgenerator to fill in that chunk
* mapfill 500,500 - call mapgenerator to fill in the whole map to the specified size

This probably only needs to work for a layer of +/-128 to get a nice surface-map.

Also, some commands to find map-features:
* mapfind 0,0, flat50x50 - starting at center, spiral outward to find 'flat' spots
of at least size 50x50, eg. to place a village

Possible features of interest:
* flat - terrain with max. difference in height less then 5
* cliff - terrain with height-difference > 10 on a horizontal distance of 3
* mountain - terrain-height > 60
* mountainXL - terrain-height > 100
* hill - terrain higher than 20, but lower then 60
* float - floating island
* floatland - floating island at y>1280
* water, desert, sandstone, snow, ice ... - looking for types of stones, or biomes
* waterfall
* river - with river-water
* valley
* beach - water bordered by sand
* lake - enclosed water / max. depth 10
* ocean - depth > 10
* cave - space underground
* hole - opening at the surface to a cave
* dungeon - space with mossy cobble underground
* lava
* pinetree, jungletree, acadiatree, papyrus, etc. - to find biomes by plant-type
* flowers - where is the nearest red flower?
* chest, door, torch, bed - find players place

Perhaps with an extra option to call the mapgenerator
to make more terrain until such a spot is found (or some limit is reached).

Also:
* orecount 0,0,0 coal - count number of nodes with coal-ore around position,
to get an idea how suitable a spot is for starting players
* orestat - same, but look at all types of ore
Maybe name it 'nodestat', to also look at trees, clay, etc.

User avatar
Mehdi35
New member
Posts: 9
Joined: Mon Jan 30, 2017 16:04
GitHub: Stussy
IRC: ElMehdiBen
In-game: ElMehdiBen
Location: Mars

Re: [Mod] More Commands! [1.0.11] [morecommands]

by Mehdi35 » Post

Great!!!!
Like You Want My Signature :3
My Uploaded SKins:http://minetest.fensta.bplaced.net/#author=ElMehdiBen

User avatar
bigfoot
Member
Posts: 203
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot
Location: Somewhere between polar bears and penguins.

Re: [Mod] More Commands! [1.0.10] [morecommands]

by bigfoot » Post

hajo wrote:
bigfoot547 wrote:Does anybody have any suggestions?
When I want a worldmap, almost everytime I find some unexplored gaps,
or an 'uneven' border. So, I have to fly/teleport there, then make a new map.

How about some commands, like
* mapgap 0,0 - find nearest unexplored mapchunk (spiraling outward from given coordinate)
* gapfill - call mapgenerator to fill in that chunk
* mapfill 500,500 - call mapgenerator to fill in the whole map to the specified size

This probably only needs to work for a layer of +/-128 to get a nice surface-map.

Also, some commands to find map-features:
* mapfind 0,0, flat50x50 - starting at center, spiral outward to find 'flat' spots
of at least size 50x50, eg. to place a village

Possible features of interest:
* flat - terrain with max. difference in height less then 5
* cliff - terrain with height-difference > 10 on a horizontal distance of 3
* mountain - terrain-height > 60
* mountainXL - terrain-height > 100
* hill - terrain higher than 20, but lower then 60
* float - floating island
* floatland - floating island at y>1280
* water, desert, sandstone, snow, ice ... - looking for types of stones, or biomes
* waterfall
* river - with river-water
* valley
* beach - water bordered by sand
* lake - enclosed water / max. depth 10
* ocean - depth > 10
* cave - space underground
* hole - opening at the surface to a cave
* dungeon - space with mossy cobble underground
* lava
* pinetree, jungletree, acadiatree, papyrus, etc. - to find biomes by plant-type
* flowers - where is the nearest red flower?
* chest, door, torch, bed - find players place

Perhaps with an extra option to call the mapgenerator
to make more terrain until such a spot is found (or some limit is reached).

Also:
* orecount 0,0,0 coal - count number of nodes with coal-ore around position,
to get an idea how suitable a spot is for starting players
* orestat - same, but look at all types of ore
Maybe name it 'nodestat', to also look at trees, clay, etc.
I think this would be a great idea, but I have a very limited knowledge when it comes to map generation and things of the sort.
Mehdi35 wrote: Great!!!!
Thank you! I am glad you like it.

User avatar
Mehdi35
New member
Posts: 9
Joined: Mon Jan 30, 2017 16:04
GitHub: Stussy
IRC: ElMehdiBen
In-game: ElMehdiBen
Location: Mars

Re: [Mod] More Commands! [1.0.11] [morecommands]

by Mehdi35 » Post

No Problem ! =)
Like You Want My Signature :3
My Uploaded SKins:http://minetest.fensta.bplaced.net/#author=ElMehdiBen

User avatar
orwell
Member
Posts: 830
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
IRC: orwell96_mt
In-game: orwell
Location: Raxacoricofallapatorius

Re: [Mod] More Commands! [1.0.11] [morecommands]

by orwell » Post

You don't actually need to know about map generation. You just need to use minetest.emerge_area()
(see API)
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

hajo
Member
Posts: 602
Joined: Thu Oct 13, 2016 10:45
Location: DE
Contact:

Re: [Mod] More Commands! [1.0.10] [morecommands]

by hajo » Post

hajo wrote:* mapgap 0,0 - find nearest unexplored mapchunk (spiraling outward from given coordinate)
If you need an idea about that spiral, have a look at rosettacode.org.

User avatar
Web_44
Member
Posts: 17
Joined: Sat Feb 25, 2017 16:48
In-game: Web_44
Location: Germany
Contact:

Re: [Mod] More Commands! [1.0.11] [morecommands]

by Web_44 » Post

I am currently reading this. It seems like a very good mod. I will try to use this mod on my server, when server works again. Some Commands of your mod are already there because of other mods, but that wont be a problem :)
Last edited by Web_44 on Sun Mar 19, 2017 08:22, edited 1 time in total.
Admin on:
my-web.xyz Public Czech Server (by joint007)

Owner of:
Survivors Build (offline)
German Survival (WIP)

If you are German you can write me in german because im german too

User avatar
Web_44
Member
Posts: 17
Joined: Sat Feb 25, 2017 16:48
In-game: Web_44
Location: Germany
Contact:

Re: [Mod] More Commands! [1.0.10] [morecommands]

by Web_44 » Post

Ok. I installed the Mod, renamed it to "morecommands" and put it into Mods folder. But i got this Error:

Code: Select all

Failed to load and run script from C:\Users\Computer\Downloads\minetest-0.4.15-win64\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:
...\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:1134: attempt to call field 'override_chatcommand' (a nil value)
stack traceback:
...\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:1134: in main chunk
Siehe debug.txt für Details.
Admin on:
my-web.xyz Public Czech Server (by joint007)

Owner of:
Survivors Build (offline)
German Survival (WIP)

If you are German you can write me in german because im german too

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] More Commands! [1.0.11] [morecommands]

by azekill_DIABLO » Post

good job this mod is useful!

User avatar
bigfoot
Member
Posts: 203
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot
Location: Somewhere between polar bears and penguins.

Re: [Mod] More Commands! [1.0.10] [morecommands]

by bigfoot » Post

Web_44 wrote:Ok. I installed the Mod, renamed it to "morecommands" and put it into Mods folder. But i got this Error:

Code: Select all

Failed to load and run script from C:\Users\Computer\Downloads\minetest-0.4.15-win64\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:
...\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:1134: attempt to call field 'override_chatcommand' (a nil value)
stack traceback:
...\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:1134: in main chunk
Siehe debug.txt für Details.
You need minetest after commit efa54f9c460239c23a2014076764d6c6830589e6.
Basically, just go to master.

LuLa
New member
Posts: 8
Joined: Thu Nov 17, 2016 19:54
GitHub: Tresonic
In-game: Tresonic[LuLa]
Location: Germany

Re: [Mod] More Commands! [1.0.11] [morecommands]

by LuLa » Post

The mod doesn´t work for me, too:

Code: Select all

2017-04-29 18:23:37: ERROR[Main]: ModError: Failed to load and run script from C:\Users\x\Documents\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:
2017-04-29 18:23:37: ERROR[Main]: ...\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:1134: attempt to call field 'override_chatcommand' (a nil value)
2017-04-29 18:23:37: ERROR[Main]: stack traceback:
2017-04-29 18:23:37: ERROR[Main]: 	...\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:1134: in main chunk
2017-04-29 18:23:37: ERROR[Main]: Siehe debug.txt für Details.
Or is it just because I´m using 0.4.15?
Last edited by LuLa on Mon May 01, 2017 06:56, edited 1 time in total.
Wieso einfach, wenn's auch kompliziert geht?

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] More Commands! [1.0.11] [morecommands]

by azekill_DIABLO » Post

hum... never saw such functions...

User avatar
bigfoot
Member
Posts: 203
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot
Location: Somewhere between polar bears and penguins.

Re: [Mod] More Commands! [1.0.11] [morecommands]

by bigfoot » Post

LuLa, You need to update your minetest.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests