Page 1 of 1

[Modpack]Submarine

PostPosted: Fri Dec 30, 2016 14:08
by krokoschlange
This is my first mod so don't expect too much.

It adds a submarine and a submarine destroyer to the game. The code is mostly taken from PilzAdam's boats mod.

Image
Image

Features:
  1. a submarine that can shoot torpedos
  2. it can sink
  3. override of default boats mod to be able to shoot boats with torpedos
  4. a submarine destroyer that drops depth charges
  5. an api that lets you register your own submarines

Crafting:
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

submarine:
steel block steel block steel block
steel block  mese block  steel block
steel block steel block steel block

torpedo:
steel ingot steel ingot steel ingot
boat         tnt        flint and steel
steel ingot steel ingot steel ingot

destroyer:
     -          -         -
steel block mese block steel block
steel block steel block steel block

depth charge:
steel ingot steel ingot steel ingot
steel ingot    tnt    steel ingot
steel ingot steel ingot steel ingot


Sound Settings
To mute the sonar ping you can edit minetest.conf:
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
submarine_sonar_ping_volume = 0

Default setting 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
submarine_sonar_ping_volume = 2.0

Dependencies: default, tnt (both in minetest_game)


license: code: MIT license
media: CC BY 4.0

DOWNLOAD
Code on github

Re: [Mod]Submarine[submarines]

PostPosted: Fri Dec 30, 2016 14:57
by octacian
Niceee! Good job. I have two suggestions; one a feature request, and the other kinda an issue. Don't think it's worth opening an issue on GitHub, so here they are right here.

I noticed that if using a submarine in survival, you still lose air bubbles when underwater. I believe it's quite easily possible to either prevent the air bubbles from going down, or automatically refill them, though I don't remember how off hand. Look around for the scuba mod, it's old and has been long since abandoned, but you'd probably be able to figure out how to prevent air from running out underwater.

Second thing, the issue, is that turning seems rather choppy compared to the 0.4.15 boats. IDK which boats mod this is based off, but I'd assume it's based of the boats mod in MTGame 0.4.14. If that's the case, I'd try and update your submarines to be at least loosely based of 0.4.15 boats.

Anyways, great job! Keep it up.

Re: [Mod]Submarine[submarines]

PostPosted: Fri Dec 30, 2016 15:04
by krokoschlange
Thanks!
1.I made a test version were I included this feature but had to rewrite it because the whole thing was a mess, so I'll include it again. EDIT:DONE
2.It's based off the default boats mod in 0.4.15 but I changed the complete control section in the code. I tried to copy the part for steering but it didn't change anything.

Re: [Mod]Submarine[submarines]

PostPosted: Sun Jan 01, 2017 20:27
by octacian
Just tested the latest version, air doesn't decrease or even show for that matter, great job! However, forward and backward movement seems a little weird. It seems as though the submarine won't start moving unless I hold shift. Then, after it starts moving, I can let go. Once it gets moving it's a lot slower too. Not sure if this is purposeful or accidental, but.

Re: [Mod]Submarine[submarines]

PostPosted: Mon Jan 02, 2017 16:06
by krokoschlange
It was accidental but it works correctly now.

Re: [Mod]Submarine[submarines]

PostPosted: Wed Jan 04, 2017 06:55
by ManElevation
nice!

Re: [Modpack]Submarine[submarine_pack]

PostPosted: Wed Jan 04, 2017 14:50
by krokoschlange
Huge update!
This mod is now a Modpack to override the default boats mod

new Features:
  1. shoot torpedos
  2. destroy submarines and boats if you enable the boats mod in this modpack
  3. New particles
  4. Some animations
  5. tons of bugfixes

Re: [Modpack]Submarine

PostPosted: Wed Jan 04, 2017 15:26
by octacian
Wow that is cool! Especially the torpedo part. The particles and animations just make it so much nicer though. Amazing job! I'll make a YouTube video on this soon...

Re: [Modpack]Submarine

PostPosted: Wed Jan 04, 2017 15:34
by krokoschlange
Thanks!
Nice youtube channel!

Re: [Modpack]Submarine

PostPosted: Thu Jan 05, 2017 09:35
by krokoschlange
Sound Update!
There is sound now.
If you get annoyed by the ping sound of the sonar: There is a setting in minetest.conf where you can set the volume of the ping:
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
submarine_sonar_ping_volume = 2.0
is default.

Re: [Modpack]Submarine

PostPosted: Fri Jan 06, 2017 18:29
by krokoschlange
Another update!
I've added a submarine destroyer which drops depth charges.
Also there were lots of bugfixes.

Re: [Modpack]Submarine

PostPosted: Fri Jan 20, 2017 15:17
by krokoschlange
Update: The submarines are now an api so you can register your own ones.

Re: [Modpack]Submarine

PostPosted: Sat Jan 21, 2017 05:13
by D00Med
This is nice, do you mind if I use some of the code in my vehicles mod?

Re: [Modpack]Submarine

PostPosted: Sat Jan 21, 2017 08:23
by krokoschlange
Thank you! You can use it, I don't mind.

Re: [Modpack]Submarine

PostPosted: Sat Jan 21, 2017 08:32
by D00Med
Thanks

Re: [Modpack]Submarine

PostPosted: Sat Jan 21, 2017 13:07
by krokoschlange
Another update: Bugixes and adding an api to the submarine destroyer
please report any bugs

Re: [Modpack]Submarine

PostPosted: Sun Jan 22, 2017 18:42
by azekill_DIABLO
awesome! let's do a boat battle!

Re: [Modpack]Submarine

PostPosted: Mon Jan 23, 2017 16:07
by krokoschlange
Thanks! Bugfix:You couldn't shoot torpedos, now you can.
azekill_DIABLO wrote:awesome! let's do a boat battle!

Yes, I want to make it to be able to run on a server and have a team deathmatch

Re: [Modpack]Submarine

PostPosted: Sat Jan 28, 2017 15:36
by Diamond knight
Would be cool for ctf servers

Re: [Modpack]Submarine

PostPosted: Fri Mar 31, 2017 23:41
by Sokomine
Very nice idea, and nice models. "Normal" ships in MT tend to be built with slabs and the like - or are too cubic. Having such a ship as a sunken wreck usually looks a bit odd as it has either strange air effects around it, is too square and simple, or is far too large. The sea modpack places shipwrecks on the ocean floor. I wonder how it would look like if there'd be just a spawner placed that would spawn such a ship model from this mod. Could look very intresting.