[Modpack]Submarine

User avatar
krokoschlange
Member
 
Posts: 57
Joined: Sat Jul 02, 2016 08:33
Location: get_author_pos() ~= get_viewer_pos()
GitHub: krokoschlange
In-game: krokoschlange

[Modpack]Submarine

by krokoschlange » Fri Dec 30, 2016 14:08

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:
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:
Code: Select all
submarine_sonar_ping_volume = 0

Default setting is :

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
Attachments
screenshot_20170120_161758.png
(181.45 KiB) Not downloaded yet
screenshot_20170108_164209.png
(482.62 KiB) Not downloaded yet
Last edited by krokoschlange on Fri Jan 20, 2017 15:22, edited 8 times in total.
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod]Submarine[submarines]

by octacian » Fri Dec 30, 2016 14:57

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.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

User avatar
krokoschlange
Member
 
Posts: 57
Joined: Sat Jul 02, 2016 08:33
Location: get_author_pos() ~= get_viewer_pos()
GitHub: krokoschlange
In-game: krokoschlange

Re: [Mod]Submarine[submarines]

by krokoschlange » Fri Dec 30, 2016 15:04

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.
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod]Submarine[submarines]

by octacian » Sun Jan 01, 2017 20:27

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.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

User avatar
krokoschlange
Member
 
Posts: 57
Joined: Sat Jul 02, 2016 08:33
Location: get_author_pos() ~= get_viewer_pos()
GitHub: krokoschlange
In-game: krokoschlange
 

User avatar
ManElevation
Member
 
Posts: 895
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
 

User avatar
krokoschlange
Member
 
Posts: 57
Joined: Sat Jul 02, 2016 08:33
Location: get_author_pos() ~= get_viewer_pos()
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine[submarine_pack]

by krokoschlange » Wed Jan 04, 2017 14:50

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
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Modpack]Submarine

by octacian » Wed Jan 04, 2017 15:26

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...
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

User avatar
krokoschlange
Member
 
Posts: 57
Joined: Sat Jul 02, 2016 08:33
Location: get_author_pos() ~= get_viewer_pos()
GitHub: krokoschlange
In-game: krokoschlange
 

User avatar
krokoschlange
Member
 
Posts: 57
Joined: Sat Jul 02, 2016 08:33
Location: get_author_pos() ~= get_viewer_pos()
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine

by krokoschlange » Thu Jan 05, 2017 09:35

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:
Code: Select all
submarine_sonar_ping_volume = 2.0
is default.
 

User avatar
krokoschlange
Member
 
Posts: 57
Joined: Sat Jul 02, 2016 08:33
Location: get_author_pos() ~= get_viewer_pos()
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine

by krokoschlange » Fri Jan 06, 2017 18:29

Another update!
I've added a submarine destroyer which drops depth charges.
Also there were lots of bugfixes.
 

User avatar
krokoschlange
Member
 
Posts: 57
Joined: Sat Jul 02, 2016 08:33
Location: get_author_pos() ~= get_viewer_pos()
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine

by krokoschlange » Fri Jan 20, 2017 15:17

Update: The submarines are now an api so you can register your own ones.
 

User avatar
D00Med
Member
 
Posts: 937
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med

Re: [Modpack]Submarine

by D00Med » Sat Jan 21, 2017 05:13

This is nice, do you mind if I use some of the code in my vehicles mod?
 

User avatar
krokoschlange
Member
 
Posts: 57
Joined: Sat Jul 02, 2016 08:33
Location: get_author_pos() ~= get_viewer_pos()
GitHub: krokoschlange
In-game: krokoschlange
 

User avatar
D00Med
Member
 
Posts: 937
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med
 

User avatar
krokoschlange
Member
 
Posts: 57
Joined: Sat Jul 02, 2016 08:33
Location: get_author_pos() ~= get_viewer_pos()
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine

by krokoschlange » Sat Jan 21, 2017 13:07

Another update: Bugixes and adding an api to the submarine destroyer
please report any bugs
 

User avatar
azekill_DIABLO
Member
 
Posts: 7461
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
krokoschlange
Member
 
Posts: 57
Joined: Sat Jul 02, 2016 08:33
Location: get_author_pos() ~= get_viewer_pos()
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine

by krokoschlange » Mon Jan 23, 2017 16:07

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
 

User avatar
Diamond knight
Member
 
Posts: 442
Joined: Sun Apr 19, 2015 19:50
Location: stalker...
GitHub: Diamondknight
In-game: Ferrumprinceps
 

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

Re: [Modpack]Submarine

by Sokomine » Fri Mar 31, 2017 23:41

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.
A list of my mods can be found here.
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 6 guests