Language file causes crash to desktop with cause.

Shumba shared this bug 20 days ago
Need More Information

The changes to the language files structure causes issues.

Consumable items that now list there stats using the {} {} in the language files, will crash your game on load, or when looking at the food processor block (blueprint names).

This is caused when a mod changes the number of stats on the item, while pointing to the language file for ‘blueprint name’, ‘description’ or ‘extended description’ (anything using the {} approach) – thus causing a mismatch and crash.

A simple check should be performed to prevent this crash and PLEASE an error/warning reported in F11 explaining the issue at least!

It shouldn’t be a hard check to make and only need to happen on load.


This one is extremely hard to trouble shoot which is why I’m pushing for a catch all idiots here (include me in that basket)!

It could also help keep older mods supported.


The bigger point of the problem tho:

It requires external tools to work out why it’s happening (so high skill level to solve).

It comes from simple SBC edits (so likely to be effecting lower skill level modder still learning).

That should be an alarm bell.

As a game fuelled heavily by the modding community, this kind of situation should be actively avoided in my eyes. I would consider myself medium level in skill… I had no clue!

Lucky there are highly skilled people on the discord and that I know who to ask and I have the free time.

Anyways, I hope this was helpful. =)

Replies (1)

photo
1

Hello Engineer,


Thank you for reaching out to our forum with this issue.

Could you please provide us with an example of a mod that's causing issues or point to one on the Workshop? That would really help us reproduce the issue.


Kind regards,

Keen Software House:

QA Department

photo
1

Well had to patch my mod asap people complaining and such haha, so I have attached a zipped backup of the old version that should make the crash happen in many different ways.

Then I have created a ‘simple’ example that only shows one method to produce the crash that will be far easier to work with. Find it here: https://steamcommunity.com/sharedfiles/filedetails/?id=3613001205 (should be unlisted for safety).

And lastly a crash report from that simplified mod.

Any place where the language file uses {}{} to fetch data, there is a problem basically and you get a line like this in the log: “Error during loading session:System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.”

Hope that helpful =)

photo
1

Hello Shumba,

Thank you for all the detailed info you provided, we appreciate your time and effort very much!

We tried to reproduce the issue you're describing both using the backup mod and mod from Steam, but so far everything seems to be working: the game is not crashing on loading or when looking into food processor block. We've been able to spawn and use food items your mod provides without any issues as well.

Since your last comment, Hotfix 1.208.015 has been released. To ensure the problem hasn’t already been resolved in this patch, could you please update the game to the latest version and check if the issue still occurs?

Thank you so much for your patience and help!

Kind regards,

Keen Software House:

QA Department

photo
Leave a Comment
 
Attach a file