In default, transport belt can make 'movable entities(player,car,tank,etc...)' to move, but I want to disable that.
How can I do it? (modding)
how can i make belts not to move movable entities?
Re: how can i make belts not to move movable entities?
There is no way.
If you want to get ahold of me I'm almost always on Discord.
Re: how can i make belts not to move movable entities?
Which collision masks have vehicles?Rseding91 wrote:There is no way.
Re: how can i make belts not to move movable entities?
Even the planes which don't have collision mask are affected by belts.
You'd have to implement complex on_tick logic to detect the vehicles being moved by belts and restore their position and I don't even know how to discern that from player driving the car along the belt.
You'd have to implement complex on_tick logic to detect the vehicles being moved by belts and restore their position and I don't even know how to discern that from player driving the car along the belt.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: how can i make belts not to move movable entities?
I've not played with it much but.... Doesn't the movable tag just means "I can be moved by belts"?
Re: how can i make belts not to move movable entities?
I can't find this flag neither in raws nor in api documentation. Where did you see that?
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
- Ranakastrasz
- Smart Inserter
- Posts: 2179
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Re: how can i make belts not to move movable entities?
Well, I don't know exact mechanics, but I think this is how to do it.Adil wrote:Even the planes which don't have collision mask are affected by belts.
You'd have to implement complex on_tick logic to detect the vehicles being moved by belts and restore their position and I don't even know how to discern that from player driving the car along the belt.
Determine exactly what situations cause the belt to move the entity, and how to detect that the entity is on a belt. Determine belt speed and vector. Apply inverted vector to entity position.
Essentially, detect when the entity is on a belt, then apply exactly the same movement in inverse that the belt does. All other sources of movement should be uneffected.
Main issue is determining exactly how fast a belt moves an entity, and making sure your detection is correct (otherwise it would cause the entity to move in the opposite direction of the belt while uneffected by the belt, or else move with the belt as it currently does)
Complex, but should be feasible.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Re: how can i make belts not to move movable entities?
what about just disabling enemies and player moving?
Re: how can i make belts not to move movable entities?
That flag mislead me too. If I recall correctly it means entity can be moved by pushing against it with a car.bobingabout wrote:I've not played with it much but.... Doesn't the movable tag just means "I can be moved by belts"?
Having a flag, can be moved by belts would be really nice.
My Mods: mods.factorio.com