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 07-11-15, 09:37 AM   #1
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Icon14

Here it is:

IRAI 0.0.29

IRAI 0.0.30
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-11-15, 11:37 AM   #2
Claudia
Watch
 
Join Date: Mar 2015
Location: BF9751
Posts: 22
Downloads: 116
Uploads: 0
Default

Hey Gap, thank you very much!

v30 could be helpful. Testing now.
Claudia is offline   Reply With Quote
Old 07-11-15, 12:01 PM   #3
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

Quote:
Originally Posted by gap View Post
Gap!
vdr1981 is offline   Reply With Quote
Old 07-11-15, 01:28 PM   #4
Claudia
Watch
 
Join Date: Mar 2015
Location: BF9751
Posts: 22
Downloads: 116
Uploads: 0
Default

Ok, IRAI v0.0.30 works flawlessly. Tested three times, trying to cause the failure for a long time, but no CTD at all.

IRAI versions 31, 33, 34, 35 and 36 still needed. The issue is for sure in one of them. I think Trevally might have some of these
Claudia is offline   Reply With Quote
Old 07-11-15, 03:35 PM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Claudia View Post
Hey Gap, thank you very much!

v30 could be helpful. Testing now.
Quote:
Originally Posted by vdr1981 View Post
Gap!
Quote:
Originally Posted by Claudia View Post
Ok, IRAI v0.0.30 works flawlessly. Tested three times, trying to cause the failure for a long time, but no CTD at all.

IRAI versions 31, 33, 34, 35 and 36 still needed. The issue is for sure in one of them. I think Trevally might have some of these
Thank you too guys. You are doing a great job in narrowing down the problem. If anything else fails, we could at least put TDW in the right direction when hopefully he will be back.
I will keep digging in my old hard drives for other past versions among the ones listed by you, Claudia.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-13-15, 07:49 AM   #6
redline202
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
Thank you too guys. You are doing a great job in narrowing down the problem. If anything else fails, we could at least put TDW in the right direction when hopefully he will be back.
I will keep digging in my old hard drives for other past versions among the ones listed by you, Claudia.
######################### Ship consts ##########################
SHIP_PATROL_RATE = 0.008333; # (1.f / (20.f * 60.f))

STATE_CRUISE = 0; #Normal navigation
STATE_ALERT = 1; #Alert State
STATE_DMG_CONTROL = 2; #damage control
STATE_IN_PORT = 3; #docked
STATE_FAKE_SURRENDER = 4; #fakesurrender
STATE_SURRENDER = 5; #surrender
STATE_ABANDON = 6; #abandonship

I have found these lines in IRAI Scripts\AI\init.aix
"STATE_IN_PORT = 3; #docked" Could this maybe be the problem with
stuck ships in ports?, i was trying simply to delete this line but i didn't have time
to test it in the campaign.
  Reply With Quote
Old 07-13-15, 09:52 AM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by redline202 View Post
######################### Ship consts ##########################
SHIP_PATROL_RATE = 0.008333; # (1.f / (20.f * 60.f))

STATE_CRUISE = 0; #Normal navigation
STATE_ALERT = 1; #Alert State
STATE_DMG_CONTROL = 2; #damage control
STATE_IN_PORT = 3; #docked
STATE_FAKE_SURRENDER = 4; #fakesurrender
STATE_SURRENDER = 5; #surrender
STATE_ABANDON = 6; #abandonship

I have found these lines in IRAI Scripts\AI\init.aix
"STATE_IN_PORT = 3; #docked" Could this maybe be the problem with
stuck ships in ports?, i was trying simply to delete this line but i didn't have time
to test it in the campaign.
As far as I can understand, those lines are where TDW is declaring ship state variables, used farther in his code to determine ship tactics. If you remove them from the code, AI routines will look for those missing variables, and the game will likely CTD
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-13-15, 01:06 PM   #8
redline202
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
As far as I can understand, those lines are where TDW is declaring ship state variables, used farther in his code to determine ship tactics. If you remove them from the code, AI routines will look for those missing variables, and the game will likely CTD
I just thought maybe AI will just skip those missing variables because they are in "initiate file" so if you don't initiate function variable the further code will not be processed. In single mission i don't have CTD without that line..but in campaign...it will probably cause CTD.

Last edited by redline202; 07-13-15 at 03:49 PM.
  Reply With Quote
Reply

Thread Tools
Display Modes

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 12:34 AM.


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