Hey,
Got an error report, revisiting X3-AP (can't run X4 at the moment), started a large mod/script build and ran into a severe problem with XTC Safe Undocking.
Problem: New game start failure, player ship not setup with equipment, no/default faction relations, no plots, etc, and is promptly destroyed by Terran Border Control.
Likely Problem: ~/addon/director/start.xml fails to run. XRM is known to be sensitive to setup scripts causing delays, setup.Sart.SafeUndocking starts by interating the entire universe to build an array of all shipyards and then does that again to build an array of all equipment docs, thereby front loading a lot of processing long before its needed, at a time when that processing load can cause problems.
Likely Solution: Replace this safe undocking script with
Gazz's implementation. When I swapped them out it works, no problem.
Reproduction: Install per usage case, mainly following the directions in the "IEX patch for XRM-TCAP with LoCo XRM for AP3.2" patch (see near end of IEX thread). Then start a new game as Terran Defender, notice it loads faster than it should for XRM, shields are missing, threatening comms from Terran Border Control for trespassing, incoming missile warnings, game over...
Usage Case: Fresh install of X3 Terran War Pack (GOG), and the following mods and scripts.
Code: Select all
Mods:
-- XRM
-- IE
-- IEX
-- TCAP-IEX 2.2a
-- "Updated TCAP files for X3AP3.2" patch
-- "XRM-TCAP Final" patch
-- "Updated XRM-TCAP files for AP3.2 and TCAP2.2a" patch
-- Lost Colonies 202 XRM
-- "LoCo XRM patch for XRM TCAP for AP3.2" patch
-- "IEX patch for XRM-TCAP with LoCo XRM for AP3.2" (above installed per instructions in this patch)
-- XRM Docking Ware Size
-- XRM High Hull Pack: Tships extracted (cat/dat not used)
-- Loading screen controls remover
-- Holy Asteroids Mod 2.0
-- XChange Guild Portals
-- Enhanced Equipment Docks 2.7-2.2: scripts only
-- Enhanced Equipment Docks AP Unofficial (cat/dat)
-- Comp Cleaner AP
-- Advanced Complex Hub
-- OWP External docking
-- Lucikes Modification Collection (cat/dat only)
-- XRM-Saturn Complexes (Terran)
-- BounceV1.7
Mod Build Cat/Dat Files:
-- 01, 02, 03, 04: Vanilla
-- 05 = 42 Loading screen controls remover
-- 06 = Modification Collection
-- 07 = Holy Asteroids
-- 08 = Advanced Complex Hub
-- 09 = eEQ 2.7 AP
-- 10 = Comp Cleaner
-- 11 = OWP External docking
-- 12 = XChange Guild Portals
-- 13 = XRM part 1
-- 14 = XRM part 2
-- 15 = IE
-- 16 = IEX
-- 17 = TC_Plots_2.2a_AP_3.1_IEX
-- 18 = LoCo202xrm
-- 19 = SaturnCH
-- 20 = Docking ware size (need TwareT in a cat/dat for plug-in manager)
-- XX = High hull pack: Tships extracted
Package Manager: (independent scripts)
-- Community Plugin Configuration
-- Hotkey Manager
-- Plugin Manager Library Scripts AP
-- Ware Manager
-- Cheat Collection Package AP
-- Marine Repairs and Training V214
-- ImprovedBoarding-V1.24a_Bullwinkle_Hack_2013-06-23
Scripts:
-- Safe Undocking
This is followed by another 35 scripts not yet installed, and upward of 20 more to install later.
Recommendation: Add a note to the original post that XTC Safe Undocking should only be used with TC, and recommend players use
Gazz's implementation with AP.
Hope this helps someone to save some hours of troubleshooting. For anyone else is doing a similarly large script/mod build, be mindful of setup scripts, before giving up on a problematic script, look for alternatives (as in this case), or try adding a 30 second "wait" line at the top of the setup script, or delay setup to the first save game load (see MARS setup), or at worst wait to install that script until after starting a new game.
-Chris