Farm Quality Plants/Trees


Planting quality seeds will now yield quality plants!

Content
5 months ago
2.0
761
Manufacturing

g Crash on Factorio 2.1 — possible fix available

8 days ago

Hi,

first of all, I really like the idea of this mod. I think it is an interesting addition to the quality system.

After updating to Factorio 2.1, the mod crashes during startup with an error related to tree-plant leaf sprites:

The given sprite rectangle is outside the actual sprite size

I looked into the issue a bit and it seems to be caused by the tree sprites. From what I can tell, the tree/plant sprite handling changed between Factorio 2.0 and 2.1, and the hardcoded tree handling in the mod no longer matches the current sprite dimensions.

I made a small local fix that solves the crash for me. The mod now loads correctly again in Factorio 2.1.

If you are interested, feel free to contact me and I can send you the fixed version or the patch. I would be happy if this helps keep the mod working.

8 days ago

Sure, what’s a good way to reach you?

8 days ago

https://drive.google.com/file/d/1mwGSuG3CZ7vIfZTQRGA-PkKyILnYUwig/view?usp=drive_link
Hope this works
I used ChatGPT
It changed this in functions.lua:

if (quality.name.."-tree-plant" == plant.name) then
variation.leaves.filename = "quality-plants/plant/tree-plant/tree-08-"..letters[i].."-leaves.png"
else
variation.leaves.filename = func.base_tintable[gsub] or variation.leaves.filename
end

to

if not (quality.name.."-tree-plant" == plant.name) then
variation.leaves.filename = func.base_tintable[gsub] or variation.leaves.filename
end

6 days ago

Will this be an update to mod soon I ran into the same problem

6 days ago

If you want you can use my temporary fix until then

New response