SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [WIP] IRAI (Intelligent Random AI) (https://www.subsim.com/radioroom/showthread.php?t=171973)

TheDarkWraith 04-25-12 10:37 AM

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 :o :shifty: There's a problem somewhere in IRAIs code and now the time consuming task of playing isolation begins :dead:

If I disable IRAI I can click on any ship and the game doesn't crash. Wonderful :-?

TheDarkWraith 04-25-12 11:55 AM

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 :hmmm: 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 :DL

TheDarkWraith 04-25-12 12:13 PM

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! :yep:

Trevally. 04-25-12 12:23 PM

Quote:

Originally Posted by TheDarkWraith (Post 1875166)
We need to increase the water depth in scapa flow! :yep:

:o Dont tell Sober:O:

We did try this without any improvement - could that have been due to the other error that you posted:06:

Trevally. 04-25-12 12:29 PM

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:06:

TheDarkWraith 04-25-12 12:45 PM

Quote:

Originally Posted by Trevally. (Post 1875174)
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:06:

shallow water out in middle of the bay

Trevally. 04-25-12 01:09 PM

Quote:

Originally Posted by TheDarkWraith (Post 1875180)
shallow water out in middle of the bay

Ah ok thats good as the terrain editor should make short work of a fix:up:

TheDarkWraith 04-25-12 01:12 PM

I just edited the map2 raw file with photoshop to see if I could make the water deeper that way...testing now

TheDarkWraith 04-25-12 01:33 PM

That didn't work as expected. All the terrain data must reside in \data\Terrain\Data\TerrainData.BFD and .BFI :hmmm:

Echolot 04-25-12 01:47 PM

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

:hmmm:

Trevally. 04-25-12 01:51 PM

Quote:

Originally Posted by Echolot (Post 1875209)
AFAIK the terrain data ist stored to Terrain/Data/Detailmasks/ in RAW files and dds files.

:hmmm:

Yes - that is where the terrain editor saves too

TheDarkWraith 04-25-12 02:15 PM

Quote:

Originally Posted by Echolot (Post 1875209)
AFAIK the terrain data ist stored to Terrain/Data/Detailmasks/ in RAW files and dds files.

:hmmm:

Time to figure out how these pieces of the puzzle go together then :up:

Echolot 04-25-12 02:18 PM

And how deep the water needs to be to not stop the AI working.:hmmm:

TheDarkWraith 04-25-12 03:10 PM

Quote:

Originally Posted by Echolot (Post 1875223)
And how deep the water needs to be to not stop the AI working.:hmmm:

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

Echolot 04-25-12 03:29 PM

We need to test at which depth the AI is not working anymore:06:.:-?

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


All times are GMT -5. The time now is 05:58 AM.

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.