Train Driver 2

International Part => English Boards => Wątek zaczęty przez: Angelo w 23 Stycznia 2021, 15:00:27

Tytuł: Rozkazów Piszący - Written order generator
Wiadomość wysłana przez: Angelo w 23 Stycznia 2021, 15:00:27
Hi!

Since many of us (myself included!) are not familiar with the written orders, I present the

Rozkazów Piszący
a written order generator for TD2


(link) (http://tplmilano.altervista.org/rp/)


It is only a beta: I did my best, but I am sure I made a lot of mistakes, so please do let me know!

The interface is in 3 different languages: PL, EN, IT.
The output is in PL, EN, IT, and it can be different from the interface chosen. One can use this tool in, say, English, and have the output in Polish!

Thanks to Leon78513 for his English translation (https://td2.info.pl/english-boards/english-translation-of-written-order/), which was fundamental for this project.

If you would like to help with a translation in a new language (or fix one of the existing ones, in case you find something incorrect), here (http://tplmilano.altervista.org/rp/dictionary.js) you can download the dictionary file.
Tytuł: Odp: Rozkazów Piszący - Written order generator
Wiadomość wysłana przez: kojonek2 w 23 Stycznia 2021, 16:56:05
Please add the back button at the bottom of the page. Right now you have to refresh the site to change the order type
Tytuł: Odp: Rozkazów Piszący - Written order generator
Wiadomość wysłana przez: Angelo w 24 Stycznia 2021, 16:26:38
Good idea!
I added the button. For some reason, it will take a while to be visible and in the meantime it may not work. I don't know why Altervista takes a second to upload a new file but a lot of time to change an existing one.

P.s.: oh, I also added a favicon. Very important.

P.p.s.: oh, right. The cache. Use Ctrl+F5 (Chrome, Windows) and it will work (https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#:~:text=Google%20Chrome,-On%20Windows%20and&text=Hold%20the%20Ctrl%20key%20and%20press%20the%20R%20key.,button%20on%20the%20navigation%20toolbar.).
Tytuł: Odp: Rozkazów Piszący - Written order generator
Wiadomość wysłana przez: MalzbierMan w 31 Stycznia 2021, 13:36:48
Well done and I really like how you can use different languages for the interface and the resulting order.

I found a bug with order S No. 1 where "the departure order"/"only this order" is in english irregardless of the chosen language for the order and order O doesn't generate the content of the table.

Tytuł: Odp: Rozkazów Piszący - Written order generator
Wiadomość wysłana przez: Saix95 w 31 Stycznia 2021, 15:24:50
Very Good Work :D me and a Friend working on a Tool that do exactly the same. Good Job :D
Tytuł: Odp: Rozkazów Piszący - Written order generator
Wiadomość wysłana przez: Czarodziej w 02 Lutego 2021, 15:52:13
Would you be willing to share code on some open licence somewhere, for future generations? :D
Tytuł: Odp: Rozkazów Piszący - Written order generator
Wiadomość wysłana przez: kojonek2 w 02 Lutego 2021, 16:08:17
It looks like it's a client-side application so the whole code is available in the browser's DevTools
Tytuł: Odp: Rozkazów Piszący - Written order generator
Wiadomość wysłana przez: Angelo w 03 Lutego 2021, 12:23:03
I found a bug with order S No. 1 where "the departure order"/"only this order" is in english irregardless of the chosen language for the order and order O doesn't generate the content of the table.
Thank you!
I fixed the bug in the S order.
Regarding the O order, I thought (but I'm probably wrong!) that one should write, e.g., "Wola, Sz" - in which case it will work.
Is this correct? How should it work?


@Saix95 - thanks  :)
@Czarodziej - As Kojonek2 said, you can easily get the code!
As far as it's fair use (but what could one do with this?), so far as I'm concerned, you can do whatever you want.
In Chrome, just use Ctrl + U to access the HTML code. On the top you'll find the link to the favicon and the style sheet, on the bottom there are three JS files with a self-explaining name. ;)
Tytuł: Odp: Rozkazów Piszący - Written order generator
Wiadomość wysłana przez: Angelo w 20 Lutego 2021, 20:05:50
Hi,
It looks like, at one point in the code, I swapped the output language with the input one - and thus were created all the bugs where you could see some words in the wrong language.
I have now fixed it. Please let me know if you find any other bug.
Use Ctrl+F5 to re-download the page.