[Modpack]Submarine

Post Reply
User avatar
krokoschlange
Member
Posts: 62
Joined: Sat Jul 02, 2016 08:33
GitHub: krokoschlange
In-game: krokoschlange

[Modpack]Submarine

by krokoschlange » Post

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

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

Re: [Mod]Submarine[submarines]

by octacian » Post

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)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.

User avatar
krokoschlange
Member
Posts: 62
Joined: Sat Jul 02, 2016 08:33
GitHub: krokoschlange
In-game: krokoschlange

Re: [Mod]Submarine[submarines]

by krokoschlange » Post

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: 597
Joined: Mon Dec 21, 2015 22:18
GitHub: octacian
IRC: octacian
In-game: octacian
Location: Canada

Re: [Mod]Submarine[submarines]

by octacian » Post

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)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.

User avatar
krokoschlange
Member
Posts: 62
Joined: Sat Jul 02, 2016 08:33
GitHub: krokoschlange
In-game: krokoschlange

Re: [Mod]Submarine[submarines]

by krokoschlange » Post

It was accidental but it works correctly now.

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

Re: [Mod]Submarine[submarines]

by ManElevation » Post

nice!
My Public Mods! Discord: Rottweiler Games#3368

User avatar
krokoschlange
Member
Posts: 62
Joined: Sat Jul 02, 2016 08:33
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine[submarine_pack]

by krokoschlange » Post

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: 597
Joined: Mon Dec 21, 2015 22:18
GitHub: octacian
IRC: octacian
In-game: octacian
Location: Canada

Re: [Modpack]Submarine

by octacian » Post

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)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.

User avatar
krokoschlange
Member
Posts: 62
Joined: Sat Jul 02, 2016 08:33
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine

by krokoschlange » Post

Thanks!
Nice youtube channel!

User avatar
krokoschlange
Member
Posts: 62
Joined: Sat Jul 02, 2016 08:33
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine

by krokoschlange » Post

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: 62
Joined: Sat Jul 02, 2016 08:33
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine

by krokoschlange » Post

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

User avatar
krokoschlange
Member
Posts: 62
Joined: Sat Jul 02, 2016 08:33
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine

by krokoschlange » Post

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

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

Re: [Modpack]Submarine

by D00Med » Post

This is nice, do you mind if I use some of the code in my vehicles mod?
Look! I have a signature :]
My subgame: viewtopic.php?f=15&t=14051#p207242

User avatar
krokoschlange
Member
Posts: 62
Joined: Sat Jul 02, 2016 08:33
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine

by krokoschlange » Post

Thank you! You can use it, I don't mind.

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

Re: [Modpack]Submarine

by D00Med » Post

Thanks
Look! I have a signature :]
My subgame: viewtopic.php?f=15&t=14051#p207242

User avatar
krokoschlange
Member
Posts: 62
Joined: Sat Jul 02, 2016 08:33
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine

by krokoschlange » Post

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

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

Re: [Modpack]Submarine

by azekill_DIABLO » Post

awesome! let's do a boat battle!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
krokoschlange
Member
Posts: 62
Joined: Sat Jul 02, 2016 08:33
GitHub: krokoschlange
In-game: krokoschlange

Re: [Modpack]Submarine

by krokoschlange » Post

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: 475
Joined: Sun Apr 19, 2015 19:50
GitHub: Diamondknight
In-game: Ferrumprinceps
Location: Chilling in Constantinople
Contact:

Re: [Modpack]Submarine

by Diamond knight » Post

Would be cool for ctf servers

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Modpack]Submarine

by Sokomine » Post

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.

User avatar
sirrobzeroone
Member
Posts: 593
Joined: Mon Jul 16, 2018 07:56
GitHub: sirrobzeroone
Contact:

Re: [Modpack]Submarine

by sirrobzeroone » Post

I forked this and corrected the submarines b3d file name so it appears okay - nil other testing done

https://github.com/sirrobzeroone/submarine_pack

User avatar
michyo
New member
Posts: 3
Joined: Wed Mar 25, 2020 04:59
GitHub: michyo
In-game: michyo
Location: Japan
Contact:

Re: [Modpack]Submarine

by michyo » Post

I forked from sirrobzeroone's version.
Contains only Submarine, no torpedoes, no destroyers.
This works on Minetest 5.2.0.
https://github.com/michyo/submmarines

User avatar
MCL
Member
Posts: 654
Joined: Mon Aug 20, 2018 00:44
GitHub: MCLx86
IRC: migdyn
In-game: singleplayer
Contact:

Re: [Modpack]Submarine

by MCL » Post

Very good for a first mod! I really like the submarine models. I hope I will try it out soon
2014-02-14 - 2024-02-14 TEN YEARS OF MCL

User avatar
Codesound
Member
Posts: 365
Joined: Thu Jun 09, 2016 14:56

Re: [Modpack]Submarine

by Codesound » Post

Minetest 5.2

Hi,
thanks for this beautiful mod!

I try your Submarine mod, but

1.I don't see the torpedo in the inventory;
2.When I place the Submarine int the sea, it doesn't appear...
3.Does the missile not destroy anything?

thanks again


Image

debianking
New member
Posts: 1
Joined: Thu Apr 09, 2020 12:48
In-game: microsoft2020

Re: [Modpack]Submarine

by debianking » Post

Same with me using Minetest ] 0.4.17.1

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Nicu and 14 guests