[RES][#1027][Beta 6.0 b4] carried over Erlking bug from 5.0 in 6.0 Beta 4 (Erlking Core) - fix after RC1

This forum provides information on obtaining access to Public Beta versions of X4: Foundations allowing people running those versions to provide feedback on their experiences.

Moderator: DevNet Public Moderators

Post Reply
User avatar
Casishur
Posts: 1664
Joined: Fri, 1. Jul 05, 10:04
x4

[RES][#1027][Beta 6.0 b4] carried over Erlking bug from 5.0 in 6.0 Beta 4 (Erlking Core) - fix after RC1

Post by Casishur » Tue, 28. Feb 23, 19:00

carried over Erlking energy core bug from 5.0 in 6.0 Beta 4

Save game and and a video to reproduce it

The shipyard for XL ships is located at the headquarters, which is directly nearby.

https://g3ce.net/public/x4/Saves/save_009.xml.gz

The game is unmodified
CPU Typ Ryzen 9 3900x
Grafikkarte Radeon RX 6600 XT 8GB
Arbeitsspeicher: Corsair Vengeance LPX 32GB (2 x 16 GB) DDR4 3200MHz
Motherboard Name/Typ MSI B550 Gaming Plus
Win 10 64 bit

Betty : Autopilot.... hat.... total Versagt.

Twitch https://www.twitch.tv/Casishur

User avatar
Casishur
Posts: 1664
Joined: Fri, 1. Jul 05, 10:04
x4

Re: [Beta 6.0 b4] carried over Erlking bug from 5.0 in 6.0 Beta 4 (Erlking Core)

Post by Casishur » Mon, 27. Mar 23, 22:55

Further research has shown that it can be reproduced with all Erlkönig elements using the same procedure.
Erlkönig turrets
Erlkönig shields
Erlknöig engines


One of the bugs can already be fixed with a small modification
Setting the Flightassist Mk1 to default ( from Compatible ) in the ship_pir_xl_builder_01_macro macro file.
<software ware="software_flightassistmk1" default="1" /> ( from compatibel)
reduces at least a little bit the ways to trigger the bug.
It's also the only ship that doesn't seem to need the flight assistance software. Removing it, as described in the video, also triggers the Erlkönig research for the core, allowing you to build another Erlkönig.

(currently I have 8 Erlkönig)


I know you have a lot to do with the Jolt Physics and other things.

Translated with www.DeepL.com/Translator (free version)
CPU Typ Ryzen 9 3900x
Grafikkarte Radeon RX 6600 XT 8GB
Arbeitsspeicher: Corsair Vengeance LPX 32GB (2 x 16 GB) DDR4 3200MHz
Motherboard Name/Typ MSI B550 Gaming Plus
Win 10 64 bit

Betty : Autopilot.... hat.... total Versagt.

Twitch https://www.twitch.tv/Casishur

User avatar
Casishur
Posts: 1664
Joined: Fri, 1. Jul 05, 10:04
x4

Re: [Beta 6.0 b4] carried over Erlking bug from 5.0 in 6.0 Beta 4 (Erlking Core)

Post by Casishur » Sun, 2. Apr 23, 14:35

I did some searching of my own in the story_research_erlking.xml, as I suspected that the error might be there, and I found what I was looking for.
A typo
line 406

Code: Select all

<assert value="$Player_Erlking_Group.count le 1"
should be

Code: Select all

 <assert value="$Player_Erlking_Group.count == 1"
Although the check cycle was checked every minute, the check could never be completed due to the write error.

Data block of story_research_erlking.xml with typo

Code: Select all

                <cue name="Find_Player_Erlking" checkinterval="1min">
                  <conditions>
                    <check_value value="$Player_Erlking_Group.count == 0"/>
                  </conditions>
                  <actions>
                    <find_ship_by_true_owner groupname="$Player_Erlking_Group" faction="faction.player" macro="macro.ship_pir_xl_battleship_01_a_macro" space="player.galaxy" multiple="true"/>
                    <assert value="$Player_Erlking_Group.count le 1" text="'Player has more Erlking ships than they should. Count: ' + $Player_Erlking_Group.count"/>
                  </actions>
                </cue>
without typo

Code: Select all

                <cue name="Find_Player_Erlking" checkinterval="1min">
                  <conditions>
                    <check_value value="$Player_Erlking_Group.count == 0"/>
                  </conditions>
                  <actions>
                    <find_ship_by_true_owner groupname="$Player_Erlking_Group" faction="faction.player" macro="macro.ship_pir_xl_battleship_01_a_macro" space="player.galaxy" multiple="true"/>
                    <assert value="$Player_Erlking_Group.count == 1" text="'Player has more Erlking ships than they should. Count: ' + $Player_Erlking_Group.count"/>
                  </actions>
                </cue>
CPU Typ Ryzen 9 3900x
Grafikkarte Radeon RX 6600 XT 8GB
Arbeitsspeicher: Corsair Vengeance LPX 32GB (2 x 16 GB) DDR4 3200MHz
Motherboard Name/Typ MSI B550 Gaming Plus
Win 10 64 bit

Betty : Autopilot.... hat.... total Versagt.

Twitch https://www.twitch.tv/Casishur

User avatar
chew-ie
Posts: 5595
Joined: Mon, 5. May 08, 00:05
x4

Re: [Beta 6.0 b4] carried over Erlking bug from 5.0 in 6.0 Beta 4 (Erlking Core)

Post by chew-ie » Sun, 2. Apr 23, 17:42

'le' not necessarily has to be a typo but could be interpreted as

Code: Select all

less or equal

Image

Spoiler
Show
BurnIt: Boron and leaks don't go well together...
Königinnenreich von Boron: Sprich mit deinem Flossenführer
Nila Ti: Folgt mir, ihr Kavalkade von neugierigen Kreaturen!

:idea: Pick your poison seed [for custom gamestarts]
:idea: Feature request: paint jobs on custom starts

Xenon_Slayer
EGOSOFT
EGOSOFT
Posts: 13093
Joined: Sat, 9. Nov 02, 11:45
x4

Re: [Beta 6.0 b4] carried over Erlking bug from 5.0 in 6.0 Beta 4 (Erlking Core)

Post by Xenon_Slayer » Mon, 3. Apr 23, 10:39

Yeah, the assert is there to check if the player's got more than one. Zero is allowed.
Come watch me on Twitch where I occasionally play several of the X games

Post Reply

Return to “X4: Foundations - Public Beta Feedback”