[Mod] Planetoids [planetoids]

User avatar
qwertymine3
Member
Posts: 202
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

[Mod] Planetoids [planetoids]

by qwertymine3 » Post

Planetoids map generator for minetest

Image
Image
+ Spoiler
Use
Create new single node world and add the planetoids mod before loading

Config
More planet types can be added in settings.lua
Planet size and density can also be controlled here
There are also geometry settings (see spoiler)

Downloads
Download - rename to planetoids
https://github.com/Qwertymine/Planetoid ... master.zip
Github Page
https://github.com/Qwertymine/Planetoids

Depends
Default
Flowers
If nodes from other mods are added, these must be added to the depends file

License
This is licensed under the MIT license
+ Spoiler
Last edited by qwertymine3 on Sun Nov 29, 2015 08:04, edited 3 times in total.
Avatar by :devnko-ennekappao:

User avatar
mahmutelmas06
Member
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

Re: [Mod] Planetoids [planetoids]

by mahmutelmas06 » Post

Could you check this topic
viewtopic.php?f=49&t=13619
My Mods:

Beverage

User avatar
lightonflux
Member
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof
Location: Germany

Re: [Mod] Planetoids [planetoids]

by lightonflux » Post

With low gravity and jet pack this seems like a lot of fun.

User avatar
prof-turbo
Member
Posts: 518
Joined: Mon May 07, 2012 17:02
Location: MinetestForFun or Teeworlds master server list

Re: [Mod] Planetoids [planetoids]

by prof-turbo » Post

It doesn't need worldedit ?
Nice :D

User avatar
qwertymine3
Member
Posts: 202
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

Re: [Mod] Planetoids [planetoids]

by qwertymine3 » Post

prof-turbo wrote:It doesn't need worldedit ?
Nope, this mod is completely stand-alone. :D

It only depends on the mods containing the nodes that the planetoids generate from. By default this is only the default mod.
Avatar by :devnko-ennekappao:

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

Re: [Mod] Planetoids [planetoids]

by paramat » Post

This looks cute.

User avatar
rubberduck
Member
Posts: 505
Joined: Thu Feb 27, 2014 19:19
IRC: rbduck
In-game: rubberduck
Location: error 404 - location not found
Contact:

Re: [Mod] Planetoids [planetoids]

by rubberduck » Post

and very very funny too.
My game (not minetest): http://forum.freegamedev.net/viewtopic.php?f=22&t=6800

my mods: gold_and_gem, meseconductors

a penguin throws an apple through a window

sometimes i change my "forum location" via user control panel

User avatar
qwertymine3
Member
Posts: 202
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

Re: [Mod] Planetoids [planetoids]

by qwertymine3 » Post

Update!

Added some more planet-types
Added some basic surface population for non-solid nodes - e.g. flowers
Added new dependency flowers

P.S. no-one seems to have noticed the extra geometry settings, guess I'll have to post screenshots :(
Avatar by :devnko-ennekappao:

User avatar
rubenwardy
Moderator
Posts: 6080
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: [Mod] Planetoids [planetoids]

by rubenwardy » Post

This looks cool.

User avatar
benrob0329
Member
Posts: 1321
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Mod] Planetoids [planetoids]

by benrob0329 » Post

This would make a neat multiplayer server!
Social: YouTube Peertube Matrix Room: #minetest:matrix.org | Games: The Infinite IKEA

User avatar
prof-turbo
Member
Posts: 518
Joined: Mon May 07, 2012 17:02
Location: MinetestForFun or Teeworlds master server list

Re: [Mod] Planetoids [planetoids]

by prof-turbo » Post

Is there a parameter to increase or dicrease space between planets?
I think this wold make a cool kind of skyblock server :D

Xanthin
Member
Posts: 126
Joined: Fri Mar 07, 2014 14:05
GitHub: Xanthin
IRC: Xanthin
In-game: Xanthin
Location: Germany

Re: [Mod] Planetoids [planetoids]

by Xanthin » Post

Oh, I have to try that as soon as possible. With the Dragon Hunters world back in my mind. :)

User avatar
qwertymine3
Member
Posts: 202
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

Re: [Mod] Planetoids [planetoids]

by qwertymine3 » Post

prof-turbo wrote:Is there a parameter to increase or dicrease space between planets?
I think this wold make a cool kind of skyblock server :D
Increase the value of planet_size.scale in settings.lua - default is 3
+ Spoiler
Avatar by :devnko-ennekappao:

User avatar
qwertymine3
Member
Posts: 202
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

Re: [Mod] Planetoids [planetoids]

by qwertymine3 » Post

Update!

Re-organised settings.lua into 3 files.
settings.lua for main settings
planets.lua for planet definitions
populator.lua for basic populator definitions
Avatar by :devnko-ennekappao:

User avatar
Hybrid Dog
Member
Posts: 2747
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: [Mod] Planetoids [planetoids]

by Hybrid Dog » Post

nice, you could add perlin noise planets (see https://github.com/HybridDog/vector_ext ... #L406-L488), the only problem is that it may take too much memory because all the values need to be stored because minetest's perlin noise is a bit buggy (values exceeding [-1;1])
you would also reduce the maximum planet's radians at the mapchunk corners to 16

maybe you can help me with a mistake l don't find
l tried to make a "net noise", but somehow the points outside the chunk corners differ in each chunk
https://github.com/HybridDog/miscellane ... _noise.lua

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
qwertymine3
Member
Posts: 202
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

Re: [Mod] Planetoids [planetoids]

by qwertymine3 » Post

Hybrid Dog wrote:nice, you could add perlin noise planets (see https://github.com/HybridDog/vector_ext ... #L406-L488), the only problem is that it may take too much memory because all the values need to be stored because minetest's perlin noise is a bit buggy (values exceeding [-1;1])
you would also reduce the maximum planet's radians at the mapchunk corners to 16
I'm not sure if I will do that in this mod - maybe in a separate but similar mod.
It shouldn't use much more memory than a single perlin mapgen though.

Can you explain why I would have to limit the radius to 16 though?
Avatar by :devnko-ennekappao:

User avatar
Hybrid Dog
Member
Posts: 2747
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: [Mod] Planetoids [planetoids]

by Hybrid Dog » Post

If you use that code, perlin noise values are calculated for a sphere, then those values get normalized. Normalization only works if every value is known. You can of course use bigger radians at chunk corners, but the code l linked to doesn't support it without editing it because that currently uses math.random.

You add it and make it configurable with a setting.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
qwertymine3
Member
Posts: 202
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

Re: [Mod] Planetoids [planetoids]

by qwertymine3 » Post

Hybrid Dog wrote: maybe you can help me with a mistake l don't find
l tried to make a "net noise", but somehow the points outside the chunk corners differ in each chunk
https://github.com/HybridDog/miscellane ... _noise.lua
The only thing (other than the undefined output order from using pairs - but that shouldn't matter), that I could see that could change with the chunk is the seed, if you've accidentally used the chunk seed rather than the map seed.

You're also not guaranteed to generate any points below minp, but IDK if that would affect the test you were doing
Last edited by qwertymine3 on Sun Nov 22, 2015 19:16, edited 2 times in total.
Avatar by :devnko-ennekappao:

User avatar
qwertymine3
Member
Posts: 202
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

Re: [Mod] Planetoids [planetoids]

by qwertymine3 » Post

Hotfix!

Fixed occasional glitches/collisions in mapgen at sector boundries
Avatar by :devnko-ennekappao:

User avatar
kaadmy
Member
Posts: 706
Joined: Thu Aug 27, 2015 23:07
GitHub: kaadmy
IRC: KaadmY
In-game: KaadmY kaadmy NeD

Re: [Mod] Planetoids [planetoids]

by kaadmy » Post

This might be very interesting in multiplayer with the planetoids close enough together so you can jump between them, and low gravity ;)
Never paint white stripes on roads near Zebra crossings.

Pixture

User avatar
Hybrid Dog
Member
Posts: 2747
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: [Mod] Planetoids [planetoids]

by Hybrid Dog » Post

qwertymine3 wrote:The only thing (other than the undefined output order from using pairs - but that shouldn't matter), that I could see that could change with the chunk is the seed, if you've accidentally used the chunk seed rather than the map seed.
thanks a lot, the lines seem to at least direct to the joints everywhere
to make it work right l guess l also need to add that number to a specific s…
https://github.com/HybridDog/small_path ... b68840b3de
Image
l thought about using the "net" as frame for buildings, which become generated there.
l would need to add a new sort of building because l used the hut ones already as swamp huts.
Attachments
screenshot_20151122_195951.png
(854.45 KiB) Not downloaded yet

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Planetoids [planetoids]

by Don » Post

This looks awesome. Great work!
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
qwertymine3
Member
Posts: 202
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

Re: [Mod] Planetoids [planetoids]

by qwertymine3 » Post

Update!

Added Perlin noise planetoid generation mode.
Added documentation to settings.
Avatar by :devnko-ennekappao:

User avatar
cd2
Member
Posts: 562
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
In-game: cd cd2
Location: Linux
Contact:

Re: [Mod] Planetoids [planetoids]

by cd2 » Post

Wow!
That looks really cool!

User avatar
qwertymine3
Member
Posts: 202
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

Re: [Mod] Planetoids [planetoids]

by qwertymine3 » Post

Update!

Nothing much, just added a mod.conf and made the mapgen automatically set the mapgen to singlenode.
Not yet added the new minetest 0.4.15 content, but will do at some point.
Avatar by :devnko-ennekappao:

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests