User:Joshinils: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (that's lua :P)
mNo edit summary
Line 33: Line 33:
Screenshot command:
Screenshot command:
<syntaxhighlight lang="lua" line='line'>
<syntaxhighlight lang="lua" line='line'>
/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>


Line 39: Line 39:
Remaining research command:
Remaining research command:
<syntaxhighlight lang="lua" line='line'>
<syntaxhighlight lang="lua" line='line'>
/c global.research = function(amount)
/c global.research=function(amount)
if amount == nil then  
if amount==nil then  
game.print(game.player.force.research_progress * 100 .. "% done")
game.print(game.player.force.research_progress*100 .."% done")
else
else
game.print(amount -game.player.force.research_progress * amount .. " packs needed")
game.print(amount -game.player.force.research_progress*amount.." packs needed")
end
end
end
end
Line 74: Line 74:




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

Revision as of 02:12, 11 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: 179
# Page Links to this page Length of the corresponding English page in bytes
1 Space Age/de 342 2628 (Stub)
2 Biter egg handling (research)/de 149 609 (Stub)
3 Overgrowth soil (research)/de 149 522
4 Quality/de 149 30841
5 Turbo splitter/de 72 938
6 Turbo transport belt/de 72 1233
7 Display panel/de 71 2866 (Stub)
8 Turbo underground belt/de 71 1017
9 Overgrowth jellynut soil/de 69 797 (Stub)
10 Overgrowth yumako soil/de 69 800
11 Rail ramp/de 69 775 (Stub)
12 Rail support/de 69 1852
13 Selector combinator/de 69 3317 (Stub)
14 Artificial jellynut soil/de 68 734 (Stub)
15 Artificial yumako soil/de 68 735
16 Foundation/de 68 671 (Stub)
17 Ice platform/de 68 597 (Stub)
18 Foundry/de 65 16763 (Stub)
19 Capture bot rocket/de 61 579 (Stub)
20 Mech armor/de 61 1578
21 Metallurgic science pack/de 61 419 (Stub)
22 Railgun/de 61 808
23 Rocket turret/de 61 1317 (Stub)
24 Tesla ammo/de 61 157
25 Tesla gun/de 61 657
26 Toolbelt equipment/de 61 338
27 Tungsten plate/de 61 400
28 Calcite/de 60 887 (Stub)
29 Fulgora/de 60 11851 (Stub)
30 Gleba/de 60 8813 (Stub)
31 Personal battery MK3/de 60 792 (Stub)
32 Railgun turret/de 60 722 (Stub)
33 Spoilage/de 60 1891 (Stub)
34 Tesla turret/de 60 1419 (Stub)
35 Vulcanus/de 60 6760 (Stub)
36 Agricultural science pack/de 59 823 (Stub)
37 Aquilo/de 59 9912 (Stub)
38 Bioflux/de 59 883 (Stub)
39 Biter egg/de 59 657 (Stub)
40 Carbon fiber/de 59 403 (Stub)
41 Coal synthesis/de 59 414
42 Electromagnetic science pack/de 59 425 (Stub)
43 Lava/de 59 825 (Stub)
44 Superconductor/de 59 376 (Stub)
45 Tungsten carbide/de 59 667 (Stub)
46 Ammonia/de 58 441 (Stub)
47 Ammoniacal solution/de 58 678 (Stub)
48 Carbon/de 58 1481 (Stub)
49 Cryogenic science pack/de 58 412 (Stub)
50 Electrolyte/de 58 835 (Stub)
51 Fluorine/de 58 651 (Stub)
52 Fluoroketone (cold)/de 58 983 (Stub)
53 Fluoroketone (hot)/de 58 536 (Stub)
54 Holmium ore/de 58 1500 (Stub)
55 Holmium plate/de 58 706 (Stub)
56 Ice/de 58 645 (Stub)
57 Jellynut seed/de 58 441 (Stub)
58 Lithium brine/de 58 927 (Stub)
59 Lithium plate/de 58 548 (Stub)
60 Molten copper/de 58 1446 (Stub)
61 Molten iron/de 58 1632
62 Nutrients/de 58 1690 (Stub)
63 Quantum processor/de 58 334 (Stub)
64 Railgun ammo/de 58 742 (Stub)
65 Scrap/de 58 2439 (Stub)
66 Supercapacitor/de 58 475 (Stub)
67 Tungsten ore/de 58 683 (Stub)
68 Yumako seed/de 58 948 (Stub)
69 Yumako/de 58 754 (Stub)
70 Copper bacteria/de 57 1412 (Stub)
71 Fusion power cell/de 57 852 (Stub)
72 Holmium solution/de 57 857 (Stub)
73 Iron bacteria/de 57 1238 (Stub)
74 Jelly/de 57 659 (Stub)
75 Jellynut/de 57 488 (Stub)
76 Lithium/de 57 521 (Stub)
77 Pentapod egg/de 57 873 (Stub)
78 Plasma/de 57 754 (Stub)
79 Promethium science pack/de 57 749 (Stub)
80 Thruster fuel/de 57 977 (Stub)
81 Thruster oxidizer/de 57 999 (Stub)
82 Tree seed/de 57 923 (Stub)
83 Yumako mash/de 57 1153 (Stub)
84 Electromagnetic plant/de 55 2648 (Stub)
85 Cryogenic plant/de 53 1609 (Stub)
86 Biochamber/de 51 7404 (Stub)
87 Heating tower/de 51 1880 (Stub)
88 Biolab/de 47 864 (Stub)
89 Quality module 2/de 47 683
90 Big mining drill/de 46 1711 (Stub)
91 Quality module 3/de 46 683
92 Agricultural tower/de 45 3894 (Stub)
93 Captive biter spawner/de 45 4196 (Stub)
94 Fusion generator/de 45 717 (Stub)
95 Fusion reactor/de 45 3149 (Stub)
96 Lightning collector/de 45 694 (Stub)
97 Lightning rod/de 45 873 (Stub)
98 Quality module/de 45 837
99 Debug mode/de 9 8533
100 Cargo landing pad/de 8 1954 (Stub)
101 Asteroid collector/de 7 749 (Stub)
102 Nauvis/de 6 6570 (Stub)
103 Production statistics/de 6 2490
104 Radar (research)/de 6 293
105 Replay system/de 6 3869
106 Cargo bay/de 5 1601 (Stub)
107 Crusher/de 5 3485 (Stub)
108 Factorio:Translation guide/de 5 10322
109 Scenario system/de 5 4391
110 Space platform starter pack/de 5 1358 (Stub)
111 Thruster/de 5 3819 (Stub)
112 Metallurgic science pack (research)/de 4 257 (Stub)
113 Oil gathering (research)/de 4 278 (Stub)
114 Space platform foundation/de 4 890 (Stub)
115 Space platform hub/de 4 1771
116 Supply challenge/de 4 3178
117 Tutorial:Keyboard shortcuts/de 4 6271
118 Tutorial:Modding tutorial/de 4 3011
119 Uranium mining (research)/de 4 284
120 Advanced combinators (research)/de 3 160
121 Archive:Alien technology (research)/de 3 463 (Archived)
122 Archive:Armor crafting (research)/de 3 249 (Archived)
123 Archive:Curved rail/de 3 853 (Archived)
124 Ashland tree/de 3 992
125 Boompuff/de 3 498
126 Carbonic asteroid chunk/de 3 1831 (Stub)
127 Category:Screenshots/de 3 194
128 Command line parameters/de 3 12608
129 Cuttlepop/de 3 556
130 Electric mining drill (research)/de 3 274
131 Glossary/de 3 18723
132 Hairy clubnub/de 3 350
133 Lickmaw/de 3 281
134 Lithium ice formation/de 3 629
135 Metallic asteroid chunk/de 3 1845 (Stub)
136 Oxide asteroid chunk/de 3 1813 (Stub)
137 Promethium asteroid chunk/de 3 840 (Stub)
138 Repair pack (research)/de 3 246
139 Rich text/de 3 9749
140 Slipstack/de 3 580
141 Space platform/de 3 15381 (Stub)
142 Stingfrond/de 3 658 (Stub)
143 Stromatolite/de 3 553
144 Teflilly/de 3 302
145 Tutorial:Main bus/de 3 13635
146 Tutorial:Transport use cases/de 3 15488
147 Water cane/de 3 626
148 Yumako tree/de 3 1052 (Stub)
149 Acid neutralisation/de 2 1310 (Stub)
150 Advanced thruster fuel/de 2 835 (Stub)
151 Advanced thruster oxidizer/de 2 676 (Stub)
152 Ammonia rocket fuel/de 2 25 (Redirect)
153 Asteroids/de 2 5014 (Stub)
154 Biters/de 2 28 (Redirect)
155 Captive biter spawner (research)/de 2 184 (Stub)
156 Category:Candidates for deletion/de 2 267
157 Factorio:Editor noticeboard/de 2 3987
158 Fish breeding/de 2 22 (Redirect)
159 Fluoroketone (cold) barrel/de 2 20 (Redirect)
160 Fluoroketone (hot) barrel/de 2 ---
161 Fulgoran lightning attractor/de 2 286 (Stub)
162 Fulgoran ruin/de 2 314 (Stub)
163 Fulgoran vault ruin/de 2 527 (Stub)
164 Fulgorite/de 2 298 (Stub)
165 Jellystem/de 2 785
166 Lava lake/de 2 821 (Stub)
167 Log file/de 2 2785
168 Pentapods/de 2 31 (Redirect)
169 Planetary science pack/de 2 351 (Disambiguation)
170 Plastic bar productivity (research)/de 2 358 (Stub)
171 Roadmap/History/de 2 7088
172 Rocket turret (research)/de 2 286 (Stub)
173 Shattered planet/de 2 2145 (Stub)
174 Simple coal liquefaction/de 2 28 (Redirect)
175 Solar system edge/de 2 1275 (Stub)
176 Space platform (research)/de 2 316
177 Space platform thruster (research)/de 2 176
178 Steam condensation/de 2 364 (Stub)
179 Template:About/Space age/de 2 114