pyanodon / pybugreports

Central bug-report repository for pymods
The Unlicense
5 stars 1 forks source link

Crash when selecting 'Reverse selection' for moondrop T.U.R.D. #516

Closed Mazzelfassel closed 4 months ago

Mazzelfassel commented 4 months ago

Mod source

Factorio Mod Portal

Operating system

=Windows 10

What kind of issue is this?

What is the problem?

After updating all Pyandodons Mods to the most recent version, changes to the moondrop T.U.R.D. allows you to reselect it. Upon hitting the button 'Reverse selection' the game crashes with the following report:

The mod Pyanodons Alien Life (2.1.36) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event pyalienlife::on_gui_click (ID 1)
__pyalienlife__/scripts/turd/turd.lua:294: attempt to index global 'effect' (a nil value)
stack traceback:
    __pyalienlife__/scripts/turd/turd.lua:294: in function 'recipe_replacement'
    __pyalienlife__/scripts/turd/turd.lua:420: in function 'unselect_recipes_for_subtech'
    __pyalienlife__/scripts/turd/turd.lua:478: in function 'f'
    __pyalienlife__/control.lua:17: in function <__pyalienlife__/control.lua:14>

I previously selected the 'Moon light' upgrade. Additionally I already tested removing all farms that have the related recipe before reselecting but the bug remains.

Steps to reproduce

No response

Additional context

No response

Log file

No response

notnotmelon commented 4 months ago

Fixed. Thanks for the report.