Search found 4 matches

by roland77
Wed Feb 19, 2025 9:58 pm
Forum: Implemented mod requests
Topic: [invalid] Some validation in normalize_recipe_product() ?
Replies: 8
Views: 909

Re: Some validation in normalize_recipe_product() ?

So okay, this issue has already been addressed. Let's then close this as [invalid].
by roland77
Wed Feb 19, 2025 7:55 pm
Forum: Implemented mod requests
Topic: [invalid] Some validation in normalize_recipe_product() ?
Replies: 8
Views: 909

Re: Some validation in normalize_recipe_product() ?


Meh, for 2.0.35 i added one check for malformed ingredients (in quality/prototypes/recycling.lua) and one check for malformed products (in core/lualib/util.lua)


Ah, thank you. Yes, sure disabling quality mod should lead you do the faulty mod data. I can go with that, too. It just didn't came to ...
by roland77
Wed Feb 19, 2025 1:26 pm
Forum: Implemented mod requests
Topic: [invalid] Some validation in normalize_recipe_product() ?
Replies: 8
Views: 909

Re: Some validation in normalize_recipe_product() ?

The mod quality wasn't the culprit and it was shown with the other mod were the error was but it wasn't mentioned here.Adding some more log() calls isn't a hard task to do. But still it took me hours to find this out, that results can hold a list tables (not must?). So you cannot see the mod (FE+) I ...
by roland77
Wed Feb 19, 2025 11:34 am
Forum: Implemented mod requests
Topic: [invalid] Some validation in normalize_recipe_product() ?
Replies: 8
Views: 909

[invalid] Some validation in normalize_recipe_product() ?

It took me hours to find this bad mod data so I ask you if you can add some validation in function core/lualib/util.lua, normalize_recipe_product() .

So let me give you a simple example to how to reproduce it:

Write a recipe with results = {type="item", name="foo", amount=1} (yes, the list around ...

Go to advanced search