[Mod] Hardcore torchs [v0.5.6][hardtorch]

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

[Mod] Hardcore torchs [v0.5.6][hardtorch]

by BrunoMine » Post

Image
Image
Description:
This mod will make torches much more realistic.
  • Add durability for torchs in general
  • Torches can brighten up the environment if you keep it in your hand (use leftclik)
  • It is necessary to hit a heat source with the torch or have a lighter in the inventory (optional, default is denabled)
  • Water extinguishes torches
  • Add Oil Lamp
  • Add torch sounds
Dependencies:
  • Minetest 0.4.16
  • Mod default
  • Mod fire
Download:
Hardtorch

License:
LGPL v3.0

Repository:
GitHub
Spoiler
Recipes
Image

List of fuels (all values are configurable from the advanced settings menu):
  • Default Torch = 0.1 nights
  • Oil = 1.2 nights
List of lamps
  • Default Torch (fuel is it self)
  • Oil Lamp (fuel is Oil)
List of lighters
  • Flint and Steel
Attachments
hardtorch_lamp.png
hardtorch_lamp.png (290.37 KiB) Viewed 1293 times
hardtorch.png
hardtorch.png (296.27 KiB) Viewed 1292 times
Last edited by BrunoMine on Thu Sep 05, 2019 16:51, edited 25 times in total.

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [Mod] Hardcore torchs [v0.1.0][hardtorch]

by ExeterDad » Post

This is a neat idea. After all... a torch is a torch, and should burn out. Not be a permanent fixture that spams the landscape for eternity.

User avatar
Sergey
Member
Posts: 784
Joined: Wed Jan 11, 2017 13:28
Location: Russia

Re: [Mod] Hardcore torchs [v0.1.0][hardtorch]

by Sergey » Post

Does this torch lighten up the environment only when you hold it in hand or you can mount it to wall as well?
Does this torch replace the default one?

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] Hardcore torchs [v0.1.0][hardtorch]

by BrunoMine » Post

Now, you can use the left hand in Minetest. XD
Sergey wrote:Does this torch lighten up the environment only when you hold it in hand or you can mount it to wall as well?
Works just like normal torches.
Sergey wrote:Does this torch replace the default one?
Yes

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] Hardcore torchs [v0.2.0][hardtorch]

by azekill_DIABLO » Post

what is the yellow spot on the hud, in the down-left? a torch in hand? Does it really lights up? :D
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] Hardcore torchs [v0.2.0][hardtorch]

by BrunoMine » Post

Sounds for torches added.
azekill_DIABLO wrote:what is the yellow spot on the hud, in the down-left? a torch in hand? Does it really lights up? :D
Yes, while the torch remains lit, it stays in the left hand.

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] Hardcore torchs [v0.3.0][hardtorch]

by azekill_DIABLO » Post

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

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] Hardcore torchs [v0.3.0][hardtorch]

by John_Constructor » Post

Tried it out, the torches seem laggy when in the hand for me. Still though, great mod.
Constructing mechs and wingless aircraft since 2016.

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] Hardcore torchs [v0.3.0][hardtorch]

by BrunoMine » Post

* Added Oleo (Oil).
* Added Lamparina (Lamp).
* Fixed (partially) lag with torchs lit.

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] Hardcore torchs [v0.4.0][hardtorch]

by John_Constructor » Post

Performance is far better! Good job on the update!
Constructing mechs and wingless aircraft since 2016.

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: [Mod] Hardcore torchs [v0.4.0][hardtorch]

by Hamlet » Post

I'm interested on your mod, because I am using Real Torch 0.7, which does not have handheld light, and Torches handheld light is a bit laggy for me.

I would like to have a mod like yours in my subgame, my questions are: is the handheld light better than the one in Torches? And the unlit torches in your mod can be reused like in Real Torch using flint&steel or coal powder?
My repositories: Codeberg.org | My ContentDB's page

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] Hardcore torchs [v0.4.0][hardtorch]

by BrunoMine » Post

Hamlet wrote:Torches handheld light is a bit laggy for me.
The trick to keeping the environment lit is a bit problematic, it's possible that the problem continues, I've tried to make it a little softer, but I do not have any reliable tests that confirm this.
Hamlet wrote:is the handheld light better than the one in Torches?
Handled torches should be a little less efficient.
Hamlet wrote:the unlit torches in your mod can be reused like in Real Torch using flint&steel or coal powder?
No, the torch is the only light source that can not be supplied. It burned completely.

It is important to remember that this mod is not completely finished.

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: [Mod] Hardcore torchs [v0.4.0][hardtorch]

by Hamlet » Post

BrunoMine wrote: No, the torch is the only light source that can not be supplied. It burned completely.
It is important to remember that this mod is not completely finished.
I've tested your mod and I've enjoyed it very much.

I like that:

- Handheld torches/lamps are in the left hand, allowing to use the right hand to hold a sword while exploring a cave. This is a big improvement in explorative-gameplay; and no more stacks of torches cluttering the inventory and littering the caves.

- Torches and oil lamps' uses can be set using Settings -> Advanced Settings -> Mods menu - I've set them to 1.0 and 3.0; 1 night for a torch, 3 nights for an oil lamp.

- Torches are like any other tool: no more uses, no more tool. This encourages crafting the oil lamp, that can be refilled.


About the ligthing while moving, it isn't perfect, but I do not care because of what I have written above.

Thank you for this mod, I am going to use it by default; keep up the good work!
My repositories: Codeberg.org | My ContentDB's page

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] Hardcore torchs [v0.5.0-alpha][hardtorch]

by BrunoMine » Post

Okay, finaly. 0.5.0-alpha version pre-released!
  • Added all torch sounds
  • Oil Lamp nodebox improved
  • Added lighting system
  • Added API for torchs and other mods support
  • other things :P
After the tests will be released definitively.
tests are being performed on the minemacro server.

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] Hardcore torchs [v0.5.0-alpha][hardtorch]

by John_Constructor » Post

Definitely a great update! Honestly when I tried the direct previous version it started crashing on my Standard Survival (No technology) world, 10/10 for excellent updates!

EDIT: The crash happened again, only when I placed a torch though.

Image

EDIT: As well as lamp duplication... They then both deleted themselves along with one of my one-hundred and fifty torches, hopefully this has been helpful (For the mod developer: BrunoMine)!
Attachments
The error screen's description.
The error screen's description.
Error.PNG (26.74 KiB) Viewed 1291 times
Constructing mechs and wingless aircraft since 2016.

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] Hardcore torchs [v0.5.0-alpha][hardtorch]

by BrunoMine » Post

John_Constructor wrote:The crash happened again, only when I placed a torch though.

Image
Fixed, thanks for reporting.
John_Constructor wrote: As well as lamp duplication... They then both deleted themselves along with one of my one-hundred and fifty torches, hopefully this has been helpful
Sorry, but I do not understand what happened. Can you explain the procedure in detail?

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] Hardcore torchs [v0.5.0-alpha][hardtorch]

by John_Constructor » Post

Lamp duplication: Place lamp, break lamp and place again. deletion occured when trying to light one of the two lamps; torch was unlit and relit with about 50% durability, soon after it acted like /pulverize was used, singleplayer on same world that that the prevous crashes have occured. You are welcome.

EDIT: I right-clicked a chest and the lamp deleted itself, tested on different world.
Constructing mechs and wingless aircraft since 2016.

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] Hardcore torchs [v0.5.0-alpha][hardtorch]

by BrunoMine » Post

John_Constructor wrote:Lamp duplication: Place lamp, break lamp and place again.
I tried to perform these movements as fast as possible (in creative mode and survival), but I could not duplicate the bulbs. However I managed to get more oil. I fixed this now. I do not know if the problem in question has been solved. Can you give more details? Was the lamp on when you put it on? you was in Survival mode?
John_Constructor wrote:deletion occured when trying to light one of the two lamps;
I can not reproduce this error. I just put two lamps in the inventory and one oil. I can light one of them and the other one remains erased.
John_Constructor wrote:torch was unlit and relit with about 50% durability, soon after it acted like /pulverize was used, singleplayer on same world that that the prevous crashes have occured.
I did not understand exactly what happened here.
John_Constructor wrote:I right-clicked a chest and the lamp deleted itself, tested on different world.
Fixed. Thank you

You can report an error in a more organized way through the project repository on GitHub.
https://github.com/BrunoMine/hardtorch/issues

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] Hardcore torchs [v0.5.0-alpha][hardtorch]

by John_Constructor » Post

Strangely I am getting the effects you're getting from this duplication bug on the prevous version of the mod, apparently I accidentally right-clicked on the Mechanical Door in one of my structures with that torch, I tried replicating the lamps deleting (apparently on the wrong block to replicate it, apparently that was the chest deletion bug.) themselves- no luck, I downloaded the current version of this mod and tested again. All the bugs I have found so far are fixed, you're welcome.

On the note of the Github error reports being more organized through the repository: Will do, thank you for the information.
Constructing mechs and wingless aircraft since 2016.

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] Hardcore torchs [v0.5.2][hardtorch]

by BrunoMine » Post

Updated to 0.5.2
* Removed torch (used) recipe
* Removes residual light
* Fixed light behavior in protected areas

Animetrom
Member
Posts: 10
Joined: Fri Dec 30, 2016 19:15
In-game: Animetrom

Re: [Mod] Hardcore torchs [v0.5.2][hardtorch]

by Animetrom » Post

De nada. (:
wylYiMx1QBDrQuwa52tzXWqGgG91a2CA

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] Hardcore torchs [v0.5.3][hardtorch]

by BrunoMine » Post

Updated to 0.5.3
* Old 'minetest.setting_get' method removed
* luminance control of torches
* API updated
Last edited by BrunoMine on Sat Nov 04, 2017 18:40, edited 1 time 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] Hardcore torchs [v0.5.3][hardtorch]

by azekill_DIABLO » Post

BrunoMine wrote: * Removed old 'minetest.setting_get' method removed
by what was it replaced? it interest me at the highest point!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] Hardcore torchs [v0.5.3][hardtorch]

by BrunoMine » Post

This responds well
viewtopic.php?f=6&t=18002

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] Hardcore torchs [v0.5.3][hardtorch]

by azekill_DIABLO » Post

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

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests