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).
[Genhis] Unexpected error with empty string for local_expression
-
- Fast Inserter
- Posts: 226
- Joined: Wed Apr 30, 2014 11:17 pm
- Contact:
[Genhis] Unexpected error with empty string for local_expression
Like my mods? Check out another! Or see older, pre-0.12.0 mods.
Re: Unexpected error with empty string for local_expression
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.
Re: [Genhis] Unexpected error with empty string for local_expression
Fixed for 2.0.48.