- Symulator MaSzyna -

MaSzyna International => EU07 Simulator English forum => Wątek zaczęty przez: E444R w 02 Października 2020, 19:41:29

Tytuł: question about the editor
Wiadomość wysłana przez: E444R w 02 Października 2020, 19:41:29
Hi, I was wondering, but can the scenarios already present in the simulator be edited? If so, with what tools?
Thanks in advance.
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: Stele w 02 Października 2020, 19:50:07
Both scenery and scenerio are kept in text files, editable in any text editor. In scenery folder you can find files with four extensions. They're separated only to distinguish their usage. Scn provides configs, playable vehicles and links everytjhing together. Scm contains some part of scenery. Ctr scenerio scripting. Inc model declarations with a bit of simple scripts like animations.
Syntax is the same. Here you can find syntax coloring for notepad++ https://eu07.pl/forum/index.php/topic,28333.0.html Structure af all file types is described on our wiki. And here you have most complex intruction, from theory basics with examples to complex algorythms. https://eu07.pl/forum/index.php/topic,29500.0.html Everything in Polish thou.
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: E444R w 03 Października 2020, 09:49:56
Thank you!
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: E444R w 16 Października 2020, 09:47:15
Goodmorning everyone. Sorry, but I can't do without your support. Go took a look, as suggested, at the *.snc files and tried to edit one.
For example, I opened the file $baltik_Cargo.snc and made a very simple position change, instead of position none1761, I put nono1760.
I made the scenario and, not only is the train in its original position, but it automatically modified the snc file that I had modified, practically bringing it back to its original state.
So my question arises, what are the files that relate to the settings of all trains? Even when it comes to timetables and especially the dining. Sorry if maybe these are trivial questions, but I'm reading a lot of documents and it's not easy to de-stress, because the translation made by google is not always perfect.
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: Hubertnator23 w 16 Października 2020, 09:48:26
$scenery files are generated from scenery files without $ at the front. You should modify the baltyk_cargo.scn instead of $baltyk_cargo.scn.
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: E444R w 16 Października 2020, 09:51:13
Perfect thanks.
I try.
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: Stele w 16 Października 2020, 09:54:12
And restart starter after every change in main file or use command line/ini file during development. $sceneryname.scn is temp file with changes from starter.
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: E444R w 16 Października 2020, 21:04:19
I'm back .....
I have a problem to which I have not been able to find a solution, despite reading several posts and manuals.
I have created a test scenario on the baltik line, I placed a train on a track with its timetable, but when the train has to leave, the signal does not open (it always remains red). I have the name of the signal in question, I tried to edit the eventy file, but I just can't get it to turn green for starting.
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: Stele w 16 Października 2020, 21:52:27
Any sample of your code and your ideas how it should work?
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: E444R w 17 Października 2020, 09:34:53
Hello people.
But nothing special.
I'm starting to experiment. I took all the trains off the stage. The station in question has only one track as its exit (Baltik Miasto).
with this event it works, but I would like the signal to open automatically at the scheduled departure time.
event keyctrl01 multiple 2 none  balmia_c_S2 endevent.
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: Stele w 17 Października 2020, 11:57:00
Then you have to add eventlaucher on given time, that will set up departure. To be save it have to work in loop, checking if your train stays at the platform, if railroad to next station is free and if all junctions are free.
For begining limit AI traffic to minimum like in decade old scenerios, so they won't mess anything due to lack of safety tests. Start by multiple with keyword onstart or eventlaucher at given hour and go from there with simple delays and track launchers. Analise something old and simple as examle. L053-sluzba-* or Zwierzyniec works as I described without any advanced alogithms.
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: E444R w 17 Października 2020, 12:11:21
Yes, in fact, I removed all the trains in order to minimize any possible hitch.
Thanks for the info.
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: E444R w 17 Października 2020, 13:03:11
A curiosity. I was looking at the event file on Zwierzyniec, and I noticed that often after the event entry there is for example ztpodtar or podajtarcze, just to name a couple.
Are these names made up or do they refer to something?

event probahamulca multiple 10 none podajtarcze endevent
event podajtarcze multiple 200 anglik_test1315ac kociary_zwr08- kociary_zwr09- anglik_test4581ac ztpodtar endevent
event ztpodtar multiple 10 none kociary_tm07_ms2 kociary_tm03_ms2 mozna_w_perony endevent
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: Hubertnator23 w 17 Października 2020, 13:04:27
They are just a name of the event. They might get referenced by other events though, so don't change their name.
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: E444R w 17 Października 2020, 13:31:49
ok, grazie
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: E444R w 20 Października 2020, 21:46:49
Question:
It is possible to search for the name of an object on the map in Rainsted.
For example, would you like to know where object none1566 is on the itinerary?
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: Stele w 20 Października 2020, 21:57:36
Nope. You have to find it in scm, get its coordinates and look for that position in Rainsted. Nothing comes easly here. :(
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: E444R w 21 Października 2020, 08:55:58
as I suspected. Thank you  :)
Tytuł: Odp: question about the editor
Wiadomość wysłana przez: E444R w 22 Października 2020, 20:50:11
Speaking of Rainsted, today I used Scenery editor for the first time, but when you open the editor it opens the baltik map, shouldn't it be empty, in order to start a new project?
I can't figure out how to reset it.

Resolved.

I have deleted all files from the RSFDATA folder