[mod] Crater MG [cratermg] [mapgen]

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

[mod] Crater MG [cratermg] [mapgen]

by Pyrollo » Post

I've always found there was missing a mapgen for mars / moon / space subgames.

This is an mapgen for planet surface with craters. It can use default nodes or be adapted to other materials.

Image

Dependancies: default

License: LGPL v2.1

Download or browse code


Don't use this mod on any server!

It is in a very experimental stage of development.

Test it

To test Crater MG:
  • create a new world
  • select minetest_gane game
  • choose single node map generator
  • enable cratermg mod
And explore lunar landcape !

Map sample
Spoiler
Image
Attachments
cratermap.png
cratermap.png (203.8 KiB) Viewed 1643 times
screenshot.jpg
screenshot.jpg (565.46 KiB) Viewed 1643 times
Last edited by Pyrollo on Tue Nov 05, 2019 08:05, edited 5 times in total.
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

User avatar
Lone_Wolf
Member
Posts: 2575
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Lone_Wolf » Post

This looks cool. Might make a fun survival subgame
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
DrFrankenstone
Member
Posts: 231
Joined: Tue May 24, 2016 05:36
GitHub: treer
Location: Australia
Contact:

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by DrFrankenstone » Post

A planet surface like this would also make nice levels in multi_map

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Pyrollo » Post

A sample map (1px = 1node):
Image
Attachments
crater.map.png
crater.map.png (276.95 KiB) Viewed 1643 times
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by ExeterDad » Post

That top view shot is very convincing! Nicely done!

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by paramat » Post

Looks good and clever work to have large multi-mapchunk craters complete on mapgen.

unknown
New member
Posts: 8
Joined: Thu Sep 20, 2018 14:59
GitHub: alex-unknown
In-game: unknown

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by unknown » Post

I thougt about programming a new space mod. This looks like a solid basis :) But I have no idea where to put the maps of different planets in the sky (or underground).

It could be funny working with spherical planets but it's not possible to implement aslant gravity on players without attaching every player to an entity :(

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Pyrollo » Post

I guess Minetest is not ready yet for spherical planets. Common way to have multiple worlds/planets is to stack them in thousands nodes height layers with unbreakable node between them (bedrocks).

For now cratermg is not mature enough to use as a mapgen. Many things are missing (caves and minerals at least). I'm working on a new version of crater generation. Once done, the main task will be to make cratermg an usable mapgen for space subgames.

I'm focussing on map computation but I lack time for creating proper nodes for dust, rock, sédiments and so on. If you work on that I'd be very pleased to use someone else's nodes.

There is already an interresting spacial subgame : Mars Survive. One of my plans is to integrate cratermg to this subgame.
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

User avatar
BuckarooBanzay
Member
Posts: 435
Joined: Tue Apr 24, 2018 05:58
GitHub: BuckarooBanzay
IRC: BuckarooBanzai
In-game: BuckarooBanzai

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by BuckarooBanzay » Post

I added some issues/comments to your repo: I think it would be cool if this mapgen can used as an addition to the current terrain just in a higher altitude...

I did the same with my mapgens but they are primitive compared to yours:
¯\_(ツ)_/¯ Not active here anymore, contact me on the minetest discord, irc, lemmy or github (for programming issues)

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Pyrollo » Post

BuckarooBanzay wrote:I did the same with my mapgens but they are primitive compared to yours:
Yes ! These are good examples; I was wondering how it worked for stacking worlds.

Some settings are existing in config.lua (surface height) since the last version. I'll improve that :)
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

User avatar
Lord_Vlad
Member
Posts: 112
Joined: Thu Jul 20, 2017 07:58

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Lord_Vlad » Post

Am I the only one feeling like we need some kind of craters in the normal mapgen ? Like if you where on earth and some meteor hit the place a long time ago.

User avatar
voxelproof
Member
Posts: 1087
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by voxelproof » Post

Lord_Vlad wrote:Am I the only one feeling like we need some kind of craters in the normal mapgen ? Like if you where on earth and some meteor hit the place a long time ago.
No, you're not :) But aside from old, eroded and rather scarce impact craters in earth-like environments it would be fantastic to apply this mod to generate large volcanoes. Needed an additional type of mountain generation (most probably in valleys mg) which would create large, roughly symmetric mountain made of obsidian and with a deep crater set on top of it (filled with lava-source nodes of course).
To miss the joy is to miss all. Robert Louis Stevenson

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Sokomine » Post

Especially the overview map looks very nice and convincing. Hopefully this mod will be worked on and included in one of the space games. The surface may not be particulary practical for building something, but ores could be accessible more easily this way. Surface-mining instead of digging down all that much.
A list of my mods can be found here.

Red_King_Cyclops
Member
Posts: 324
Joined: Sun Jun 16, 2019 20:17
Location: x=123, y=120, z=534

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Red_King_Cyclops » Post

This mod looks promising, but for me it doesn't work. I suspect it's because I'm using an outdated version, so what version was this mod intended for?
Last edited by Red_King_Cyclops on Thu Jun 20, 2019 11:51, edited 1 time in total.
Currently working on new mods.

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Pyrollo » Post

You should update your version. CraterMG is developped using MT5 but it could be compatible with older version (but no effort will be done to make it work).

Can you be more precise about what does not work ? It could help you and me.
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

Red_King_Cyclops
Member
Posts: 324
Joined: Sun Jun 16, 2019 20:17
Location: x=123, y=120, z=534

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Red_King_Cyclops » Post

Pyrollo wrote:You should update your version. CraterMG is developped using MT5 but it could be compatible with older version (but no effort will be done to make it work).

Can you be more precise about what does not work ? It could help you and me.
I was using version 0.4.16., since updating to 5.0 does not work for me. While testing a new world with this mod, the game would crash the moment I would hit the ground. For some reason the sky is pink.
Last edited by Red_King_Cyclops on Thu Jun 20, 2019 11:51, edited 1 time in total.
Currently working on new mods.

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Pyrollo » Post

Can you post your debug.txt corresponding to this crash ?

The pink sky (supposed to be orange) is provided by CraterMG mod ambiance setting.
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

Chem871
Member
Posts: 999
Joined: Sat Aug 19, 2017 21:49
GitHub: Chemguy99
In-game: Chem Nyx
Location: My Basement's Attic

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Chem871 » Post

Does this mod in any way affect the generation of caverns?
What is SCP-055?

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Pyrollo » Post

Yes it does. It is an entire mapgen.

Next step will be to integrate it with mods mixing mapgens at different levels.
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

Red_King_Cyclops
Member
Posts: 324
Joined: Sun Jun 16, 2019 20:17
Location: x=123, y=120, z=534

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Red_King_Cyclops » Post

Pyrollo wrote:Can you post your debug.txt corresponding to this crash ?

The pink sky (supposed to be orange) is provided by CraterMG mod ambiance setting.
The sky looks like a combination of pink and orange. The error message I received was several lines long, but this should be the most important part of the error message:

Code: Select all

attempt to call method 'get_2d_map_flat' (a nil value)
Last edited by Red_King_Cyclops on Thu Jun 20, 2019 11:51, edited 1 time in total.
Currently working on new mods.

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Pyrollo » Post

Thanks, this is a version issue. You have to update, it won't be fixed (no support of outdated versions can be expected).
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

CalebJ
Member
Posts: 407
Joined: Sat Dec 29, 2018 19:21
GitHub: KaylebJay
IRC: KaylebJay
In-game: CalebJ
Location: Tunnelers' Abyss

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by CalebJ » Post

+1 Very realistic, good work.

Red_King_Cyclops
Member
Posts: 324
Joined: Sun Jun 16, 2019 20:17
Location: x=123, y=120, z=534

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Red_King_Cyclops » Post

Pyrollo wrote:Thanks, this is a version issue. You have to update, it won't be fixed (no support of outdated versions can be expected).
I updated Minetest to the latest version. Now when I play the mod, I spawn in stone and I do not know why.
Currently working on new mods.

Red_King_Cyclops
Member
Posts: 324
Joined: Sun Jun 16, 2019 20:17
Location: x=123, y=120, z=534

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Red_King_Cyclops » Post

Red_King_Cyclops wrote:
Pyrollo wrote:Thanks, this is a version issue. You have to update, it won't be fixed (no support of outdated versions can be expected).
I updated Minetest to the latest version. Now when I play the mod, I spawn in stone and I do not know why.
There isn't a good reason why I am spawning in stone. The mapgen is singlenode, the version is 5.0.1, and the game is minetest_game. I use noclip and fly to try to escape the stone, but the stone seems to fill the entire map.
Currently working on new mods.

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: [mod] Crater MG [cratermg] [experimental] [mapgen]

by Pyrollo » Post

Red_King_Cyclops wrote:There isn't a good reason why I am spawning in stone. The mapgen is singlenode, the version is 5.0.1, and the game is minetest_game. I use noclip and fly to try to escape the stone, but the stone seems to fill the entire map.
Can you :
- post coordinates where you spawn;
- post the map seed;

Also, try to teleport at 0 500 0, you should be in air. If not, this may be a problem with installation.
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests