Actual Craft Time


Display actual craft times for assemblers, furnaces and rocket silo

Utilities
3 years ago
0.16 - 1.1
15.4K

g Crash with Bobs Mods

5 years ago

Hey, it crashed with bobs mods when i open crusher mk2

1157.213 Error MainLoop.cpp:1132: Exception at tick 7092604: Die Mod Actual Craft Times hat einen nichtbehebbaren Fehler verursacht.
Bitte informiere den Modautor über diesen Fehler.

Error while running event ActualCraftTime::on_gui_opened (ID 83)
ActualCraftTime/control.lua:147: attempt to perform arithmetic on field 'belt_speed' (a nil value)
stack traceback:
ActualCraftTime/control.lua:147: in function 'findPrototypeData'
ActualCraftTime/control.lua:431: in function <ActualCraftTime/control.lua:349>

5 years ago

Crusher mk2 is Angel's mod not bobs - I'm not getting any error (maybe I already fixed it while fixing other bugs?) check in the next version.

5 years ago

ups sorry.

5 years ago

Nope, still crashing.

5 years ago
(updated 5 years ago)

Its also crashing when you click on oil machines.... miners.... crafters... always blabla belt_speed

I didnt found ANYTHING i could click on without crashing actually.

5 years ago

Can i provide anything to help you fix this?

I guess its about calculating the belt speed for the overlay

5 years ago

Try with 0.3.5, if it still crashes list your mods

5 years ago
(updated 5 years ago)

Same crash.

I have many mods. Many QoL Mods.

Currently tryin to find out which one does this. Angels and Bobs seems OK.

5 years ago
(updated 5 years ago)

Its CJs Quality of Life Research 01 :(

Edit: no wrong alert, im tryin again...

edit2: its Dectorio...

5 years ago

Hey osldgoth, Dectorio mod developer here... I've found the issue with this incompatibility, please see my description here: https://github.com/jpanther/Dectorio/issues/97. If you need more info, please leave a comment on the GitHub thread and I can provide more details.

5 years ago

Ah, wanted to post it here, but since you already posted, thanks again! So fast... amazing work, hope this is fixxed when i come home tomorrow from work... :>

5 years ago

yes I need to add more checks

5 years ago
(updated 5 years ago)

This seems to have fixed it on my end: (disclaimer, this is the first lua I've ever played with at all, ever.. )

in control.lua find the line (148 I think):
bltsInts[playerName].source[k] = ((60 * v.belt_speed) / (1/8)) -- I don't remember why it needs 8/64(1/8) but it does: 8 items per tile?

and nest it in an if statement like so:
if v and v.belt_speed then -- sidelia - check if belt_speed exists
bltsInts[playerName].source[k] = ((60 * v.belt_speed) / (1/8)) -- I don't remember why it needs 8/64(1/8) but it does: 8 items per tile?
end -- sidelia

5 years ago

should all be fixed. let me know if the problem(s) continues in 0.3.6

New response