Page 1 of 1
Stop character moving with belts
Posted: Sun Aug 30, 2015 9:09 pm
by Rens2Sea
Is it possible to mod so that the player doesn't move when standing on belts but instead just stands still? I find it to be pretty annoying.

Re: Stop character moving with belts
Posted: Sun Aug 30, 2015 9:20 pm
by Klonan
If you don't like moving when standing on belts i suggest you stop standing on belts
Re: Stop character moving with belts
Posted: Sun Aug 30, 2015 9:33 pm
by SirRichie
Klonan wrote:If you don't like moving when standing on belts i suggest you stop standing on belts
Rarely have I ever encountered such a tremendously helpful contribution to a sincerely asked question.
Back to the topic:
I don't think that there is an easy way to do this.
You could of course check if the player is on a belt and then depending on the belt type move the player in on_tick, but I'd suspect this to appear more laggy than really useful.
Another option I could think of is working with surfaces. Maybe move the player to a different surface, but I am unsure if the player can then still interact with the "normal" buildings.
It might also be possible to adjust the collision boxes of the belts, but that probably also makes them stop transporting other stuff.
So no definite answer, but some directions to explore.
Re: Stop character moving with belts
Posted: Mon Aug 31, 2015 10:51 am
by Ranakastrasz
The first idea that comes to mind is an on-tick loop that takes the player's location from last tick and teleports them there each tick. This won't work since it will prevent all movement. You would need to differentiate between movement types.
The next is to figure out if you can preven belts from moving non-item entities. I have no idea what would happen if you reduced it's collision size, or if any filters are supported. notably, this would prevent it from effecting any entity, not just the player.
Re: Stop character moving with belts
Posted: Tue Sep 15, 2015 11:56 pm
by bobingabout
Code: Select all
flags = {"pushable", "placeable-off-grid", "breaths-air", "not-repairable", "not-on-map"},
I'm fairly sure it is the "pushable" entry that makes the player move by belts.
not tested, try this code. (In a mod's data.lua file, or other mod data file)
Code: Select all
for i, flag in pairs(data.raw.player["player"].flags) do
if flag == "pushable" then table.remove(data.raw.player["player"].flags, i) end
end
Re: Stop character moving with belts
Posted: Mon Apr 09, 2018 9:00 am
by Sander_Bouwhuis
I tried literally what you said, but it doesn't work.
Do you have any other ideas?
PS
I LOOOOOOOOOOOOOOOOOOOOOVE your Bob's mods!!!
Re: Stop character moving with belts
Posted: Mon Apr 09, 2018 9:07 am
by posila
Pushable flag doesn't do anything in 0.16.
It is possible to create mod that enables belt-immunity-equipment for armor grid.
Re: Stop character moving with belts
Posted: Mon Apr 09, 2018 4:11 pm
by Sander_Bouwhuis
1. What does armor grid mean?
2. Could you please post the code like Bobingabout so I can put it in the mods directory?
Re: Stop character moving with belts
Posted: Mon Apr 09, 2018 5:55 pm
by 5thHorseman
Sander_Bouwhuis wrote:1. What does armor grid mean?
2. Could you please post the code like Bobingabout so I can put it in the mods directory?
I'll post something better than that.
https://mods.factorio.com/mod/BeltImmunity
Re: Stop character moving with belts
Posted: Mon Apr 09, 2018 6:20 pm
by Sander_Bouwhuis
5thHorseman wrote:Sander_Bouwhuis wrote:1. What does armor grid mean?
2. Could you please post the code like Bobingabout so I can put it in the mods directory?
I'll post something better than that.
https://mods.factorio.com/mod/BeltImmunity
The mod doesn't work.
The mod is red in the Mods screen. It says it is "incompatible with current version of the game".
I have the Steam version of Factorio. Is there another version of the game? Or is this DLC I need to buy first?
Re: Stop character moving with belts
Posted: Mon Apr 09, 2018 8:06 pm
by 5thHorseman
Sander_Bouwhuis wrote:5thHorseman wrote:Sander_Bouwhuis wrote:1. What does armor grid mean?
2. Could you please post the code like Bobingabout so I can put it in the mods directory?
I'll post something better than that.
https://mods.factorio.com/mod/BeltImmunity
The mod doesn't work.
The mod is red in the Mods screen. It says it is "incompatible with current version of the game".
I have the Steam version of Factorio. Is there another version of the game? Or is this DLC I need to buy first?
No it works for me. Or at least something works for me that has that icon. I'm on mobile right now but I'll check later tonight when I'm on my PC.
Re: Stop character moving with belts
Posted: Tue Apr 10, 2018 3:04 am
by 5thHorseman
Aha, I see the problem. Seems my Belt Immunity Equipment is baked into Power Armor Mk 3.
https://mods.factorio.com/mod/Power%20Armor%20MK3
Re: Stop character moving with belts
Posted: Tue Apr 10, 2018 7:02 am
by Sander_Bouwhuis
Could you please tell me how to simply have it without an armor? (I never used armor before).
I just want it from the start of the game. It's a tweak, not a gameplay item.
Armors aren't available easily and I see it requires blue boards, which is WAAAAAAAYYYY late in the game. With Bob's mods it's in fact so late that it is totally useless.
Other convenience tweaks I use : far reach, larger inventory, teleport gun, walk through buildings and pipes.
I'm more of a sim city style casual gamer.
Re: Stop character moving with belts
Posted: Tue Apr 10, 2018 7:16 am
by darkfrei
Why not God mode?
Re: Stop character moving with belts
Posted: Tue Apr 10, 2018 7:38 am
by Sander_Bouwhuis
What is God mode? I don't play with enemies, so I don't need to be invincible (although it would help with dying from being hit by trains every couple of hours LOL).
Edit:
I see you can remove your character. That is very useful!!
The only problem I have now is that I can't scroll the screen at high speed. When I go to the map I can scroll very quickly, but when I'm in 'normal' mode scrolling with the shortcut keys is way too slow to be useful.
Can I change the scrolling (panning) speed? Or, preferably, zoom out and zoom in quickly just like the map so that I can build things around my bases nearly instantly?
PS
If this works out, I'm going to tell some of my friends to also buy this game. Like me, they like city builders but don't like the useless walking around part. Up till now, I couldn't convince them because of that.
Re: Stop character moving with belts
Posted: Tue Apr 10, 2018 7:54 am
by 5thHorseman
Sander_Bouwhuis wrote:Could you please tell me how to simply have it without an armor? (I never used armor before).
No, I can't. I don't know that much about modding.
Sander_Bouwhuis wrote:Armors aren't available easily and I see it requires blue boards, which is WAAAAAAAYYYY late in the game. With Bob's mods it's in fact so late that it is totally useless.
Modular Armor takes only red boards which aren't burner phase or anything but aren't THAT hard to make.[/quote]
Re: Stop character moving with belts
Posted: Tue Apr 10, 2018 8:54 am
by Sander_Bouwhuis
As you can see in the screenshot, this item cannot be made at the start of the game. It requires at minimum blue science and a lot of (sub-)components.
Anyway, tonight I'll check out the sim city mode. Hopefully that will solve all the problems in one fell swoop.
Re: Stop character moving with belts
Posted: Tue Apr 10, 2018 10:04 am
by mrvn
Sander_Bouwhuis wrote:As you can see in the screenshot, this item cannot be made at the start of the game. It requires at minimum blue science and a lot of (sub-)components.
Anyway, tonight I'll check out the sim city mode. Hopefully that will solve all the problems in one fell swoop.
You can easily unzip the mod and edit the recipe to make it easier to built.