User:Joshinils: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">


As I'm usig this bit so often, here it is to copy-paste:
== Subpages ==
 
{{Special:PrefixIndex/User:Joshinils}}
 
== copy-pasta ==
 
<pre>
<pre>
== Siehe auch ==
== Siehe auch ==
Line 8: Line 13:
* [[Technologies/de|Technologien]]
* [[Technologies/de|Technologien]]
</pre>
</pre>
<pre>
<pre>
! Technologie !! Kosten !! Auswirkung !! Aufaddierte <br/>Auswirkung
! Technologie !! Kosten !! Auswirkung !! Aufaddierte <br/>Auswirkung
Line 13: Line 20:




Block that puts ''foo'' and ''bar'' nex to each another if there is space, else it wraps and puts them underneath:
Block that puts ''foo'' and ''bar'' next to each another if there is space, else it wraps and puts them underneath:
<pre>
<pre>
<div><ul>
<div><ul>
Line 20: Line 27:
</ul></div>
</ul></div>
</pre>
</pre>
== Lua stuff ==


Screenshot command:
Screenshot command:
Line 25: Line 35:
/c game.take_screenshot{resolution = {x = 1000, y = 1000}, zoom = 2, show_entity_info = true}
/c game.take_screenshot{resolution = {x = 1000, y = 1000}, zoom = 2, show_entity_info = true}
</syntaxhighlight>
</syntaxhighlight>


Remaining research command:
Remaining research command:
Line 37: Line 48:
</syntaxhighlight>
</syntaxhighlight>


Reveal circular area around input (default <code>(x=0,y=0)</code>, can be exchanged with <code>game.player.position</code>)
 
Reveal circular area around input (default <syntaxhighlight lang="lua" inline>{x=0,y=0}</syntaxhighlight>, can be exchanged with <syntaxhighlight lang="lua" inline>game.player.position</syntaxhighlight>)
<syntaxhighlight lang="lua" line='line'>
<syntaxhighlight lang="lua" line='line'>
/c global.reveal=function(input)
/c global.reveal=function(input)
Line 62: Line 74:




Delete everything (when <code>input == nil</code>)
Delete everything except the player character (when <syntaxhighlight lang="lua" inline>input == nil</syntaxhighlight>, when <syntaxhighlight lang="lua" inline>all</syntaxhighlight> is present, then everything including the player character gets deleted)
<syntaxhighlight lang="lua" line='line'>
<syntaxhighlight lang="lua" line='line'>
/c global.delete=function(input)
/c global.delete = function(input, all)
local surface=game.players[1].surface
for surface in pairs(game.surfaces) do
for c in surface.get_chunks() do
for _, ent in pairs(surface.find_entities_filtered{type=input} do
for key, entity in pairs(surface.find_entities_filtered({area={{c.x*32, c.y*32}, {c.x*32+32, c.y*32+32}}, type=input})) do
if all or (ent.type ~= "player" and input ~= "player") then entity.destroy() end
entity.destroy()
end
end
end
end
end
end
</syntaxhighlight>
</syntaxhighlight>


[https://wiki.factorio.com/api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm job que]
[https://wiki.factorio.com/api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm job que]


== Subpages==
{{Special:PrefixIndex/User:Joshinils}}




Line 102: Line 110:
{|
{|
|-
|-
| [[Factorio:Wanted_pages#German_Wanted_Pages|List Of German Wanted Pages]]
| [[Factorio:Wanted_pages#German_Wanted_Pages|List Of German Wanted Pages]] {{Factorio:Wanted_pages/de}}
{{Factorio:Wanted_pages/de}}
|}
|}
</div>

Revision as of 06:56, 5 September 2017

Subpages

copy-pasta

== Siehe auch ==
* [[Research/de|Forschung]]
* [[Technologies/de|Technologien]]


! Technologie !! Kosten !! Auswirkung !! Aufaddierte <br/>Auswirkung


Block that puts foo and bar next to each another if there is space, else it wraps and puts them underneath:

<div><ul>
<li style="display:inline-block;"> foo </li>
<li style="display:inline-block;"> bar </li>
</ul></div>


Lua stuff

Screenshot command:

/c game.take_screenshot{resolution = {x = 1000, y = 1000}, zoom = 2, show_entity_info = true}


Remaining research command:

/c global.research = function(amount)
	if amount == nil then 
		game.print(game.player.force.research_progress * 100 .. "% done")
	else
		game.print(amount -game.player.force.research_progress * amount .. " packs needed")
	end
end


Reveal circular area around input (default {x=0,y=0}, can be exchanged with game.player.position)

/c global.reveal=function(input)
	--[[set radius the first time this gets run]]
	global=global or {}
	global.radius=global.radius or 128
	
	radius_squared=global.radius*global.radius
	origin=input or {x=0, y=0}

	for x=-global.radius, global.radius, 32 do
		for y=-global.radius, global.radius, 32 do
			if x*x+y*y<radius_squared then
				game.player.force.chart(game.player.surface, {{origin.x+x, origin.y+y }, {origin.x+x, origin.y+y }})
			end
		end
	end
	game.print("r="..global.radius)
	
	--[[increase radius every successive time it is run, may be set outside of this function]]
	global.radius=global.radius+32
end


Delete everything except the player character (when input == nil, when all is present, then everything including the player character gets deleted)

/c global.delete = function(input, all)
	for surface in pairs(game.surfaces) do
		for _, ent in pairs(surface.find_entities_filtered{type=input} do
			if all or (ent.type ~= "player" and input ~= "player") then entity.destroy() end
		end
	end
end

job que












List Of German Wanted Pages Number of wanted pages: 43
# Page Links to this page Length of the corresponding English page in bytes
1 Debug mode/de 8 8484
2 Factorio:Translation guide/de 5 10322
3 Production statistics/de 5 2490
4 Replay system/de 5 3868
5 Scenario system/de 4 4391
6 Tutorial:Keyboard shortcuts/de 4 6271
7 Alien technology (research)/de 3 389 (Archived)
8 Armor crafting (research)/de 3 249 (Archived)
9 Command line parameters/de 3 12125
10 Curved rail/de 3 865 (Archived)
11 Glossary/de 3 18157
12 Rich text/de 3 6754
13 Supply challenge/de 3 3178
14 Tutorial:Main bus/de 3 13635
15 Tutorial:Modding tutorial/de 3 3011
16 Tutorial:Transport use cases/de 3 13789
17 Advanced chemistry (research)/de 2 174 (Archived)
18 Automated construction (research)/de 2 466 (Archived)
19 Category:Candidates for deletion/de 2 267
20 Category:To translate/de 2 76
21 Chemistry (research)/de 2 165 (Archived)
22 Factorio:Editor noticeboard/de 2 3987
23 Main/de 2 ---
24 Roadmap/History/de 2 7088
25 Rocket defense (research)/de 2 499 (Archived)
26 Rocket defense/de 2 560 (Archived)
27 Smart inserter/de 2 3902 (Archived)
28 Tutorial:Modding FAQ/de 2 6661
29 Copy and paste/de 1 7177
30 Log file/de 1 3375
31 Recycler/de 1 811 (Stub)
32 Rocket rush/de 1 12450
33 Template:Languages/de 1 1297
34 Tutorial:Diagnosing performance issues/de 1 9252
35 Tutorial:Inspecting a live mod/de 1 2623
36 Tutorial:Localisation/de 1 13231
37 Tutorial:Mod changelog format/de 1 5453
38 Tutorial:Mod settings/de 1 14709
39 Tutorial:Mod structure/de 1 8688
40 Tutorial:Modding tutorial/Gangsir/de 1 35048
41 Tutorial:Script interfaces/de 1 4690
42 Tutorial:Scripting/de 1 11990
43 Wave defense/de 1 8138