[Mod] Fast, powerful explosives [git] [nuke]

User avatar
ShadowNinja
Developer
 
Posts: 199
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

[Mod] Fast, powerful explosives [git] [nuke]

by ShadowNinja » Sat Jul 12, 2014 18:10

This mod adds some powerful explosives, including iron and mese TNT and a missile.
It is highly optimized and uses the LuaVoxelManipulator.
It also has some effects, including randomness and particles, and is easily configurable.
The mese nuke has a range of 24 by default, and takes approximately 0.7 seconds to detonate with a full area. However I've managed to make an explosion with a radius of 128 (256x256x256) in about a minute (see screenshots below).
It stores configuration in nuke.conf in the world directory (see README.md) and is usable on servers, due to it's optional privilege requirements.
Note that the missile is currently very unpolished, due to limitations of the core.
Note that the explosives also don't drop items, for speed.

+ Screenshots


Code license: LGPLv3+ by ShadowNinja
Texture licences: CC-BY-SA 4.0 by ShadowNinja, and CC-BY-SA 3.0 by sfan5
Missile model and texture license: WTFPL by Jordach
Sound license: Unknown
GitHub: https://github.com/ShadowNinja/nuke
Download: https://github.com/ShadowNinja/nuke/archive/master.zip
Last edited by ShadowNinja on Sun Jul 13, 2014 00:30, edited 1 time in total.
Reason: Missle -> Missile
The best way to contact me is usually IRC (InchraNet, freenode).
 

User avatar
Inocudom
Member
 
Posts: 3018
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Fast, powerful explosives [git] [nuke]

by Inocudom » Sat Jul 12, 2014 18:13

...But do they honor protection mods?
Recovering from the abomination I am. Clocking time for Garry's Mod I am too.
 

User avatar
Krock
Developer
 
Posts: 4141
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod] Fast, powerful explosives [git] [nuke]

by Krock » Sat Jul 12, 2014 19:25

Finally a realistic nuke mod! All others made too little holes and called minetest.remove_node too much


Inocudom wrote:...But do they honor protection mods?

How much nodes would be needed to check?
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
ShadowNinja
Developer
 
Posts: 199
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

Re: [Mod] Fast, powerful explosives [git] [nuke]

by ShadowNinja » Sat Jul 12, 2014 19:40

This doesn't honor protection yet. If it did it would have to use the API of supported protection mods directly, since is_protected doesn't support checking areas because some mods can't check areas for protection efficiently (mods that store the protection in nodes or their meta for example), and iterating over every position and checking it isn't doable at a reasonable speed.
I'll add protection support for my areas mod.
EDIT: This will also be a bit buggy since the modified area is a sphere, not a cube.
The best way to contact me is usually IRC (InchraNet, freenode).
 

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

Re: [Mod] Fast, powerful explosives [git] [nuke]

by ExeterDad » Sat Jul 12, 2014 20:41

Those are some beeeeeeeeg freak'n craters. May as well code a meteor impact effect to go along with it!
 

User avatar
Napiophelios
Member
 
Posts: 940
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: [Mod] Fast, powerful explosives [git] [nuke]

by Evergreen » Sat Jul 12, 2014 21:27

I tested the missles, and they work well. One problem is that the chunks have to be loaded where the missle is going, causing it to stop if you aren't nearby. Idk if there is a way of doing that with entities though.
 

User avatar
ShadowNinja
Developer
 
Posts: 199
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

Re: [Mod] Fast, powerful explosives [git] [nuke]

by ShadowNinja » Sun Jul 13, 2014 00:07

Protection support added: 67760f82
I also added sounds, entity physics, effects, and other things to the missile that I missed before.
Evergreen wrote:Missiles get unloaded too easily.

When I first created missiles the force-loading API wasn't available, and a VM hack (like WorldEdit uses) didn't work. I'll try to add support for that.
The best way to contact me is usually IRC (InchraNet, freenode).
 

User avatar
ShadowNinja
Developer
 
Posts: 199
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

Re: [Mod] Fast, powerful explosives [git] [nuke]

by ShadowNinja » Sun Jul 13, 2014 00:29

Napiophelios wrote:Do I have to create my own nuke.conf file?

Yes, at one point it created the file with the default configuration if it didn't exist, but I decided to remove that because if I changed the defaults they wouldn't update in any running installation becuase the mod would treat the settings in nuke.conf as if they were manually set. I could create an empty nuke.conf, but that doesn't seem very useful.
The best way to contact me is usually IRC (InchraNet, freenode).
 

User avatar
kidmondo
Member
 
Posts: 130
Joined: Sun May 11, 2014 07:56
Location: New Zealand
IRC: kidmondo
In-game: kidmondo

Re: [Mod] Fast, powerful explosives [git] [nuke]

by kidmondo » Sat Aug 02, 2014 03:29

every time I try to use it I get this:
15:11:20: ERROR[main]: ========== ERROR FROM LUA ===========
15:11:20: ERROR[main]: Failed to load and run script from
15:11:20: ERROR[main]: C:\Users\Gail\Downloads\minetest-0.4.9\minetest-0.4.9\bin\..\mods\nuke\init.lua:
15:11:20: ERROR[main]: ...\minetest-0.4.9\minetest-0.4.9\bin\..\mods\nuke\init.lua:11: attempt to concatenate global 'DIR_DELIM' (a nil value)
15:11:20: ERROR[main]: stack traceback:
15:11:20: ERROR[main]: ...\minetest-0.4.9\minetest-0.4.9\bin\..\mods\nuke\init.lua:11: in main chunk
15:11:20: ERROR[main]: ======= END OF ERROR FROM LUA ========
15:11:20: ERROR[main]: Server: Failed to load and run C:\Users\Gail\Downloads\minetest-0.4.9\minetest-0.4.9\bin\..\mods\nuke\init.lua
15:11:20: ERROR[main]: ModError: ModError: Failed to load and run C:\Users\Gail\Downloads\minetest-0.4.9\minetest-0.4.9\bin\..\mods\nuke\init.lua
 

User avatar
Krock
Developer
 
Posts: 4141
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod] Fast, powerful explosives [git] [nuke]

by Krock » Sat Aug 02, 2014 09:08

kidmondo wrote:every time I try to use it I get this:

minetest-0.4.9

mods\nuke\init.lua:11: attempt to concatenate global 'DIR_DELIM' (a nil value)

Your minetest version is outdated, please download 0.4.10 or an in-developement version.

Replace
Code: Select all
 DIR_DELIM
, line 11 in "init.lua" with
Code: Select all
"/"
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
kidmondo
Member
 
Posts: 130
Joined: Sun May 11, 2014 07:56
Location: New Zealand
IRC: kidmondo
In-game: kidmondo

Re: [Mod] Fast, powerful explosives [git] [nuke]

by kidmondo » Sun Aug 03, 2014 06:09

okay fixed, another problem it shoots up and explodes in the air, and how do you use the TNT?
 

User avatar
Krock
Developer
 
Posts: 4141
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod] Fast, powerful explosives [git] [nuke]

by Krock » Sun Aug 03, 2014 08:41

kidmondo wrote:and how do you use the TNT?

Punch them. (with a torch?)
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
kidmondo
Member
 
Posts: 130
Joined: Sun May 11, 2014 07:56
Location: New Zealand
IRC: kidmondo
In-game: kidmondo
 

User avatar
Wayward_One
Member
 
Posts: 108
Joined: Tue Jun 10, 2014 18:44
Location: Kolene, Corellia
GitHub: Wayward1
IRC: Wayward_One Wayward1
In-game: Wayward_One

Re: [Mod] Fast, powerful explosives [git] [nuke]

by Wayward_One » Fri Aug 08, 2014 22:28

Yeah, that happens to me too. About 80% of the time they explode mid-air or misfire on the launchpad.
 

User avatar
kidmondo
Member
 
Posts: 130
Joined: Sun May 11, 2014 07:56
Location: New Zealand
IRC: kidmondo
In-game: kidmondo

Re: [Mod] Fast, powerful explosives [git] [nuke]

by kidmondo » Fri Aug 08, 2014 23:25

Wayward_One wrote:Yeah, that happens to me too. About 80% of the time they explode mid-air or misfire on the launchpad.


Mine always explode in mid air...
 

User avatar
ShadowNinja
Developer
 
Posts: 199
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

Re: [Mod] Fast, powerful explosives [git] [nuke]

by ShadowNinja » Sat Aug 09, 2014 00:17

Missiles need to have a clearance 100 nodes into the air. Hitting anything before that will cause them to explode, although not as powerfully as if they had hit their target.
They also need to stay loaded, which is hard unless you're using creative, I plan to fix this with force loading. They shouldn't explode if they get unloaded though.
Other things to do:
  • Make missiles follow a curve.
  • Make missiles point where they're going (not possible yet due to engine limitations)
The best way to contact me is usually IRC (InchraNet, freenode).
 

User avatar
kidmondo
Member
 
Posts: 130
Joined: Sun May 11, 2014 07:56
Location: New Zealand
IRC: kidmondo
In-game: kidmondo
 

User avatar
Hybrid Dog
Member
 
Posts: 2681
Joined: Thu Nov 01, 2012 12:46

Re: [Mod] Fast, powerful explosives [git] [nuke]

by Hybrid Dog » Tue Jun 16, 2015 17:29

kidmondo wrote:has the exploding in mid air issue been fixed yet?

What do you mean?
btw: have you tested the rocket launcher yet?
https://github.com/HybridDog/nuke

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

User avatar
kidmondo
Member
 
Posts: 130
Joined: Sun May 11, 2014 07:56
Location: New Zealand
IRC: kidmondo
In-game: kidmondo
 

User avatar
Hybrid Dog
Member
 
Posts: 2681
Joined: Thu Nov 01, 2012 12:46

Re: [Mod] Fast, powerful explosives [git] [nuke]

by Hybrid Dog » Wed Jun 17, 2015 14:37

kidmondo wrote:what mods are "moss" and "vector_extra" in the depends :3

viewtopic.php?f=9&t=10262
viewtopic.php?f=9&t=8533

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

User avatar
kidmondo
Member
 
Posts: 130
Joined: Sun May 11, 2014 07:56
Location: New Zealand
IRC: kidmondo
In-game: kidmondo
 

dannyplaysminetest
Member
 
Posts: 37
Joined: Sun Jun 28, 2015 19:20
In-game: Danny

Re: [Mod] Fast, powerful explosives [git] [nuke]

by dannyplaysminetest » Sun Jun 28, 2015 21:36

Thanks cool Mod! i created this place deep underground with help of a Mese TNT. ^_^

Image
 

orangebiscuit
Member
 
Posts: 27
Joined: Thu Feb 20, 2014 21:48

Re: [Mod] Fast, powerful explosives [git] [nuke]

by orangebiscuit » Fri Jul 31, 2015 00:46

Would it be possible to make an explosive that explodes continuously? Or until a certain block is placed somewhere that could change a variable to say "1", which would disable the explosive?

Just an idea, having just watched some videos on MC's Voltz pack...
 


Return to Mod Releases



Who is online

Users browsing this forum: Dan2018 and 6 guests