Jump to content

Empfohlene Beiträge

Geschrieben

Hallo,

ich habe mal die ganzen komplizierten jsonrpc Aufrufe in eine mbs_lib.py getan.

ein Beispiel für die Nutzung ist der train_creator.py, funktoniert gut mit dem beiliegenden mbp.

Eine Windows .exe kann man mit 'pyinstaller' bauen

Wer noch Fehler findet, gerne melden.

gruß, 42loop

train_creator.zip

Geschrieben

Hallo @42loop ,

Eine Erklärung wäre hilfreich

Gruß Hermann

Geschrieben
  • Autor

aus dem Readme.txt:

dependencies: squaternion

pip install squaternion

example: create_trains.py

run with: python create_trains.py #ofcars

then select either a Tankwagen or a Container in the .mbs Project and hit <enter> in the commandline window.

watch while the new train is created, then the program will ask you if you want to keep that train.

if you press 'y', the BR 145 Engine will be coupled to the train and the train will enter the depot on the left.

You can then use the filled depot in your own layout.

[can be converted to windows exe by 'pyinstaller create_trains.py']

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren