explain some console commands
-
- Burner Inserter
- Posts: 6
- Joined: Thu Apr 28, 2016 9:54 pm
- Contact:
explain some console commands
i am trying to use the console command to add a resources patch but i dont understand the wikipedia
/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="stone", amount=5000, position={game.local_player.position.x+x, game.local_player.position.y+y}})
end
end
can someone tell me how to correctly insert this in the console command
thank you
-Offsetpeter
/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="stone", amount=5000, position={game.local_player.position.x+x, game.local_player.position.y+y}})
end
end
can someone tell me how to correctly insert this in the console command
thank you
-Offsetpeter
Re: explain some console commands
Open console with ~ or whatever you might have configured, ctrl+v, enter.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
-
- Burner Inserter
- Posts: 6
- Joined: Thu Apr 28, 2016 9:54 pm
- Contact:
Re: explain some console commands
i know that yes but the command it selfprg wrote:Open console with ~ or whatever you might have configured, ctrl+v, enter.
Add new resource patch
This creates a new 5x5 patch of resources, centered on the player character. For resources other than stone, just change "stone" to "iron-ore", "copper-ore", or "coal"
/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="stone", amount=5000, position={game.local_player.position.x+x, game.local_player.position.y+y}})
end
end
is what i dont understand
Re: explain some console commands
Could you rephrase your question? I have no idea what your problem is with this command then. You want a line by line explanation of how it works?
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
-
- Burner Inserter
- Posts: 6
- Joined: Thu Apr 28, 2016 9:54 pm
- Contact:
Re: explain some console commands
if you want yes please
let me ask it like this
for example what do i need to put in the console command if i want a 5x5 iron ore deposit
let me ask it like this
for example what do i need to put in the console command if i want a 5x5 iron ore deposit
Re: explain some console commands
/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="iron-ore", amount=5000, position={game.local_player.position.x+x, game.local_player.position.y+y}})
end
end
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="iron-ore", amount=5000, position={game.local_player.position.x+x, game.local_player.position.y+y}})
end
end
-
- Burner Inserter
- Posts: 6
- Joined: Thu Apr 28, 2016 9:54 pm
- Contact:
Re: explain some console commands
so if i copy paste this :
/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="iron-ore", amount=5000, position={game.local_player.position.x+x, game.local_player.position.y+y}})
end
end
it wil give me a 5x5 iron ore patch ??
/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="iron-ore", amount=5000, position={game.local_player.position.x+x, game.local_player.position.y+y}})
end
end
it wil give me a 5x5 iron ore patch ??
Re: explain some console commands
If only there was a way to find out...
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
-
- Burner Inserter
- Posts: 6
- Joined: Thu Apr 28, 2016 9:54 pm
- Contact:
Re: explain some console commands
so no that dose not work
- Attachments
-
- Naamloos.png (2.25 MiB) Viewed 4498 times
Re: explain some console commands
You have a stray ` at the end.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
-
- Burner Inserter
- Posts: 6
- Joined: Thu Apr 28, 2016 9:54 pm
- Contact:
Re: explain some console commands
nice that workt thank youprg wrote:You have a stray ` at the end.
Re: explain some console commands
i have this problem pleas help
Re: explain some console commands
Nowadays it's just player instead of local_player.
Also for crude oil you probably want to add some spacing so you're able to place the pumpjacks. Try {game.player.position.x+3*x, game.player.position.y+3*y} as the position.
edit: ...better use at least one 4 there somewhere if you also care about pipes.
Also for crude oil you probably want to add some spacing so you're able to place the pumpjacks. Try {game.player.position.x+3*x, game.player.position.y+3*y} as the position.
edit: ...better use at least one 4 there somewhere if you also care about pipes.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: explain some console commands
thank you so much.
Re: explain some console commands
1. This is moved from General to Gameplay Help
2. Please use the code-block to show code.
Looks much better than
/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="iron-ore", amount=5000, position={game.local_player.position.x+x, game.local_player.position.y+y}})
end
end
and avoids wrong quoting.
2. Please use the code-block to show code.
Code: Select all
/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="iron-ore", amount=5000, position={game.local_player.position.x+x, game.local_player.position.y+y}})
end
end
/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="iron-ore", amount=5000, position={game.local_player.position.x+x, game.local_player.position.y+y}})
end
end
and avoids wrong quoting.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...