Polska wersja

How to change the consist in the scenario?


In the current version of the MaSzyna Simulator, there are two methods of changing the consist in a given scenery or scenario: The first of them is intended mainly for less advanced users and concerns a situation where we want to change the consists on the scenery once, so that after restarting the program Starter.exe the consists on the scenery return to their original state.

Here is some basic information about the program's functions Starter.exe and a description of the procedure for modifying the consists:

To change the consist on the scenery:
  1. Make sure we have an open Depot in main Starter.exe window;
  2. In section [B] select the consists of interest;
  3. In section [E] selected consist will be displayed;
  4. By selecting any of the vehicles in the displayed consist, we can remove it - option Remove vehicle or add another vehicle from the selected category [C] and model list [A]. We add a vehicle - option Add vehicle. The new vehicle will be attached behind the selected vehicle;
  5. It is possible to replace a given vehicle with a new one. In this case, after selecting a given vehicle from the consist in the section [E] double-clicking on a vehicle from the model list [A] the vehicle will be replaced with a new one;
  6. In order to keep the consist modified by us for later use, please select the option Add to warehouse. We will be asked to give an individual name for the created consist. Ultimately, the consist will be available in the tab Trains in warehouse;
  7. In order to replace any consist with the one saved in the warehouse, click RMB on any consist and select the option Replace by train from warehouse;
  8. For more advanced users, there is an option to modify AI or static trains - options Only for driving and Show AI trains;
  9. We can run the simulation by selecting the option START.
Second method, demonstrated below, is intended for advanced users only. This is how we permanently change train sets in the scenarios.

Firstly, open the notepad software. From the menu choose File -> Open and a window opens where we can choose a file to edit. The filetype list is by default set to "txt", change it to "All Files". Navigate to the folder with The Simulator and then to Scenery folder. There are many files there, but we are only interested in ones that end with .scn. We open, for example "krzyzowa2.scn". After opening, we should see the following code:

//$n Krzyżowa - Drawowo Główne v2.0
//$d Trasa z Krzyżowej do Drawowa Głównego.
//$d
//$d
//$d
//$d Po uruchomieniu naciskamy Shift + 1!!!
//$i krzyzowa2.jpg

sky cgskj_blueclouded020.t3d endsky
atmo 0 0 0 2000 3000 0.486 0.51 0.612 endatmo
light 100 300 -200 0.357 0.357 0.357 0.902 0.902 0.902 0.498 0.498 0.498 endlight

include krzyzowa2/sc2.scm end
include krzyzowa2/sc2_tr.scm end
include krzyzowa2/sc2_pods_rozkrz.scm end
include krzyzowa2/sc2_teren.scm end
include krzyzowa2/sc2_jez.scm end
include krzyzowa2/sc2_bud.scm end
include krzyzowa2/sc2_plant.scm end
include krzyzowa2/sc2_events.inc end
include rozi/krzyzowa2-posers.inc end


FirstInit

trainset ex6435 krzyzowa_tor6end 1.0 0.0
//$o Pociąg ekspresowy z Krzyżowej do Chełminowa przez Markowo Górne i Drawowo Głowne. Zatrzymuje się tylko w Drawowie Głównym. Po uruchomieniu naciskamy Shift + 1!!!
//$w type=p,lmax=309,vmin=80,vmax=160,d=1.435
node -1 0 ep09-047 dynamic pkp\ep09_v1 104e-047.tga 104e_2 0.0 headdriver 35 0 enddynamic
node -1 0 505120-00351-4 dynamic pkp\z1_v1 z1_ademnu_160.tga z1 0.0 nobody 35 0 enddynamic
node -1 0 505120-00351-4 dynamic pkp\z1_v1 z1_c4.tga z1 0.0 nobody 35 0 enddynamic
node -1 0 505120-00351-4 dynamic pkp\z1_v1 z1_c4.tga z1 0.0 nobody 35 0 enddynamic
node -1 0 505120-00351-4 dynamic pkp\z1_v1 z1_c3.tga z1 0.0 nobody 35 0 enddynamic
node -1 0 505120-00351-4 dynamic pkp\z1_v1 z1_gw_1-n.tga z1 0.0 nobody 35 0 enddynamic
node -1 0 505120-00351-4 dynamic pkp\z1_v1 z1_b.tga z1 0.0 nobody 35 0 enddynamic
node -1 0 505120-00351-4 dynamic pkp\z1_v1 z1_gw_1-n.tga z1 0.0 nobody 35 0 enddynamic
node -1 0 505120-00351-4 dynamic pkp\z1_v1 z1_gw_1-n.tga z1 0.0 nobody 0 0 enddynamic
endtrainset



trainset pe9742 klonowo_tor2end 1.0 0.0
//$o Wakacyjny pociąg pospieszny Bursztyn z Klonowa do Markowa Górnego przez Krzyżową, Chełminów i Drawowo Główne. Zatrzymuje się w Krzyżowej i Drawowie. UWAGA!!! Na haku 14 wagonów czyli ponad 340m, podciągać skład pod sam wskaźnik W4. Po uruchomieniu naciskamy Shift + 1!!!
//$w type=p,lmax=433,vmin=70,vmax=120,d=1.435
node -1 0 eu07-150 dynamic pkp\4e_v1 4e-150.tga 4e 0.0 headdriver 35 0 enddynamic
node -1 0 575100-48296-8 dynamic pkp\1xxa_v1 pdn_296-8.tga 101c 0.0 nobody 35 0 enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 wlabo_118-3.tga g77 0.0 nobody 35 15 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 wlabo_118-3.tga g77 0.0 nobody 35 75 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_160_2.tga 111a 0.0 nobody 35 50 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_160_1.tga 111a 0.0 nobody 35 75 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 adu_160_tlk.tga 111a 0.0 nobody 35 10 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_160_1.tga 111a 0.0 nobody 35 15 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_160_2.tga 111a 0.0 nobody 35 75 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_160_1.tga 111a 0.0 nobody 35 50 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 112a11.tga 111a 0.0 nobody 35 75 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdu_120.tga 111a 0.0 nobody 35 50 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_160_1.tga 111a 0.0 nobody 35 75 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 111a17.tga 111a 0.0 nobody 35 75 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_090-7.tga 111a 0.0 nobody 0 75 passengers enddynamic
endtrainset
and so on...

Always, after the FirstInit command, you have the individual trainset entries. One trainset is located between the trainset... and the endtrainset commands. In the above example there are two trainsets (there are much more train sets in the whole scenery, however only an extract from the krzyzowa2.scn file is shown).

The third step is to change the entry.

In the second trainset, we will replace the EU07-150 loco with the ET22-094. We delete the line
node -1 0 eu07-150 dynamic pkp\4e_v1 4e-150.tga 4e 0.0 headdriver 35 0 enddynamic
and in it's place we insert this one:
node -1 0 ET22-094 dynamic PKP\ET22_v1 201E-094.tga 201E 0.0 headdriver 35 0 enddynamic


To learn how to write vehicle entries, go this page: Entries for every vehicle.

If you would like for the previous vehicle (in this case EU07-150) to be "restorable" (without making a backup of the entry) we simply comment out the desired entry using
//
as a prefix to the specific entry. So it will look like this:
//node -1 0 eu07-150 dynamic pkp\4e_v1 4e-150.tga 4e 0.0 headdriver 35 0 enddynamic
node -1 0 ET22-094 dynamic PKP\ET22_v1 201E-094.tga 201E 0.0 headdriver 35 0 enddynamic
node -1 0 575100-48296-8 dynamic pkp\1xxa_v1 pdn_296-8.tga 101c 0.0 nobody 35 0 enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 wlabo_118-3.tga g77 0.0 nobody 35 15 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 wlabo_118-3.tga g77 0.0 nobody 35 75 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_160_2.tga 111a 0.0 nobody 35 50 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_160_1.tga 111a 0.0 nobody 35 75 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 adu_160_tlk.tga 111a 0.0 nobody 35 10 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_160_1.tga 111a 0.0 nobody 35 15 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_160_2.tga 111a 0.0 nobody 35 75 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_160_1.tga 111a 0.0 nobody 35 50 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 112a11.tga 111a 0.0 nobody 35 75 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdu_120.tga 111a 0.0 nobody 35 50 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_160_1.tga 111a 0.0 nobody 35 75 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 111a17.tga 111a 0.0 nobody 35 75 passengers enddynamic
node -1 0 5051-304510-1 dynamic pkp\1xxa_v1 bdnu_090-7.tga 111a 0.0 nobody 0 75 passengers enddynamic

When we get bored of driving the ET22, we can simply restore the trainset entry to default, we simply delete the // prefix (from the EU07 entry) and we add the // prefix to the ET22 entry (in case we would like to return to the ET22).

When we finally have a trainset that we want, we save the krzyzowa2.scn file, turn off the Rainsted.exe Launcher (if it was running durning the .SCN edition) and we start it again, run the Simulator adn enjoy the manually changed trainset :)

For the curious:

The entry structure is as follows:
trainset HEADCODE_NUMBER STARTING_TRACK_NAME DISTANCE_FROM_STARTING_TRACK INITIAL_VELOCITY(KM/H)
so in the following entry:
trainset ex6435 krzyzowa_tor6end 1.0 0.0
The train headcode is ex6435, it starts on the krzyzowa_tor6end track, 1.0 m from it's beginning, moving with iniitia velocity of 0.0 km/h.


Authors: Patrykos, mechatronik.
Updates: libertyn89, Maciej
Fixes: Quark-t
English translation: kolejarz2009