Page 1 of 1

[ModPack] Kaeza's Misc Stuff [kaeza_misc]

PostPosted: Mon Apr 22, 2013 02:01
by kaeza
Well, I've developed a few mods for testing new features in the engine (back when they were new anyway).

Since these mods have nothing in common, and are rather smallish, I don't want to clutter up the forums with lots of topics. I'll be posting more here as I push them to my repo (and I find where I left them :P).

Dependencies
default

License
WTFPL for code and media files.

Download
ZIP Archive
Browse Code

Mods

Currently, these are the things added:

bookex
This overrides the default book. When used, you can write something in it. Useful for taking notes and such.

testclock
This was to test the new Lua HUD system. It adds a clock that shows the time of the day (in-game).

crosshair_ex
Adds a new crosshair to the game. It does not replace the old crosshair, just overlays a new one.

hud_change
Shows how to show/hide built-in HUD items.

notice
Send notices very visibly :) (sends a PM but instead of printing to chat, shows in a formspec; useful when the user isn't paying attention to you).

To uninstall a mod, just remove it from the pack :)

PostPosted: Mon Apr 22, 2013 02:59
by ashenk69
You could improve the hud test code by using
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_change(id, stat, value)

instead of adding and removing the element every step.

PostPosted: Mon Apr 22, 2013 03:12
by kaeza
ashenk69 wrote:You could improve the hud test code by using
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_change(id, stat, value)

instead of adding and removing the element every step.

http://irc.minetest.ru/minetest/2013-04-20#i_3035409

PostPosted: Mon Apr 22, 2013 04:49
by kaeza
Small update:
- bookex: Fixed positioning errors in the widgets.
- bookex: Changed button to button_exit so it actually closes the dialog.

PostPosted: Mon Apr 22, 2013 13:26
by ashenk69

That's stupid. Why wouldn't that work, it must just be a small bug in the engine.

PostPosted: Mon Apr 22, 2013 15:10
by kaeza
I know. I'm fixing up some other HUD-related stuff now, and looking into the matter as well.

PostPosted: Tue Apr 23, 2013 06:41
by kaeza
Update!

Added 'crosshair_ex' mod to show the new alignment capability of the LuaHUD.

Edit: You need the latest git to see it in action, otherwise the new crosshair will be misplaced.

PostPosted: Wed Apr 24, 2013 14:33
by kaeza
Update!

Added hud_change mod. This shows how to enable/disable things like the hotbar/crosshair/etc.

Re: [ModPack] Kaeza's Misc Stuff [kaeza_misc]

PostPosted: Sat May 31, 2014 13:49
by kaeza
*BUMP*

Added `notice' mod which some server owners may find useful. It sends a private message to an user, but instead of printing on chat, it's shown in a dialog in the middle of the screen. Useful for when you want to grab their attention.

Re: [ModPack] Kaeza's Misc Stuff [kaeza_misc]

PostPosted: Mon Jun 02, 2014 23:33
by philipbenr
Sounds good kaeza! I'll take a look later

Re: [ModPack] Kaeza's Misc Stuff [kaeza_misc]

PostPosted: Thu Aug 28, 2014 15:24
by Minetestforfun
very good misc mods !
I installed : testclock(can we change the yellow color ?) and notice, on my minetest-server !

EDIT :
Sometimes, the clock disappears, can you resolve the issue ?)
my server runs 0.4.10

Re: [ModPack] Kaeza's Misc Stuff [kaeza_misc]

PostPosted: Thu Jul 09, 2015 09:26
by kaeza
Some updates. Check the commit log for details.

MFF: Fixed the flickering bug (was an artifact due to a (very old) bug in Minetest). You can change the clock color by modifying the `number = 0xFFFF00` line. The format is 0xRRGGBB.

Re: [ModPack] Kaeza's Misc Stuff [kaeza_misc]

PostPosted: Thu Jul 21, 2016 23:16
by KzoneDD
HI Kaeza, can I read up somewhere on how to use the notice mod?

Re: [ModPack] Kaeza's Misc Stuff [kaeza_misc]

PostPosted: Tue Aug 02, 2016 20:21
by kaeza
KzoneDD wrote:HI Kaeza, can I read up somewhere on how to use the notice mod?

The usage is:
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
/notice playername Some text | another line | woo a third line!

Note: since we have no way to know the "width" of a text string in the GUI, you should split the message manually into multiple lines if it's too long. Also, don't use more than, say, 3 or 4 lines.