Autor Wątek: Talk/Rozmowa: ANP format  (Przeczytany 1564 razy)

0 użytkowników i 1 Gość przegląda ten wątek.

Offline Calleman

  • User
  • Wiadomości: 6
  • Siła reputacji: 54
  • Calleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnik
  • Distance Travelled: 431 km
  • Trains Routed: 785
ANP format
« dnia: 18 Czerwca 2020, 02:28:49 »
Hi!

Sorry for no Polish, but you guys seem fluent in English in anyway  ;D

I'm trying to play around a little with ANP in SCS, I have read the instructions, via translator, so something might have gotten lost in translation.

I'm having problems getting the format right. As I have understood the ANP-command could look like this:

przebieg [-] - - 0.0 [Or_It3] - [E3] [-] [K] - - Man

I do want to point out that this is just for testing, nothing else. And the stated above is what is written in my file. I have loaded the file in SCS and have turned ANP on, but nothing happens. Well, I did read that if any parameters are wrong, it will not be taken into consideration. So somewhere, or maybe everywhere, there are wrong parameters.

Scenary is Orniki, but that you probably already knew :) And should represent any train coming in on track no. 3 and after 0 minutes should get manuver signal on E3 to go to K (there are no signal in between).

What have I done wrong?

Thank you for your contribution :)

Offline Paweł

  • Moderator
  • Pioneer
  • *
  • Wiadomości: 67
  • Siła reputacji: 9
  • Paweł pracownik torowy
  • Distance Travelled: 401 km
  • Trains Routed: 201
Odp: ANP format
« Odpowiedź #1 dnia: 18 Czerwca 2020, 12:26:37 »
Hello,

<param[]> notation in manual means there can be several comma-separated values instead of one, but without brackets - so "Or_It3", "Or_It3a,Or_It3b" will be ok, but not "[Or_It3]". Maybe it's not clear in documentation.

Best regards,
Paweł

Offline Calleman

  • User
  • Wiadomości: 6
  • Siła reputacji: 54
  • Calleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnik
  • Distance Travelled: 431 km
  • Trains Routed: 785
Odp: ANP format
« Odpowiedź #2 dnia: 18 Czerwca 2020, 13:20:29 »
Hi Paweł,

and thanks for you quick reply! I can't tell if the documentation is lacking this information, since I'm translating there is a risk of informationloss.

Anyway, I updated the record in the .anp-file according to your instructions, to look like this:

przebieg "-" - - 0.0 "Or_It3" - "E3" "-" "K" - - Man

The above is exactly how it looks in the file and just one entry (I'm not missing any startup parameters??)
As you can see, all [] have been replaced with ""-marks, all <> are obmitted and the conditions (<warunkim>) has also been obmitted. Still can't get it to work, so what else am I doing wrong here?

Best regards,
Calleman

Offline kojonek2

  • Developer
  • Supporter
  • *
  • Wiadomości: 366
  • Siła reputacji: 120
  • kojonek2 prezeskojonek2 prezeskojonek2 prezeskojonek2 prezeskojonek2 prezeskojonek2 prezeskojonek2 prezeskojonek2 prezeskojonek2 prezeskojonek2 prezeskojonek2 prezeskojonek2 prezes
  • Distance Travelled: 6391 km
  • Trains Routed: 1301
Odp: ANP format
« Odpowiedź #3 dnia: 18 Czerwca 2020, 13:26:08 »
As far as I know, you can't use quotations. Paweł used it to show that you can use such combinations like:
Or_It3or
Or_It3a,Or_It3b

Offline Calleman

  • User
  • Wiadomości: 6
  • Siła reputacji: 54
  • Calleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnik
  • Distance Travelled: 431 km
  • Trains Routed: 785
Odp: ANP format
« Odpowiedź #4 dnia: 18 Czerwca 2020, 13:38:25 »
Hi kojonek2,

and thanks for your contribution to the topic! :)

I also tried to modify it according to you statement:

przebieg <-> <-> <-> <0.0> <Or_It11> <-> <G> <-> <D2> <-> <-> <Man>
przebieg - - - 0.0 Or_It11 - G - D2 - - Man

None of the above seems to work either... :(

Dodano: 18 Czerwca 2020, 13:48:35


Hi all again,

a really big thank you to setting me on the right track (pun intended) :D

I got one solution to work now. It seems my problem was that I used the prefix Or in the name of the track, which is described only to be used when you don't have uniqe markers. I think Skryzin is an example of that where you have Wo_B and Sk_B both are litteraded as signal B.

The final outcome is now this line of code:
przebieg - - - 0.0 It11 - G - D2 - - Man
« Ostatnia zmiana: 18 Czerwca 2020, 13:48:35 wysłana przez Calleman »

Offline Paweł

  • Moderator
  • Pioneer
  • *
  • Wiadomości: 67
  • Siła reputacji: 9
  • Paweł pracownik torowy
  • Distance Travelled: 401 km
  • Trains Routed: 201
Odp: ANP format
« Odpowiedź #5 dnia: 18 Czerwca 2020, 21:11:13 »
SCS application directory should contain example files anp_test.scs and anp_test.anp. You can open anp_test.scs in "test mode", load anp_test.anp file, turn on ANP function, set any of Anielinek station's tracks occupied with train number 101, any of Dobromierz station's tracks occupied with train number 102 (or other described in anp_test.anp file comments), and see what happens. Then look what is going on inside anp_test.anp file.

Offline Calleman

  • User
  • Wiadomości: 6
  • Siła reputacji: 54
  • Calleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnikCalleman naczelnik
  • Distance Travelled: 431 km
  • Trains Routed: 785
Odp: ANP format
« Odpowiedź #6 dnia: 26 Czerwca 2020, 01:42:57 »
Hi again,

have been playing around with it for a week now and thanks to your hints in the previous messages, I've come up with something quite good. Just now have two interesting questions.

1. Does anyone know how to make a route over an internal singletrack PBL, like in LCS Glowno. SCS do accept the command XX Wbl, and all other what is written in the ANP are just commands.
Of course I can route it over the semaphore before and after and manually set the PBL-direction, but it would be neat if we could include the Wbl and Poz command in the line. If it's busy, it's busy and ANP will not work, so for safety reasons it shouldn't be a problem.

The last question, is more of SCS character than ANP. Connection string or similair command to lock the next track. Say in Parzeczewo, two doubletracked SBL:s with a lot of manual connections to other stations, without and "PBL-buttons" I consider it quite inefficent to have the great SBL-system working with the normal PBL system. I have read on the forum that SBL is not working optimal in the game due to the genreation of timetables connecting on PBL-SBL or SBL-PBL, and wouldn't it be neater to just have a command or to acctually add a PBL menu to the layout, eventhough not right, you wouldn't have then to handle the confirmation step of locking the other track in SWDR?

Maybe I'm just thinking wrong on the last one and the reason Parzeczewo seems to be occupied at all times is only due to this, that you have to handle the blocking in SWDR.

Any thoughts? :)

Offline Paweł

  • Moderator
  • Pioneer
  • *
  • Wiadomości: 67
  • Siła reputacji: 9
  • Paweł pracownik torowy
  • Distance Travelled: 401 km
  • Trains Routed: 201
Odp: ANP format
« Odpowiedź #7 dnia: 05 Lipca 2020, 12:48:29 »
Hello,

Unfortunately SCS has some limitations here. Because of specific railway traffic operation implemented in TD2, with possibility of connecting one line section with different neighbours for following trains, bi-directional SBL line block cannot work here as in real railway system.

So bi-directional SBL in SCS were intended mainly for internal line sections, within stations in single SCS area. For external line sections I would recommend use of uni-directional SBL, without control arrows, but different ad-hoc solutions are used, and their operation can be a bit problematic.

In opposition, "Eap-style" PBL line blocks in SCS was added later mainly for external line sections connecting two simulations, and ANP cannot set it's direction. PBL for internal line sections are possible but not neccesary (train routes without PBL will be enough for line section traffic control). However I will consider adding automatic PBL activation via ANP subsystem in the future versions.

Best regards,
Paweł