[script] Improved Kha'ak 2: The Revenge [Updated: 2013.05.17]

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Post Reply
SirDeathwalker
Posts: 385
Joined: Fri, 6. Aug 10, 03:15
x4

Post by SirDeathwalker » Sat, 26. Aug 17, 01:58

:cry:

TechSY730
Posts: 115
Joined: Tue, 26. Jul 16, 02:51
x3ap

Post by TechSY730 » Sat, 26. Aug 17, 05:52

Ok, despite the item "P2P Jumping" being a selectable item, it is actually just a heading label.

The two options below it, "Swarm Kha'ak" and "Wild Kha'ak" are the ones that actually control the behavior for swarm and wild Kha'ak, respectively (notice those do say "Enabled" or "Disabled")

I can probably do something to make all the "psuedo-labels" real labels so they don't cause further confusion like this.

meppo
Posts: 29
Joined: Tue, 13. Oct 15, 02:45
x4

Post by meppo » Sat, 26. Aug 17, 10:12

so what would i have to enable/disable to have the kha'ak not warp towards me instantly?

meppo
Posts: 29
Joined: Tue, 13. Oct 15, 02:45
x4

Post by meppo » Sat, 26. Aug 17, 10:17

'cause i thought turning off swarm kha'ak would turn off all of the swarms entirely

TechSY730
Posts: 115
Joined: Tue, 26. Jul 16, 02:51
x3ap

Post by TechSY730 » Sat, 26. Aug 17, 13:42

No, those two options below the "P2P Jumping" ONLY control P2P Jumping behavior. If you set them to disabled, swarming Kha'ak will still spawn, they just won't P2P jump anymore.

SirDeathwalker
Posts: 385
Joined: Fri, 6. Aug 10, 03:15
x4

Post by SirDeathwalker » Sat, 26. Aug 17, 19:33

The way they follow you is typical behavior (the original from reunion or TC campaigns would do that as well) is creepy and annoying. Either fly a ship that can still outrun them or out fight them, or in the case of capital ships, out gun them. While the usual Kha'aak ships are pretty good against missiles, missile frigates using Flail barrage missiles in large numbers will out swarm the 'swarm"(especially if you set the missile fire probability over 50%). The other trick is the turbo boost to quickly get out of range. (you can lead them on a merry chase)

Since I use the Jorkin B5 shadow ships as the swarm ships, the dynamic is different and even creepier. (I still would like to be a spacefly on the wall when this mod goes up against litcube's relevation's Xenon when the invasion triggers the queens revenge, if it doesn't totally bork my processor)

FriendlyFirePhoenix
Posts: 90
Joined: Tue, 14. Feb 17, 10:06
x3ap

Post by FriendlyFirePhoenix » Fri, 8. Sep 17, 06:14

Following up on my crash report from page 8.

Today I ran into a Kha'ak swarm and attacked some of the eggs. Sometimes when I killed an egg the game crashed, sometimes it didn't crash.

Where things got interesting is an egg I blasted down to 19% hull. It disappeared, but continued to exist. I could still hit it with lasers and collide into it with my ship. It would not fire it's laser while invisible, in fact in it's description it apparently had 0 laser energy. I was able to kill it and it exploded and reappeared during the fireball animation. The game did not crash, including after I killed it. I reloaded a save I made after the egg disappeared but before it was killed and decided to just sit and watch. Eventually Argon ships arrived and killed it. When they killed it, the game crashed. So not just the player ship killing the egg causes a crash.

Screenshots:

https://imgur.com/5tGw8X7
https://imgur.com/A23QI1i -> scripts running on the egg.
https://imgur.com/ZV6xSbF

UPDATE: I may have a "cause". In my game the number of wild kha'ak is bumping up to it's limit which I set to 200. When I raised this limit, the disappearing laser tower instead hatched into a kha'ak ship and no crash occured If you look at the plugin.ik2.hatch.cmd script you'll see the script loops when the number of wild kha'ak is at it's limit. The crash may be happening somewhere in this loop around. What could be happening is the script waits 3000 - 6000ms and in that time if I kill the egg, the script begins again on an egg that no longer exists, causing a crash. I don't know enough about X3 scripting to provide any more than this hunch.

UPDATE2: Bugger, still got a crash after destroying an egg with the wild kha'ak limit cranked up. Damn this bug is annoying.

UPDATE3: I had a play with killing some ordinary lasertowers and the model hangs around a little for the explosion. So that behaviour is normal and not proof of anything. One thing I did notice is an ordinary lasertower takes 10 minutes to activate and an egg lasertower doesn't. Perhaps there is a problem there with stacking of commands?

FriendlyFirePhoenix
Posts: 90
Joined: Tue, 14. Feb 17, 10:06
x3ap

Post by FriendlyFirePhoenix » Sun, 10. Sep 17, 04:48

I got another crash after killing a laser tower. This time a ware dropped out of the tower, a 1GJ shield. That may have been happening before, and only this time did it appear right in front of me.

Anyway I just realised I've been getting a crash log in the game folder in X3Crash.log. It's pasted below:
======================================
Crash event occurred on Sun Sep 10 12:14:33 2017
c:\X3XRM\X3AP.exe
The exception "Access violation" (0xc0000005) was caused at address 0023:0041e165

Process owned by user: James

Story call stack dump:
[000000]->[132380]#-718972(2216)[2216].StartMenu()
[1323fe]->[0f66f4]#-718972(2216)[2200].Update()
[0f67e2]->[133696]#-718972(2216)[2216].SpecialUpdate()
[13552d]->[0f7761]#-718972(2216)[2200].DrawTextObjectSymbolX(255, 65535, 20, 5, 0, 0)

Stack dump:
00000000 14000000 00000000 00000100 b0d34100 b86f9e4e 00000000 ffff0000 .... .... .... .... ..A. .o.N .... ....
b0974803 84f34926 a4fa1900 7ff34926 3d94f666 00040000 00040000 00000000 ..H. ..I& .... ..I& =..f .... .... ....
00000000 3024b493 3297f666 fce94200 b86f9e4e 14000000 ff000000 ffff0000 .... 0$.. 2..f ..B. .o.N .... .... ....
14000000 00000000 34020000 00000000 b0974803 f0856655 7ff34926 02000000 .... .... 4... .... ..H. ..fU ..I& ....
14000000 00000001 06d55000 58fa1900 088fc504 34fb1900 507e5100 53c0abab .... .... ..P. X... .... 4... P~Q. S...
feffffff 06d55000 b1784b00 3024b493 3024b493 34fb1900 6bfb5200 ffffffff .... ..P. .xK. 0$.. 0$.. 4... k.R. ....
93f34926 74fb1900 a9264a00 01000000 f0856655 44000000 07000000 84f34926 ..I& t... .&J. .... ..fU D... .... ..I&
a4434c03 f0856655 3d2dd541 02000000 08000000 7ff34926 b00ec504 ac974803 .CL. ..fU =-.A .... .... ..I& .... ..H.
78f6167a 07000000 78f6167a 26551300 00227d35 44000000 007026b4 93a11b67 x..z .... x..z &U.. ."}5 D... .p&. ...g
a0000000 00000000 2a93f666 c8b91456 5c395f26 a0000000 1e035100 0000ab00 .... .... *..f ...V \9_& .... ..Q. ....
00000000 a0000000 10000000 c8b91456 5c784b00 f4fb1900 68e25200 ffffffff .... .... .... ...V \xK. .... h.R. ....
10000000 0c000000 b00ec504 c2b64900 00000001 f0856655 b00ec504 db0f4a00 .... .... .... ..I. .... ..fU .... ..J.
b00ec504 a4434c03 472dd541 04fc1900 3d2dd541 04fc1900 05254a00 f0856655 .... .CL. G-.A .... =-.A .... .%J. ..fU
a4fed304 b00ec504 00000000 f0c5b493 3297f666 3d2dd541 b00ec504 f0856655 .... .... .... .... 2..f =-.A .... ..fU
78f6167a 00000000 5eba1456 512dd541 56ba6302 4aba6302 70d61101 00a03f00 x..z .... ^..V Q-.A V.c. J.c. p... ..?.
1785e401 01000000 6f244d00 f8fb1900 00000000 00000000 00000000 00000000 .... .... o$M. .... .... .... .... ....
a4fed304 103bab00 01000000 00000000 09fd4a00 60fd1900 68e25200 ffffffff .... .;.. .... .... ..J. `... h.R. ....
a4fed304 01000000 3ee54900 b8f6f447 103bab00 d43a4000 65000000 01000000 .... .... >.I. ...G .;.. .:@. e... ....
0cfe1900 b6030000 d0eceb75 c800d155 24000000 01000000 00000000 00000000 .... .... ...u ...U $... .... .... ....
70000000 ffffffff ffffffff 1ce70676 0bec0676 4c5c7472 75655c4c 6f616453 p... .... .... ...v ...v L\tr ue\L oadS
63724844 00000000 70cabf61 00000000 f809f400 00000000 10000080 00000000 crHD .... p..a .... .... .... .... ....
00000000 10000080 00000000 01000000 48100e00 7060857b bb7f0776 a8fc1900 .... .... .... .... H... p`.{ ...v ....
14fd1900 b0150976 40d38c0d feffffff 24fd1900 9c242c76 d76a0776 50fd1900 .... ...v @... .... $... .$,v .j.v P...
00000000 00000000 00000000 00000000 70d61101 00a03f00 00011001 00a03f00 .... .... .... .... p... ..?. .... ..?.
80240876 1cfd1900 d2680776 00000000 00000000 c71e4d00 65000000 65000000 .$.v .... .h.v .... .... ..M. e... e...
01000000 b6030000 70cabf61 0000a00f 70d61101 00a03f00 b0150901 0cfe1900 .... .... p..a .... p... ..?. .... ....
6f244d00 50fd1900 00000000 00000000 00000000 00000000 65000000 01000000 o$M. P... .... .... .... .... e... ....
0cfe1900 b6030000 9040f232 00c45400 48100e00 01010000 1b000000 010001c0 .... .... .@.2 ..T. H... .... .... ....
fcfd1900 ce015300 ffffffff 0f374000 20d2e073 7cfe1900 01000000 9b000000 .... ..S. .... .7@. ..s |... .... ....
00000000 ffffffff 98fed304 ffffffff 00000000 00000000 00000000 0100ab00 .... .... .... .... .... .... .... ....
28000000 005ad104 20000000 0a000000 40000000 00000000 0f000000 1f000000 (... .Z.. ... .... @... .... .... ....
0038d004 00000000 00010001 01000000 00000000 0f000000 20000000 00322e32 .8.. .... .... .... .... .... ... .2.2
312e3030 31332e38 35343100 00000000 0f000000 00a0bdef 00000000 4cfe1900 1.00 13.8 541. .... .... .... .... L...
2e025300 ffffffff 00000000 58fe1900 11274000 02000000 20d2e073 7cfe1900 ..S. .... .... X... .'@. .... ..s |...
01000000 b07c6000 b07a6000 50fe1900 8d305200 b07a6000 00000000 44020000 .... .|`. .z`. P... .0R. .z`. .... D...
08000000 6cfe1900 18fe1900 70ff1900 48025300 00000000 80ff1900 b7334d00 .... l... .... p... H.S. .... .... .3M.
02000000 f0230000 02000000 02000000 02000000 102d5600 64447700 00000000 .... .#.. .... .... .... .-V. dDw. ....
34145300 30145300 01000000 d4fe1900 a65d5100 b1369c56 d4fe1900 395f5100 4.S. 0.S. .... .... .]Q. .6.V .... 9_Q.
00000000 00000000 c4fe1900 445f5100 c4fe1900 5fc65000 62447700 44735200 .... .... .... D_Q. .... _.P. bDw. DsR.
00000000 782b5700 801bab00 a805ab00 01c1abab 80ff1900 93735200 00000000 .... x+W. .... .... .... .... .sR. ....
22000000 00000000 04000000 241e5100 00004000 00000000 64447700 0a000000 "... .... .... $.Q. ..@. .... dDw. ....
7b81e4ab 8d1e5100 8d1e5100 00903f00 44000000 68b57800 28a87800 18b57800 {... ..Q. ..Q. ..?. D... h.x. (.x. ..x.
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 .... .... .... .... .... .... .... ....
01000000 00000000 ffffffff ffffffff ffffffff 050000c0 02000000 06000000 .... .... .... .... .... .... .... ....
00000000 8d1e5100 00ff1900 28f41900 ccff1900 507e5100 4bbfabab 01000000 .... ..Q. .... (... .... P~Q. K... ....
94ff1900 c462e073 00903f00 a062e073 eb2b6fec dcff1900 690f0b77 00903f00 .... .b.s ..?. .b.s .+o. .... i..w ..?.
ed379c56 00000000 00000000 00903f00 050000c0 00000000 f4f31900 f0d21174 .7.V .... .... ..?. .... .... .... ...t
ed379c56 a0ff1900 f4f31900 e4ff1900 40670c77 614f9121 00000000 ecff1900 .7.V .... .... .... @g.w aO.! .... ....
340f0b77 ffffffff 932e0d77 00000000 00000000 8d1e5100 00903f00 00000000 4..w .... ...w .... .... ..Q. ..?. ....


======================================
Another crash, log below, this time I was just in a sector with Kha'ak eggs. Is this useful in any way?
======================================
Crash event occurred on Sun Sep 10 13:09:29 2017
c:\X3XRM\X3AP.exe
The exception "Access violation" (0xc0000005) was caused at address 0023:0041e211

Process owned by user: James

Story call stack dump:
[000000]->[132380]#-726353(2216)[2216].StartMenu()
[1323fe]->[0f66f4]#-726353(2216)[2200].Update()
[0f67e2]->[133696]#-726353(2216)[2216].SpecialUpdate()

Stack dump:
00000000 d4040000 00000000 00000100 b0d34100 30d2908d 00000000 ffff0000 .... .... .... .... ..A. 0... .... ....
6ab52712 644ccd29 a4fa1900 5f4ccd29 7dce2c12 00040000 00040000 00000000 j.'. dL.) .... _L.) }.,. .... .... ....
00000000 f8543b1e 64020000 fce94200 30d2908d d4040000 ff000000 ffff0000 .... .T;. d... ..B. 0... .... .... ....
79010000 00000000 eb010000 00000000 6ab52712 70bc6a77 5f4ccd29 01000000 y... .... .... .... j.'. p.jw _L.) ....
01000000 01000000 00000100 01000000 8cfa1900 34fb1900 90ee5200 ffffffff .... .... .... .... .... 4... ..R. ....
74fb1900 03a64a00 01000000 874ccd29 03a64a00 34fb1900 6bfb5200 ffffffff t... ..J. .... .L.) ..J. 4... k.R. ....
8c4ccd29 74fb1900 a9264a00 01000000 70bc6a77 44000000 07000000 644ccd29 .L.) t... .&J. .... p.jw D... .... dL.)
a4732712 70bc6a77 d5d5cd96 02000000 08000000 5f4ccd29 b00e3d04 66b52712 .s'. p.jw .... .... .... _L.) ..=. f.'.
c86c964c 07000000 c86c964c 40651300 4010d296 44000000 00385216 b7a11b67 .l.L .... .l.L @e.. @... D... .8R. ...g
a0000000 00000000 2a93f666 08f4944b b61c0d8a a0000000 1e035100 00009500 .... .... *..f ...K .... .... ..Q. ....
00000000 a0000000 10000000 08f4944b 5c784b00 f4fb1900 68e25200 ffffffff .... .... .... ...K \xK. .... h.R. ....
10000000 0c000000 b00e3d04 c2b64900 00000001 70bc6a77 b00e3d04 db0f4a00 .... .... ..=. ..I. .... p.jw ..=. ..J.
b00e3d04 a4732712 dfd5cd96 04fc1900 d5d5cd96 04fc1900 05254a00 70bc6a77 ..=. .s'. .... .... .... .... .%J. p.jw
3c053d04 b00e3d04 00000000 00000000 5082828c d5d5cd96 b00e3d04 70bc6a77 <.=. ..=. .... .... P... .... ..=. p.jw
c86c964c 00000000 9ef4944b e9d5cd96 53596f02 49596f02 fca10100 6ce70b77 .l.L .... ...K .... SYo. IYo. .... l..w
101b0974 1c020000 00000000 e8fb1900 96520b5a 1c020000 901aa58d a4520b5a ...t .... .... .... .R.Z .... .... .R.Z
1c020000 21d72763 b09b540d 8d8f4900 58972a22 60fd1900 68e25200 ffffffff .... !.'c ..T. ..I. X.*" `... h.R. ....
3c053d04 01000000 3ee54900 f04d6a77 103b9500 d43a4000 65000000 01000000 <.=. .... >.I. .Mjw .;.. .:@. e... ....
0cfe1900 b6030000 ca5f0977 081d8c36 00000000 28000000 30000000 00009500 .... .... ._.w ...6 .... (... 0... ....
28000000 10fc1900 ffffffff 38fd1900 b8b4b479 4c5c7472 75655c4c 6f616453 (... .... .... 8... ...y L\tr ue\L oadS
63724844 00ea4c34 d8c0a77a 00000000 0000aa02 0000aa02 08c0a77a 00000000 crHD ..L4 ...z .... .... .... ...z ....
c4c0a77a a6050000 bc09aa02 00000000 d001aa02 20000000 b809aa02 d8fc1900 ...z .... .... .... .... ... .... ....
d8fc1900 9c5b0977 28000000 08000000 00000000 905a0977 28000000 30000000 .... .[.w (... .... .... .Z.w (... 0...
00000000 00000000 06000000 02000000 08000000 e8b0a87a ecfc1900 c25a0977 .... .... .... .... .... ...z .... .Z.w
08000000 00000000 00000000 f0b0a87a 9124f723 c71e4d00 65000000 65000000 .... .... .... ...z .$.# ..M. e... e...
01000000 b6030000 2a93f666 0000a00f d0ee1901 00603400 1e035101 0cfe1900 .... .... *..f .... .... .`4. ..Q. ....
6f244d00 50fd1900 00000000 00000000 00000000 00000000 65000000 01000000 o$M. P... .... .... .... .... e... ....
0cfe1900 b6030000 e8b0a87a 00c45400 08000000 65000000 e43f9500 b6030000 .... .... ...z ..T. .... e... .?.. ....
fcfd1900 ce015300 ffffffff 0f374000 20d2e073 7cfe1900 01000000 9b000000 .... ..S. .... .7@. ..s |... .... ....
00000000 ffffffff 30053d04 ffffffff 00000000 00000000 00000000 01009500 .... .... 0.=. .... .... .... .... ....
28000000 005a4904 20000000 0a000000 40000000 00000000 0f000000 1f000000 (... .ZI. ... .... @... .... .... ....
00374804 00000000 00010001 01000000 00000000 0f000000 20000000 00322e32 .7H. .... .... .... .... .... ... .2.2
312e3030 31332e38 35343100 00000000 0f000000 00a0bdef 00000000 4cfe1900 1.00 13.8 541. .... .... .... .... L...
2e025300 ffffffff 00000000 58fe1900 11274000 02000000 20d2e073 7cfe1900 ..S. .... .... X... .'@. .... ..s |...
01000000 b07c6000 b07a6000 50fe1900 8d305200 b07a6000 00000000 44020000 .... .|`. .z`. P... .0R. .z`. .... D...
08000000 6cfe1900 18fe1900 70ff1900 48025300 00000000 80ff1900 b7334d00 .... l... .... p... H.S. .... .... .3M.
02000000 f0230000 02000000 02000000 02000000 102d5600 64449800 00000000 .... .#.. .... .... .... .-V. dD.. ....
34145300 30145300 01000000 d4fe1900 a65d5100 bdf06f40 d4fe1900 395f5100 4.S. 0.S. .... .... .]Q. ..o@ .... 9_Q.
00000000 00000000 c4fe1900 445f5100 c4fe1900 5fc65000 62449800 44735200 .... .... .... D_Q. .... _.P. bD.. DsR.
00000000 782b5700 801b9500 a8059500 01bd35e5 80ff1900 93735200 00000000 .... x+W. .... .... ..5. .... .sR. ....
22000000 00000000 04000000 241e5100 00004000 00000000 64449800 0a000000 "... .... .... $.Q. ..@. .... dD.. ....
6dfd7ae5 8d1e5100 8d1e5100 00503400 44000000 d8b59900 c8a79900 58b59900 m.z. ..Q. ..Q. .P4. D... .... .... X...
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 .... .... .... .... .... .... .... ....
01000000 00000000 ffffffff ffffffff ffffffff 050000c0 02000000 06000000 .... .... .... .... .... .... .... ....
00000000 8d1e5100 00ff1900 28f41900 ccff1900 507e5100 5dc335e5 01000000 .... ..Q. .... (... .... P~Q. ].5. ....
94ff1900 c462e073 00503400 a062e073 f526c639 dcff1900 690f0b77 00503400 .... .b.s .P4. .b.s .&.9 .... i..w .P4.
e1f16f40 00000000 00000000 00503400 050000c0 00000000 f4f31900 f0d21174 ..o@ .... .... .P4. .... .... .... ...t
e1f16f40 a0ff1900 f4f31900 e4ff1900 40670c77 6d896237 00000000 ecff1900 ..o@ .... .... .... @g.w m.b7 .... ....
340f0b77 ffffffff 982e0d77 00000000 00000000 8d1e5100 00503400 00000000 4..w .... ...w .... .... ..Q. .P4. ....


======================================


I can't work out what the problem is so in the IK2 menu I limited the small, medium and large eggs to 0, and used the cheat package to delete any remaining eggs I find. Voila, no more crashes. It took the patching by TechSY730 to actually make the egg limit do anything so thank you again to him. The egg limit doesn't include the eggs in the hatchery, so it still looks cool when you find it. If I ever get powerful enough to attack the hatchery and killing eggs there causes a crash too I'll mention it here.

TechSY730
Posts: 115
Joined: Tue, 26. Jul 16, 02:51
x3ap

Post by TechSY730 » Wed, 25. Oct 17, 19:15

Hmm, could you try spawning, equipping, and then killing a bunch of regular laser towers and see if that still causes issues? EDIT: oh you did try that, and you didn't get the crash.

Something I may try doing is disabling cargo drops from eggs (which seems like a good idea anyways, as otherwise this encourages farming eggs).

Also, in my current game I am not strong enough to kill lasertowers casually currently, so I will try to reproduce using scripts to fake it for me.

EDIT: also, maybe equipment the "add default items to ship" triggers some latent glitch on lasertowers, and instead I should use the system lasertower equipping scripts

GDI-BOSS
Posts: 579
Joined: Wed, 27. Dec 06, 19:04
x4

Post by GDI-BOSS » Thu, 26. Oct 17, 13:07

Hi guys,this mod/script have sector takeover for khaak´s right??i like how khaak take all universe...

SirDeathwalker
Posts: 385
Joined: Fri, 6. Aug 10, 03:15
x4

Post by SirDeathwalker » Fri, 27. Oct 17, 21:18

It is more destruction than conquest. It destroys whatever is in the system but doesn't build anything afterwards, like a swarm of locusts.

Though that concept is pretty intriguing.... Similar to Litcube's Revelations Mod for the Xenon.

Interesting question: With both the Kha'aak and Xenon trying to take over the universe, they would obviously come in to conflict, who would prevail?

to be the spacefly on the wall when they both try to take over the same system...

GDI-BOSS
Posts: 579
Joined: Wed, 27. Dec 06, 19:04
x4

Post by GDI-BOSS » Fri, 27. Oct 17, 22:10

SirDeathwalker wrote:It is more destruction than conquest. It destroys whatever is in the system but doesn't build anything afterwards, like a swarm of locusts.
When a sector is destroy,they stay here,dessapear or go to another sector??

SirDeathwalker
Posts: 385
Joined: Fri, 6. Aug 10, 03:15
x4

Post by SirDeathwalker » Sat, 28. Oct 17, 18:17

In my experience, they disappear, leave behind eggs to cause future chaos.

They will attack a sector until they are destroyed or they destroy
everything. They do not continue the destruction in to another sector. (until the next scheduled attack)

TechSY730
Posts: 115
Joined: Tue, 26. Jul 16, 02:51
x3ap

Post by TechSY730 » Tue, 17. Jul 18, 03:51

Hey, I'm still around. Just got distracted with other games. :)

Anyways, minor point update here.

Sorry @FriendlyFirePhoenix, I still haven't managed to reproduce the crash issue. :(

r12:

Balance changes:
* Significantly increased the chances that a wild Khaak ship will join a Khaak ship that is traveling to a new sector
* Previously, if there was a small (S), medium (M), and large (L) Khaak ship moving to other sectors, if the situation where (given "->" means "follow and and attack the same thing it is targeting")
> S -> M -> L
> The script would collapse that to
> S,M -> L
> Now, the script will leave it as
> S -> M -> L
> This is because now attacking the middle ship will cause it to break formation and attack its attacker, and now all the small ships following it to also attack the same target. Previously, only attacking the lead ship would cause the other ships to change targets, and otherwise you could pick them off one-by-one and the others won't break formation

Bug Fixes:
* Sector blacklist now prevents duplicates from being added and now sorts the results
> This is NOT retroactive, you will need to add something to the blacklist to get it to update with the new sorted order (you can remove the added sector right after)
* Fixed an issue where the player could get an alert for an incoming attack on a blacklisted sector, but the attack won't arrive


ImprovedKhaak2_IK2_r12_TechSY730_hack.zip
https://drive.google.com/open?id=1XfB6Q ... 4kzgQ4Q5tN_

michtoen
Posts: 67
Joined: Mon, 22. May 06, 20:09
x3

Post by michtoen » Tue, 17. Jul 18, 13:09

Just as a note:

I experienced a similiar crash as i tested this script with LxXRM.

I moved in a invaded sector, big egg there and 2-3 Lasertowers, then after some time fighting inside it crashed. Was the only crash i ever experienced in normal game play with the current LxXRM setup.

Perhaps it is a side effect with other standard scripts?

So, with the script and mods in LxXRM the bug for sure triggers.
I set the eggs to zero as suggest in the settings, no idea it helps but it can be used to test.

TechSY730
Posts: 115
Joined: Tue, 26. Jul 16, 02:51
x3ap

Post by TechSY730 » Wed, 18. Jul 18, 04:46

Well, I suppose with two people reproducing it, it can't be explained as a unique set of circumstances.

My current game doesn't have any big ships that I could fight them off with, but I can cheat myself one in (for debugging purposes) and start killing off some eggs and see if I can reproduce it.


EDIT: Ok, yeah, there is definitely something screwy with egg lasertowers. Got two crashes and a freeze. Just forced on infinite loop detection, and I'll see if anything comes of that.

EDIT2: One way of triggering the crash is to pull up the sector map after killing an egg lasertower. Onely sometimes though.

SirDeathwalker
Posts: 385
Joined: Fri, 6. Aug 10, 03:15
x4

Post by SirDeathwalker » Wed, 18. Jul 18, 06:49

In the manager for the plugin, try changing the model for that egg to not be a laser tower to see if it is related to the model in use.

TechSY730
Posts: 115
Joined: Tue, 26. Jul 16, 02:51
x3ap

Post by TechSY730 » Wed, 18. Jul 18, 17:12

So, I noticed that Lasertowers spawned by this script run the !ship.cmd.killenemies.std script, but regularly spawned Lasertowers do not. Maybe the engine's handling of Lasertowers conflicts with this script?

I've disabled egg Lasertowers from using this script, and it seems to help. No crashes so far, but I am still encountering freezes, just less of them.

I'll keep debugging.

TechSY730
Posts: 115
Joined: Tue, 26. Jul 16, 02:51
x3ap

Post by TechSY730 » Thu, 19. Jul 18, 05:21

Well, this doesn't fully fix the issue (there is still an infinite loop hang lurking somewhere), but I haven't been able to reproduce a crash to desktop. Let me know if you still encounter such a thing. But also let me know if it helps reduce how often it seems to happen.

r13:

Bug Fixes:
* Potential partial fix for a crash and/or hang when killing eggs (possibly only happens when in the same sector as the eggs)
> Please let me know if this fix at least helps reduce the amount of crashing and/or freezing
> I'm not fully confident that I really solved the crash to desktop however
> If you already have eggs (which you probably do if the script has been running for any length of time), you MUST to run the "reset egg hatching scrips" option in the debugging options in the config menu for the fix to take effect.
> The hatching logic does have "on new version of the script" checking, but it won't cancel out the errant "attack enemies" commands that this explicit reset command will do.
* Bullet proofed the management of swarms logic against any possible source of an infinite loop hang

Balance changes:
* Reduced the chance that a wild Khaak ship will abandon eggs even when there aren't enough defenders from 25% -> 12% (keep in mind this is on top of the chance to even think about wandering at all, so in total the chance is pretty darn small)


ImprovedKhaak2_IK2_r13_TechSY730_hack.zip:
https://drive.google.com/open?id=1k04a7 ... iKySg0SCte[/b]

SirDeathwalker
Posts: 385
Joined: Fri, 6. Aug 10, 03:15
x4

Post by SirDeathwalker » Thu, 19. Jul 18, 19:32

I also tend to customize the swarm forces, set all the ships except queen/guardian to ships added from Jorkin's shipyards (shadow battle crab, shadow fighter, shadow scout, all from Babylon 5) and don't see any real issues I've noticed.

I also made the egg models something smaller than laser towers (I think I used the mine models)

now if I can only get the sound for the battle crab recreated, I know the how they built it, I am just looking for a good original scream to mod.

(take a scream track, duplicate in several times, stretch/compress and offset each track to be different, apply echo effect, then reverse so echo happens before the sounds)

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”