From The Depths
DarknessEyes Nov 28, 2016 @ 2:33pm
HELP: Submarine + AI + Hydrofoils
I made a tube sub and it works fine when i control it mannually.
However the AI completely ignores the Hydrofoils (U and J keys)...

Im using Naval AI and configured the depth requirement to 75m
Last edited by DarknessEyes; Nov 28, 2016 @ 2:35pm
< >
Showing 1-4 of 4 comments
xchrisx88 Nov 28, 2016 @ 3:19pm 
try PID controler and set the Altitute to where you want it.

Stealth17 on YT has made a tutorial on submarines not too long ago, its very well done and should you get going if you still need help

https://www.youtube.com/watch?v=7Kz5mhtttIA
robert131997 Nov 28, 2016 @ 3:27pm 
if pid is too complex just use control blocks set with altitude and pitch controls
DarknessEyes Nov 28, 2016 @ 3:34pm 
ty.

I have another question... How air pumps works exactly?

I setup a single air pump with 2 control blocks in a sealed room.
* When altitude > -50m the water pump is disabled.
* When altitude < -100m the water pump is enabled.

However the buyoancy doesnt change with pump on or off.
The volume not breached is 187m and the buyoancy is also 187.


The air pump says it drains water however shouldnt the air pumps pressurize a room with "air" increasing the buyoancy and do the reverse to decrease buyoancy?

Edited:

If i remove a block (room not sealed the cubic metters and buyoancy change to 1.
So it only works when a block is destroyed by damage?
Last edited by DarknessEyes; Nov 28, 2016 @ 3:57pm
DarknessEyes Nov 30, 2016 @ 6:29pm 
ty for all the help... after 61 hours gameplay i finnaly got my first vehicle working fine!

I have 3 huge propelers forward for thrust and 6 in the bottom (3 in each side) for roll and pitch. (No hydrofoils at all)

http://steamcommunity.com/sharedfiles/filedetails/?id=809795860

However the PID is soo freaking bad... (only good to sink the sub using air pumps).
To keep sub at -5 / +5 roll and -5 / +5 pitch it fails completely...

So i made this:

# 1) Added a complex controler and assigned the keybinds:

2 bottom front propelers assigned to Y and I to roll and U and J to pitch.
2 bottom middle propelers assigned to Y and I to roll
2 bottom back propelers assigned to to Y and I to roll and U and J to pitch.

# 2) Added 4 automated control block:

if roll < 5º then press I
if roll > 5º then press Y
if pitch < 5º then press U
if pitch > 5º then press J

# 3) Added one PID to sink the sub using air pumps.
Last edited by DarknessEyes; Nov 30, 2016 @ 6:36pm
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Nov 28, 2016 @ 2:33pm
Posts: 4