Log in

View Full Version : [TEC] AI: is the game code incorrect? (example)


PL_Andrev
03-29-10, 10:36 AM
This is part of post from this topic:
http://www.subsim.com/radioroom/showthread.php?t=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.


aircraft.aix:


action
{
Plane:FireCannons()
}to

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

strategies
{
EvadeEscortDay,
}to
strategies
{
EvadeEscortDay
}also

strategies
{
EvadeEscortNight,
}to
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
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