[WIP] Captain AI overhaul. Updated 09.12.2014

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans » Tue, 27. Jan 15, 21:03

Boost of doom of my heavy assault flotilla of 4 Arawn led by a Balor towards a fighter sounds fun ... and a bit silly. :) Wouldn't be unreasonable for them to turn and swat if stung by a fly though. Especially if the fly is actually a wasp and is part of a swarm.

cicero111
Posts: 108
Joined: Sat, 13. Aug 11, 14:30
x4

Post by cicero111 » Tue, 27. Jan 15, 21:41

Hehe - yup, could get quite interesting, and on arrival "everybody runaway!!!" when one of them wasps gets below 50% hull, almost worth a try :P

That stop/ignore them totally was not good that slipped through the cracks - got a bit tunnel vision playing groundhog day with my test saves I guess :)
Highly recommend MadJoker's UFO test mod when doing these kinds of scripts, both as a time and sanity saver/for variety - if you are not using it already. I discovered it a bit late. Spawning bunch of caps near the fleet and seeing the code respond in different ways is quite fascinating.

Eightbal1
Posts: 41
Joined: Wed, 7. Jan 15, 03:13
x4

Don't use AJD mod?

Post by Eightbal1 » Tue, 3. Feb 15, 14:16

Cicero, you mentioned in your Captain AI mod description at the start of this thread that the AJD mod conflicts a bit with yours. Sorry if this is a stupid question, but what is the AJD mod?

w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans » Tue, 3. Feb 15, 14:40

@Eightbal1, Nice to see you here! "AJD" maybe means bm01's Automated Emergency Jump. I vaguely remember there being a report of conflicts between that and Captain AI Overhaul. Can't remember for sure, though.

Rubini
Posts: 452
Joined: Mon, 7. May 07, 05:17
xr

Post by Rubini » Tue, 3. Feb 15, 15:23

w.evans wrote:@Eightbal1, Nice to see you here! "AJD" maybe means bm01's Automated Emergency Jump. I vaguely remember there being a report of conflicts between that and Captain AI Overhaul. Can't remember for sure, though.
If it is really the Automated Emergency Jump, any way to make them compatible as they both adds good things to combat aspects of the game?

Rubini
Posts: 452
Joined: Mon, 7. May 07, 05:17
xr

Post by Rubini » Wed, 4. Feb 15, 03:27

This could be a dumb question, but is this compatible&safe to use with new 3.20 patch offcial release?

Eightbal1
Posts: 41
Joined: Wed, 7. Jan 15, 03:13
x4

Post by Eightbal1 » Thu, 5. Feb 15, 10:11

w.evans wrote:@Eightbal1, Nice to see you here! "AJD" maybe means bm01's Automated Emergency Jump. I vaguely remember there being a report of conflicts between that and Captain AI Overhaul. Can't remember for sure, though.
Hi Walker :D yeah. I came here and noticed you've been busy! I was wondering if you were right. It occurred to me after looking at the list of mods that you linked to me earlier that it might be Awesome JumpDrive FX. If so that's a mild bummer but if it is AEJ as you suggest, that's a big problem! I hope it all works out in the end. :D Surely both mods are good enough ideas to be canonized by Egosoft.

w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans » Sun, 8. Feb 15, 01:34

Hi cicero111,

Just on the off-chance that you look in here sometime in the near future, I was wondering if you were planning on looking into whether or not this needs an update for X:R 3.20?

Been getting a lot of errors like this:
debuglog wrote:[=ERROR=] Error in AI script move.escort.capital on entity 0x5c71: Evaluated component 0x0 does not exist any more
* Expression: $target

[=ERROR=] Error in AI script move.escort on entity 0x36b0: Property lookup failed: $target.pilot.$escortgroup
* $target.pilot == null
* Expression: $target.pilot.$escortgroup

[=ERROR=] Error in AI script move.escort on entity 0x36b0: Evaluated value 'null' is not of type group
* Expression: $target.pilot.$escortgroup
which I think might be indicative of escorts losing the ship that they escorted and being stuck? I tried to look for problems in your code myself, but couldn't find anything.

Also did an aicompat check via the command line, and got these:
debuglog wrote:[=ERROR=] Compatibility warning in script 'command.move.wait', attention 'unknown', line 42: Blocking action 'move_to' has invalid version, expected 'run_script' instead, previously in line 114. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'command.move.wait', attention 'unknown', line 56: Blocking action 'move_to' has invalid version, expected 'run_script' instead, previously in line 114. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 212: Blocking action 'move_to' has invalid version, expected 'wait' instead, previously in line 116. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 222: Blocking action 'move_to' has invalid version, expected 'wait' instead, previously in line 116. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 259: Blocking action 'move_to' has invalid version, expected 'wait' instead, previously in line 116. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 299: Blocking action 'move_to' has invalid version, expected 'wait' instead, previously in line 116. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 309: Blocking action 'move_to' has invalid version, expected 'wait' instead, previously in line 116. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 339: Blocking action 'move_to' has invalid version, expected 'wait' instead, previously in line 116. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 357: Blocking action 'move_to' has invalid version, expected 'wait' instead, previously in line 116. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 374: Blocking action 'move_to' has invalid version, expected 'wait' instead, previously in line 116. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 471: Blocking action 'move_to' has invalid version, expected 'wait' instead, previously in line 116. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 485: Blocking action 'move_to' has invalid version, expected 'wait' instead, previously in line 116. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 523: Blocking action 'move_to' has invalid version, expected 'wait' instead, previously in line 116. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 576: New blocking action 'move_to' has invalid version. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 622: New blocking action 'move_to' has invalid version. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 657: New blocking action 'move_to' has invalid version. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 686: New blocking action 'move_to' has invalid version. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 740: New blocking action 'move_to' has invalid version. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 764: New blocking action 'move_to' has invalid version. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.attack.object.capital', attention 'unknown', line 116: New blocking action 'wait' has invalid version. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.escort.capital', attention 'visible', line 21: Blocking action 'move_to' has invalid version, expected 'run_script' instead, previously in line 104. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.escort.capital', attention 'visible', line 39: Blocking action 'move_to' has invalid version, expected 'run_script' instead, previously in line 104. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.escort.capital', attention 'visible', line 137: Blocking action 'move_to' has invalid version, expected 'run_script' instead, previously in line 245. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.escort.capital', attention 'visible', line 151: Blocking action 'move_to' has invalid version, expected 'run_script' instead, previously in line 245. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.escort.capital', attention 'visible', line 191: Blocking action 'move_to' has invalid version, expected 'run_script' instead, previously in line 245. Missing sinceversion attribute?

[=ERROR=] Compatibility warning in script 'move.escort.capital', attention 'visible', line 207: Blocking action 'move_to' has invalid version, expected 'run_script' instead, previously in line 245. Missing sinceversion attribute?
and the lines cited do appear to coincide with lines with those commands in your code.

aicompat.xml, the move.escort scripts, and some of the fight.attack.object scripts were altered in X:R 3.20. Collected a log of the changes here, in case it might be of some help.

HyperCube
Posts: 51
Joined: Fri, 19. Mar 10, 14:40

Post by HyperCube » Sat, 4. Apr 15, 16:54

Hello,

Since i patched my game from 3.20 to 3.53 the mod doesn't seem to work anymore.

I tested with the Balor by issuing an attack object command on an enemy capital. The balor started shooting missiles while slowly approaching the target in a strange way (boosting, stopping, then boosting again...) until it bumped into it...

The sulecus doesnt fire at all.

Is there anyone else who has th same problem?

oliverjanda
Posts: 309
Joined: Sun, 14. Feb 10, 17:47
xr

Post by oliverjanda » Sat, 4. Apr 15, 18:17

HyperCube wrote:Hello,

Since i patched my game from 3.20 to 3.53 the mod doesn't seem to work anymore.

I tested with the Balor by issuing an attack object command on an enemy capital. The balor started shooting missiles while slowly approaching the target in a strange way (boosting, stopping, then boosting again...) until it bumped into it...

The sulecus doesnt fire at all.

Is there anyone else who has th same problem?
You can use w.evans' MICT instead: http://forum.egosoft.com/viewtopic.php?t=377825

HyperCube
Posts: 51
Joined: Fri, 19. Mar 10, 14:40

Post by HyperCube » Sun, 5. Apr 15, 01:37

I would love to use it but the problem is that it obly works with crews 4/4/4< and within my 70+ hours of gameplay I found only two guys with all their main skills above 3.

I wish there was an exception for sulecus and balor because without an ai patch they are literally useless.

Requiemfang
Posts: 3206
Joined: Thu, 16. Jul 09, 12:24
x4

Post by Requiemfang » Sun, 5. Apr 15, 01:56

HyperCube wrote:I would love to use it but the problem is that it obly works with crews 4/4/4< and within my 70+ hours of gameplay I found only two guys with all their main skills above 3.

I wish there was an exception for sulecus and balor because without an ai patch they are literally useless.
I suggest you get these mods

NPC crew gain skills every hour
http://steamcommunity.com/sharedfiles/f ... =403905657

Gain Virtual Seminars during missions
http://forum.egosoft.com/viewtopic.php?t=378581

Mission Computer so you don't have to fly so close to those mission icons to pick up missions
http://steamcommunity.com/sharedfiles/f ... =304956421

Post Reply

Return to “X Rebirth - Scripts and Modding”