User:Bilka/Sandbox: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(test)
No edit summary
 
(165 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The '''Diesel locomotive''' is the engine for movement of [[Railway network|trains]] over [[Railway network#Tracks|track]].  Trains are useful for moving large amounts of items over large distances.
=== Packaging a scenario as a campaign ===


Locomotives are also good vehicles for the player to reach fixed destinations, as they are considerably faster than the [[Car]] or [[Tank]]. Naturally they do not have the same freedom of movement, however, as they are confined to the track.
Scenarios can also be included inside campaigns in mods. Folder structure? Is the level-01 naming required? is the lualib folder really a thing? mention image.png? ScenarioLocation::listScenarioLocations looks like no restriction on inner folder names - confirmed. well except locale and lualib


Locomotives are [[burner devices]] and require [[fuel]] to run. Despite the name, they can take any fuel, not just oil-derived types.
=== description.json ===
A json file in the scenario folder that can have the following fields:
name
order string
description
starting-level string
multiplayer-compatible bool
is-main-game bool optional default false
dependencies array of string optional
difficulties array of string optional


While Locomotives can be assembled by hand, the [[Engine unit]]s for it require automated construction to build, so it cannot be built from raw materials by hand.
'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/ActivateEquipmentCapsuleAction.html https://lua-api.factorio.com/latest/types/ActivateEquipmentCapsuleAction.html]


== Achievements ==
This wiki page '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].
{{Main|Achievements}}
Diesel locomotives are directly connected to the following achievements:
{{User:Bilka/Template:Achievement|getting-on-track}}
{{User:Bilka/Template:Achievement|getting-on-track-like-a-pro}}
{{User:Bilka/Template:Achievement|watch-your-step}}


== Driving Controls ==
Mapping of internal class names to wiki pages: [[Factorio:Class_to_page_mapping]]
''These are the default bindings. They can be changed in the Options menu.''
{|
|Enter/Exit
|{{Keybinding|enter}}
|-
|Accelerate
|{{Keybinding|W}}
|-
|Decelerate/Reverse
|{{Keybinding|S}}
|-
|Pick which fork to take at junction
|{{Keybinding|A}},{{Keybinding|D}}
|-
|Connect/Disconnect rolling stock
|{{Keybinding|G}}
|}


Note that while you can enter a train at any point, you must enter a Locomotive to drive the train manually (and automatic mode must be off).
== old stuff ==


== Connecting/Disconnecting a Locomotive ==
<div class="toccolours mw-collapsible mw-collapsed">
To connect Locomotives or [[Cargo wagon]]s to each other, either place the cars next to each other on the track (there will be an outlined green connection), or, to connect an already existing disconnected car, drive the Locomotive near the car and press G by default. To disconnect the last car in a train, press V by default.
Some queries for prototype property semantic mediawiki stuff (SMW)
<div class="mw-collapsible-content">


== Defense ==
Note: Abstract prototypes have "Has prototype type" set to <nowiki>''abstract''</nowiki>.
Locomotives are a priority target of [[Enemies]], so places where trains can stop should be [[Defense|defended]].  Locomotives in transit can usually crash through everything in the way (including [[Biter]]s, [[Tank]]s, and the Player) so defense in transit is less important. However, enemies can attack and destroy rails, potentially stopping the train. Biters won't often cause this, since automated trains will not move if they can't find a path to their destination - a broken rail interrupts their path.


[[Construction robot]]s are a good way to automatically repair damage at train stations.
Prototype all properties:
<nowiki>{{#ask:
[[Prototype property pagename::Prototype/Item]]  
|?Prototype property name=Property name
|?Prototype property type=Type
|?Prototype property optional#tick=Optional
|mainlabel=-
|sort=Prototype property optional,Prototype property name
}}</nowiki>


== History ==
One property:<nowiki>
{{#ask:  [[Prototype property name::durability]] |?Prototype property name |?Prototype property type }}</nowiki>


{{history|0.14.0|
</div></div>
* Added support for equipment grids in locomotives.}}


{{history|0.13.0|
== Types ==
* New locomotive graphics.
* Can now be colored.
* Trains are now regular size in horizontal and vertical orientations.
}}


{{history|0.12.1|
{{Special:PrefixIndex/Types}}
* Trains that are moving automatically cannot be rotated.}}


{{history|0.12.0|
== Prototypes ==
* Now show contents in tooltip.}}


{{history|0.11.18|
{{Special:PrefixIndex/Prototype}}
* Increased the crafting cost of the cargo wagon and locomotive.
* Removing and merging the locomotive of a train without any additional locomotives doesn't clear the schedule anymore.
}}
 
{{history|0.11.6|
* Copy paste can now be used for train schedules.}}
 
{{history|0.10.2|
* Now recalculates path on rotation.}}
 
{{history|0.10.0|
* Backer names are used for locomotives.}}
 
{{history|0.9.0|
* Recipe change}}
 
{{history|0.5.0|
* Train can find the path backward when it has locomotives in the back
* New locomotive graphics.
* Locomotive + wagon + rails are more expensive.
}}
 
{{history|0.4.0|
* Locomotive uses fuel.
* Locomotive and Car are minable
* Easier riding in locomotive and car (accelerate vs. brake vs. reverse)
}}
 
{{history|0.2.8|
* Now shows health bar below locomotive.}}
 
{{history|0.2.1|
* Now emits light if active.}}
 
{{history|0.1.0|
* Introduced}}
 
==See also==
* [[Railway]]
* [[Cargo wagon]]
 
[[Category:Burner Devices]]
[[Category:Vehicles]]
 
{{BurnerNav}}
{{LogisticsNav}}
 
{{User:Bilka/Template:Achievement|computer-age-1}}
{{User:Bilka/Template:Achievement|computer-age-2}}
{{User:Bilka/Template:Achievement|computer-age-3}}
{{User:Bilka/Template:Achievement|circuit-veteran-1}}
{{User:Bilka/Template:Achievement|circuit-veteran-2}}
{{User:Bilka/Template:Achievement|circuit-veteran-3}}
{{User:Bilka/Template:Achievement|steam-all-the-way}}
{{User:Bilka/Template:Achievement|automated-cleanup}}
{{User:Bilka/Template:Achievement|automated-construction}}
{{User:Bilka/Template:Achievement|you-are-doing-it-right}}
{{User:Bilka/Template:Achievement|lazy-bastard}}
{{User:Bilka/Template:Achievement|eco-unfriendly}}
{{User:Bilka/Template:Achievement|tech-maniac}}
{{User:Bilka/Template:Achievement|mass-production-1}}
{{User:Bilka/Template:Achievement|mass-production-2}}
{{User:Bilka/Template:Achievement|mass-production-3}}
{{User:Bilka/Template:Achievement|getting-on-track}}
{{User:Bilka/Template:Achievement|getting-on-track-like-a-pro}}
{{User:Bilka/Template:Achievement|it-stinks-and-they-dont-like-it}}
{{User:Bilka/Template:Achievement|raining-bullets}}
{{User:Bilka/Template:Achievement|iron-throne-1}}
{{User:Bilka/Template:Achievement|iron-throne-2}}
{{User:Bilka/Template:Achievement|iron-throne-3}}
{{User:Bilka/Template:Achievement|logistic-network-embargo}}
{{User:Bilka/Template:Achievement|smoke-me-a-kipper-i-will-be-back-for-breakfast}}
{{User:Bilka/Template:Achievement|no-time-for-chitchat}}
{{User:Bilka/Template:Achievement|there-is-no-spoon}}
{{User:Bilka/Template:Achievement|steamrolled}}
{{User:Bilka/Template:Achievement|run-forrest-run}}
{{User:Bilka/Template:Achievement|pyromaniac}}
{{User:Bilka/Template:Achievement|so-long-and-thanks-for-all-the-fish}}
{{User:Bilka/Template:Achievement|you-have-got-a-package}}
{{User:Bilka/Template:Achievement|delivery-service}}
{{User:Bilka/Template:Achievement|trans-factorio-express}}
{{User:Bilka/Template:Achievement|golem}}
{{User:Bilka/Template:Achievement|watch-your-step}}
{{User:Bilka/Template:Achievement|solaris}}
{{User:Bilka/Template:Achievement|minions}}

Latest revision as of 09:08, 3 April 2024

Packaging a scenario as a campaign

Scenarios can also be included inside campaigns in mods. Folder structure? Is the level-01 naming required? is the lualib folder really a thing? mention image.png? ScenarioLocation::listScenarioLocations looks like no restriction on inner folder names - confirmed. well except locale and lualib

description.json

A json file in the scenario folder that can have the following fields: name order string description starting-level string multiplayer-compatible bool is-main-game bool optional default false dependencies array of string optional difficulties array of string optional

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/ActivateEquipmentCapsuleAction.html

This wiki page will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.

Mapping of internal class names to wiki pages: Factorio:Class_to_page_mapping

old stuff

Some queries for prototype property semantic mediawiki stuff (SMW)

Note: Abstract prototypes have "Has prototype type" set to ''abstract''.

Prototype all properties: {{#ask: [[Prototype property pagename::Prototype/Item]] |?Prototype property name=Property name |?Prototype property type=Type |?Prototype property optional#tick=Optional |mainlabel=- |sort=Prototype property optional,Prototype property name }}

One property: {{#ask: [[Prototype property name::durability]] |?Prototype property name |?Prototype property type }}

Types

Prototypes