User:Joshinils: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
my wip pages i am translating:
<div style="column-width:600px;">


https://wiki.factorio.com/User:Joshinils/wip/Personal_roboport_(research)/de
== Subpages ==
 
[[Special:Contributions/Joshinils]]
{{Special:PrefixIndex/User:Joshinils}}
 
== copy-pasta ==
 
<pre>
== Siehe auch ==
* [[Research/de|Forschung]]
* [[Technologies/de|Technologien]]
</pre>
 
 
<pre>
! Technologie !! Kosten !! Auswirkung !! Aufaddierte <br/>Auswirkung
</pre>
 
 
Block that puts ''foo'' and ''bar'' next to each another if there is space, else it wraps and puts them underneath:
<pre>
<div><ul>
<li style="display:inline-block;"> foo </li>
<li style="display:inline-block;"> bar </li>
</ul></div>
</pre>
 
 
== Lua stuff ==
 
Screenshot command:
<syntaxhighlight lang="lua" line='line'>
/c game.take_screenshot{resolution={x=1000, y=1000}, zoom=2, show_entity_info=true}
</syntaxhighlight>
 
 
Remaining research command:
<syntaxhighlight lang="lua" line='line'>
/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
</syntaxhighlight>
 
 
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'>
/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
</syntaxhighlight>
 
 
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'>
/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
</syntaxhighlight>
 
[https://wiki.factorio.com/api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm job que]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{|
|-
| [[Factorio:Wanted_pages#German_Wanted_Pages|List Of German Wanted Pages]] {{Factorio:Wanted_pages/de}}
|}
</div>

Latest revision as of 00:29, 4 February 2020

Subpages

Special:Contributions/Joshinils

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: 62
# Page Links to this page Length of the corresponding English page in bytes
1 Debug mode/de 8 8120
2 Factorio:Translation guide/de 4 6869
3 Production statistics/de 4 2490
4 Alien technology (research)/de 3 374 (Archived)
5 Armor crafting (research)/de 3 234 (Archived)
6 Category:GUI/de 3 103
7 Curved rail/de 3 832 (Archived)
8 Glossary/de 3 18145
9 Replay system/de 3 2943
10 Rich text/de 3 6677
11 Scenario system/de 3 3976
12 Tutorial:Keyboard shortcuts/de 3 6271
13 Tutorial:Main bus/de 3 13635
14 Tutorial:Transport use cases/de 3 13789
15 Advanced chemistry (research)/de 2 146 (Archived)
16 Automated construction (research)/de 2 450 (Archived)
17 Category:Archived/de 2 156
18 Category:Candidates for deletion/de 2 236
19 Category:To translate/de 2 45
20 Chemistry (research)/de 2 137 (Archived)
21 Command line parameters/de 2 11705
22 Factorio:Editor noticeboard/de 2 3987
23 Roadmap/History/de 2 7076
24 Rocket defense (research)/de 2 471 (Archived)
25 Rocket defense/de 2 530 (Archived)
26 Smart inserter/de 2 3869 (Archived)
27 Supply challenge/de 2 3151
28 Tutorial:Modding FAQ/de 2 6654
29 Tutorial:Modding tutorial/de 2 2336
30 Achievement file format/de 1 6544
31 Blueprint string format/de 1 11831
32 Category:Scenario/de 1 108
33 Data types/de 1 4643
34 Desynchronization/de 1 9652
35 Download API/de 1 4907
36 Log file/de 1 3363
37 Map exchange string format/de 1 19557
38 Matchmaking API/de 1 4673
39 Mod details API/de 1 7897
40 Mod images API/de 1 5342
41 Mod portal API/de 1 10570
42 Mod publish API/de 1 3741
43 Mod settings file format/de 1 1307
44 Mod upload API/de 1 3477
45 Property tree/de 1 1477
46 Rocket rush/de 1 12450
47 Template:Flag/de 1 2834
48 Template:Flag/doc/de 1 1488
49 Template:Languages/Sandbox/de 1 1003
50 Template:Languages/de 1 1272
51 Template:Machinery/de 1 ---
52 Tutorial:Inspecting a live mod/de 1 2560
53 Tutorial:Localisation/de 1 11492
54 Tutorial:Mod changelog format/de 1 5431
55 Tutorial:Mod settings/de 1 14476
56 Tutorial:Mod structure/de 1 8114
57 Tutorial:Modding tutorial/Gangsir/de 1 35180
58 Tutorial:Script interfaces/de 1 4491
59 Tutorial:Scripting/de 1 11939
60 Wave defense/de 1 8149
61 Web authentication API/de 1 1786
62 Wiki Howto/de 1 41 (Redirect)