Open main menu

Mashinky β

Changes

Config Train Engine

3,232 bytes added, 12:59, 23 March 2021
Created page with "Mod configs are to be placed in: <code>DriveLetter:\....\Steam\steamapps\common\Mashinky\mods\ModName\config</code> All vehicle configs are to be named wagon_types.xml. XMLs..."
Mod configs are to be placed in:
<code>DriveLetter:\....\Steam\steamapps\common\Mashinky\mods\ModName\config</code>

All vehicle configs are to be named wagon_types.xml. XMLs are human readable and their values should not be difficult to udnerstand to anyone. When creating your first config, it's probably best to take a config file from vanilla vehicle and just alter it.


<code><WagonType </code> -- begin the definition of a vehicle
::<code>id="8694AA87"</code> -- unique id of the vehicle, can only be once in the game
::<code>name="E69-03" </code> -- a string name for the vehicle
::<code>vehicle_type="0" </code> -- 0 for train engine or wagon, 1 for road vehicles
::<code>epoch="5-7" </code> -- in which epoch does this vehicle appear
::<code>track="2" </code> -- 0 - basic railway, 1 - speed railway, 2 - electrified railway
::<code>capacity="0"</code> -- capacity of <code>cargo=""</code> defined in ''cargo_types.xml''
::<code>cost="-400" sell="200" fuel_cost="-2"</code> -- numbers mean money tokens, other cargo types are defined in ''cargo_types.xml''
::<code>power="306" max_speed="50" max_speed_reverse="35"</code> -- speed in kph
::<code>weight_empty="25" weight_full="25" </code>
::<code>particle="035DF0E8" particle_indoor="035DF0E8" particle_emit_delay="0.5" particle_emit_delay_jitter="0.45" particle_emit_position="0,0.31,0"</code> -- particles used by the engine as defined in ''particle_types.xml''
::<code>sound_engine_standby = "sound/electricengine1/standby.wav" </code> -- sounds taken from ./media/sound/ folder
::<code>sound_engine_start="sound/electricengine1/start.wav"</code>
::<code>sound_engine_slow = "sound/electricengine1/slow.wav"</code>
::<code>sound_engine_medium = "sound/electricengine1/medium.wav"</code>
::<code>sound_engine_fast = "sound/electricengine1/fast.wav"</code>
::<code>sound_engine_stop="sound/electricengine1/stop.wav"</code>
::<code>sound_breaks = "sound/electricengine1/brakes.wav" </code>
::<code>sound_tunel = "sound/electricengine1/whistle.wav"</code>
::<code>sound_crash="sound/other/crash.wav"</code>
::<code>sound_engine_speed = "0.8"</code>
::<code>sound_ref_max_speed = "225"</code>
::<code>anim_speed="5.5" </code> -- speed of wheel animation
::<code>icon_texture="map/gui/e69_ico.png" icon="8694AA88" icon_color="8694AA89"</code> -- path to icon and icon ids from ''tcoords.xml''
::<code>shader="uni"</code>
::<code>hipoly="model/train/scz_e6903.x" </code> -- realistic mode model
::<code>lowpoly="model/train/scz_e6903_lod.x" </code> -- LOD model
::<code>length="0.45" front_wheel="0.15" rear_wheel="0.15" > </code> -- overal length of the vehicle and placement of axles from the beginning and the rear of that length

::::<code><Camera position="0.05, 0.17, 0.01" direction="0,0,-1"/></code> -- camera definition for driver view, position and direction in X,Y,Z axis from the center of the vehicle
::::<code><Camera position="-0.05, 0.17, -0.01" direction="0,0,1"/></code>
::::<code><Camera position="0.0, 0.17, 0.027" direction="0,0,1"/></code>
::::<code><Camera position="0.0, 0.17,-0.025" direction="0,0,-1"/></code>

<code></WagonType></code> -- end the definition of a vehicle


NOTE 1:
82
edits