Actual Craft Time

Display actual craft times for assemblers, furnaces and rocket silo
a month ago
0.16 - 0.17
14570

g Crash with Bobs Mods

- 2 months 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>

- 2 months 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.

- 2 months ago

ups sorry.

- 2 months ago

Nope, still crashing.

- 2 months ago
(updated 2 months 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.

- 2 months ago

Can i provide anything to help you fix this?

I guess its about calculating the belt speed for the overlay

- 2 months ago

Try with 0.3.5, if it still crashes list your mods

- 2 months ago
(updated 2 months ago)

Same crash.

I have many mods. Many QoL Mods.

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

- 2 months ago
(updated 2 months ago)

Its CJs Quality of Life Research 01 :(

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

edit2: its Dectorio...

- 2 months 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.

- 2 months 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... :>

- 2 months ago

yes I need to add more checks

- 2 months ago
(updated 2 months 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

- 2 months ago

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