Crash when quicksave

The place to discuss scripting and game modifications for X4: Foundations.

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

Kiran190
Posts: 5
Joined: Sat, 28. Oct 23, 07:13
x4

Crash when quicksave

Post by Kiran190 » Thu, 2. Nov 23, 01:17

Hello everyone, I'm trying to create a mod to add a new cluster and sector, but I've encountered some difficulties. First, this mod works when unpacked but doesn't work when packed. Secondly, After playing for some time, this mod causes a crash when trying to quicksave. The game version is 6.20.
My mod: https://drive.google.com/drive/folders/ ... drive_link
debug.text: https://drive.google.com/file/d/1T_7h4U ... drive_link
Crash Dumps: https://drive.google.com/file/d/1BpePbt ... drive_link
Thank you,guys。

Kiran190
Posts: 5
Joined: Sat, 28. Oct 23, 07:13
x4

Re: Crash when quicksave

Post by Kiran190 » Thu, 2. Nov 23, 21:42

[=ERROR=] 383.18 Error in AI script mining.collect.ship.liquid on entity 0xa33f4: Amount is -2147483648 - Amount must be non-negative!
* Expression: $gathered
* Action: <deplete_yield>, line 159
[General] 383.18 ======================================
[General] 398.22 ======================================
[=ERROR=] 398.22 Error in AI script mining.collect.ship.liquid on entity 0xa33f4: Amount is -2147483648 - Amount must be non-negative!
* Expression: $gathered
* Action: <deplete_yield>, line 159
[General] 398.22 ======================================
[General] 402.71 ======================================
[=ERROR=] 402.71 XLib::XMLOutputCloseCallback(): Signature requested for file 'save/temp_save.xml.gz' but there was no signature node
[General] 402.71 ======================================

Loooks like those line is the reason? About mining?

tezboyes
Posts: 19
Joined: Tue, 1. Apr 08, 20:52
x4

Re: Crash when quicksave

Post by tezboyes » Fri, 3. Nov 23, 00:48

May be of note that your negative value is exactly 2^31 ?

Which suggests an overflow.

Kiran190
Posts: 5
Joined: Sat, 28. Oct 23, 07:13
x4

Re: Crash when quicksave

Post by Kiran190 » Fri, 3. Nov 23, 06:48

tezboyes wrote:
Fri, 3. Nov 23, 00:48
May be of note that your negative value is exactly 2^31 ?

Which suggests an overflow.
You should be right. After I delete ‘region_definitions’, everything is working well. I may set too much resource.

Return to “X4: Foundations - Scripts and Modding”