Page 1 of 1

Version 1.1.39

Posted: Wed Sep 01, 2021 4:16 pm
by FactorioBot
Bugfixes
  • Fixed that rotating belt direction when dragging allowed "stash" the rotate and continue in the original direction. (99572)
  • Fixed that loading a game that was saved during drag building didn't clear the internal drag building state causing blueprint snapping not working properly. (99496)
  • Fixed that LuaGameScript::check_prototype_translations() didn't check technologies. (99672)
  • Fixed that items with data would not stack properly in crafting machine source inventory when recipe requires more than a stack of ingredient. (99708)
  • Fixed that pasting a blueprint over existing train could cause a desync. (99592)
  • Fixed that it was possible to interact with locomotive's fuel slots while out of reach. (99731)
  • Fixed wrong status text when a mining drill drop target is marked for deconstruction. (99679)
  • Fixed wrong mining drill status when a resource is depleted while the mining drill is missing the required fluid. (99527)
  • Fixed the blueprint snap-to-grid reference point being drawn behind entities in some situations. (99704)
Scripting
  • LuaEntityPrototype::resource_categories now supports characters.
  • Added on_equipment_inserted and on_equipment_removed events that fire any time any equipment is added/removed from a grid.
Use the automatic updater if you can (check experimental updates in other settings) or download full installation at http://www.factorio.com/download/experimental.

Re: Version 1.1.39

Posted: Wed Sep 01, 2021 4:30 pm
by Sanqui
This is the last release that will ship with the current API docs website. You can already take a look at the new documentation website for this release and give us feedback in that thread. Thanks!

Re: Version 1.1.39

Posted: Wed Sep 01, 2021 6:55 pm
by eradicator
FactorioBot wrote:
Wed Sep 01, 2021 4:16 pm
LuaEntityPrototype::resource_categories now supports characters.
What, mining drills can mine people now? :twisted:

Re: Version 1.1.39

Posted: Wed Sep 01, 2021 9:02 pm
by Shadow_Man
eradicator wrote:
Wed Sep 01, 2021 6:55 pm
FactorioBot wrote:
Wed Sep 01, 2021 4:16 pm
LuaEntityPrototype::resource_categories now supports characters.
What, mining drills can mine people now? :twisted:
Not people, but worms and biters :geek:

Re: Version 1.1.39

Posted: Fri Sep 03, 2021 11:51 am
by ickputzdirwech
FactorioBot wrote:
Wed Sep 01, 2021 4:16 pm
Added on_equipment_inserted and on_equipment_removed events that fire any time any equipment is added/removed from a grid.
on_equipment_removed includes the number of equipment removed, on_equipment_inserted doesn't. Is there any particular reason for that? The same goes for the already existing events on_player_removed_equipment and on_player_placed_equipment.

Re: Version 1.1.39

Posted: Tue Sep 07, 2021 6:02 pm
by raiguard
ickputzdirwech wrote:
Fri Sep 03, 2021 11:51 am
FactorioBot wrote:
Wed Sep 01, 2021 4:16 pm
Added on_equipment_inserted and on_equipment_removed events that fire any time any equipment is added/removed from a grid.
on_equipment_removed includes the number of equipment removed, on_equipment_inserted doesn't. Is there any particular reason for that? The same goes for the already existing events on_player_removed_equipment and on_player_placed_equipment.
on_equipment_inserted (and its sibling event) pass the actual equipment that was inserted, instead of a name and count. By contrast, the removed events return a name and count. The inserted events will always fire once for each equipment that is inserted, so the number is always 1.

Re: Version 1.1.39

Posted: Wed Sep 08, 2021 6:27 am
by ickputzdirwech
Raiguard wrote:
Tue Sep 07, 2021 6:02 pm
The inserted events will always fire once for each equipment that is inserted, so the number is always 1.
I will check it again, but I did a quick test the other day and as far I could tell it only fired once, even though I shift-clicked multiple solar panels into the grid. (I just printed something in the console whenever the event fired)

Re: Version 1.1.39

Posted: Wed Sep 08, 2021 6:33 am
by boskid
ickputzdirwech wrote:
Wed Sep 08, 2021 6:27 am
I will check it again, but I did a quick test the other day and as far I could tell it only fired once, even though I shift-clicked multiple solar panels into the grid. (I just printed something in the console whenever the event fired)
Did you account for the output console spam protection that does not print messages of equal content sent within 60 ticks from the last such message?