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)
-   -   [TEC] AI: is the game code incorrect? (example) (https://www.subsim.com/radioroom/showthread.php?t=166480)

PL_Andrev 03-29-10 10:36 AM

[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 (Post 1337818)
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


urfisch 03-30-10 10:06 AM

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

here4dl 03-30-10 10:23 AM

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.

Heretic 03-30-10 10:27 AM

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.

Vreith 03-30-10 05:17 PM

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...

NoLine 03-31-10 10:17 AM

Quote:

Originally Posted by here4dl (Post 1340747)
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


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