[Mod] Dungeon Loot [1.1 alpha] [dungeon_loot]

Post Reply
User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

[Mod] Dungeon Loot [1.1 alpha] [dungeon_loot]

by BlockMen » Post

Hello everyone,

a simple mod that adds chests to dungeon with some loot in it.
You can find a chest in dungeons with more than 4 rooms, containing food, ingots, diamonds or tools.

This is a alpha release, but should work without any problems with Minetest 0.4.13


Git/Download: https://github.com/BlockMen/dungeon_loot

License: modified zlib-License

LNJ
Member
Posts: 252
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by LNJ » Post

Nice! Thanks for this nice mod!

----------------------------------------------
EDIT:

I use the mod with your CME mod (creatures) and I only found spawners in dungeons no chest.
And it would be cool if there is not only one chest in one dungeon and in the creatures mod not only one spawner.
Storage Drawers - The simplest item storage in Minetest

MoNTE48
Member
Posts: 323
Joined: Sat Apr 06, 2013 11:58
GitHub: MoNTE48
In-game: MoNTE48
Location: Internet

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by MoNTE48 » Post

You can make the setting for the emergence of chests around the world or around the player with the spawn, instead give_initial_stuff....

User avatar
Neuromancer
Member
Posts: 958
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by Neuromancer » Post

This is an awesome mod. One of the things that makes Terraria a fun game despite it's 2d nature is the quest for loot. What would make this mod the best would be to add a property to all objects called loot_frequency. (0=never, 1=extremely rare, 2=rare, 3=average, 4=common, 5=extremely common. Then anyone who writes a mod could set this attribute in their mods, and your mod could read that value and thus make items from any mod have the possibility of showing up as loot. And users could easily modify those loot values themselves. An additional fun idea might be to have pots that can be smashed with an axe or sword that makes a smashing sound and the loot is just laying on the ground.

amadin
Member
Posts: 549
Joined: Tue Jun 16, 2015 16:23

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by amadin » Post

Does this mod add chests on pre-generated map?

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

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by paramat » Post

I doubt it.

amadin
Member
Posts: 549
Joined: Tue Jun 16, 2015 16:23

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by amadin » Post

How to enable chests fo all size (type) dungeons, not only for dungeons with more than 4 rooms? And how add chest to all rooms?
Last edited by amadin on Mon Dec 28, 2015 16:41, edited 1 time in total.

User avatar
davidthecreator
Member
Posts: 452
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by davidthecreator » Post

finally an use for dungeons :,D

User avatar
Neuromancer
Member
Posts: 958
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by Neuromancer » Post

It would be awesome if this mod could use (depend? on ) the x-decor mod to do more, and actually decorate the occasional dungeon chamber with chandeleirs, anvils, book cases, cauldrons, and more.

User avatar
Amoeba
Member
Posts: 16
Joined: Sun Jan 03, 2016 18:30
GitHub: Amoebaa

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by Amoeba » Post

Thanks for this mod! I got a bit carried away and created a bunch on modifications and additions:
The new init.lua and config.lua.
I've tested them a bit, and they don't seem to break or crash anything (anymore..).
I can push them to github if you want.

User avatar
Neuromancer
Member
Posts: 958
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by Neuromancer » Post

Amoeba wrote:Thanks for this mod! I got a bit carried away and created a bunch on modifications and additions:
The new init.lua and config.lua.
I've tested them a bit, and they don't seem to break or crash anything (anymore..).
I can push them to github if you want.
I looked at the code, what changes did you make? Did you make more valuable loot show up the deeper you go? Did you add new items to the loot? Or something else?

User avatar
Amoeba
Member
Posts: 16
Joined: Sun Jan 03, 2016 18:30
GitHub: Amoebaa

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by Amoeba » Post

Neuromancer wrote:I looked at the code, what changes did you make? Did you make more valuable loot show up the deeper you go? Did you add new items to the loot? Or something else?
I separated the single table of loot into different categories (config.lua) and created a couple of different ways for loot to be generated (init.lua).
The first, for treasure and tools/weapons, adds better (and sometimes more, for treasure) items at deeper cutoff points (though all are possible, just very unlikely at deeper depths).
The second, for consumables and seedlings, simply generates some amount; the chance is relative to the sum of the chances in the table, and the amount is number in the table (with less above -200 and more below -2000, and the depths can also be changed).

I'm thinking of adding a few more fields to the loot_types-table, so that new loot types can be added without any need for the actual coding in init.lua.

User avatar
Neuromancer
Member
Posts: 958
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by Neuromancer » Post

Awesome. Thanks for adding all of this. I wish there were a way of getting things from mods like the gear from these mods:
Night Vision Goggles - Aqua
Hook - UjEdwin
Simple Shooter - Stu

User avatar
Amoeba
Member
Posts: 16
Joined: Sun Jan 03, 2016 18:30
GitHub: Amoebaa

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by Amoeba » Post

Neuromancer wrote:Awesome. Thanks for adding all of this. I wish there were a way of getting things from mods like the gear from these mods:
Night Vision Goggles - Aqua
Hook - UjEdwin
Simple Shooter - Stu
You already can, by adding them to an if -block at the end of config.lua like the farming stuff is done. However, I can see that there might be some problems, so I'll try to work with the mod to make adding things easier and add comments on how to do additions.

User avatar
Amoeba
Member
Posts: 16
Joined: Sun Jan 03, 2016 18:30
GitHub: Amoebaa

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by Amoeba » Post

Ok, after a bit of work got version 1.2 done.
Documented config.lua a lot more, should hopefully be pretty easy to add or change stuff.
Committed to my new branch at github: https://github.com/amoebaa/dungeon_loot
No major new ideas concerning it now, but we'll see if I get interested in something. No promises, but I might work on interesting suggestions. :)
(Only slightly irritating thing currently is that the chest will always be in the middle of the room, but that's pretty minor, compared, say, to how the dungeons themselves can be somewhat malformed. Also, for a more adventurous game, could maybe add a possibility of mobs to the dungeon and then increase the chest rewards.)

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by Byakuren » Post

Could you add a way for mods to register items to be spawned as loot? I think it would be impractical for a server owner to have to go through all the loot items from each mod and add them to config.lua.
Every time a mod API is left undocumented, a koala dies.

User avatar
Neuromancer
Member
Posts: 958
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by Neuromancer » Post

Loot is incredibly important part of making Minetest fun. This is a huge step forward. What would be cool is to add traps to some chests, so when you open them you lose hit points or get poisoned. But if you open them when you have a lock picks in your hand, then you have a much greater chance of avoiding the trap. If you get poisoned, you need to craft a potion based on some flowers or plants that cures your poison. This could add an element of challenge to loot.

User avatar
Neuromancer
Member
Posts: 958
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by Neuromancer » Post

Or another cool idea would be to use the x-decor mod to randomly decorate dungeons with chandeliers, bookcases, cauldrons, tables, chairs, beds anvils etc.

User avatar
Amoeba
Member
Posts: 16
Joined: Sun Jan 03, 2016 18:30
GitHub: Amoebaa

Re: [Mod] Dungeon Loot [1.0 alpha] [dungeon_loot]

by Amoeba » Post

Byakuren wrote:Could you add a way for mods to register items to be spawned as loot? I think it would be impractical for a server owner to have to go through all the loot items from each mod and add them to config.lua.
I suppose that's a possibility. I don't think it lessens the server owner's job a lot, though, since mod creators may have wildly different ideas of how soon and how many items they might want appearing in chests; the server owner has to balance all the mods against each other anyway. Still, it's another type of functionality I haven't looked at yet, and could make things at least easier.
Neuromancer wrote:Loot is incredibly important part of making Minetest fun. This is a huge step forward.

Dungeons need more work first, and you probably need to have some advancement system (I'm thinking of maybe looking in to the experience points mods).
What would be cool is to add traps to some chests, so when you open them you lose hit points or get poisoned.
Then you also need a poison (or other expanded status effects) mod.
But if you open them when you have a lock picks in your hand, then you have a much greater chance of avoiding the trap. If you get poisoned, you need to craft a potion based on some flowers or plants that cures your poison. This could add an element of challenge to loot.
This sounds like a much wider-ranging "Adventuring" mod, probably collected and modified from at least a half a dozen other mods. Definitely outside the scope of just dungeon loot, though the loot would be a natural part of adventuring.
Neuromancer wrote:Or another cool idea would be to use the x-decor mod to randomly decorate dungeons with chandeliers, bookcases, cauldrons, tables, chairs, beds anvils etc.
Placing items correctly automatically is definitely a challenging task; you can see this in how the dungeons aren't always properly connected, with useless stairs and weird connections between rooms. Also the reason why the chests are just in the middle of a random room is that the only thing this mod gets from dungeon creation is a list of positions, each being the center of the floor of a room. Moving the chests to against a wall would be pretty simple, but it quickly gets more complex.

User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

Re: [Mod] Dungeon Loot [1.1 alpha] [dungeon_loot]

by BlockMen » Post

Update! Version 1.1 alpha

- Merged Amoeba's additions

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Mod] Dungeon Loot [1.1 alpha] [dungeon_loot]

by Wuzzy » Post

I wonder if BlockMen is aware of the Treasurer mod.

It would be boring if this mod can spawn only stuff from Minetest Game into chests. Ever.

MoNTE48
Member
Posts: 323
Joined: Sat Apr 06, 2013 11:58
GitHub: MoNTE48
In-game: MoNTE48
Location: Internet

Re: [Mod] Dungeon Loot [1.1 alpha] [dungeon_loot]

by MoNTE48 » Post

2016-03-25 12:32:13: WARNING[Server]: Assignment to undeclared global "list_name" inside a function at ...0-win64\bin\..\games\default\files\dungeon_loot\init.lua:97.
2016-03-25 12:32:13: WARNING[Server]: Assignment to undeclared global "list_name_string" inside a function at ...0-win64\bin\..\games\default\files\dungeon_loot\init.lua:98.
2016-03-25 12:32:13: WARNING[Server]: Assignment to undeclared global "lsf" inside a function at ...0-win64\bin\..\games\default\files\dungeon_loot\init.lua:100.

mr_dean
Member
Posts: 30
Joined: Fri Jan 06, 2017 00:38
In-game: mr_dean
Location: Modding...

Re: [Mod] Dungeon Loot [1.1 alpha] [dungeon_loot]

by mr_dean » Post

Has anyone tested this with 0.4.15 yet? and, if so, are there any bugs that keep the game from loading it?
I know you believe you understand what you think I said, but, I am not sure that what you heard is not what I meant. - Author Unknown

Chibi ghost
Member
Posts: 845
Joined: Fri Jan 08, 2016 21:17
In-game: Ghost

Re: [Mod] Dungeon Loot [1.1 alpha] [dungeon_loot]

by Chibi ghost » Post

is this anything like glooptest? and it's random chests

mr_dean
Member
Posts: 30
Joined: Fri Jan 06, 2017 00:38
In-game: mr_dean
Location: Modding...

Re: [Mod] Dungeon Loot [1.1 alpha] [dungeon_loot]

by mr_dean » Post

I think that it places a chest in a dungeon with more than five rooms. I have played on servers that used to use this mod, and you would find the chests in some dungeons, but I'm not sure about the exact way that it places them. On the question of glooptest, I am not really to knowledgeable there, so I must say that I don't know.
I know you believe you understand what you think I said, but, I am not sure that what you heard is not what I meant. - Author Unknown

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 27 guests