create new collision_mask
create new collision_mask
is it possible to creat a new collision_mask to avoid being incompatible with other mods?
Re: create new collision_mask
No, the masks listed here are all you get: https://wiki.factorio.com/Types/CollisionMask
Here is a discussion of workarounds: viewtopic.php?t=74786
Here is a discussion of workarounds: viewtopic.php?t=74786
Re: create new collision_mask
Set them in the mod settings.lua:
Code: Select all
data:extend({
{
type = "string-setting",
name = "my-mod-collision-mask",
setting_type = "startup",
default_value = "layer-11",
allowed_values = {"layer-11", "layer-12", "layer-13", "layer-14", "layer-15"}
}
})
Code: Select all
local collision_mask = settings.startup["my-mod-collision-mask"].value
Re: create new collision_mask
There are several unused masks, and it is possible to use one of those for a mod. The issue is that if in the future that mask is appropriated for something specific within the game, it would blow the mod out of the water. The other issue, is if that same mask is used by two different mod authors, in which case the both mods will be mutually incompatible with each other.
I did look into that, and it can work, but the risk is to great that it may cause the to mod to be incompatible with some other mod, or get broken if Webe chooses to use that mask for something else.
Hiladdar
I did look into that, and it can work, but the risk is to great that it may cause the to mod to be incompatible with some other mod, or get broken if Webe chooses to use that mask for something else.
Hiladdar