[Genhis] Unexpected error with empty string for local_expression

This subforum contains all the issues which we already resolved.
Schmendrick
Fast Inserter
Fast Inserter
Posts: 226
Joined: Wed Apr 30, 2014 11:17 pm
Contact:

[Genhis] Unexpected error with empty string for local_expression

Post by Schmendrick »

If a noise expression is an empty string, Factorio loads just fine and then throws "Parameter 'arg_register' expects Number, None given." when you try to actually use the expression live.

However, if a noise expression/function's local_expression is an empty string (and that expression is not unused), Factorio crashes during load with a generic "Error Util.cpp:95: Unexpected error occurred." You can pretty easily infer the problem is in noise compilation by looking at the log file but I would appreciate a more informative error (and, presumably, also a catch for when a main expression is empty during load).
Like my mods? Check out another! Or see older, pre-0.12.0 mods.
Bilka
Factorio Staff
Factorio Staff
Posts: 3378
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Unexpected error with empty string for local_expression

Post by Bilka »

Moved to bug reports, mods should not be able to cause an "Unexpected error".
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Genhis
Factorio Staff
Factorio Staff
Posts: 816
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [Genhis] Unexpected error with empty string for local_expression

Post by Genhis »

Fixed for 2.0.48.
Post Reply

Return to “Resolved Problems and Bugs”