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)

7thSeal 02-27-11 02:11 PM

Quote:

Originally Posted by stoianm (Post 1607988)
:D - thanks - you just gived me an ideea - i will try to observe wich one it is not moving and maybe i can kill that one
i will try this out

That's my strategy if I can take a peek long enough to fire off a torp. :DL

THE_MASK 02-27-11 02:43 PM

Is the AI sub hydrophone no CTD fix included in this mod ?

TheDarkWraith 02-27-11 02:45 PM

Quote:

Originally Posted by sober (Post 1608055)
Is the AI sub hydrophone no CTD fix included in this mod ?

no. It's in MO though.

THE_MASK 02-27-11 03:18 PM

I really think it should be in this one , what do you think ?

HanSolo78 03-01-11 12:13 AM

Hi TDW!

I´ve got one question relating the targeting acurracy... a few days ago I tried a wolfpack mission from your MO mod I realized that the destroyers could make 80% hit from about 6-7000 meters! Could the be changed like to SH3 where they only could hit about 3000 meters?

dcb 03-05-11 03:34 PM

Friendly AI behavior?
 
Well, maybe I've posted this:
http://www.subsim.com/radioroom/show...&postcount=448
in the wrong thread. Sorry for it.

I'll ask the same questions here, which seems to be the appropriated thread for it. No spam intended, just trying to get an answer to a question, if anyone knows it.

Q: Do friendly naval (not air) units respond to the player's contact reports?

Because in a test mission I created, with my sub near an enemy freighter and an AI uboat some 10 km away, when I radioed the contact report, the other uboat did not react at all.

Zedi 03-05-11 03:52 PM

The AI sub is pretty dumb, but most of the time they respond if they are close to you. Happened to me twice, booth time made my reports because I was out of ammo and so I was very frustrated. First time a wolfpack jumped in and sunk my target, second time a destroyer.

Also, make sure ur AI sub is not in docked state and speed not set to 0. Also she need to have a waypoint and maybe most important ... make it an elite unit.

dcb 03-05-11 07:11 PM

Thanks for the hint. Indeed, the secret is that the AI sub must be moving between 2 waypoints. Then it attacks at full speed and submerges near the target. If it's stopped, even if not docked, it won't start moving towards the target. It will just sit there, doing nothing.


Quote:

Originally Posted by Magnum (Post 1612967)
The AI sub is pretty dumb, but most of the time they respond if they are close to you. Happened to me twice, booth time made my reports because I was out of ammo and so I was very frustrated. First time a wolfpack jumped in and sunk my target, second time a destroyer.

Also, make sure ur AI sub is not in docked state and speed not set to 0. Also she need to have a waypoint and maybe most important ... make it an elite unit.


Jaguar 03-15-11 08:58 AM

Having troubles with IRAI. When near a port (less than 100km inbound/outbound) I´ve got lots of CTDs, so many I have to disable IRAI and re-enable only at a distance from said port. Sometimes it happens near a large convoy (big group of ships) also. :nope:

Using few mods, the only one which conflicts with IRAI is Historic Specifications 1.4, and disabling it doesn´t help. Does somebody have any clue what´s happening?

TheDarkWraith 03-15-11 09:01 AM

Quote:

Originally Posted by Jaguar (Post 1619854)
Having troubles with IRAI. When near a port (less than 100km inbound/outbound) I´ve got lots of CTDs, so many I have to disable IRAI and re-enable only at a distance from said port. Sometimes it happens near a large convoy (big group of ships) also. :nope:

Using few mods, the only one which conflicts with IRAI is Historic Specifications 1.4, and disabling it doesn´t help. Does somebody have any clue what´s happening?

I find it very hard to believe that IRAI is the cause of your CTDs. One reason is because of the time that this mod has been in use and no CTDs reported of it. Two, the mod only changes the behavior/tactics of the AI and nothing else. So to say I'm quite puzzled would be an understatement :hmmm:

Trevally. 03-15-11 09:08 AM

I had something similar,

Lots of mods running and when I met 2 convoys at same time, CTD.
I reloaded a save just prior with no mods and no CTD.

I then went through my mod list removing then to discover
that the system heavy mods were causing it in my game.

I could disable SSteel and Enviro to get past that point
in the map where 2 convoys met. This would also happen to me
when close to a busy port.

For a while I put up with this - then bought a new PC:D

If you are using a 32bit system, try the fix posted by TDW for
the ram switch.

Jaguar 03-15-11 09:15 AM

Quote:

Originally Posted by TheDarkWraith (Post 1619859)
I find it very hard to believe that IRAI is the cause of your CTDs. One reason is because of the time that this mod has been in use and no CTDs reported of it. Two, the mod only changes the behavior/tactics of the AI and nothing else. So to say I'm quite puzzled would be an understatement :hmmm:

Thx TDW, I´ll do some more tests tonight and report. It looks like some memmory or video card issue, something like my rig being unable to handle to many ships together. Just guessing though:hmmm:. I know as much in programing as a healthy oyster.

Jaguar 03-15-11 09:19 AM

Quote:

Originally Posted by Trevally. (Post 1619864)
I had something similar,

For a while I put up with this - then bought a new PC:D

I´m afraid I have to do the same :03:. The video card specially is now quite old.

Quote:

If you are using a 32bit system, try the fix posted by TDW for
the ram switch.
Would you please post a link?

Trevally. 03-15-11 09:33 AM

Im searching but cant find it:hmmm:

I bet Stoianm knows where it is:D

stoianm 03-15-11 09:43 AM

Quote:

Originally Posted by Trevally. (Post 1619881)
Im searching but cant find it:hmmm:

I bet Stoianm knows where it is:D

:D
Originally Posted by TheDarkWraith http://www.subsim.com/radioroom/smartdark/viewpost.gif
Here is something to try for those of you having CTDs or using 32 bit OS:

Try this only if you have at least 2 GByte of RAM and at your own risk and using Vista/Win7 32 bit version.
First download the explorer from http://www.ntcore.com/exsuite.php
Next make a backup copy of SH5.exe. Then start "CFF Explorer" and open the orginal SH5.exe file.
Now go to NT Header/File Header and click File Header. There you will find a button labeld "click here". Click it and select the mark at "App can handle> 2gb adressest "
Save the modified EXE, overwrite the orginal one (You do have your backup of it in a safe location right?).
If you run Windows Vista 64 or Windows XP 64 or Win7 64 you're ready and didnt need to read on. The rest is only for Windows Vista 32/Win7 32 or maybe Windows XP.
Now make Windows Vista/Win7 (32-Bit) ready to support more than 2 GByte.
Open a command prompt with Administration rights. You find it under "Programs->Accessories->Command prompt" click right and select "run as administrator".
Enter "bcdedit /set IncreaseUserVA 3072" (without quotes) in the command window and press enter.
After that restart windows

To reset back to 2GB limit:
to reset the Increased User Adressspace just start the commandline prompt with Admin right again and enter "bcdedit /set IncreaseUserVA 2048"

See if the above helps at all :yep:

Another idea is to install previous version of DirectX ( < v11). I have Win7 64bit but ALWAYS install previous DirectX versions for compatibility reasons. Go to Microsoft's website and search for DirectX. Run the DirectX web installer from their website. You can have DirectX9 AND DirectX11 installed on Win7.

EDIT:

just checked the sh5.exe file and it's large address aware so enabling the 3GB switch in 32bit OSs should help:

Microsoft (R) COFF/PE Dumper Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.

Dump of file sh5.exe
PE signature found
File Type: EXECUTABLE IMAGE
FILE HEADER VALUES
14C machine (x86)
5 number of sections
4BCE9A96 time date stamp Wed Apr 21 01:26:30 2010
0 file pointer to symbol table
0 number of symbols
E0 size of optional header
122 characteristics
Executable
Application can handle large (>2GB) addresses
32 bit word machine


All times are GMT -5. The time now is 01:44 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.