Description
Subtitles
This mod adds multiple styles of on-screen subtitles for sound effects.
Subtitles are disabled by default in multiplayer, and can be enabled and configured for each player.
You can access your subtitle preferences by clicking the
button in the inventory or by typing /subtitles in chat.
Supported Games and Mods
Descriptions are provided for these games:
- Alter
- Builda City
- Glitch
- Jail Escape
- Mineclonia
- Minetest Game
- Moontest
- NodeCore
- Repixture
- Subway Miner
- Super Sam
- VoxeLibre
Descriptions are provided for these mods:
- Advanced Trains
- Basic Trains
- More Trains
- DlxTrains
- Neat Trains
- Freight Train
- JR E231
- Ambience
- Animalia
- Anvil
- APercy's aeroplanes
- Demoiselle
- Ju52
- PA28
- Super Cub
- Super Duck Hydroplane
- Ultralight Trike
- Arena_Lib
- Automobiles Pack
- Awards
- Bedrock
- Bees
- Bell
- Bows
- BWeapons Modpack
- Castle Weapons
- Death Compass
- DFCaverns
- Digtron
- Documentation System
- Draconis
- CCompass
- Enderpearl
- Fishing!
- Gunslinger
- Home Decor
- Hudbars
- i3
- Mesebox
- Mesecons
- Mese Portals
- MineClone 2 C418 Records
- Minetest Game Plus
- Mobs
- Mobs Animal
- Mobs Monster
- Mobs Creature
- Mobs Skeleton
- Mobs MC
- Mob Horse
- Extra Mobs
- Nether
- New Fireworks
- NextGen Bows
- Pedology
- Pyramids
- Radiant Damage
- Real Torch
- Regional Weather
- Ropes
- Scythes and Sickles
- Shifter Tool
- Sounds
- Spyglass
- Stamina
- Steampunk Blimp
- Storage Drawers
- Torch Bomb
- Travelnet
- Unified Inventory
- Vacuum
- Vehicles
- Weather
- X Clay
- X Enchanting
UI integration is provided for these games and mods:
- Simple Fast Inventory (via SFInv Buttons)
- Unified Inventory
- i3
- Repixture
Supporting Subtitles in Your Mod
There are two ways a mod can support subtitles.
You can associate a description with a sound name using
subtitles.register_description(sound_name, description):
subtitles.register_description('default_dig_metal', S'Metal clangs');
Alternatively, you can specify a description by setting description or
subtitle in either the sound spec or the parameters when playing a sound:
minetest.sound_play('default_dig_metal', {gain = 0.5, description = S'Metal clangs'});
minetest.sound_play({name = 'default_dig_metal', description = S'Metal clangs'}, {gain = 0.5});
This also works in node definitions:
minetest.register_node('foomod:foobarium',
{
description = S'Foobarium';
sounds =
{
dig = {name = 'default_dig_metal', description = S'Foobarium breaks'};
footstep = {name = 'default_dig_metal', description = S'Footsteps on foobarium'};
};
});
You can specify how long to display the subtitle by setting duration on
either the spec or the parameters.
You can disable the subtitle for a sound by setting no_subtitle = true on
the spec or parameters, or by setting the description to an empty string.
Releases
2024-05-28 07:24 UTC
0.4.1
-
Tweaked documentation.
-
Removed unnecessary files from release archives.
-
Improved the Repixture UI style.
-
Updated descriptions for Unified Inventory.
-
Added more descriptions for Survivetest.
-
Added more descriptions for Repixture.
-
Added descriptions for Cave Ambience.
-
Added descriptions for Simple Cave.
-
Added descriptions for MineClone 2 C418 Records.
-
Added descriptions for Arena_Lib.
-
Added descriptions for Glitch.
-
Fixed fire subtitles never expiring in MineClone (reported by MysticTempest).
-
Tweaked the format of inline documentation.
-
Added custom UI styles for Glitch.
-
Changed unknown sounds from angle brackets to square brackets.
2023-01-13 17:52 UTC
0.3.0
- Added global settings to enable/disable subtitles by default on singleplayer and multiplayer.
- Added a global setting to enable/disable the introduction message.
- Added a global setting to enable/disable inventory integration.
- Node digging sounds are now decided based on groups in the absence of an explicit sound definition.
- Fixed player footsteps not having subtitles on older versions of Minetest.
- Fixed a crash on older versions of Minetest when hearing non-player footsteps.
- Added inventory integration for Repixture.
- Changed the
:add(), :remove(), and :update() methods of SubtitleDisplay to :add_sound(), :remove_sound(), and :update_sound().
- Converted the licence file from plain text to Markdown.
- Added descriptions for Subway Miner.
- Added descriptions for Advanced Trains Freight Train.
- Added descriptions for Automobiles Pack.
- Added descriptions for Bows.
- Added descriptions for Regional Weather.
- Added descriptions for i3.
- Added descriptions for Documentation System.
- Added descriptions for LineTrack.
- Added descriptions for Shifter Tool.
- Added descriptions for Mese Portals.
- Added descriptions for Bell.
- Added descriptions for New Fireworks.
- Added descriptions for BWeapons Modpack.
- Added descriptions for Radiant Damage.
- Added descriptions for Vacuum.
- Added descriptions for X Clay.
- Added descriptions for Scythes and Sickles.
- Added more descriptions for MineClone and Moontest.
- Added more descriptions for Sounds, Ambience, Mobs Creatures, and JR E231.
- Fixed some incorrect sound names.
find-missing.sh now follows symlinks.
- Improved the visual consistency of the preferences menu on i3.
2022-12-31 07:04 UTC
0.2.0
- Subtitles are now enabled by default on singleplayer.
- Settings are now stored in the agent for improved performance.
- Tweaked some UI textures.
- Added custom UI styles for MineClone and Repixture.
- The mode list in the preferences menu is now scrollable.
- Changed the way sound directions are calculated.
- Reduced the number of HUDs used by the classic display mode.
- Players can now enable/disable subtitles for footsteps.
- Added
help and footsteps subcommands to the /subtitles command.
- Added
find-missing.sh script to list sounds without descriptions.
- Added descriptions for Technic.
- Added descriptions for Mesebox.
- Added descriptions for Storage Drawers.
- Added descriptions for Enderpearl.
- Added descriptions for Demoiselle, Ju52, PA28, Super Cub, Super Duck Hydroplane, and Ultralight Trike.
- Added descriptions for Fishing!.
- Added descriptions for Spyglass.
- Added descriptions for Super Sam.
- Added descriptions for Real Torch.
- Added descriptions for CCompass.
- Added descriptions for Death Compass.
- Added descriptions for NextGen Bows.
- Added descriptions for Pyramids.
- Added descriptions for Stamina.
- Added descriptions for Hunger.
- Added descriptions for Ambiance.
- Added descriptions for Anvil.
- Added descriptions for Castle Weapons.
- Added descriptions for Ropes.
- Added descriptions for Travelnet.
- Added more descriptions for Minetest Game, MineClone, NodeCore, Repixture, and Moontest.
- Added more descriptions for Mobs, Home Decor, and Vehicles.
- Clarified the descriptions of some sounds.
- Rearranged the cover image to improve visibility of the subtitles in the screenshots.
- Darkened the border of the classic subtitles.
- The introduction message is no longer shown on singleplayer.
2022-12-27 04:17 UTC
0.1.1
- Fixed the version number being incorrect.
- Fixed an incorrect date in the changelog.
- Re-added the missing screenshot.
2022-12-25 11:31 UTC
0.1.0
- Improved footstep detection when swimming or walking through plants.
- Added ‘Supporting Subtitles in Your Mod’ to the readme.
- Corner subtitles now show the sound's distance and direction.
- Added API documentation using LDoc.
- Fixed some incorrect function signatures.
- Changed the description of railway crossing bells (suggested by Y. Wang).
- Fixed a bug causing unnecessary HUD updates.
- Fixed a bug causing HUD updates to change defaults.
- Fixed another bug causing unnecessary HUD updates.
- Increased the width of corner subtitles.
- Added a build script.
- Added descriptions for Mobs Skeleton.
- Added descriptions for Creatura and Animalia.
- Added descriptions for X Enchanting.
- Added descriptions for More Trains.
- Added descriptions for Bedrock.
- Tweaked some UI textures.
- Improved the classic subtitle appearance on older clients.
- Various performance improvements.
All releases
Threads
New thread
Information
Provides
subtitles
Dependencies
- Required
-
No required dependencies
- Optional
-
i3
rp_formspec
sfinv_buttons
unified_inventory
Information
- Type
- Mod
- Technical Name
- subtitles
- Languages
-
English
- License
-
MIT
for code,
CC0-1.0
for media.
- Maintenance State
- Beta
- Added
- 2022-12-08 13:42 UTC
- Maintainers
-
Silver Sandstone
Used By
Fantastic!
Really great quality-of-life mod; works wonderfully!
It's very easy to use. Lots of subtitles out of the box, and easy to implement your own support for the mod.
The only minor issue I've seen so far, was some subtitle spam crashing the mod. Specifically, the "Fire burns" sound in Mcl2; while in the Nether.
But, adding a simple duration time to the subtitle description fixed the spam, & crash.
"descriptions.lua" file; Line 108:
Like minecraft!
The subtitles are very helpful. However, I find the text too large (like size 20-30 point?) Besides that, this is a good mod.
Practicality and Accessibility
Saves one from being blown up by a creeper you can't see.