[Modpack]Submarine

User avatar
krokoschlange
Member
 
Posts: 38
Joined: Sat Jul 02, 2016 08:33
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:
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
Attachments
screenshot_20170120_161758.png
screenshot_20170120_161758.png (181.45 KiB) Viewed 7236 times
screenshot_20170108_164209.png
screenshot_20170108_164209.png (482.62 KiB) Viewed 7236 times
Last edited by krokoschlange on Fri Jan 20, 2017 15:22, edited 8 times in total.
 

User avatar
octacian
Member
 
Posts: 408
Joined: Mon Dec 21, 2015 22:18
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.
God isn't dead!

My Coolest Mods:
MicroExpansion, Working Computers, Interchangeable Hands

Check out my YouTube channel! (octacian)
 

User avatar
krokoschlange
Member
 
Posts: 38
Joined: Sat Jul 02, 2016 08:33
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: 408
Joined: Mon Dec 21, 2015 22:18
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.
God isn't dead!

My Coolest Mods:
MicroExpansion, Working Computers, Interchangeable Hands

Check out my YouTube channel! (octacian)
 

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

Re: [Mod]Submarine[submarines]

by krokoschlange » Mon Jan 02, 2017 16:06

It was accidental but it works correctly now.
 

ManElevation
Member
 
Posts: 213
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

Re: [Mod]Submarine[submarines]

by ManElevation » Wed Jan 04, 2017 06:55

nice!
Hey there im going to be off minetest for a while because my company has been deleloping a game called Ground Conflict, if you wish to see some screenshots or have some info, than please join our discord server https://discord.gg/C9ygXJn
 

User avatar
krokoschlange
Member
 
Posts: 38
Joined: Sat Jul 02, 2016 08:33
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: 408
Joined: Mon Dec 21, 2015 22:18
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...
God isn't dead!

My Coolest Mods:
MicroExpansion, Working Computers, Interchangeable Hands

Check out my YouTube channel! (octacian)
 

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

Re: [Modpack]Submarine

by krokoschlange » Wed Jan 04, 2017 15:34

Thanks!
Nice youtube channel!
 

User avatar
krokoschlange
Member
 
Posts: 38
Joined: Sat Jul 02, 2016 08:33
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:
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.
 

User avatar
krokoschlange
Member
 
Posts: 38
Joined: Sat Jul 02, 2016 08:33
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: 38
Joined: Sat Jul 02, 2016 08:33
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: 712
Joined: Sat Feb 07, 2015 22:49
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?
Look! I have a signature :]
My subgame: https://forum.minetest.net/viewtopic.php?f=15&t=14051#p207242
dmobs2 is coming...
 

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

Re: [Modpack]Submarine

by krokoschlange » Sat Jan 21, 2017 08:23

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

User avatar
D00Med
Member
 
Posts: 712
Joined: Sat Feb 07, 2015 22:49
GitHub: D00Med

Re: [Modpack]Submarine

by D00Med » Sat Jan 21, 2017 08:32

Thanks
Look! I have a signature :]
My subgame: https://forum.minetest.net/viewtopic.php?f=15&t=14051#p207242
dmobs2 is coming...
 

User avatar
krokoschlange
Member
 
Posts: 38
Joined: Sat Jul 02, 2016 08:33
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: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Modpack]Submarine

by azekill_DIABLO » Sun Jan 22, 2017 18:42

awesome! let's do a boat battle!
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
krokoschlange
Member
 
Posts: 38
Joined: Sat Jul 02, 2016 08:33
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
 

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

Re: [Modpack]Submarine

by Diamond knight » Sat Jan 28, 2017 15:36

Would be cool for ctf servers
I can never get enough MESE!!!!!!!!!

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

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

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 20 guests

cron