[Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger]

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Fri Sep 13, 2013 12:30

https://github.com/minetest/minetest_game/blob/master/mods/default/nodes.lua#L1152
Get the number for the on use and use that as the number. I mean instead of setting it manually you code to find the number and then replace it or what ever you do. That way new food can be used.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Fri Sep 13, 2013 14:03

jojoa1997 wrote:https://github.com/minetest/minetest_game/blob/master/mods/default/nodes.lua#L1152
Get the number for the on use and use that as the number. I mean instead of setting it manually you code to find the number and then replace it or what ever you do. That way new food can be used.


That you mean, ok.

No, its not that practical. The number of healthpoints is (ofc) lower than saturation of the item. So if reading out sometimes doubeling the nuber would be ok, sometimes it would be too low or to high. So defining it is better here.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Fri Sep 13, 2013 14:04

That is what I said.

All he does to add hunger support for other mods, is go into minetest.registered_items and replace minetest.item_eat with hud.item_eat

If you want to replace minetest.item_eat with hud.item_eat, which I think is what you mean, then I think he will not do this, you have to do this yourself.

Do it yourself

Add this to 0Item_Eat/init.lua

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.item_eat = hud.item_eat


and add this to 0Item_Eat/depends.txt

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
hud


this assumes that minetest.item_eat is part of builtin or the cpp lua, not default game.
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Mon Sep 16, 2013 09:55

Update! Version 1.1 released

Changelog:
- added support for stu's 3darmor mod (needs lastest version of armor mod)
- restructured and cleaned up code
- added support for poisen food (damages player, but does not kill)


Important:

New features will only be available for lastest dev/unstable builds of Minetest.

If you are using Minetest 0.4.7 stable use Version 0.9 of this mod. (no drowning, no armor support)
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Mon Sep 16, 2013 10:23

BlockMen wrote:Update! Version 1.1 released

Changelog:
- added support for stu's 3darmor mod (needs lastest version of armor mod)
- restructured and cleaned up code
- added support for poisen food (damages player, but does not kill)


Important:

New features will only be available for lastest dev/unstable builds of Minetest.

If you are using Minetest 0.4.7 stable use Version 0.9 of this mod. (no drowning, no armor support)
That looks awesome! Great work BlockMen.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

by stu » Tue Sep 17, 2013 17:20

BlockMen wrote:Update! Version 1.1 released

Changelog:
- added support for stu's 3darmor mod (needs lastest version of armor mod)
- restructured and cleaned up code
- added support for poisen food (damages player, but does not kill)


Important:

New features will only be available for lastest dev/unstable builds of Minetest.

If you are using Minetest 0.4.7 stable use Version 0.9 of this mod. (no drowning, no armor support)


Nice job! I would just like to point out that you will need the current-git version of 3d armor, not the current stable version 0.3.1
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Wed Sep 18, 2013 08:15

Awesome!
 

viv100
Member
 
Posts: 80
Joined: Sat Aug 10, 2013 16:36

by viv100 » Wed Sep 18, 2013 14:10

1,1 do not work can you help me
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Thu Sep 19, 2013 09:11

viv100 wrote:1,1 do not work can you help me


Could you be more precisely? Please post the error message.

My suggestion: Check if the folder is named correct ("~/mods/hud")
 

viv100
Member
 
Posts: 80
Joined: Sat Aug 10, 2013 16:36

by viv100 » Thu Sep 19, 2013 16:59

worldmods / hud / init.lua. 48
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Thu Sep 19, 2013 17:11

viv100 wrote:worldmods / hud / init.lua. 48


Hmm...it seems you are not using the lastest git of Minetest. If using windows just download my lastest build. Version 1.0 does also not work for you, right?
 

viv100
Member
 
Posts: 80
Joined: Sat Aug 10, 2013 16:36

by viv100 » Fri Sep 20, 2013 16:24

I'm on linux so after I do not know I'm not very good with computers
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Fri Sep 20, 2013 19:31

viv100 wrote:I'm on linux so after I do not know I'm not very good with computers


There is an unstable build for ubuntu that should work for you (if using ubuntu): http://minetest.net/download#linux

other solutions:
- build minetest yourself (like described here)
- use version 0.9 of this mod (does not contain all features)
- wait until Minetest 0.4.8 is released
 

viv100
Member
 
Posts: 80
Joined: Sat Aug 10, 2013 16:36

by viv100 » Sat Sep 21, 2013 15:08

a bit boring but hey I think I'll wait
 

User avatar
hoodedice
Member
 
Posts: 1372
Joined: Sat Jul 06, 2013 06:33

by hoodedice » Thu Oct 03, 2013 08:11

Hey BlockMan.

Is it possible to overlay an image over the entire HUD? Plus it's custom, not costum.
7:42 PM - Bauglio: I think if you go to staples you could steal firmware from a fax machine that would run better than win10 does on any platform
7:42 PM - Bauglio: so fudge the stable build
7:43 PM - Bauglio: get the staple build
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Sun Oct 06, 2013 11:49

hoodedice wrote:Hey BlockMan.

Is it possible to overlay an image over the entire HUD? Plus it's custom, not costum.


There is a way to do that now in lastest dev version (https://github.com/minetest/minetest/commit/27947d85f7543a16a6c70aff4e9dcdca814c40ba)

This mod does not use this yet, but i may add an option for it or add an api that other mods could use this.
 

User avatar
nater6927
Member
 
Posts: 28
Joined: Thu Feb 21, 2013 23:30

by nater6927 » Sun Oct 27, 2013 00:17

Hello, I would be very thankful if you added plantlife mod for compatible food because I made some pie and doesn't work.. just heals my hearts :(.
Check out my YouTube series of Minetest! http:bit.ly/JoinRomanEmpire
 

davidforsure!!!
Member
 
Posts: 72
Joined: Fri Oct 25, 2013 09:02

by davidforsure!!! » Mon Oct 28, 2013 06:33

this is going to be minecraft if crafting and hud is been mixed keep up the good work blockmen +1000
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Fri Nov 01, 2013 22:42

nater6927 wrote:Hello, I would be very thankful if you added plantlife mod for compatible food because I made some pie and doesn't work.. just heals my hearts :(.


It will be supported next release
 

neron
Member
 
Posts: 82
Joined: Sat Dec 22, 2012 20:22

by neron » Tue Nov 12, 2013 22:24

Are you planning on adding armor support?
 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

by stu » Tue Nov 12, 2013 23:44

neron wrote:Are you planning on adding armor support?


The current version already has 3d armor support, unless you mean the old armor mod?
 

User avatar
Johnyknowhow
Member
 
Posts: 358
Joined: Fri Sep 21, 2012 15:17
In-game: Minetestian

by Johnyknowhow » Sun Nov 17, 2013 21:16

Evergreen wrote:
Johnyknowhow wrote:So MT+ does have the drowning bar,
No, default minetest does. Just get the latest unstable build, and voila you have drowning.

How on earth do I get it? ._.

PEPOLE KEEP TALKING ABOUT THIS STUFF.
Last edited by Johnyknowhow on Sun Nov 17, 2013 21:29, edited 1 time in total.
I lost interest in Minetest for a couple of years and... I am still not really paying much attention. I rarely browse these forums anymore but it's nice to see old faces.

obligatory fancy signature goes here
 

gsmanners
Member
 
Posts: 159
Joined: Fri Jan 10, 2014 21:37

by gsmanners » Fri Jan 10, 2014 21:49

I've been playing with this mod for a few weeks and I thought I'd toss together a few themes for it.

Image

Very nice mods, by the way.
Attachments
hud_hotbar-pack.zip
(54.41 KiB) Downloaded 265 times
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Tue Jan 14, 2014 14:19

gsmanners wrote:I've been playing with this mod for a few weeks and I thought I'd toss together a few themes for it.

http://i.imgur.com/a6UfbNI.jpg

Very nice mods, by the way.


Very nice addition, thx. I will add a reference to that on first post ;)
 

SlickGamingNL
New member
 
Posts: 3
Joined: Tue Mar 18, 2014 17:41

by SlickGamingNL » Wed Mar 19, 2014 23:05

What do you need to enter to get the health and the food bar where they should be (above the hotbar)

--
-- health bar
--
HUD_HEALTH_POS = {x=0,y=0} --min 0, max 1
HUD_HEALTH_OFFSET = {x=5,y=30} --offset in pixel


--
-- hunger bar
--
HUD_HUNGER_POS = {x=1,y=0} --min 0, max 1
HUD_HUNGER_OFFSET = {x=-175,y=30} --offset in pixel


--
-- breath bar
--
HUD_AIR_POS = {x=0.5,y=1} --min 0, max 1
HUD_AIR_OFFSET = {x=15,y=-75} --offset in pixel


Now its in the corners and that is really annoying
 

User avatar
linushsao
Member
 
Posts: 331
Joined: Mon Jan 27, 2014 12:56
IRC: linushsao
In-game: linus

by linushsao » Fri Mar 21, 2014 12:51

With this MOD in my MT server(cloud hosted,archlinux,from AUR,ver 0.4.9), I found It took about 10 seconds when I put something into chest or furnace,the same when i took from. after disable HUD , no more lag with put/get thing from chest or furnace.

anyone else found this like me?only me?
1).My Server:Mars World
2).address:139.59.238.211:30016
3).manual(in processing):http://tinyurl.com/jyjkrgl
4).for my(admin's) role in all my servers,i'll be as the earth/water/fire/wind. i maintain that system,but not manage/touch players directly in game,not own the crafts on planet. i just keep watching the worlds.
 

Morn76
Member
 
Posts: 640
Joined: Sun Feb 16, 2014 19:45
GitHub: mdoege

by Morn76 » Fri Mar 21, 2014 12:59

linushsao wrote:With this MOD in my MT server(cloud hosted,archlinux,from AUR,ver 0.4.9),


Are you running with LuaJIT enabled? If not, take a look at my AUR script at https://aur.archlinux.org/packages/minetest-git-leveldb/. LuaJIT and LevelDB solve so many lag-related MT issues compared to stock 0.4.9.
Last edited by Morn76 on Fri Mar 21, 2014 13:00, edited 1 time in total.
 

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

by 4aiman » Fri Mar 21, 2014 13:06

Why not PM Blockmen?
Anyway, this mod doesn't add anything to the gameplay except very basic hunger.
I'd rather uninstall it from from my server until this issue gets confirmed or busted.
If you don't want to do so, then try to disable armor part of this mod. That's the only part which deals with player's inventory, AFAIK.
 

User avatar
linushsao
Member
 
Posts: 331
Joined: Mon Jan 27, 2014 12:56
IRC: linushsao
In-game: linus

by linushsao » Fri Mar 21, 2014 13:58

Morn76 wrote:
linushsao wrote:With this MOD in my MT server(cloud hosted,archlinux,from AUR,ver 0.4.9),


Are you running with LuaJIT enabled? If not, take a look at my AUR script at https://aur.archlinux.org/packages/minetest-git-leveldb/. LuaJIT and LevelDB solve so many lag-related MT issues compared to stock 0.4.9.


Thx for your reply.

I had try,I found and install this package from AUR:

aur/minetest-git-leveldb 20140315.f3d83a4-2 [installed: 20140321.5fefc4b-1] (1)
Infiniminer/Minecraft-inspired building game (with LuaJIT and LevelDB
support)

But,still lag when i put/get between chest and inventory-screen. Do i have to added some options?
1).My Server:Mars World
2).address:139.59.238.211:30016
3).manual(in processing):http://tinyurl.com/jyjkrgl
4).for my(admin's) role in all my servers,i'll be as the earth/water/fire/wind. i maintain that system,but not manage/touch players directly in game,not own the crafts on planet. i just keep watching the worlds.
 

User avatar
linushsao
Member
 
Posts: 331
Joined: Mon Jan 27, 2014 12:56
IRC: linushsao
In-game: linus

by linushsao » Fri Mar 21, 2014 14:14

and, I reinstall minetest from ABS(for archlinux),disable HUD,no more lag when i get/put from chest/furnace.

I like this mod,hop it can be solved.
1).My Server:Mars World
2).address:139.59.238.211:30016
3).manual(in processing):http://tinyurl.com/jyjkrgl
4).for my(admin's) role in all my servers,i'll be as the earth/water/fire/wind. i maintain that system,but not manage/touch players directly in game,not own the crafts on planet. i just keep watching the worlds.
 

PreviousNext

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 10 guests

cron