How can I multiply only ingredient amount and not crashing the mod (Coding Problem)

Place to get help with not working mods / modding interface.
nattanang
Burner Inserter
Burner Inserter
Posts: 11
Joined: Tue Nov 12, 2024 9:57 am
Contact:

How can I multiply only ingredient amount and not crashing the mod (Coding Problem)

Post by nattanang »

This mod crash because all 3 types of ingredient input is multiply by local cost multiplier, causing crash in line 42 of the code.
My question is how can I multiply only "Ingredient Amount" input by local cost multiplier without crashing the mod
Thanks in advanced
Attachments
Wretlaw-Beacon-Rebalance.zip
(1.84 MiB) Downloaded 22 times
ภาพหน้าจอ (269).png
ภาพหน้าจอ (269).png (44.42 KiB) Viewed 104 times
ภาพหน้าจอ (271).png
ภาพหน้าจอ (271).png (277.08 KiB) Viewed 104 times
Natha
Filter Inserter
Filter Inserter
Posts: 259
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

Re: How can I multiply only ingredient amount and not crashing the mod (Coding Problem)

Post by Natha »

For one of the ingredients, the "amount" field is not present. You need to make sure it is.
Post Reply

Return to “Modding help”