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 03-29-10, 10:36 AM   #1
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default [TEC] AI: is the game code incorrect? (example)

This is part of post from this topic:
http://www.subsim.com/radioroom/show...=165886&page=4

NoLine put information abou propably wrong game code - probably it is the reason that the AI is behaving badly in the game.


Quote:
Originally Posted by NoLine View Post
aircraft.aix:

Code:
  action
 {
  Plane:FireCannons()   
 }
to
Code:
  action
 {
  Plane:FireCannons(); 
 }
or in ships-navigation.aix
Code:
 action
 {
  Ship:EndCurrentTactic()
 }
to
Code:
 action
 {
  Ship:EndCurrentTactic();
 }
in submarine.aix

Code:
 strategies
 {
  EvadeEscortDay,  
 }
to
Code:
 strategies
 {
  EvadeEscortDay 
 }
also

Code:
 strategies
 {
  EvadeEscortNight,  
 }
to
Code:
 strategies
 {
  EvadeEscortNight 
 }
not sure it works but those seem to be wrong

cheers
Noline
__________________

PL_Andrev is offline   Reply With Quote
Old 03-30-10, 10:06 AM   #2
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
Default

any confirmation on a success here?...would be interesting, if this is the reason for a bad ai...and simple to fix.
__________________


urfisch is offline   Reply With Quote
Old 03-30-10, 10:23 AM   #3
here4dl
Bilge Rat
 
Join Date: Jan 2010
Posts: 1
Downloads: 14
Uploads: 0
Default

In all languages i know ';' is basically just a separator of of code-statements. Since there is only one statement in a Block ({...}) i don't think this is a syntax error.
here4dl is offline   Reply With Quote
Old 03-30-10, 10:27 AM   #4
Heretic
Commodore
 
Join Date: Mar 2005
Location: Nebraska
Posts: 617
Downloads: 240
Uploads: 2


Default

In my experiance with the crew AI scripts, which have the same syntax, any syntax error I make causes a CTD rather than a non funtioning strategy.
Heretic is offline   Reply With Quote
Old 03-30-10, 05:17 PM   #5
Vreith
Seaman
 
Join Date: Mar 2010
Posts: 31
Downloads: 10
Uploads: 0
Default

not sure, in mare nostrum went to do the 35000 ton mission in fog worked great, it cleared when i began my return to refit and ******** got pounded by air support, first time i seen it work properly , continuous scouting of me, then they send bomber and depth charge planes did some hull damage but nothing serious and shot 2 down they wouldn't stop... ran outa ammo couldn't stay under water for sake of batteries. ran into a ally destroy trying to defend it self, it sunk a merchant ship while being harassed by planes strafing and bombing at it went nuts with it's quad flak's.

The Ai is there for sure, im just sure it's broken in places, ive seen broken situations where battle group escorts ignore me in a clear nighttime event after sinking a BB...
__________________

Vreith is offline   Reply With Quote
Old 03-31-10, 10:17 AM   #6
NoLine
Medic
 
Join Date: Jun 2005
Location: AN85
Posts: 167
Downloads: 57
Uploads: 0
Default

Quote:
Originally Posted by here4dl View Post
In all languages i know ';' is basically just a separator of of code-statements. Since there is only one statement in a Block ({...}) i don't think this is a syntax error.
ok in that case the destroyers and planes arent any good

cheers
Noline
NoLine 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 06:46 PM.


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.