The correct command for long reach is?

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
User avatar
brunzenstein
Smart Inserter
Smart Inserter
Posts: 1116
Joined: Tue Mar 01, 2016 2:27 pm
Contact:

The correct command for long reach is?

Post by brunzenstein »

/c local reach = 10000
game.player.force.character_build_distance_bonus = reach
game.player.force.character_reach_distance_bonus = reach

This command (as listed on the console Lua site) wont work - can anyone give me a helping hand?
User avatar
morsk
Fast Inserter
Fast Inserter
Posts: 145
Joined: Fri Dec 15, 2017 1:00 am
Contact:

Re: The correct command for long reach is?

Post by morsk »

These commands still work for long reach. You can see the difference if you zoom out, and try to delete an item at a far corner of the screen. It works.

The change is they don't work in Remote View, because it only does bot requests, not real "reach". I don't know if there's any way to get the old style of map view back that lets you use reach.
User avatar
brunzenstein
Smart Inserter
Smart Inserter
Posts: 1116
Joined: Tue Mar 01, 2016 2:27 pm
Contact:

Re: The correct command for long reach is?

Post by brunzenstein »

morsk wrote: Tue Nov 19, 2024 10:47 pm These commands still work for long reach. You can see the difference if you zoom out, and try to delete an item at a far corner of the screen. It works.

The change is they don't work in Remote View, because it only does bot requests, not real "reach". I don't know if there's any way to get the old style of map view back that lets you use reach.
They don't work - thankfully Posila helped me out with the correct Lua commands:

/c local reach = 10000
game.player.force.character_build_distance_bonus = reach
game.player.force.character_reach_distance_bonus = reach
game.player.force.character_resource_reach_distance_bonus = reach
game.player.force.character_item_drop_distance_bonus = reach
User avatar
morsk
Fast Inserter
Fast Inserter
Posts: 145
Joined: Fri Dec 15, 2017 1:00 am
Contact:

Re: The correct command for long reach is?

Post by morsk »

I mean it's obvious from your answer that it worked for build & reach distance, but not resource-reach and item-drop, and this is miscommunication. I will add the 2 new ones to the Wiki.
User avatar
brunzenstein
Smart Inserter
Smart Inserter
Posts: 1116
Joined: Tue Mar 01, 2016 2:27 pm
Contact:

Re: The correct command for long reach is?

Post by brunzenstein »

morsk wrote: Wed Nov 20, 2024 4:06 pm I mean it's obvious from your answer that it worked for build & reach distance, but not resource-reach and item-drop, and this is miscommunication. I will add the 2 new ones to the Wiki.
Thanks for your swift reaction - Chapeau!
User avatar
brunzenstein
Smart Inserter
Smart Inserter
Posts: 1116
Joined: Tue Mar 01, 2016 2:27 pm
Contact:

Re: The correct command for long reach is?

Post by brunzenstein »

morsk wrote: Wed Nov 20, 2024 4:06 pm I mean it's obvious from your answer that it worked for build & reach distance, but not resource-reach and item-drop, and this is miscommunication. I will add the 2 new ones to the Wiki.
Hi morsk

Could you help me with another one:
How to clear console history?

player.clear_console()

dosesn work
Thanks in advance - Servus from Vienna
User avatar
morsk
Fast Inserter
Fast Inserter
Posts: 145
Joined: Fri Dec 15, 2017 1:00 am
Contact:

Re: The correct command for long reach is?

Post by morsk »

/clear will clear the console history displayed on the screen. The lua for it is /c game.player.clear_console() but there's no need to type it when /clear works.

If you want to clear the command history you see by pressing Up and Down in the chat box, I don't know any way to do this except editing player-data.json in your user data directory. Maybe there is another way.
Post Reply

Return to “Technical Help”