Page 1 of 1

[Mod] SimplySlopes [0.3] [simplyslopes]

PostPosted: Mon Nov 09, 2015 20:42
by Delaroyas
Description:
Adds 5 new craftable block types to minetest. Slopes and slope corners. Supports
multiple types of blocks from different mods.

Licence:LGPLv2.1+
Mod dependencies: default
Compatible mods: lapis, bakedclay, wool, mobs, castle, homedecor, moretrees, ethereal

Download from github
Source Code Zip File

The goal of this mod was to make my first mod, to get familiar with minetest programming.
There were similar (identical) blocks in moreblocks, but if you are looking for a light mod that just adds a few slopes, here you go:

The mod add a slope, 2 slope corners and 2 inside slope corners.
Image

Slopes supports many blocs form multiple mods (currently the same as stairs form tenplus1).
Image

As an example of the builds possible a small desert temple:
Image

Aslo a simple but cosy house. On the lawn we can see a grass slope and a wooden wall.
Image

Future development:
If you want me to add support for certain blocks from other mods, please specify block names and mod.
This mod is still in beta, it will change in the near future, they're are still a few lighting glitches. No backwards compatibility will be offered until version 0.5. I will not be responsible for any broken blocks in your worlds.
Code inspired by tenplus1 stairs, which was derived from minetest stairs by celeron55.

History:
V 0.1.0 : Initial release under Slopes
V 0.1.1 : Name changed to SimplySlopes
V 0.1.2 : Code clean-up, (no effect)
V 0.1.3 : Fixed lighting, and inventory display glitches.
V 0.1.4 : Code clean-up (may change some node names), tested some soft dependencies
V 0.2.0 : Added moretrees soft dependency. Naming conventions changed (reverse-compatible with previous version)
V 0.2.1 : Tested ethereal
V 0.2.2 : Cleanded up code for Xanadu (untested)
V 0.3 : Updated for Mintetest 0.4.14, added reverse recipes, plus a couple of blocks.

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Mon Nov 09, 2015 21:00
by jp
The /exact/ same thing already exists in More Blocks and Technic, how does this bring a benefit to the community ?

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Tue Nov 10, 2015 08:07
by Napiophelios
Your repo link is botched.

https://github.com/Delaroyas/slopes/tree/master

also you say no dependency in the above mod description
but it requires default mod.

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Tue Nov 10, 2015 12:05
by firefox
jp wrote:The /exact/ same thing already exists in More Blocks and Technic, how does this bring a benefit to the community ?


i guess it benefits from being smaller than moreblocks and technic, but then it should be labeled as such.
like "slopes from the moreblocks mod".

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Tue Nov 10, 2015 13:07
by Delaroyas
firefox wrote:
jp wrote:The /exact/ same thing already exists in More Blocks and Technic, how does this bring a benefit to the community ?


i guess it benefits from being smaller than moreblocks and technic, but then it should be labeled as such.
like "slopes from the moreblocks mod".


Actually, I'm kind of new to minetest, and i don't know most of the mods . I looked for it, but didn't find anything. The idea was to do my first mod, something simple. But I'll look into moreblocks. Thanks for the comments.

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Tue Nov 10, 2015 13:16
by Delaroyas
Napiophelios wrote:Your repo link is botched.

https://github.com/Delaroyas/slopes/tree/master

also you say no dependency in the above mod description
but it requires default mod.


Fixed the link, added a .zip link.
For the dependencies, when I wrote the code I assumed default mod was necessary for the game to run. I'll look into it and make the proper changes in the code if necessary. In the meantime, I'll just write "default" in the description I guess.

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Tue Nov 10, 2015 15:51
by lightonflux
Thats only 45° right?

If you don't want to change the scope of the mod, it might be wise to rename the mod to something like simpleslopes or slopes lite. So people immediately see that the mod is meant to be small and lightweight compared to the other slope implementations.

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Wed Nov 11, 2015 01:02
by Delaroyas
Delaroyas wrote:
firefox wrote:
jp wrote:The /exact/ same thing already exists in More Blocks and Technic, how does this bring a benefit to the community ?


i guess it benefits from being smaller than moreblocks and technic, but then it should be labeled as such.
like "slopes from the moreblocks mod".


Actually, I'm kind of new to minetest, and i don't know most of the mods . I looked for it, but didn't find anything. The idea was to do my first mod, something simple. But I'll look into moreblocks. Thanks for the comments.


Ok, seems I already played with moreblocks in carbone-ng. But the blocks are not available trough the unified inventory interface, seems like you have to use the circular saw to actually get those blocks, that's why I missed them.

On the other hand, I will need my grass slopes for my next goal, to actually generate smooth terrain. Unless that already exist also?

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Wed Nov 11, 2015 02:20
by paramat
Don't worry about duplicating slopes from other mods, this is welcome as a dedicated and lightweight mod.

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Wed Nov 11, 2015 10:17
by jp
Delaroyas wrote:On the other hand, I will need my grass slopes for my next goal, to actually generate smooth terrain. Unless that already exist also?

Yes, it does. In the Australopithecus subgame (see screenshots in there).

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Wed Nov 11, 2015 12:56
by Delaroyas
paramat wrote:Don't worry about duplicating slopes from other mods, this is welcome as a dedicated and lightweight mod.


So I will probably "rebrand" this as simplyslopes. Then.

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Wed Nov 11, 2015 12:57
by Delaroyas
jp wrote:
Delaroyas wrote:On the other hand, I will need my grass slopes for my next goal, to actually generate smooth terrain. Unless that already exist also?

Yes, it does. In the Australopithecus subgame (see screenshots in there).


Ok, this looks like what I was thinking of... I'll look into that project, thanks!

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Wed Nov 11, 2015 18:35
by BobbyBonsaimind
Delaroyas wrote:Ok, this looks like what I was thinking of... I'll look into that project, thanks!


The code that powers the ramps/slopes can be found in worldgen-utils mod. Though, that code is neither documented nor easy to read, and I have started thinking about a complete rewrite into a more generic version some days ago (when I implemented corners, which would require quite the same logic). If you have any input in that matter, shoot away, I'm happy for any ideas (my basic idea is to provide the same code as found in RampPlacer, but with the possibility to register ramps/corners in it).

As usage example you can look into australopithecus/mods/mapgen/crust/bake.lua, right at the bottom is a usage example of how to use the code which you can find in worldgen-utils.

Also I very much like your idea of the corner-ramp which fits with the corners (ahm, your first screenshot, the bottom right one). That didn't occur to me by now.

If you have any questions, just ask.

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Wed Nov 11, 2015 23:40
by Naj
About "default" dependency

It is some kind of important to put "default" in depends.txt as it forces minetest to load default before the mod. Usually default is loaded first as it is in minetest_game. But if you use a custom game including default and some more mods, loading order may be wrong.

Re: [Mod] Slopes [0.1] [slopes]

PostPosted: Thu Nov 12, 2015 02:06
by Delaroyas
BobbyBonsaimind wrote:
Delaroyas wrote:Ok, this looks like what I was thinking of... I'll look into that project, thanks!


The code that powers the ramps/slopes can be found in worldgen-utils mod. Though, that code is neither documented nor easy to read, and I have started thinking about a complete rewrite into a more generic version some days ago (when I implemented corners, which would require quite the same logic). If you have any input in that matter, shoot away, I'm happy for any ideas (my basic idea is to provide the same code as found in RampPlacer, but with the possibility to register ramps/corners in it).

As usage example you can look into australopithecus/mods/mapgen/crust/bake.lua, right at the bottom is a usage example of how to use the code which you can find in worldgen-utils.

Also I very much like your idea of the corner-ramp which fits with the corners (ahm, your first screenshot, the bottom right one). That didn't occur to me by now.

If you have any questions, just ask.



Thanks for the comment, it's appreciated. And the info on your mod! I'll put comments on your mod's tread.
It's funny, you made an incredibly sophisticated mapgen mod, but very much like by my model, which is basically 4 triangles!

Re: [Mod] SimplySlopes [0.1.3] [simplyslopes]

PostPosted: Mon Nov 16, 2015 01:02
by Delaroyas
Made a few updates. Updated compatible mods.
Fixed some lighting glitches and some inventory display glitches.

Still a few compatible mods to test. Was not able to make homedecor or castle work. Did test not ethereal yet... Still on my todo list. There is a reference to a "Xanadu" mod in there, but did not find a Xanadu mod anywhere. There is of course the Xanadu server but, mod?

Re: [Mod] SimplySlopes [0.2] [simplyslopes]

PostPosted: Mon Nov 23, 2015 02:00
by Delaroyas
Updated to 0.2.0
Added blocks from moretrees (soft dependency).

Naming convension changed (reverse-compatible with previous version)

Re: [Mod] SimplySlopes [0.2] [simplyslopes]

PostPosted: Sun Nov 29, 2015 20:12
by afflatus
I have integrated simplyslopes into Grail Test. I have been doing a bit of rock carving. My mapgen and textures could be improved but simplyslopes is doing its job well.

Image

Image

Image

Thank you! This implementation works really well in my sub-game.

Re: [Mod] SimplySlopes [0.2.2] [simplyslopes]

PostPosted: Mon Nov 30, 2015 23:05
by Delaroyas
Nice to see my mod is being used. Nice builds.

Re: [Mod] SimplySlopes [0.3] [simplyslopes]

PostPosted: Sun Oct 09, 2016 21:16
by Delaroyas
version 0.3 is out.

Reverse recipes added (to get back the original material).

fixed for minetest 0.4.14

Re: [Mod] SimplySlopes [0.3] [simplyslopes]

PostPosted: Tue Oct 11, 2016 17:09
by KCoombes
+1

Please add support for baked_clay.

Re: [Mod] SimplySlopes [0.3] [simplyslopes]

PostPosted: Wed Oct 12, 2016 20:52
by azekill_DIABLO
+1 this is very nice!

Re: [Mod] SimplySlopes [0.3] [simplyslopes]

PostPosted: Wed Oct 19, 2016 00:30
by Delaroyas
KCoombes wrote:+1

Please add support for baked_clay.


Is there a difference between baked_clay and bakedclay, It already supports tenplus1 bakedclay:
viewtopic.php?id=8890#p134783

Re: [Mod] SimplySlopes [0.3] [simplyslopes]

PostPosted: Mon Oct 24, 2016 19:55
by KCoombes
Delaroyas wrote:
KCoombes wrote:+1

Please add support for baked_clay.


Is there a difference between baked_clay and bakedclay, It already supports tenplus1 bakedclay:
viewtopic.php?id=8890#p134783


Nope, that's the one I meant :)

Re: [Mod] SimplySlopes [0.3] [simplyslopes]

PostPosted: Tue Oct 25, 2016 13:33
by Andrey01
afflatus wrote:I have integrated simplyslopes into Grail Test. I have been doing a bit of rock carving. My mapgen and textures could be improved but simplyslopes is doing its job well.

Image

Image

Image

Thank you! This implementation works really well in my sub-game.

You have very beautiful screenshots, Afflatus

Re: [Mod] SimplySlopes [0.3] [simplyslopes]

PostPosted: Wed Jan 18, 2017 02:37
by afflatus
Thanks Andrey, this is the texture pack I designed for Grail Test. I have taken a break from developing and running a server.

Thanks for the reverse crafting recipes Delaroyas!