[Mod]Lightning[Weather,environment,fire]

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

[Mod]Lightning[Weather,environment,fire]

by sofar » Thu Jan 14, 2016 07:42

Have a scare with lightning!

Lightning strikes happen randomly above ground, set blocks on fire, and possibly change sand into glass, tree trunks into coal, and more! The mod contains several textures and sounds. When lightning strikes, the entire sky is lit up brightly!

https://github.com/minetest-mods/lightning

License: LGPL-2.1+ / CC-BY-SA

Screenshots:

Image
Image
Image
Image
Image
Last edited by sofar on Sat Jan 16, 2016 20:05, edited 2 times in total.
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [Mod]Lightning[Weather,environment,fire]

by duane » Thu Jan 14, 2016 08:23

Ooooooo. Pretty!

Is there a "/strike <username>" command in work?
 

User avatar
mahmutelmas06
Member
 
Posts: 355
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

Re: [Mod]Lightning[Weather,environment,fire]

by mahmutelmas06 » Thu Jan 14, 2016 11:54

Nice mod.
Would be much better if Lightning appears when the weather is rainy if mymonths installed.
viewtopic.php?f=9&t=13639
My Mods:

Beverage
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Lightning[Weather,environment,fire]

by sofar » Thu Jan 14, 2016 17:20

mahmutelmas06 wrote:Nice mod.
Would be much better if Lightning appears when the weather is rainy if mymonths installed.
viewtopic.php?f=9&t=13639


Send patches.
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Lightning[Weather,environment,fire]

by sofar » Thu Jan 14, 2016 17:20

duane wrote:Ooooooo. Pretty!

Is there a "/strike <username>" command in work?


That's easily doable. Who do you have it in for?
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: [Mod]Lightning[Weather,environment,fire]

by iangp » Fri Jan 15, 2016 14:26

+1 for that ^o^
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: [Mod]Lightning[Weather,environment,fire]

by cd2 » Sat Jan 16, 2016 10:46

that looks great!
 

Ivà
Member
 
Posts: 115
Joined: Sun Feb 22, 2015 07:11
GitHub: melzua
IRC: melzua
In-game: melzua

Re: [Mod]Lightning[Weather,environment,fire]

by Ivà » Sat Jan 16, 2016 11:26

duane wrote:Ooooooo. Pretty!

Is there a "/strike <username>" command in work?


XDDD +1
 

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

Re: [Mod]Lightning[Weather,environment,fire]

by stu » Sat Jan 16, 2016 19:01

I really like this mod, very interesting use of the particles. I can imagine HV tesla coils, plasma balls and the like being possible too. It's a real shame the particles cannot emit light, but I doubt that will ever be possible with the current lighting model.

duane wrote:Is there a "/strike <username>" command in work?


+1 It should require a 'god' or 'thor' privilege ;-)
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Lightning[Weather,environment,fire]

by sofar » Sat Jan 16, 2016 20:04

stu wrote:I really like this mod, very interesting use of the particles. I can imagine HV tesla coils, plasma balls and the like being possible too. It's a real shame the particles cannot emit light, but I doubt that will ever be possible with the current lighting model.

duane wrote:Is there a "/strike <username>" command in work?


+1 It should require a 'god' or 'thor' privilege ;-)


tenplus1 posted an issue/feature request for this a while back.

I've just pushed a change that will "light up the sky" briefly. Try it out.
 

Diamond knight
Member
 
Posts: 262
Joined: Sun Apr 19, 2015 19:50
In-game: Diamondknight or diamond_knight

Re: [Mod]Lightning[Weather,environment,fire]

by Diamond knight » Thu Feb 11, 2016 23:36

now i can make a herobrine lightning rod!!! finnally the code i am looking for!!!
I can never get enough MESE!!!!!!!!!

my subgame: https://forum.minetest.net/viewtopic.php?f=50&t=11901
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Lightning[Weather,environment,fire]

by sofar » Sun Feb 21, 2016 23:16

Updates:

- reduce chance of actual spreading fire by 10. (now 1:1000)
- reduce chance of nodes getting modified (1:10)
- adds a "dying flame" node that does not ignite other nodes
- lightning by default places the "dying flame"
- "dying flame" node destroys itself within a short period

This makes the mod a bit safer, I was noticing a lot of modified nodes in the landscape on my personal server, a bit too much for my liking. Happy striking!
 

Martin_Devil
Member
 
Posts: 190
Joined: Sat Apr 06, 2013 11:58
GitHub: MoNTE48
In-game: MoNTE48

Re: [Mod]Lightning[Weather,environment,fire]

by Martin_Devil » Mon Mar 14, 2016 10:38

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
2016-03-14 12:36:41: ERROR[Main]: ServerError: Runtime error from mod 'lightning' in callback environment_Step(): Runtime error from mod 'lightning' in callback node_on_construct(): ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:41: Invalid core.after invocation
2016-03-14 12:36:41: ERROR[Main]: stack traceback:
2016-03-14 12:36:41: ERROR[Main]:    [C]: in function 'assert'
2016-03-14 12:36:41: ERROR[Main]:    ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:41: in function 'after'
2016-03-14 12:36:41: ERROR[Main]:    ....1.0-win64\bin\..\games\default\files\lightning\init.lua:203: in function <....1.0-win64\bin\..\games\default\files\lightning\init.lua:201>
2016-03-14 12:36:41: ERROR[Main]:    [C]: in function 'set_node'
2016-03-14 12:36:41: ERROR[Main]:    ....1.0-win64\bin\..\games\default\files\lightning\init.lua:153: in function 'func'
2016-03-14 12:36:41: ERROR[Main]:    ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:34: in function <...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:11>
2016-03-14 12:36:41: ERROR[Main]:    ...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:369: in function <...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:349>
2016-03-14 12:36:41: ERROR[Main]: stack traceback:
2016-03-14 12:36:41: ERROR[Main]:    [C]: in function 'set_node'
2016-03-14 12:36:41: ERROR[Main]:    ....1.0-win64\bin\..\games\default\files\lightning\init.lua:153: in function 'func'
2016-03-14 12:36:41: ERROR[Main]:    ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:34: in function <...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:11>
2016-03-14 12:36:41: ERROR[Main]:    ...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:369: in function <...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:349>
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Lightning[Weather,environment,fire]

by sofar » Mon Mar 14, 2016 14:38

Martin_Devil wrote:
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
2016-03-14 12:36:41: ERROR[Main]: ServerError: Runtime error from mod 'lightning' in callback environment_Step(): Runtime error from mod 'lightning' in callback node_on_construct(): ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:41: Invalid core.after invocation
2016-03-14 12:36:41: ERROR[Main]: stack traceback:
2016-03-14 12:36:41: ERROR[Main]:    [C]: in function 'assert'
2016-03-14 12:36:41: ERROR[Main]:    ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:41: in function 'after'
2016-03-14 12:36:41: ERROR[Main]:    ....1.0-win64\bin\..\games\default\files\lightning\init.lua:203: in function <....1.0-win64\bin\..\games\default\files\lightning\init.lua:201>
2016-03-14 12:36:41: ERROR[Main]:    [C]: in function 'set_node'
2016-03-14 12:36:41: ERROR[Main]:    ....1.0-win64\bin\..\games\default\files\lightning\init.lua:153: in function 'func'
2016-03-14 12:36:41: ERROR[Main]:    ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:34: in function <...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:11>
2016-03-14 12:36:41: ERROR[Main]:    ...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:369: in function <...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:349>
2016-03-14 12:36:41: ERROR[Main]: stack traceback:
2016-03-14 12:36:41: ERROR[Main]:    [C]: in function 'set_node'
2016-03-14 12:36:41: ERROR[Main]:    ....1.0-win64\bin\..\games\default\files\lightning\init.lua:153: in function 'func'
2016-03-14 12:36:41: ERROR[Main]:    ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:34: in function <...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:11>
2016-03-14 12:36:41: ERROR[Main]:    ...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:369: in function <...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:349>



did you disable the "fire" mod, perhaps?
 

Martin_Devil
Member
 
Posts: 190
Joined: Sat Apr 06, 2013 11:58
GitHub: MoNTE48
In-game: MoNTE48

Re: [Mod]Lightning[Weather,environment,fire]

by Martin_Devil » Mon Mar 14, 2016 15:24

sofar wrote:
Martin_Devil wrote:
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
2016-03-14 12:36:41: ERROR[Main]: ServerError: Runtime error from mod 'lightning' in callback environment_Step(): Runtime error from mod 'lightning' in callback node_on_construct(): ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:41: Invalid core.after invocation
2016-03-14 12:36:41: ERROR[Main]: stack traceback:
2016-03-14 12:36:41: ERROR[Main]:    [C]: in function 'assert'
2016-03-14 12:36:41: ERROR[Main]:    ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:41: in function 'after'
2016-03-14 12:36:41: ERROR[Main]:    ....1.0-win64\bin\..\games\default\files\lightning\init.lua:203: in function <....1.0-win64\bin\..\games\default\files\lightning\init.lua:201>
2016-03-14 12:36:41: ERROR[Main]:    [C]: in function 'set_node'
2016-03-14 12:36:41: ERROR[Main]:    ....1.0-win64\bin\..\games\default\files\lightning\init.lua:153: in function 'func'
2016-03-14 12:36:41: ERROR[Main]:    ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:34: in function <...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:11>
2016-03-14 12:36:41: ERROR[Main]:    ...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:369: in function <...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:349>
2016-03-14 12:36:41: ERROR[Main]: stack traceback:
2016-03-14 12:36:41: ERROR[Main]:    [C]: in function 'set_node'
2016-03-14 12:36:41: ERROR[Main]:    ....1.0-win64\bin\..\games\default\files\lightning\init.lua:153: in function 'func'
2016-03-14 12:36:41: ERROR[Main]:    ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:34: in function <...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:11>
2016-03-14 12:36:41: ERROR[Main]:    ...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:369: in function <...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:349>



did you disable the "fire" mod, perhaps?

I use tenplus1 fire mod.
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Lightning[Weather,environment,fire]

by sofar » Tue Mar 15, 2016 06:17

Martin_Devil wrote:
sofar wrote:did you disable the "fire" mod, perhaps?

I use tenplus1 fire mod.


I was going to say not to do that. However, the fix is relatively simple. And I've pushed it to git.

So now I'll just say, next time don't do that, and tell me first if you're using modified versions of default mods! ;)
 

Martin_Devil
Member
 
Posts: 190
Joined: Sat Apr 06, 2013 11:58
GitHub: MoNTE48
In-game: MoNTE48

Re: [Mod]Lightning[Weather,environment,fire]

by Martin_Devil » Tue Mar 15, 2016 06:39

I did not see the code and did not think that there are any problems. I've never even looked what is the difference between minetest_game fire and tenplus1 version. :)
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Lightning[Weather,environment,fire]

by sofar » Tue Mar 15, 2016 06:53

Martin_Devil wrote:I did not see the code and did not think that there are any problems. I've never even looked what is the difference between minetest_game fire and tenplus1 version. :)


tenplus1' version removes the fire-sound API - the reason for the crash. What tenplus1 should do is make the API calls available but not do anything, so it's API compatible.
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod]Lightning[Weather,environment,fire]

by TenPlus1 » Tue Mar 15, 2016 21:47

Latest version of Fire Redo is based on the new default fire mod with redo changes applied and api compatibility: https://github.com/tenplus1/fire
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Lightning[Weather,environment,fire]

by sofar » Tue Mar 15, 2016 22:50

TenPlus1 wrote:Latest version of Fire Redo is based on the new default fire mod with redo changes applied and api compatibility: https://github.com/tenplus1/fire


Nice :D
 

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

Re: [Mod]Lightning[Weather,environment,fire]

by linushsao » Wed Mar 16, 2016 11:30

sofar wrote:
duane wrote:Ooooooo. Pretty!

Is there a "/strike <username>" command in work?


That's easily doable. Who do you have it in for?



The angry of GOD?
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Lightning[Weather,environment,fire]

by sofar » Wed Mar 16, 2016 14:54

FYI the lightning mod now has an API that makes it easily integrated in other mods.

Now other mods could invoke it to strike players.
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod]Lightning[Weather,environment,fire]

by Don » Wed Mar 16, 2016 15:53

sofar wrote:FYI the lightning mod now has an API that makes it easily integrated in other mods.

Now other mods could invoke it to strike players.

I add it to mymonths. It makes storms look better.
Love this mod!
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

Re: [Mod]Lightning[Weather,environment,fire]

by Sokomine » Fri Mar 18, 2016 19:17

That's a very good idea for survival-based games. Nature becomes more thretening that way (to a degree).
A list of my mods can be found here.
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Lightning[Weather,environment,fire]

by sofar » Fri Mar 18, 2016 19:20

FYI I didn't mention this explicitly, but any player that's nearby the place where the lightning strikes will take a significant amount of damage. Not enough to kill a player at full health, but it will kill a player that's low on health.
 

Martin_Devil
Member
 
Posts: 190
Joined: Sat Apr 06, 2013 11:58
GitHub: MoNTE48
In-game: MoNTE48

Re: [Mod]Lightning[Weather,environment,fire]

by Martin_Devil » Fri Mar 25, 2016 10:55

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
2016-03-25 12:53:52: ERROR[Main]: ServerError: Runtime error from mod 'lightning' in callback environment_Step(): Runtime error from mod 'lightning' in callback node_on_construct(): ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:41: Invalid core.after invocation
2016-03-25 12:53:52: ERROR[Main]: stack traceback:
2016-03-25 12:53:52: ERROR[Main]:    [C]: in function 'assert'
2016-03-25 12:53:52: ERROR[Main]:    ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:41: in function 'after'
2016-03-25 12:53:52: ERROR[Main]:    ....1.0-win64\bin\..\games\default\files\lightning\init.lua:203: in function <....1.0-win64\bin\..\games\default\files\lightning\init.lua:201>
2016-03-25 12:53:52: ERROR[Main]:    [C]: in function 'set_node'
2016-03-25 12:53:52: ERROR[Main]:    ....1.0-win64\bin\..\games\default\files\lightning\init.lua:153: in function 'func'
2016-03-25 12:53:52: ERROR[Main]:    ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:34: in function <...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:11>
2016-03-25 12:53:52: ERROR[Main]:    ...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:369: in function <...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:349>
2016-03-25 12:53:52: ERROR[Main]: stack traceback:
2016-03-25 12:53:52: ERROR[Main]:    [C]: in function 'set_node'
2016-03-25 12:53:52: ERROR[Main]:    ....1.0-win64\bin\..\games\default\files\lightning\init.lua:153: in function 'func'
2016-03-25 12:53:52: ERROR[Main]:    ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:34: in function <...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:11>
2016-03-25 12:53:52: ERROR[Main]:    ...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:369: in function <...\MultiCraft-1.1.0-win64\bin\..\builtin\game\register.lua:349>
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Lightning[Weather,environment,fire]

by sofar » Fri Mar 25, 2016 17:00

Martin_Devil wrote:
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
2016-03-25 12:53:52: ERROR[Main]: ServerError: Runtime error from mod 'lightning' in callback environment_Step(): Runtime error from mod 'lightning' in callback node_on_construct(): ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:41: Invalid core.after invocation


MultiCraft-1.1.0-win64, what is that?

No seriously, go away. Try it on minetest instead, I can't possibly know or want to support clones or forks.
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: [Mod]Lightning[Weather,environment,fire]

by jp » Fri Mar 25, 2016 17:30

sofar wrote:MultiCraft-1.1.0-win64, what is that?

An unethical fork from which Martin_Devil (aka "MoNTE48") is the author : viewtopic.php?f=14&t=14057
 

Martin_Devil
Member
 
Posts: 190
Joined: Sat Apr 06, 2013 11:58
GitHub: MoNTE48
In-game: MoNTE48

Re: [Mod]Lightning[Weather,environment,fire]

by Martin_Devil » Fri Mar 25, 2016 17:53

sofar wrote:
Martin_Devil wrote:
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
2016-03-25 12:53:52: ERROR[Main]: ServerError: Runtime error from mod 'lightning' in callback environment_Step(): Runtime error from mod 'lightning' in callback node_on_construct(): ...ktop\MultiCraft-1.1.0-win64\bin\..\builtin\game\misc.lua:41: Invalid core.after invocation


MultiCraft-1.1.0-win64, what is that?

No seriously, go away. Try it on minetest instead, I can't possibly know or want to support clones or forks.

This is Minetest 0.4.13-master.
 

Martin_Devil
Member
 
Posts: 190
Joined: Sat Apr 06, 2013 11:58
GitHub: MoNTE48
In-game: MoNTE48

Re: [Mod]Lightning[Weather,environment,fire]

by Martin_Devil » Fri Mar 25, 2016 17:55

jp wrote:
sofar wrote:MultiCraft-1.1.0-win64, what is that?

An unethical fork from which Martin_Devil (aka "MoNTE48") is the author : viewtopic.php?f=14&t=14057


You can bring proof of his words? Or is it silly nonsense person who does not know what permissions gives LGPL
 

Next

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 28 guests

cron