Ferk wrote:There's a get_param2_data() and set_param2_data() function. Just like you do alread with get_data() and set_data() for the content id of the node.
Thanks guys! That will solve the problem. I'll just take a while to 'port' the stairs from schematic to code.
kaadmy wrote:Hmm, maybe a simpler implementation of this dungeon generator might be fit enough for use in Pixture?
I see some reasons why it might not work so well. One is that any wall, floor or ceiling that you destroy in this dungeon, you will be in a new room in the dungeon, because there is no empty space. There's always only a block of wall between one room and the other. This is bad for a game with mining, because exploration may be not so fun.. and it's also bad for non-infinite dungeons because it's hard to find a place to simply stop generating. And also my dungeon is too square.. I think a game like Pixture needs something more polished. I would take a look at 2 things: one is checking the dungeons that generate in minetest_game. I think it may be possible to get something more interesting by modifying that code (I never checked the code myself, actually). The other is Ferk's dungeontest (
viewtopic.php?f=50&t=13317). The layout of rooms in his dungeon is also 'square', but with more diversity. I think the real problem is that you would need something more organic, and I feel the dungeons of minetest_games fell a little more like that. Thay are small and empty and those are the things that you would need to change.
There is actually one way that I can think of my dungeon generator being nice to have in a game like yours: let's say you have a type of dungeon in your game (by type, I mean the game could have different dungeons, something like minecraft, that has dungeons, jungle temples, pyramids, etc..) that would be always underground and it would have a perfect cubic shape. The walls/floor/ceiling would neede to be either indestructible or VERY hard to destroy, to make it fun. Then it would have only one entrance on the top and it would have more and more treasure as you went down and also something to make it harder.
Anyway it would need a lot of chages, because my generator relies heavily in probability. It's possible that you don't find a single set of stairs in kilometers, and it is also possible that you find stairs, but then they lead to a dead end, with no doors. Everything is really random, but with an infinite dungeon, this is no problem, because you always can go and find another way.
Think about the exact type of dungeon you would like to have in Pixture, and then share your ideas. I may be able to do something to help (me and the other guys of the 'dungeon gang' that is emerging in the community :p )