[1.1.59] collision_mask_util.get_first_unused_layer() doesn’t check tiles

This subforum contains all the issues which we already resolved.
Xorimuth
Filter Inserter
Filter Inserter
Posts: 693
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

[1.1.59] collision_mask_util.get_first_unused_layer() doesn’t check tiles

Post by Xorimuth »

`collision_mask_util.get_first_unused_layer()` doesn’t check for collision masks only used by tiles. If I use it and only assign it to tiles then the next mod that uses it will be given the same layer that I just used.

This obviously causes all sorts of problems and is quite hard to diagnose (in my case it resulted in no resources spawning! I assigned the layer to all non-shallow-water tiles and cargo-ships gets the same layer and assigns it to all resource entities..).

This is very hard to work around without hard coding in a high collision layer and hoping that it doesn’t collide with any other mods - the very problem this library is intended to avoid!
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Xorimuth
Filter Inserter
Filter Inserter
Posts: 693
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

Re: [1.1.59] collision_mask_util.get_first_unused_layer() doesn’t check tiles

Post by Xorimuth »

Thanks for the report. It's now fixed for the next release. (1.1.60)
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Post Reply

Return to “Resolved Problems and Bugs”