Litcube's Missile Boat Add-On (Turret:V0.92b / Supply:V0.93b)

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

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

Larque123
Posts: 3
Joined: Wed, 27. Apr 11, 01:35
x4

Post by Larque123 »

I've just started playing X3 and I'm new to scripts.. so I'm not quite sure how to make a job for a script:

"Copy !job.missilesupply.xml to scripts directory. Make a job that runs this script "

I did try to look for those xtra script that were mentioned but they don't seem to be available anymore :(

Any help would be appreciated!

Thanks in advance.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Update

0.6b:
- Suppliers were loading too many energy cells, leaving little room for missiles. Has been fixed. No restart required, just replace files.


Also, re-download the Turret Missile Attack script. I didn't change the version in the OP link, yet the file had been sitting on my server the whole time. It's likely your ATF/Terran ships weren't firing missiles properly.
User avatar
Sam L.R. Griffiths
Posts: 10522
Joined: Fri, 12. Mar 04, 19:47
x4

Post by Sam L.R. Griffiths »

Any chance of having Ammo (GC, MD, EBC, MAML) suppliers added?
Lenna (aka [SRK] The_Rabbit)

"Understanding is a three edged sword... your side, their side... and the Truth!" - J.J. Sheriden, Babylon 5 S4E6 T28:55

"May god stand between you and harm in all the dark places you must walk." - Ancient Egyption Proverb

"When eating an elephant take one bite at a time" - Creighton Abrams
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

I don't use ammo in my own game, as ammo causes 0m/s issues. I wouldn't be able to test it without reinstalling.

For those that use it, it's a good idea.
User avatar
Sam L.R. Griffiths
Posts: 10522
Joined: Fri, 12. Mar 04, 19:47
x4

Post by Sam L.R. Griffiths »

[OT]
Litcube wrote:I don't use ammo in my own game, as ammo causes 0m/s issues.
May I ask what that issue is?[/OT]
Lenna (aka [SRK] The_Rabbit)

"Understanding is a three edged sword... your side, their side... and the Truth!" - J.J. Sheriden, Babylon 5 S4E6 T28:55

"May god stand between you and harm in all the dark places you must walk." - Ancient Egyption Proverb

"When eating an elephant take one bite at a time" - Creighton Abrams
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

http://forum.egosoft.com/viewtopic.php? ... sc&start=0

It's a long read, but unfortunately, no shortcuts.
Varek Raith
Posts: 331
Joined: Thu, 23. Aug 07, 21:33
x4

Post by Varek Raith »

A warning to fellow pilots;
M8s will launch tomahawks at M5s, M4s and M3s.
In fact, M8s are now the bane of my existence. They account for much friendly fire.
User avatar
Sam L.R. Griffiths
Posts: 10522
Joined: Fri, 12. Mar 04, 19:47
x4

Post by Sam L.R. Griffiths »

Varek Raith wrote:A warning to fellow pilots;
M8s will launch tomahawks at M5s, M4s and M3s.
In fact, M8s are now the bane of my existence. They account for much friendly fire.
Finally, M8s are some use to the AI :twisted: :P
Lenna (aka [SRK] The_Rabbit)

"Understanding is a three edged sword... your side, their side... and the Truth!" - J.J. Sheriden, Babylon 5 S4E6 T28:55

"May god stand between you and harm in all the dark places you must walk." - Ancient Egyption Proverb

"When eating an elephant take one bite at a time" - Creighton Abrams
Varek Raith
Posts: 331
Joined: Thu, 23. Aug 07, 21:33
x4

Post by Varek Raith »

Roger L.S. Griffiths wrote:
Varek Raith wrote:A warning to fellow pilots;
M8s will launch tomahawks at M5s, M4s and M3s.
In fact, M8s are now the bane of my existence. They account for much friendly fire.
Finally, M8s are some use to the AI :twisted: :P
Indeed. I like it like this.
You just need to take care when you accept a mission or fight an enemy.
Incoming Tomahawks!
Antick952
Posts: 20
Joined: Tue, 28. Apr 09, 12:17
x3tc

Post by Antick952 »

Getting an occasional CTD with the following crash log.

Code: Select all

Crash event occurred on Sun May 15 14:00:13 2011
E:\X3TC modded\X3TC.exe
The exception "Access violation" (0xc0000005) was caused at address 0023:00487218

Story call stack dump:
[000000]->[0351cc]#-252754(2142)[702].StartThisScriptID(1, {"!turret.killenemies.adv",44,"Turret Kill all enemies (All Ships)",1,4,{...},{...},{...},0,100}, {4,1}, 0)
[03538b]->[035fcd]#-252754(2142)[702].__runScript({178859651,0,3,3,{...},{...},0,1,{...},100,0,0,0}, {"Lib.Cmd.Turret.Barrage",44,"Lib Cmd: Main turret barrage",46,0,{...},{...},{...},{...},911}, 65542, -252754, {4,1}, 0)
[060427]->[0aa6fd]#-252754(2142)[2004].ShootMissileSECOBID(30304, 1, 29, 0)

Stack dump:
00000000 8864bf78 98d4127a 34a9bf78 587d4400 9df3135e 5881bb78 ac260000  .... .d.x ...z 4..x X}D. ...^ X..x .&..
98d4127a 98d4127a 70000000 b7eb4400 80eabc7c ac260000 98d4127a 50f71700  ...z ...z p... ..D. ...| .&.. ...z P...
df794400 8864bf78 0008365b 7201be5a 5881bb78 3898c778 01000000 0c001526  .yD. .d.x ..6[ r..Z X..x 8..x .... ...&
1d000000 849e8715 15000000 50000000 ffff0000 30000000 00000000 00000000  .... .... .... P... .... 0... .... ....
00000000 1860357c 64fb1700 54fb1700 fbab5200 ffffffff 64fb1700 e1f54500  .... .`5| d... T... ..R. .... d... ..E.
5881bb78 a8e5127a 01000000 1d000000 00000000 00000000 a1a80516 05000000  X..x ...z .... .... .... .... .... ....
6d01be5a 0200ca0a b0bf0300 bf000000 705f608e 832ea90a 0c000000 e1740000  m..Z .... .... .... p_`. .... .... .t..
c0610100 00000000 48004303 01000000 9cf81700 bf000000 1d000000 705f608e  .a.. .... H.C. .... .... .... .... p_`.
00000000 705f608e 00005f02 02000002 00005f02 08f9715b 08f9715b c4005f02  .... p_`. .._. .... .._. ..q[ ..q[ .._.
02000000 08020000 00005f02 00000000 d8f81700 5fa8c777 30015f02 b5a9c777  .... .... .._. .... .... _..w 0._. ...w
0c97a577 36ba5000 7c9a728e 709a728e 3c000000 ac9a728e 709a728e 0c000000  ...w 6.P. |.r. p.r. <... ..r. p.r. ....
02adc777 5897a577 00005f02 00000000 94015f02 00000000 8c015f02 0b00f90b  ...w X..w .._. .... .._. .... .._. ....
88120900 00005f02 00000000 9c015f02 ffffffff 48034303 0c000000 0c000404  .... .._. .... .._. .... H.C. .... ....
88120900 00000000 48004303 58cd7814 50014303 e0af5821 30044303 1cf81700  .... .... H.C. X.x. P.C. ..X! 0.C. ....
00000000 34fb1700 4a39d077 5cf67500 feffffff 02adc777 bfabc777 0c000000  .... 4... J9.w \.u. .... ...w ...w ....
00000000 6932ca77 00000000 00005f02 b0565a21 bfabc777 14000000 1d03be07  .... i2.w .... .._. .VZ! ...w .... ....
4a311600 00010101 04000200 24707665 b80f5a21 01000000 a8565a21 e8f81700  J1.. .... .... $pve ..Z! .... .VZ! ....
93a4c777 b0565a21 b0565a21 00000001 fcf81700 013f8f76 00005f02 00000000  ...w .VZ! .VZ! .... .... .?.v .._. ....
a8565a21 3cf91700 dc8e5000 00005f02 00000000 fb8e5000 8af0ea15 b0565a21  .VZ! <... ..P. .._. .... ..P. .... .VZ!
05000000 00000001 0c000000 10f91700 bb41b16d 34fb1700 c0325100 1e54ab15  .... .... .... .... .A.m 4... .2Q. .T..
feffffff fb8e5000 d1594b00 b0565a21 00000000 529d4900 00000001 18817719  .... ..P. .YK. .VZ! .... R.I. .... ..w.
64764a00 b0565a21 05000000 cd1b4a00 f08b4803 24000000 02000000 c5914a00  dvJ. .VZ! .... ..J. ..H. $... .... ..J.
f08b4803 00000000 2a67fe15 02000000 4cfb1700 409c469f a4f91700 013f8f76  ..H. .... *g.. .... L... @.F. .... .?.v
00005f02 00000000 389c469f e4f91700 dc8e5000 00005f02 00000000 fb8e5000  .._. .... 8.F. .... ..P. .._. .... ..P.
52f0ea15 07000000 01000000 409c469f 409c469f b8f91700 58030000 94fa1700  R... .... .... @.F. @.F. .... X... ....
c0325100 1e54ab15 feffffff fb8e5000 5c834100 409c469f f0fa1700 10000000  .2Q. .T.. .... ..P. \.A. @.F. .... ....
3ef4feff 36007f02 33000000 00000000 06000000 4030eb0f 69020000 2000eb0f  >... 6... 3... .... .... @0.. i...  ...
02adc777 5895a577 00005f02 00000000 94015f02 00000000 94015f02 02adc777  ...w X..w .._. .... .._. .... .._. ...w
7c95a577 00005f02 00000000 94015f02 00000000 48034303 0c000404 88120900  |..w .._. .... .._. .... H.C. .... ....
00005f02 00000000 9c015f02 a8b5841c 48034303 0c000000 0d004904 88120900  .._. .... .._. .... H.C. .... ..I. ....
00000000 48004303 58cd7814 50014303 08b25821 30044303 38fa1700 00000000  .... H.C. X.x. P.C. ..X! 0.C. 8... ....
f4fb1700 4a39d077 00000000 00005f02 c0a43b5b 00005f02 a068b61e 1700220b  .... J9.w .... .._. ..;[ .._. .h.. ..".
18c30000 0855981c b9412900 08b25821 48473b5b 01000000 b8a43b5b e8fa1700  .... .U.. .A). ..X! HG;[ .... ..;[ ....
93a4c777 c0a43b5b d0744403 00000001 fcfa1700 013f8f76 00005f02 00000000  ...w ..;[ .tD. .... .... .?.v .._. ....
b8a43b5b 3cfb1700 dc8e5000 00005f02 00000000 fb8e5000 8af2ea15 d0744403  ..;[ <... ..P. .._. .... ..P. .... .tD.
14000000 00000001 fb8e5000 10fb1700 d0744403 f4fb1700 4cfb1700 f4fb1700  .... .... ..P. .... .tD. .... L... ....
b0a05200 ffffffff 14fc1700 938b4a00 7cfb1700 16c55000 b0fb1700 f4fb1700  ..R. .... .... ..J. |... ..P. .... ....
4fb35200 ffffffff 8601be5a 14fc1700 700c4a00 01000000 0008365b f8000000  O.R. .... ...Z .... p.J. .... ..6[ ....
05000000 7201be5a e40e3607 f08b4803 00000000 6d01be5a f08b4803 9da80516  .... r..Z ..6. ..H. .... m..Z ..H. ....
68c9da1e 7201be5a 68c9da1e 72a70a00 f8000000 08000000 52910000 60285f02  h... r..Z h... r... .... .... R... `(_.
00c0a43b 5b000000 dc8e5000 64000000 e40e3607 60285f02 00000000 01000000  ...; [... ..P. d... ..6. `(_. .... ....
9ff14c00 08fc1700 00000000 00000000 00000000 00000000 e40e3607 68fd1700  ..L. .... .... .... .... .... ..6. h...
489c5200 ffffffff 99de4a00 60180922 e40e3607 60285f02 e40e3607 01000000  H.R. .... ..J. `.." ..6. `(_. ..6. ....
83cb4900 0008365b 60285f02 1b3a4000 65000000 01000000 14fe1700 b6030000  ..I. ..6[ `(_. .:@. e... .... .... ....
a840ff21 00000000 00000000 1ab56675 c0fc1700 74fc1700 00000000 82000000  .@.! .... .... ..fu .... t... .... ....
c0fc1700 4c5c7472 75655c78 756e6976 65727365 206c6f67 6f5f4844 00000000  .... L\tr ue\x univ erse  log o_HD ....
01000000 00000000 00000000 70000000 ffffffff ffffffff 21896276 c5896276  .... .... .... p... .... .... !.bv ..bv
e8fc1700 01000000 00000000 00000000 64fc1700 a293c977 14fd1700 1f866876  .... .... .... .... d... ...w .... ..hv
c54ab163 feffffff a5896276 b98a6276 00000000 1ab56675 08836276 be826276  .J.c .... ..bv ..bv .... ..fu ..bv ..bv
58fd1700 00000000 00000000 00000000 00000000 30af1101 00b8fdff 00000000  X... .... .... .... .... 0... .... ....
24fd1700 f7eb4c00 65000000 01000000 14fe1700 b6030000 00000000 64000000  $... ..L. e... .... .... .... .... d...
65000000 01000000 b6030000 14fe1700 9ff14c00 58fd1700 00000000 00000000  e... .... .... .... ..L. X... .... ....
00000000 00000000 65000000 01000000 14fe1700 b6030000 48b49014 04735400  .... .... e... .... .... .... H... .sT.
2a030700 01010000 1b000000 010001c0 04fe1700 8eb35200 ffffffff 3b364000  *... .... .... .... .... ..R. .... ;6@.
8db48f76 84fe1700 01000000 48015f02 dc000000 ffffffff d80e3607 ffffffff  ...v .... .... H._. .... .... ..6. ....
00000000 00000000 00000000 01018200 48015f02 00a04403 60285f02 03000000  .... .... .... .... H._. ..D. `(_. ....
01000000 00000000 0f000000 08000000 00204403 20000000 20005c00 0c000000  .... .... .... .... . D.  ...  .\. ....
00000000 0f000000 20000000 002e3137 2e303031 302e3130 363500ff 00000000  .... ....  ... ..17 .001 0.10 65.. ....
0f000000 0080aef9 e491a577 54fe1700 eeb35200 ffffffff 00000000 60fe1700  .... .... ...w T... ..R. .... .... `...
41264000 02000000 8db48f76 84fe1700 01000000 feffffff 6583c877 00000000  A&@. .... ...v .... .... .... e..w ....
58fe1700 81e95100 30d15f00 00020000 00000000 28000000 20fe1700 78ff1700  X... ..Q. 0._. .... .... (...  ... x...
08b45200 00000000 88ff1700 e7004d00 02000000 72170000 02000000 02000000  ..R. .... .... ..M. .... r... .... ....
02000000 14cd5500 a2498200 00000000 08c45200 01000000 04c45200 dcfe1700  .... ..U. .I.. .... ..R. .... ..R. ....
00000000 c8075f02 dcfe1700 383a5100 00000000 00000000 ccfe1700 433a5100  .... .._. .... 8:Q. .... .... .... C:Q.
ccfe1700 9c975000 a0498200 c0265200 00000000 80c75600 801a5f02 c8075f02  .... ..P. .I.. .&R. .... ..V. .._. .._.
0157ab15 88ff1700 0f275200 00000000 22000000 00000000 04000000 68e25000  .W.. .... .'R. .... "... .... .... h.P.
00004000 00000000 a2498200 01000000 3ef6ea15 00000000 00000000 00e0fdff  ..@. .... .I.. .... >... .... .... ....
44000000 88ba8300 28de8300 40fa8300 00000000 00000000 00000000 00000000  D... .... (... @... .... .... .... ....
00000000 00000000 00000000 01080000 01000000 00000000 ffffffff ffffffff  .... .... .... .... .... .... .... ....
ffffffff 050000c0 00000000 06000000 00000000 00000000 08ff1700 acf21700  .... .... .... .... .... .... .... ....
c4ff1700 c0325100 0669ab15 01000000 94ff1700 cbec8f76 00e0fdff d4ff1700  .... .2Q. .i.. .... .... ...v .... ....
0dd8cc77 00e0fdff 0090a577 00000000 00000000 00e0fdff 050000c0 4bcd9076  ...w .... ...w .... .... .... .... K..v
4bcd9076 a0ff1700 9cf21700 ffffffff 4a39d077 44e37500 00000000 ecff1700  K..v .... .... .... J9.w D.u. .... ....
1fdacc77 d1e25000 00e0fdff 00000000 00000000 00000000 00000000 d1e25000  ...w ..P. .... .... .... .... .... ..P.
00e0fdff 00000000 -------- -------- -------- -------- -------- --------  .... .... 


======================================
never got any CTD prior to installing missle attack script. Using SRM 1.07,ware rebalance and CMOD 4.10a mods plus SRM weapon dealer/shipyard and CMOD factory scripts
Mizuchi
Posts: 806
Joined: Thu, 10. Feb 11, 05:48

Post by Mizuchi »

Antick952 wrote:Getting an occasional CTD
Out of interest, do the CTDs mostly happen when you manually fire weapons (via the boresight)?

Also, do you happen to have any turrets set to any of the vanilla commands (eg. Attack My Target)?

I've been getting the same kind of crashes, and I narrowed it down to having my M3's turret set to "Attack My Target".

I'm not sure if there's any relation between that and these scripts (because I don't know how they interact, and I'm not about to invoke LV's Third Law) but it's a thought.
Antick952
Posts: 20
Joined: Tue, 28. Apr 09, 12:17
x3tc

Post by Antick952 »

Out of interest, do the CTDs mostly happen when you manually fire weapons (via the boresight)?

Also, do you happen to have any turrets set to any of the vanilla commands (eg. Attack My Target)?

I've been getting the same kind of crashes, and I narrowed it down to having my M3's turret set to "Attack My Target".

I'm not sure if there's any relation between that and these scripts (because I don't know how they interact, and I'm not about to invoke LV's Third Law) but it's a thought.
Unfortunately not...I was flying a Boreas with turrets set to attack capitals or attack fighters. And no manual firing

The crash semed to happen when an AI ship attempted to launch a missile attack at enemies. I was wondering if it had anything to do with the ship running out of missiles and still trying to launch a barrage as the CTD has so far happened during a big fight or if enemies arrive just after a big fight.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

I'll look into this. It certainly looks like my script is at fault. Does the save game reproduce the crash?
Antick952
Posts: 20
Joined: Tue, 28. Apr 09, 12:17
x3tc

Post by Antick952 »

Not always...Ive had saves that dont reproduce the crash and one that did.

The save that did was after a massive battle in Argon sector M148 and when I accepted a patrol mission straight afterwards as soon as enemies spawned it crashed. Tried 3 times same result and only when new enemies spawned.
Mizuchi
Posts: 806
Joined: Thu, 10. Feb 11, 05:48

Post by Mizuchi »

Edit: Well, scratch that. :cry:

Code: Select all

Story call stack dump:
[000000]->[0351cc]#-25272(2142)[702].StartThisScriptID(97046, {"plugin.gz.mars.lib",44,"MARS - Library",494,0,{...},{...},{...},{...},0}, {5,"missile.supply",0,0,0,0,0,0,0,0}, 0)
[03538b]->[035fcd]#-25272(2142)[702].__runScript({3026183,0,0,3,{...},{...},0,97046,{...},0,0,0,0}, {"plugin.gz.mars.lib",44,"MARS - Library",494,0,{...},{...},{...},{...},0}, 65542, -25272, {5,"missile.supply",0,0,0,0,0,0,0,0}, 0)
[060427]->[0aa6fd]#-25272(2142)[2004].ShootMissileSECOBID(44038, 1, 32, 0)
They always seem to be turret-related: sometimes it lists Missile Defense MK2 scripts, sometimes it lists Vanilla turret-scriptsm and sometimes (as above) it includes MARS.

The last three crashes (updated!) have been the same report as above, though.

My last save game reproduced the same crash in the same sector with the same message (Heretic's End), but at slightly different times.

However, they all seem in relation to an M2 Nagoya which has just launched a barrage of missiles at a stray Teladi TL. The missiles are already in flight (around half-way between the Nagoya and the TL) before it CTDs.

I think it's related to the resupply script more than the gunboat one, as I was only using the resupply script until a few hours ago when I wondered if the CTDs were being caused because it needed the gunboat script or something.
Antick952
Posts: 20
Joined: Tue, 28. Apr 09, 12:17
x3tc

Post by Antick952 »

Edit: Well, scratch that.
Too late tried with all turrets set to none still got a CTD

Code: Select all

Story call stack dump:
[000000]->[0351cc]#-252754(2142)[702].StartThisScriptID(1, {"!turret.killenemies.adv",44,"Turret Kill all enemies (All Ships)",1,4,{...},{...},{...},0,100}, {4,1}, 0)
[03538b]->[035fcd]#-252754(2142)[702].__runScript({178859651,0,3,3,{...},{...},0,1,{...},100,0,0,0}, {"Lib.Cmd.Turret.Barrage",44,"Lib Cmd: Main turret barrage",46,0,{...},{...},{...},{...},911}, 65542, -252754, {4,1}, 0)
[060427]->[0aa6fd]#-252754(2142)[2004].ShootMissileSECOBID(13, 1, 29, 0)
I'm not running any MARS scripts but that 'ShootMissileSECOBID' seems to be the last thing mentioned on all my crash logs too.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Update to Missile Boat Turret Overwrite

0.7b:
- Added two checks to ensure missile was present and enemy still existed before firing.




Not positive that this will solve the issue. No matter what I do, I can't recreate a crash. Scripts shouldn't be causing crashes anyway; infinite loops, maybe, but not crashes.
Mizuchi
Posts: 806
Joined: Thu, 10. Feb 11, 05:48

Post by Mizuchi »

No joy here; same crash and error as before, at roughly the same place (by accident, I'd managed to save a game just a few seconds prior to the crashing).

That said, the missiles are "already in the water", so maybe I should go OOS and let things happen OOS and then maybe that'll clear any previous errors.

Out of interest, if I remove the two scripts to see if it IS one of them that's potentially causing it, will it cause the Jobs file to freak out?

I'm using Vkerinav's SRM Unleashed Jobs file, and it states that the resupply script is required, so...

I want to test, but I'm afraid of Unforeseen Consequences™. :3
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Mizuchi wrote:No joy here; same crash and error as before, at roughly the same place (by accident, I'd managed to save a game just a few seconds prior to the crashing).

It's still using the old script. The script will autoupdate itself, but not in the middle of combat.
Mizuchi
Posts: 806
Joined: Thu, 10. Feb 11, 05:48

Post by Mizuchi »

Code: Select all

Story call stack dump:
[000000]->[0351cc]#-27891(2030)[702].StartThisScriptID(0, {"!job.trade.freetrader",40,"standard trader",7,4,{...},{...},0,{...},0}, 0, 0)
[03538b]->[035fcd]#-27891(2030)[702].__runScript({20554,0,2,3,{...},{...},0,0,0,28,0,0,0}, {"!move.movetosector",40,"Fly ship to a sector, jump enabled",8,4,{...},{...},{...},{...},0}, 65542, -27891, 0, 0)
[03c177]->[0ab6b9]#-27891(2030)[2004].__MoveToSector(-357)
[0ab749]->[0ab494]#-27891(2030)[2004].__FlyToNextSector(-357, 0)
[0ab5c3]->[0b1282]#-27891(2030)[2004].__LeaveHyperspace(-4890)
Crashed again with that message in the crash log this time.

More often than not, it happens as soon as I depress the "shoot weapons pew pew" button. I'm not 100% convinced it's either of these scripts, but I thought I'd update you for the sake of posterity.

(The crashlog isn't the most detailed of problem-solving sources, I know.)

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