[1545][BUG] 4.20 saving a loadout from "Assemble Fleet" breaks saved loadout - Change in future build.

Ask here if you experience technical problems with X4: Foundations.

Moderator: Moderators for English X Forum

Post Reply
Vetrom
Posts: 10
Joined: Wed, 19. Jun 13, 18:19
x4

[1545][BUG] 4.20 saving a loadout from "Assemble Fleet" breaks saved loadout - Change in future build.

Post by Vetrom » Thu, 13. Jan 22, 18:51

If you have a loadout suggested by an Assemble Fleet mission and save the loadout with the colored text in the name, it will appear to work fine, but X4 will not read in the loadouts file on restart of X4. Editing loadouts.xml to remove the ESC characters and control sequences solves this.

Diff of bad loadouts.xml vs good loadouts.xml:

Code: Select all

diff -uN x4-loadouts-bad.xml ~/.config/EgoSoft/X4/loadouts.xml  | cat -v
--- x4-loadouts-bad.xml 2022-01-13 11:40:04.314748400 -0600
+++ /home/kain/.config/EgoSoft/X4/loadouts.xml  2022-01-13 11:40:37.462057920 -0600
@@ -3060,7 +3060,7 @@
 <crew role="marine" exact="0"/>
 </crew>
 </loadout>
-<loadout id="player_1642048153" name="^[#FFffbe00#^[[missiontype_build] Assemble Fleet^[X1" description="" macro="ship_arg_l_destroyer_01_a_macro" player="1">
+<loadout id="player_1642048153" name="Assemble Fleet 1" description="" macro="ship_arg_l_destroyer_01_a_macro" player="1">
 <macros>
 <engine macro="engine_arg_l_travel_01_mk1_macro" path="../con_engine_03"/>
 <engine macro="engine_arg_l_travel_01_mk1_macro" path="../con_engine_02"/>
@@ -3803,7 +3803,7 @@
 <crew role="service" exact="7"/>
 </crew>
 </loadout>
-<loadout id="player_1642048131" name="^[#FFffbe00#^[[missiontype_build] Assemble Fleet^[X1" description="" macro="ship_arg_xl_carrier_01_a_macro" player="1">
+<loadout id="player_1642048131" name="assemble fleet 11" description="" macro="ship_arg_xl_carrier_01_a_macro" player="1">
 <macros>
 <engine macro="engine_arg_xl_allround_01_mk1_macro" path="../con_engine_02"/>
 <engine macro="engine_arg_xl_allround_01_mk1_macro" path="../con_engine_01"/>

peteran
Posts: 269
Joined: Thu, 26. Jul 07, 13:01
x4

Re: [BUG] 4.20 saving a loadout from "Assemble Fleet" breaks saved loadout

Post by peteran » Thu, 13. Jan 22, 21:01

Saving the mission specific loadouts isn't something that I've ever considered, but it is indeed possible and seems to be working until a new game is loaded. Then none of the loadouts for ships work.

Libxml2 can't make sense of the file since it contains an unsupported character (1B or ESC).

Code: Select all

[=ERROR=] 0.00 LoadoutDB::ImportLocal(): Error loading from XML file 'loadouts'. Check the log for further information.
[=ERROR=] 0.00 LIBXML2: personal:///loadouts?ext=xml%20xml.gz line 2453, error 9: invalid character in attribute value
[=ERROR=] 0.00 LIBXML2: personal:///loadouts?ext=xml%20xml.gz line 2453, error 65: attributes construct error
[=ERROR=] 0.00 LIBXML2: personal:///loadouts?ext=xml%20xml.gz line 2453, error 73: Couldn't find end of Start Tag loadout
loadout.xml producing the above output.

florianlt
EGOSOFT
EGOSOFT
Posts: 1304
Joined: Mon, 22. Aug 11, 14:05
x4

Re: [1545][BUG] 4.20 saving a loadout from "Assemble Fleet" breaks saved loadout

Post by florianlt » Tue, 18. Jan 22, 13:41

In an upcoming build the loadout names will not contain the escape character anymore. Already created loadouts will not be fixed, though.

Post Reply

Return to “X4: Foundations - Technical Support”