[Mod] Forest

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

[Mod] Forest

by Gael de Sailly » Post

Hello !

Here is my first mod. I am 16, and I start programming. My mod, called Forest, adds numerous things, change the map generation, and especially adds 10 species of trees.

Image
Image
Image
Image

EDIT : Pictures

Download :
Download now (rename to "forest")
Browse the code

You can also download it from the Minetest Mod Database

If you find a bug, or if you have a suggestion, please contact me.
Last edited by Gael de Sailly on Tue Sep 23, 2014 16:46, edited 5 times in total.
Just realize how bored we would be if the world was perfect.

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Why do you pack so many big screenshots in the download?

What is the license of this mod?

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

by Gael de Sailly » Post

Oh, sorry !
I have corrected this problem.
Last edited by Gael de Sailly on Sat Jun 28, 2014 09:29, edited 1 time in total.
Just realize how bored we would be if the world was perfect.

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

by paramat » Post

interesting, i would like to see screenshots (i recommend imgur as a host).

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

The mapgen of this mod is rather slow. I think the error below has something to do with it:
10:46:52: ERROR[main]: set_mapgen_params(): flagmask field is deprecated, see lua_api.txt

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

by Gael de Sailly » Post

You have found this error in the debug.txt ? Strange, considering I have no error ! I have Minetest 0.4.9 on Ubuntu.
But, it is true, the map generation is slow. I know it is very faster to use the voxel manipulation, instead of minetest.set_node.
I make the base map generation by the voxel manip, but ores and tree are generated by minetest.set_node. I've tried to convert the code, but ores and trees uses minetest.find_nodes_in_area, and this function takes existing nodes, and not voxelmanip datas.
Just realize how bored we would be if the world was perfect.

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

by Gael de Sailly » Post

Here is the list of all the changes my mod allows :
  • Fir tree, grows at high altitude
  • Oak tree, make dense forests with beeches
  • Birch tree, grows in plains, in sparse stands
  • Beech tree, temperate forest, with oak tree
  • Cherry tree
  • Mirabele tree
  • Plum tree (these last 3 trees grows at the edge of the forest, usually with beech and birch trees.)
  • Fruitleaves : it is simply leaves which grow on orchard trees, when you dig it, it is turned into normal leaves and you get a fruit
  • Willow tree, near water, or in muddy places
  • Ginkgo tree, relatively rare, in plains near oak forests.
  • Lavender, bush with blue-green leaves, produces flowers, found in dry areas, in medium altitude.
  • Jungle tree (in Vanilla game, it exists but it is not active), very dense forests in hot and wet places.
  • Jungle grass (same thing)
  • Seasons (1 year correspond to 4 hours)
  • Clock
  • Volcano biomes (larges areas of stone, gravel and lava, relatively rare)
  • Mud (it flows like water but it is brown) Found at 2-3 nodes underground. In steep landscapes, we can sometimes find mud coolings.
  • Oil (can be found in deep underground, between 120 and 200 nodes under sea level). Note that it is very unhealthy to swim in the oil.
  • Ice have an other look, it is transparent. It appear in winter when the sea freezes. There is also mud ice.
  • Make marquetry houses ! The different species of trees gives wooden planks in different shades of brown.
  • It is possible to craft a sapling by 9 fruits.
  • The base map is completely changed : there are genuine valleys, high mountains (sometimes more than 140 nodes above sea level), and the gravel is more common than in the Vanilla Minetest Game.
  • Ores can be found in other minerals than stone : desert stone and gravel. Note that the gravel is a good source of iron.
I work on rivers, and on the seasonal disappearence and reappearence of flora, and on the trees falling. Come back regulary on this page, my mod is not finished.
How can I put images in the forum ?
Last edited by Gael de Sailly on Wed Mar 26, 2014 14:01, edited 1 time in total.
Just realize how bored we would be if the world was perfect.

User avatar
Krock
Developer
Posts: 4649
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

by Krock » Post

This mod is cool but as the other players already said, it's a (for a server) heavy mod.
Also, it cuts through desert, and there's suddenly a part of green (and even snowy dirt!) and everywhere around is sand.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

by Gael de Sailly » Post

The game begin in January, so it is normal that all the dirt is snowy. But it is a good idea to think about biome blend like in V6 map generation, and about the place of the desert. Now, it isn't placed in the warmer places.
Just realize how bored we would be if the world was perfect.

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

by Gael de Sailly » Post

Yes, but it is not very convenient. Anyway, it is not the more important in my mod.
Just realize how bored we would be if the world was perfect.

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

by Gael de Sailly » Post

I've tried to create buckets of mud and oil but it has not work. I've tried to use the function bucket.register_liquid but it is unknown. I think my mod is loaded before Bucket.
So I have questions :
  • What is the rule that define the order in which mods are loaded ?
  • Can I change this order ?
Just realize how bored we would be if the world was perfect.

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Post

Gael de Sailly wrote:
  • What is the rule that define the order in which mods are loaded ?
  • Can I change this order ?
Previously I believed that mods are loaded in alphabetical order.
I found that not being the truth, cause "moreores" loaded prior to "4items".

I think that the order is defined by findfirst and findnext functions that are (probably) used for getting the list of mods inside a game's dir. So here the time of creation of a folder with a mod kicks in. But that's only a speculation.

Nevertheless, there's oil mod which adds oil and oil buckets.

Can this be merged (made compatible) with ethereal? Biomes'o'Plenty would die of jealousy :)
Last edited by 4aiman on Tue Mar 11, 2014 17:14, edited 1 time in total.

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

by lightonflux » Post

Can you add a recognised license? Free and public doesn't help. And even if you mean PublicDomain,… well we in Germany don't have that legal concept.

The equivalent of Public Domain as a license is CC0. There is also the WTFPL which is very often used for MT mods. And then GPL and BSD.
And you should clear the situation about the third party code.

If you have questions, please ask. Don't have to be here. Open another thread, ask me via PM or IRC or how ever you want. :)

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

by paramat » Post

Gael de Sailly wrote:What is the rule that define the order in which mods are loaded ?
Can I change this order ?
The 'depends.txt' file speciies which mods are to be loaded before yours, add 'bucket' to this file on a new line under 'default'.
Last edited by paramat on Tue Mar 11, 2014 17:58, edited 1 time in total.

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

by Gael de Sailly » Post

lightonflux wrote:Can you add a recognised license? Free and public doesn't help.
I don't know what license can I write because I don't know what's what about law texts.
paramat wrote:The 'depends.txt' file speciies which mods are to be loaded before yours, add 'bucket' to this file on a new line under 'default'.
Thank you ! It works ! I've added the new version of my mod (1.1)
Just realize how bored we would be if the world was perfect.

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Post

Sorry for insistence, but could you make this terrain generator compatible with ethereal?
Maybe as a sky realm?

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

by Gael de Sailly » Post

What is Ethereal ? The question may be obvious, but I'm a beginner. I program mods in LUA, that's it ! I have already heard this word, and I've searched on the Web, but I've not understood wholly, and I do not see the link with Minetest.
Just realize how bored we would be if the world was perfect.

thetoon
Member
Posts: 106
Joined: Tue Dec 11, 2012 12:55

by thetoon » Post

Gael de Sailly wrote:What is Ethereal ?
It's a mod. You should take a slightly more thorough look at the forums, it could help.

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

by Sokomine » Post

This is a very intresting mod which adds quite a lot to the game. It deserves a longer description in the first posting and a few screenshots that show players what to expect :-) Else readers might just move on to the next topic and never realize what they miss.

Unfortionately, mapgen is extremly slow. There are alternatives to lua voxelmanipulator which may speed up tree generation considerably. One is L-System, which is used for example for the huge trees in the moretrees mod. It allows each tree to be individual. The other option are schematics. Those are used for example for the trees (and other structures) in the ethereal mod. Schematics have the advantage that they can be placed very fast and easy, especially with mapgen v7. See ethereal for that. Of course they also have a disadvantage: Tree shapes may be less diverse than with L-System. You may add a probability for a node to appear when the schematic is placed - but that's about it. Astonishingly enough, that is enough. The trees in ethereal look convincing, and the ones in RealTest do as well. RealTest does not use schematics, but the trees are always the same shape depending on species. And it does look well enough in the "world".

Another point are the wood colors. Yours look very realistic (perhaps the cherry wood ought to be darker?). I'd prefer a diffrent approach here - more like the one in RealTest: Distinctly diffrent colored wood to build with. In reality, we usually do not build with plain wood, but put glaze and paint on it which makes the wood look pretty diffrent. With diffrent tree species, the wood colors can be exaggerated so much that you don't need any extra glaze anymore and can build nice houses.

Turning the mod into a modpack would also be nice. That would allow to use the trees (you can never have enough trees in a world :-)) in combination with other mapgen mods and in other worlds.

And please add screenshots to your fist posting :-)
A list of my mods can be found here.

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

by paramat » Post

Interesting mod ... There is a way to generate trees fast within the lua voxel manipulator, without using L-systems or schematics, and with as much randomness and variation as you want, see my recent mapgens.

EDIT
Also, you'll notice a huge increase in mapgen speed when using the new perlin maps, which calculate perlin noise in bulk, creating 80x80 or 80x80x80 flat arrays of noise values to be used by the mapgen loop.
Last edited by paramat on Wed Mar 12, 2014 22:06, edited 1 time in total.

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Post

Here is ethereal.

Mapgen speed is good enough for a 2 cored Intel (R) Atom (1.6Ghz) CPU.
The only thing that slows down LVM created worlds is debug output.
With output enabled in, for example, paragen I have only 4 fps and rather slow results which are only 2 times faster than set_node().
But when I disable those, then I got 15-22 fps and a world generation as swift as the default mapgen (ie not the one from a mod).

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

by Gael de Sailly » Post

It's very silly but I'm only 16, so my parents impose me a time limit for using computer. I can't continue programming before Saturday.
Just realize how bored we would be if the world was perfect.

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

We still need screenshots...

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Post

Gael de Sailly wrote:It's very silly but I'm only 16, so my parents impose me a time limit for using computer. I can't continue programming before Saturday.
No need to worry, take your time :)
*cough* too bad the parents where I live fail to impose almost anything... *cough*

thetoon
Member
Posts: 106
Joined: Tue Dec 11, 2012 12:55

by thetoon » Post

4aiman wrote:*cough* too bad the parents where I live fail to impose almost anything... *cough*
Is it just me, or do you have something on your mind regarding your place, today? ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests