[Mod] Show Wielded Item [1.0.0] [show_wielded_item]

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

[Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by Wuzzy » Sun Jul 02, 2017 17:26

This mod shows the name of the wielded item above the statbars.

Image

This mod is partially compatible with HUD Bars [hudbars] and changes the position of the text accordingly. If needed, you can change the position manually in the advanced settings.

Attachments
show_wielded_item1.0.0.zip
(14.71 KiB) Downloaded 176 times
screenshot.png
(11.58 KiB) Not downloaded yet
Last edited by Wuzzy on Fri May 03, 2019 13:40, edited 1 time in total.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
octacian
Member
 
Posts: 594
Joined: Mon Dec 21, 2015 22:18
Location: Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by octacian » Sun Jul 02, 2017 18:00

You beat me to it! Was gonna release my own later today, compatible with HUDPlus. Oh well, probably will anyways. Great job though! Maybe add a simple check so that the mod does not function if unified inventory is installed? No clue why anyone would install this if they already had unified inventory, but considering that it's only a few lines of code, it could be worthwhile.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.
 

hajo
Member
 
Posts: 596
Joined: Thu Oct 13, 2016 10:45
Location: DE

Re: [Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by hajo » Mon Jul 31, 2017 15:53

Wuzzy wrote:This mod shows the name of the wielded item above the statbars

This is essentially a part of 'customizing the HUD', and I think
every player should be able/allowed to do that for him/herself.

So, wouldn't this mod be more useful as a CSM ?
 

User avatar
Linuxdirk
Member
 
Posts: 2110
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: [Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by Linuxdirk » Mon Jul 31, 2017 15:57

hajo wrote:So, wouldn't this mod be more useful as a CSM ?

It would be most useful if it was an option and no mod would be needed for that. But yes, this is a good example for adding a missing feature to the client that otherwise won't be added anytime soon.
 

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

Re: [Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by Wuzzy » Mon Jul 31, 2017 17:33

I have requested this feature to be removed from Unified Inventory because it doesn't make sense there:
https://github.com/minetest-technic/uni ... issues/101

No reply so far.

This is essentially a part of 'customizing the HUD', and I think
every player should be able/allowed to do that for him/herself.

Good point. Ideally, this thing becomes a feature in the engine.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
Phoenixflo44
Member
 
Posts: 636
Joined: Fri Jul 28, 2017 15:01
Location: Behind my PC, in Germany
In-game: Phoenixflo44

Re: [Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by Phoenixflo44 » Tue Aug 01, 2017 15:26

for 0.4.9 ?
+ Spoiler
 

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

Re: [Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by Wuzzy » Tue Aug 01, 2017 15:56

I don't know, just try it out. I don't use Minetest versions from the stone age.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
AspireMint
Member
 
Posts: 331
Joined: Mon Jul 09, 2012 12:59
Location: Stuck at spawn
GitHub: AspireMint
IRC: AspireMint
In-game: AspireMint

Re: [Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by AspireMint » Mon Dec 25, 2017 04:34

I can't run your mod, version 1.0.0.
hudbars is optional, im not using it.

depends.txt:
Code: Select all
hudbars?


Code: Select all
ERROR[Main]: ServerError: Lua: Runtime error from mod 'show_wielded_item' in callback on_joinplayer(): ...test/games/minetest_game/mods/show_wielded_item/init.lua:15: attempt to index field 'settings' (a nil value)
ERROR[Main]: stack traceback:
ERROR[Main]:       ...test/games/minetest_game/mods/show_wielded_item/init.lua:15: in function 'set_hud'
ERROR[Main]:       ...test/games/minetest_game/mods/show_wielded_item/init.lua:49: in function <...test/games/minetest_game/mods/show_wielded_item/init.lua:48>
ERROR[Main]:       /usr/share/games/minetest/builtin/game/register.lua:412: in function </usr/share/games/minetest/builtin/game/register.lua:392>
 

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

Re: [Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by Wuzzy » Tue Dec 26, 2017 20:26

AspireMint, my first guess is that you're using an old version of Minetest. Please update to 0.4.16.

If you DID use version 0.4.16, I'm very confused.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
AspireMint
Member
 
Posts: 331
Joined: Mon Jul 09, 2012 12:59
Location: Stuck at spawn
GitHub: AspireMint
IRC: AspireMint
In-game: AspireMint
 

User avatar
emperor_genshin
Member
 
Posts: 38
Joined: Tue Dec 22, 2015 05:04
Location: Cyberspace
IRC: Emperor_Genshin - Genshin
In-game: Emperor_Genshin - Genshin

Re: [Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by emperor_genshin » Sat Jan 20, 2018 17:14

Wasn't this already implemented on RBA's Unified Inventory mod?
I'm just a individual who likes to make impressive things. | Current Advanced Bosses Test: https://www.youtube.com/watch?v=nOjLGty2qW8
 

User avatar
octacian
Member
 
Posts: 594
Joined: Mon Dec 21, 2015 22:18
Location: Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by octacian » Sun Jan 21, 2018 17:30

emperor_genshin wrote:Wasn't this already implemented on RBA's Unified Inventory mod?


Yeah, but if you ask me, I personally really dislike Unified Inventory so it's incredibly nice to have a mod that allows me to have this feature without being forced to use Unified Inventory.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.
 

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

Re: [Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by Wuzzy » Sun Jan 21, 2018 21:49

It's true it's in Unified Inventory (UI). But I follow a simple principle: one mod = one task. Rather than making one mod which does everything at once.

It gives the user way more choices to combine mods, it improves interoperability, makes the mods more maintainable, dependencies can be a lot simpler.
The benefits are very obvious.
By comparison, if you put every feature into one mod, you lose all this. It's much harder to combine, there are less possibilities. It's also a lot less flexible since users are forced to take everything or nothing. IMO this is just bad software engineering but VanessaE just won't listen.

Long story short, it's Unified Inventory which is at fault here, not Show Wielded Item.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
Linuxdirk
Member
 
Posts: 2110
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: [Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by Linuxdirk » Tue Jan 23, 2018 14:26

Wuzzy wrote:Long story short, it's Unified Inventory which is at fault here, not Show Wielded Item.

Unified Inventory is a fault in general since we have sfinv ...
 

User avatar
emperor_genshin
Member
 
Posts: 38
Joined: Tue Dec 22, 2015 05:04
Location: Cyberspace
IRC: Emperor_Genshin - Genshin
In-game: Emperor_Genshin - Genshin

Re: [Mod] Show Wielded Item [1.0.0] [show_wielded_item]

by emperor_genshin » Fri Feb 09, 2018 15:55

Fair point, also I agree.

Though honestly I feel like this should be applied on default rather than having it for one specific inventory.

Wuzzy wrote:It's true it's in Unified Inventory (UI). But I follow a simple principle: one mod = one task. Rather than making one mod which does everything at once.

It gives the user way more choices to combine mods, it improves interoperability, makes the mods more maintainable, dependencies can be a lot simpler.
The benefits are very obvious.
By comparison, if you put every feature into one mod, you lose all this. It's much harder to combine, there are less possibilities. It's also a lot less flexible since users are forced to take everything or nothing. IMO this is just bad software engineering but VanessaE just won't listen.

Long story short, it's Unified Inventory which is at fault here, not Show Wielded Item.
I'm just a individual who likes to make impressive things. | Current Advanced Bosses Test: https://www.youtube.com/watch?v=nOjLGty2qW8
 


Return to Mod Releases



Who is online

Users browsing this forum: Bing [Bot] and 2 guests