SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 04-25-12, 10:37 AM   #1771
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

This is not good: I'm just outside Scapa Flow and I enable the in-game AI debugger so I can see what the AI is doing. I click on any ship and the game crashes There's a problem somewhere in IRAIs code and now the time consuming task of playing isolation begins

If I disable IRAI I can click on any ship and the game doesn't crash. Wonderful
TheDarkWraith is offline   Reply With Quote
Old 04-25-12, 11:55 AM   #1772
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

This makes no sense. I disabled everything (AI code wise from IRAI) and am able to click on any ship without crashing. I slowly added one thing at a time until everything was re-enabled and I can still click on any ship without crashing This makes me suspect a rogue ship in the roster...something is wrong with one of them.

On a good note I figured out why ships come to a stop sometimes! Do you see anything wrong with this line of code:

!Ship:GetRole() == ROLE_IDLE and !Ship:GetRole() == ROLE_ERROR_BATTLESHIP and !Ship:GetRole() == ROLE_ERROR_ESCORT

This was a sinister bug!! The game wouldn't crash because of it. Here's what it should be:

Ship:GetRole() != ROLE_IDLE and Ship:GetRole() != ROLE_ERROR_BATTLESHIP and Ship:GetRole() != ROLE_ERROR_ESCORT

Now they keep looking/searching for you
TheDarkWraith is offline   Reply With Quote
Old 04-25-12, 12:13 PM   #1773
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Well they did keep searching/looking for me except for when they got into shallow water. Once that happened they froze, won't do anything. We need to increase the water depth in scapa flow!
TheDarkWraith is offline   Reply With Quote
Old 04-25-12, 12:23 PM   #1774
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by TheDarkWraith View Post
We need to increase the water depth in scapa flow!
Dont tell Sober

We did try this without any improvement - could that have been due to the other error that you posted
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 04-25-12, 12:29 PM   #1775
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Were the ships close to the shore when they stopped (this will be hard to fix depth) or was it just shallow water out in the middle of the bay
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 04-25-12, 12:45 PM   #1776
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
Were the ships close to the shore when they stopped (this will be hard to fix depth) or was it just shallow water out in the middle of the bay
shallow water out in middle of the bay
TheDarkWraith is offline   Reply With Quote
Old 04-25-12, 01:09 PM   #1777
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by TheDarkWraith View Post
shallow water out in middle of the bay
Ah ok thats good as the terrain editor should make short work of a fix
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 04-25-12, 01:12 PM   #1778
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

I just edited the map2 raw file with photoshop to see if I could make the water deeper that way...testing now
TheDarkWraith is offline   Reply With Quote
Old 04-25-12, 01:33 PM   #1779
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

That didn't work as expected. All the terrain data must reside in \data\Terrain\Data\TerrainData.BFD and .BFI
TheDarkWraith is offline   Reply With Quote
Old 04-25-12, 01:47 PM   #1780
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
Default

AFAIK the terrain data ist stored to Terrain/Data/Detailmasks/ in RAW files and dds files.

Echolot is offline   Reply With Quote
Old 04-25-12, 01:51 PM   #1781
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by Echolot View Post
AFAIK the terrain data ist stored to Terrain/Data/Detailmasks/ in RAW files and dds files.

Yes - that is where the terrain editor saves too
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 04-25-12, 02:15 PM   #1782
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Echolot View Post
AFAIK the terrain data ist stored to Terrain/Data/Detailmasks/ in RAW files and dds files.

Time to figure out how these pieces of the puzzle go together then
TheDarkWraith is offline   Reply With Quote
Old 04-25-12, 02:18 PM   #1783
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
Default

And how deep the water needs to be to not stop the AI working.
Echolot is offline   Reply With Quote
Old 04-25-12, 03:10 PM   #1784
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Echolot View Post
And how deep the water needs to be to not stop the AI working.
I just carved a 45 foot valley into scapa flow...even shows on the maps! The game created new raw files for them. The numbers of the raw and dds files indicate lattitude and longitude with W being West and E being East, N being North and S being South. The dds files seem to be the ones that define vegetation and rocks. The raw files dictate water depths
TheDarkWraith is offline   Reply With Quote
Old 04-25-12, 03:29 PM   #1785
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
Default

We need to test at which depth the AI is not working anymore.

Maybe the dds files stores the changes with terrain editors texture brushes, the raw files for noise, circular and the other hight map related brush (starting game to check the name atm).

Edit: Level Brush to smooth the terrain
Echolot is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.