[mod][hud]nodeinfo[v0.6.2b]

LouisCyfer
Member
Posts: 46
Joined: Sun Jun 25, 2017 02:24
GitHub: LouisCyfer

[mod][hud]nodeinfo[v0.6.2b]

by LouisCyfer » Post

License: MIT (bg.png = CC BY-SA-4.0)

Description:
This mod adds a simple HUD at the bottom right corner for node infos and a clock.

It is meant to be a helpful little tool inspired by [advanced_gui] (WIP yet) and [NodeExplorer] (also WIP yet) which I'm not trying to replace but to improve playing minetest at all.

Note: it is designed to look best on HD-resolution, untested with other scales (might have to work on that later)

v0.4.x:
Image

v0.3.1:
Image
Image

Dependencies: default
supported mods:basic_machines, mobs/mobs/redo

DOWNLOAD

current/active repo:
GitLab repo Download latest

depreciated/old repo:
Github repo Download latest

Report bugs or request help on the forum topic or in the github issue section.

For further information or help see:
http://wiki.minetest.com/wiki/Installing_Mods

changelog:
v0.6.2b
- currently have to block all nodes from aliveai hope this helps for now because it is not really testable for me

v0.6.2a
- attempt to fix "attempt to concatenate a nil value" on line 588

v0.6.2
- added flowerpot support
- added teleporters support
- added ethereal support
- added moretrees support
- added rudimentary ironage support

v0.6.1
- drawers now properly implented with [drawer-info]
- limited minetest.globalstep to 0.1

v0.6
- added official support for basic_machines, pipeworks, drawers & mobs (codewise, mobs is NOT finnished yet)
- experimental implention of minetest.inventorycube

v0.5
- added mobs/mobs_redo support, but generally any kind of entity should be recognised now
- code cleanup including removing some other bugs
- Debug currently prints nothing much because things are running stable so far

v0.4.2
- added entity-support (dropped items, saplings etc.)
- more performance-tweaks (!!!)

v0.4.1
- performance improvements

v0.4
- added a debug HUD which is on by setting the "useDebug" to true
- added a reasonable way to resize images (hopefully)
- added a reciepes-count
- added a text splitting function for descriptions
- currently descriptions from items including " - " or ": " strings in their names

example items that have descriptions (from basic_machines mod):
"Grinder: To operate it insert fuel, then insert item to grind or use keypad to activate it."
"Keypad - basic way to activate machines by sending signal"

v0.3.1
- fixed a nil-crash

v0.3
- HUD readjustments (clock is now bottom right)
- added basic_machines support (descriptions)
- minor bugfixes

v0.2
- minor clock adjustments

v0.1
- initial release
Attachments
nodeinfo_screen3 - v0.4.x
nodeinfo_screen3 - v0.4.x
nodeinfo_screen3.png (76.14 KiB) Viewed 1218 times
nodeinfo_screen2 - v0.3.1
nodeinfo_screen2 - v0.3.1
nodeinfo_screen2.png (52.17 KiB) Viewed 1218 times
nodeinfo_screen1 - v0.3.1
nodeinfo_screen1 - v0.3.1
nodeinfo_screen1.png (36.68 KiB) Viewed 1218 times
Last edited by LouisCyfer on Fri Jul 06, 2018 18:06, edited 20 times in total.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [mod][hud]nodeinfo[v0.2]

by azekill_DIABLO » Post

demn, i finished the same thing in NodeExplorer yesterday :D
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

LouisCyfer
Member
Posts: 46
Joined: Sun Jun 25, 2017 02:24
GitHub: LouisCyfer

Re: [mod][hud]nodeinfo[v0.2]

by LouisCyfer » Post

thats great to hear! .. my intention is not having a competition, but diversity.

I'm adding some new functions to display from "minetest.registered_items" inventory images aswell and I'm planning to display "x possible crafts" in that info window .. lets see how that goes :)

maybe we can learn from each other hehe

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [mod][hud]nodeinfo[v0.2]

by azekill_DIABLO » Post

sure!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

LouisCyfer
Member
Posts: 46
Joined: Sun Jun 25, 2017 02:24
GitHub: LouisCyfer

Re: [mod][hud]nodeinfo[v0.3]

by LouisCyfer » Post

small update!!

v0.3
- HUD readjustments (clock is now bottom right)
- added basic_machines support (descriptions)
- minor bugfixes

EDIT:

v0.3.1
- fixed a nil-crash

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [mod][hud]nodeinfo[v0.3]

by azekill_DIABLO » Post

wow! you do everything in hud?! epic!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

LouisCyfer
Member
Posts: 46
Joined: Sun Jun 25, 2017 02:24
GitHub: LouisCyfer

Re: [mod][hud]nodeinfo[v0.3]

by LouisCyfer » Post

azekill_DIABLO wrote:wow! you do everything in hud?! epic!
I cannot resize images yet, unless I figure how to create a temp image to fill the HUD with that image of 16x16.
upcoming release shall include also an entity identifyer (dropped items, modbs etc including stats)

LouisCyfer
Member
Posts: 46
Joined: Sun Jun 25, 2017 02:24
GitHub: LouisCyfer

Re: [mod][hud]nodeinfo[v0.4]

by LouisCyfer » Post

Yet another update!

v0.4
- added a debug HUD which is on by setting the "useDebug" to true
- added a reasonable way to resize images (hopefully)
- added a reciepes-count
- added a text splitting function for descriptions
- currently descriptions from items including " - " or ": " strings in their names

example items that have descriptions (from basic_machines mod):
"Grinder: To operate it insert fuel, then insert item to grind or use keypad to activate it."
"Keypad - basic way to activate machines by sending signal"

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [mod][hud]nodeinfo[v0.4]

by azekill_DIABLO » Post

do kill yourself at work!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

LouisCyfer
Member
Posts: 46
Joined: Sun Jun 25, 2017 02:24
GitHub: LouisCyfer

Re: [mod][hud]nodeinfo[v0.4]

by LouisCyfer » Post

azekill_DIABLO wrote:do kill yourself at work!
nah, I'm just bored and that is something creative :D

EDIT:
update!

v0.4.1
- performance improvements

EDIT2:
YAY! I figured how to implent dropped items(entities) .. mobs might follow!

v0.4.2
- added entity-support (dropped items, saplings etc.)
- more performance-tweaks (!!!)

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [mod][hud]nodeinfo[v0.4.2]

by azekill_DIABLO » Post

That a real good mod! tell me when it's enough stable, i'd like to merge it in Voxellar!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

LouisCyfer
Member
Posts: 46
Joined: Sun Jun 25, 2017 02:24
GitHub: LouisCyfer

Re: [mod][hud]nodeinfo[v0.4.2]

by LouisCyfer » Post

azekill_DIABLO wrote:That a real good mod! tell me when it's enough stable, i'd like to merge it in Voxellar!
I haven't tested with many players .. only with 2 but that's something you can test aswell .. it should be stable now. if not then there's something I might need to work on :)

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [mod][hud]nodeinfo[v0.4.2]

by azekill_DIABLO » Post

cool :D
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

LouisCyfer
Member
Posts: 46
Joined: Sun Jun 25, 2017 02:24
GitHub: LouisCyfer

Re: [mod][hud]nodeinfo[v0.5]

by LouisCyfer » Post

I finally found out how to get some stats off mobs to display them aswell if focussed :)
nodeinfo shows these stats now: HP, tamed status, follow/tame conditions

Any feedback is appreciated, welcome and encouraged, thanks!

v0.5
- added mobs/mobs_redo support, but generally any kind of entity should be recognised now
- code cleanup including removing some other bugs
- Debug currently prints nothing much because things are running stable so far

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [mod][hud]nodeinfo[v0.5]

by azekill_DIABLO » Post

this is atonishing.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

LouisCyfer
Member
Posts: 46
Joined: Sun Jun 25, 2017 02:24
GitHub: LouisCyfer

Re: [mod][hud]nodeinfo[v0.6]

by LouisCyfer » Post

UPDATE!!

v0.6
- added official support for basic_machines, pipeworks, drawers & mobs (codewise, mobs is NOT finnished yet)
- experimental implention of minetest.inventorycube

EDIT:
v0.6.1
- drawers now properly implented with [drawer-info]
- limited minetest.globalstep to 0.1

feedback is always welcome!

John_Constructor
Member
Posts: 76
Joined: Thu Jun 01, 2017 20:06
GitHub: John-Constructor
In-game: Nooberton
Location: On Minetest 24/7

Re: [mod][hud]nodeinfo[v0.6.1]

by John_Constructor » Post

This is quite an interesting concept I must be honest!
Constructing mechs and wingless aircraft since 2016.

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

Re: [mod][hud]nodeinfo[v0.6.1]

by Wuzzy » Post

What is the relation of this mod to the Help modpack (viewtopic.php?f=9&t=15912&p=240152)?
Where do the help texts for the nodes come from?
How would I, a modder, add help texts?
Why should I, a modder, support this mod when there is already a stable API for adding help texts to items (a.k.a. Help modpack)?

LouisCyfer
Member
Posts: 46
Joined: Sun Jun 25, 2017 02:24
GitHub: LouisCyfer

Re: [mod][hud]nodeinfo[v0.6.1]

by LouisCyfer » Post

Wuzzy wrote:What is the relation of this mod to the Help modpack (viewtopic.php?f=9&t=15912&p=240152)?
well I quite enjoy seeing other mods that give helpful stuff to users back, this mod is just for quick info purposes for everyone.
Wuzzy wrote:Where do the help texts for the nodes come from?
How would I, a modder, add help texts?
basicially it does read out already stored informations coming from the base game and other mods that add nodes (plz check out the source code for that)
Wuzzy wrote:Why should I, a modder, support this mod when there is already a stable API for adding help texts to items (a.k.a. Help modpack)?
That is up to you to support or not, I see no reason to have a competition, my mod is licensed MIT and I do not wish to have users have to decide.

As stated already, I like diversity and saw the "need" of a quick info display.
Thanks for your feedback (sorry for beeing late tho)

Vindelle_Pounze
Member
Posts: 26
Joined: Thu Jan 05, 2017 22:06

Re: [mod][hud]nodeinfo[v0.6.1]

by Vindelle_Pounze » Post

Just for letting you know, my game crashed with both this mod and ironage (viewtopic.php?f=9&t=20198) installed.
This is the error I got when using the melting pot of ironage to produce steel:
Spoiler
2018-07-01 00:09:08: ACTION[Server]: singleplayer places node ironage:meltingpot at (-7,28,-324)
2018-07-01 00:09:23: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'nodeinfo' in callback environment_Step(): .../minetest_backport/minetest/bin/../builtin/game/item.lua:22: attempt to call method 'gsub' (a nil value)
2018-07-01 00:09:23: ERROR[Main]: stack traceback:
2018-07-01 00:09:23: ERROR[Main]: .../minetest_backport/minetest/bin/../builtin/game/item.lua:22: in function 'fillImage'
2018-07-01 00:09:23: ERROR[Main]: ...minetest_backport/minetest/bin/../mods/nodeinfo/init.lua:444: in function <...minetest_backport/minetest/bin/../mods/nodeinfo/init.lua:277>
2018-07-01 00:09:23: ERROR[Main]: ...etest_backport/minetest/bin/../builtin/game/register.lua:420: in function <...etest_backport/minetest/bin/../builtin/game/register.lua:400>
I'm on 0.4.17.1 if it is relevant.

LouisCyfer
Member
Posts: 46
Joined: Sun Jun 25, 2017 02:24
GitHub: LouisCyfer

Re: [mod][hud]nodeinfo[v0.6.1]

by LouisCyfer » Post

Vindelle_Pounze wrote:Just for letting you know, my game crashed with both this mod and ironage (viewtopic.php?f=9&t=20198) installed.
This is the error I got when using the melting pot of ironage to produce steel:
Spoiler
2018-07-01 00:09:08: ACTION[Server]: singleplayer places node ironage:meltingpot at (-7,28,-324)
2018-07-01 00:09:23: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'nodeinfo' in callback environment_Step(): .../minetest_backport/minetest/bin/../builtin/game/item.lua:22: attempt to call method 'gsub' (a nil value)
2018-07-01 00:09:23: ERROR[Main]: stack traceback:
2018-07-01 00:09:23: ERROR[Main]: .../minetest_backport/minetest/bin/../builtin/game/item.lua:22: in function 'fillImage'
2018-07-01 00:09:23: ERROR[Main]: ...minetest_backport/minetest/bin/../mods/nodeinfo/init.lua:444: in function <...minetest_backport/minetest/bin/../mods/nodeinfo/init.lua:277>
2018-07-01 00:09:23: ERROR[Main]: ...etest_backport/minetest/bin/../builtin/game/register.lua:420: in function <...etest_backport/minetest/bin/../builtin/game/register.lua:400>
I'm on 0.4.17.1 if it is relevant.
This mod is basicly trying to grab any information of the focussed item, sometimes mods are written different in filling meta info's, so there is a mod support in need for this or that.

I'll look into it asap, ty for your report, possibly another mod (asumingly ironage) what causing the info to fail, sorry for inconvience.

EDIT:
I get this error when NOT using nodeinfo:
Spoiler
2018-07-01 01:50:03: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'ironage' in callback node_on_timer(): (SNIP)/.minetest/mods/ironage/coalburner.lua:161: bad argument #2 to 'set_int' (number expected, got nil)
2018-07-01 01:50:03: ERROR[Main]: stack traceback:
2018-07-01 01:50:03: ERROR[Main]: [C]: in function 'set_int'
2018-07-01 01:50:03: ERROR[Main]: (SNIP)/.minetest/mods/ironage/coalburner.lua:161: in function <(SNIP).minetest/mods/ironage/coalburner.lua:154>
Then MT crashes, so it might just showing the last action the "server"/game does while it runs. basicly I assume MT crashes because ironage has this error inside while nodeinfo is running and trying to grab information about the focussed node it shows the error you posted.

Does this error of you occour without nodeinfo too? Also, have you tried creating a test game with unified_inventory and ironage aswell and just build a burner and try melting anything without nodeinfo?

For me it looks like nodeinfo was just the last function executed by minetest while it ran and shows this error. I'd love to fix things that are actually broken. I see missing textures on unused "ironage:" items so I'll fix that first before figuring what went wrong because I cannot reproduce it with unified_inventory, ironage and nodeinfo.

MT version used:
Minetest 0.4.17.1 (Linux)
Using Irrlicht 1.8.3

EDIT 2:
found a logic fix for the issue for ironage: #1

note: this mod has moved to gitlab.com

v0.6.2
- added flowerpot support
- added teleporters support
- added ethereal support
- added moretrees support
- added rudimentary ironage support

Vindelle_Pounze
Member
Posts: 26
Joined: Thu Jan 05, 2017 22:06

Re: [mod][hud]nodeinfo[v0.6.2]

by Vindelle_Pounze » Post

LouisCyfer wrote:I get this error when NOT using nodeinfo:


Then MT crashes, so it might just showing the last action the "server"/game does while it runs. basicly I assume MT crashes because ironage has this error inside while nodeinfo is running and trying to grab information about the focussed node it shows the error you posted.

Does this error of you occour without nodeinfo too? Also, have you tried creating a test game with unified_inventory and ironage aswell and just build a burner and try melting anything without nodeinfo?
The error you mentioned I got as well, but after reporting another "nil instead of int" error in the ironage thread, I applied the fix @joe7575 mentioned (see respective thread) to that file. So I believe there is something wrong in nodeinfo, too.
After pulling your updates I started a test world with just nodeinfo installed and now I get this error
Spoiler
2018-07-01 16:58:05: ACTION[Server]: singleplayer [127.0.0.1] joins game.
2018-07-01 16:58:05: ACTION[Server]: singleplayer joins game. List of players: singleplayer
2018-07-01 16:58:09: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'nodeinfo' in callback environment_Step(): ...minetest_backport/minetest/bin/../mods/nodeinfo/init.lua:588: attempt to concatenate a nil value
2018-07-01 16:58:09: ERROR[Main]: stack traceback:
2018-07-01 16:58:09: ERROR[Main]: ...minetest_backport/minetest/bin/../mods/nodeinfo/init.lua:588: in function <...minetest_backport/minetest/bin/../mods/nodeinfo/init.lua:394>
2018-07-01 16:58:09: ERROR[Main]: ...etest_backport/minetest/bin/../builtin/game/register.lua:420: in function <...etest_backport/minetest/bin/../builtin/game/register.lua:400>
2018-07-01 16:58:09: ERROR[Main]: stack traceback:
2018-07-01 16:58:09: ACTION[Server]: singleplayer leaves game. List of players:
just some seconds after joining the game.
Same with or without unified_inventory and/or ironage installed as tested 15 minutes ago in another test world.

EDIT: Just because and for showing some appreciation, I'm very happy to see W.A.I.L.A. ;) for minetest :)

LouisCyfer
Member
Posts: 46
Joined: Sun Jun 25, 2017 02:24
GitHub: LouisCyfer

Re: [mod][hud]nodeinfo[v0.6.2]

by LouisCyfer » Post

so it seems i forgot some vanilla game nodes to implent, maybe some new blocks i did not see coming yet.

it would help if you enable debug in my init.lua right in the top and a green info menu on the right top area occours.
I might just need the respective node names to adress them in nodeinfo which cant be processed. I assume one of them missing a table element which nodeinfo is trying to grab while globalstep (e.g. while it runs).

I look into it when it is reproduceable.

BTW what is W.A.I.L.A.?

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: [mod][hud]nodeinfo[v0.6.2]

by Stix » Post

LouisCyfer wrote:so it seems i forgot some vanilla game nodes to implent, maybe some new blocks i did not see coming yet.

it would help if you enable debug in my init.lua right in the top and a green info menu on the right top area occours.
I might just need the respective node names to adress them in nodeinfo which cant be processed. I assume one of them missing a table element which nodeinfo is trying to grab while globalstep (e.g. while it runs).

I look into it when it is reproduceable.

BTW what is W.A.I.L.A.?
W.A.I.L.A. = What.Am.I.Looking.At.
Hey, what can i say? I'm the bad guy.

LouisCyfer
Member
Posts: 46
Joined: Sun Jun 25, 2017 02:24
GitHub: LouisCyfer

Re: [mod][hud]nodeinfo[v0.6.2]

by LouisCyfer » Post

Stix wrote:W.A.I.L.A. = What.Am.I.Looking.At.
awesome, ty :)

hopefully this update fixes this one:
Spoiler
ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'nodeinfo' in callback environment_Step(): ...minetest_backport/minetest/bin/../mods/nodeinfo/init.lua:588: attempt to concatenate a nil value
2018-07-01 16:58:09: ERROR[Main]: stack traceback:
2018-07-01 16:58:09: ERROR[Main]: ...minetest_backport/minetest/bin/../mods/nodeinfo/init.lua:588: in function <...minetest_backport/minetest/bin/../mods/nodeinfo/init.lua:394>
2018-07-01 16:58:09: ERROR[Main]: ...etest_backport/minetest/bin/../builtin/game/register.lua:420: in function <...etest_backport/minetest/bin/../builtin/game/register.lua:400>
v0.6.2a
- attempt to fix "attempt to concatenate a nil value" on line 588

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 31 guests