[Klonan] [1.1.60] Error in get_product_list in modded game

This subforum contains all the issues which we already resolved.
talchas
Inserter
Inserter
Posts: 32
Joined: Sat Dec 16, 2017 1:58 am
Contact:

[Klonan] [1.1.60] Error in get_product_list in modded game

Post by talchas »

Running DyWorld-Dynamics + Fill4Me (patched to print the whole traceback) and starting a new freeplay (or scenario) game, gives

Code: Select all

__core__/lualib/production-score.lua:92: attempt to perform arithmetic on field 'amount' (a nil value)
stack traceback:
        __core__/lualib/production-score.lua:92: in function 'get_product_list'
        __core__/lualib/production-score.lua:240: in function 'generate_price_list'
        __Fill4Me__/fill4me/ammo.lua:83: in function 'price_list'
        __Fill4Me__/fill4me/ammo.lua:53: in function 'list'
        __Fill4Me__/fill4me/fill4me.lua:198: in function 'evaluate_items'
        __Fill4Me__/fill4me/fill4me.lua:77: in function 'handler'
        __Fill4Me__/stdlib/event/event.lua:150: in function 'dispatch'
        __Fill4Me__/lib/event_extend.lua:72: in function 'handler'
        __Fill4Me__/stdlib/event/event.lua:150: in function 'dispatch'
        __Fill4Me__/stdlib/event/event.lua:38: in function <__Fill4Me__/stdlib/event/event.lua:37>
which aborts game creation. As far as I can tell this is because get_product_list uses launch_product.amount in one place rather than the "launch_product_amount = util.product_amount(launch_product)" it computed earlier. (DyWorld-Dynamics has rocket launches with random results and Fill4Me accesses the price list)
Attachments
factorio-current.log
(65.32 KiB) Downloaded 186 times
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5300
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [Klonan] [1.1.60] Error in get_product_list in modded game

Post by Klonan »

Thanks for the report

It is fixed for the next release
Post Reply

Return to “Resolved Problems and Bugs”