paulwheeler wrote:
Freezes are almost always caused by a script getting stuck in a loop. No one has ever reported a freeze with the xrm.
If its a crash, i believe in a post above yours Jack08 posted the vanilla missile attack turret script which effectively removes Litcubes missile boat script which is the cause of the crashes in TC. Try installing that and see if its fixes it. When i get time i will be uploading the xrm with Litcubes script removed.
Och! No, don't remove Litcubes script. It's cool. It just needs a little fix so it doesn't blow up the whole game
In recent days I experienced crashes to desktop (CTD), too. I neither use Missile Defense MK2 nor MARS. So there was a sneaking suspicion that something is wrong with Litcubes missile boat script and I had a closer look at the script.
It took me some time but I can tell you now why it crashs and how to fix it.
Imagine the following scenario:
You have a bomber. Now you command the bomber to attack an enemy ship. He does the job running the missile script. Aferwards the bomber docks at a carrier (or station). Now you get involed into another fight with the carrier (or any other ship). So you target an enemy ship and a few seconds later the game will crash.
What happend? (
dramatized!)
The docked bomber is still running Litcubes script and will fire missiles on the targeted enemy ship - while docked!

BOOM the bomber explodes! BOOM the carrier ship explodes! BOOM the sector explodes!! BOOM the universum explodes!!! CRASH the game crashes!
Yes, you should be glad that your computer did not explode, too.
Morale of the story:
Do not fire missiles while docked!
The problem is easy to fix. Just insert a check if the ship is docked. The script is called "Lib.Cmd.Turret.Barrage.xml", line 16 to 20:
Code: Select all
...
while [TRUE]
if is a new script version available
return 1
end
* check if ship is docked so the game does not crash anymore
if [THIS]->is docked
= wait 30000 ms
continue
end
if not [THIS]->is in active sector
= wait 30000 ms
continue
end
...
If someone wants to test I used the
Exscriptor to edit the script.
Have fun!