OMSI Time Sync Plugin for OMSI2 1.14

Lizenzbestimmungen
GNU General Public License v3 (GPL-3)
WebSite / Support
https://github.com/Ixe1/OMSI-Time-Sync-Plugin
Empfohlene OMSI-Version
Aktuell v2.3.x
Vorausgesetzte kommerzielle Erweiterungen
Keine
Weitere Versionshinweise
Requires OMSI 2 version 2.2.032 or 2.3.004
Requires .NET Framework 4.7.2 Runtime - dotnet.microsoft.com/en-us/download/dotnet-framework/net472

A simple plugin which automatically keeps OMSI2's in-game time in sync with either the system time or Bus Company Simulator virtual company's time. Optionally you can manually sync the in-game time by pressing the button on the UI.

A simple plugin which automatically keeps OMSI 2's in-game time in sync with either the system time or Bus Company Simulator virtual company's time. Optionally you can manually sync the in-game time by either pressing a hotkey or the button on the UI.


By using this tool it's no longer necessary to manually adjust the OMSI in-game time, typically after every tour or so, due to the game usually lagging periodically and therefore the in-game time drifts from either the system's actual time or virtual bus company's actual time.



Please view the README.txt for full installation instructions.


Github source code and information, as well as a video clip preview, is available at https://github.com/Ixe1/OMSI-Time-Sync-Plugin

  • 1.14

    • Added a button for quickly preheating a bus

    This will set the bus engine temperature to 80C, cabin temperature to 19C and set a reasonable amount of humidity in the cabin

    • Added logging for future debugging as and when needed
    • Fixed a major issue where for certain countries the difference between using a decimal or a comma would cause OMSI Time Sync to read the in-game time incorrectly and also potentially set the in-game time to something completely unexpected

    Thanks to D4TENSCHLEUDER_K4ZE for reporting the issue, I eventually found the cause of it! I hope it's now resolved


    Please note that the supposed fix hasn't had many testers, so I'm crossing my fingers it's all good now.

  • 1.12 (corrected)

    • Possibly fixes bug: Minimising the window incorrectly saves the window position as -32000 x -32000
    • Possibly fixes bug: First time notice may not be consistently appearing when it should

    This is only tested by myself, I was unable to replicate the second bug regarding the first time notice but I'm hopeful it will fix an issue where some users were unable to use this plugin at all, due to the first time notice not appearing.

  • (Program) Deprecated version 1.00

    Initial release as an executable program, since merged into an OMSI2 plugin DLL file as of version 1.10

  • Hi there, just a simple question:


    Is there also an option available to switch from mph to km/h? Haven't found it so far.


    Besides that, it's a great little tool :) Thanks a lot.


    Regards



    ----


    Edit: Nevermind. Found it - didn't saw it on my first attempt of reading the Readme

  • https://gyazo.com/fd0d4e7cd51a73d7f66d4f3389fdfa52

    Tut leider nicht, was es soll. :(

    Während die 1.00 perfekt funktioniert, funktioniert die 1.14 gar nicht!
    Beispiel:
    1.00 -> Karte, Urzeit werden erkannt und automatisch aktualisiert bzw. aktuell gehalten.
    1.14 -> erkennt NUR die Geschwindigkeit, Bei "Actual Time" steht: Waiting for OMSI map... (ist schon lange geladen und bereit zum fahren)

  • Hey,


    das Problem besteht leider auch mit der neusten Version. Ich habe OMSi mal über den BBS im Multiplayer gestartet. Im Anhang sende ich mal das Bild mit.


    https://gyazo.com/b776cd99a5b82ba50e0b92176d7b05d3

    • Ins Deutsche übersetzt:

      Hallo,

      Danke, dass Sie ein Problem gemeldet haben.


      Nur zur Verdeutlichung, haben Sie Folgendes in OMSI Time Sync aktiviert?

      - OMSI-Zeit nur neu synchronisieren, wenn sie hinter der tatsächlichen Zeit zurückbleibt


      Diese Einstellung muss bei Verwendung von BCS oder CCS aktiviert sein.


      Was die Fehlermeldung betrifft, obwohl ich kein Deutsch spreche, sieht es so aus, als ob versucht wird, die Stunde auf '31' einzustellen, was natürlich überhaupt nicht stimmt.


      Ich nehme an, das geschah in dem Moment, als Sie die OMSI-Karte geladen haben?


      Wenn Sie Discord haben, fügen Sie mich vielleicht hinzu und ich schicke Ihnen eine Debug-/Spezialversion, um zu versuchen, dieses Problem zu isolieren. Meine Discord-ID ist Ixel#6107


      Lass es mich wissen, danke.


      ---


      English:

      Hi,

      Thanks for reporting an issue.


      Just to clarify, do you have the following enabled in OMSI Time Sync?

      - Only re-sync OMSI time if it falls behind the actual time


      This setting must be enabled while using BCS or CCS.


      As for the error message, while I don't speak German it looks like it's trying to set the hour to '31' which of course is not right at all.


      I assume this happened the moment you loaded into the OMSI map?


      If you have Discord perhaps add me and I'll send you a debug/special version to try and isolate this problem. My Discord ID Is Ixel#6107


      Let me know, thanks.

    • Hey,


      Der Hacken ist tatsächlich gesetzt.


      Das passiert auch beim Start von OMSI bzw wenn ich eine Tour im BBS annehme und dann in OMSI reingehe.


      Ich kann dir später gerne mal eine Logfile senden.

    • Ins Deutsche übersetzt:

      Hallo,

      Ich habe einen Fehler gefunden, als ich mein Systemgebietsschema auf Deutsch und eine deutsche Zeitzone eingestellt und eine deutsche Karte geladen habe. In meinem Fall sagt der Fehler nur, dass er darauf wartet, dass eine Karte geladen wird, wenn dies bereits der Fall ist.


      Ich bin dabei, ein weiteres Update zu machen, das eine „Bus vorheizen“-Funktion zum schnellen Vorheizen eines kalten Busses hinzufügt, aber ich werde auch eine Protokollierung hinzufügen, damit jeder, der Probleme mit OMSI Time Sync hat, mir die Protokolldatei schicken kann, die es geben könnte mir ein paar Anhaltspunkte.


      Ich glaube, ich werde dieses Update in den nächsten Tagen oder so fertig haben.


      EDIT: Einige gute Nachrichten vielleicht, ich konnte einen Fehler finden, bei dem die Zeit ohne ersichtlichen Grund mehrere Stunden vorrückt. Ich versuche herauszufinden, was die Ursache dafür ist.


      ---


      Hi,

      I've found a bug when I set my system locale to German, a German timezone and loaded a German map. In my case the bug is just saying it's waiting for a map to load when it already has.


      I'm in the process of making another update which adds a 'preheat bus' feature for quickly preheating a cold bus, but I will also add logging to it so anyone having issues with OMSI Time Sync can send me the log file which might give me some clues.


      I believe I will have this update ready in the next day or so.


      EDIT: Some good news maybe, I've been able to find a bug where the time goes several hours ahead for no apparent reason. I'm trying to figure out what the cause of it is.

    • Ins Deutsche übersetzt:

      Nur um nachzufassen, ich glaube, ich habe den Fehler behoben. Ich habe noch kein Update offiziell veröffentlicht, aber später am Abend werde ich die aktualisierte Version wahrscheinlich zunächst auf dem Github-Repo veröffentlichen. Wenn Sie möchten, können Sie diese Version gerne herunterladen, bis ich sie schließlich auch hier veröffentliche und sobald sie genehmigt wurde, auch hier. Die Versionsnummer wird wahrscheinlich v1.14 sein.


      Zur Erklärung, im Grunde war es ein lokaler Unterschied. Der Unterschied zwischen der Verwendung einer Dezimalzahl und eines Kommas. Beispielsweise wäre 2010-01-01 13:45:05.123 in Englisch (Britisch) 2010-01-01 13:45:05,123. Ein Komma statt einer Dezimalzahl. Dies schien den Code zum Abrufen der korrekten Zeit in OMSI vollständig abzuwerfen.


      Ich habe es eine Weile mit einem deutschen Gebietsschema auf meinem PC getestet und bis jetzt verhält es sich jetzt gut, also bin ich ziemlich zuversichtlich, dass das Problem gelöst wurde - bis es in einem Update veröffentlicht wird.


      ---


      English:

      Just to follow up, I believe I've patched the bug. I haven't officially released an update yet but later this evening I'll likely be publishing the updated version on the Github repo initially. If you wish you're welcome to download that version until I eventually publish it here as well, and once it's been approved here too. The version number will likely be v1.14.


      To explain, basically it was a locale difference. The difference between using a decimal and a comma. For example, 2010-01-01 13:45:05.123 in English (British) would be 2010-01-01 13:45:05,123. A comma instead of a decimal. This appeared to completely throw off the code for getting the correct time in OMSI.


      I've been testing it with a German locale on my PC for a while and so far it's behaving fine now, so I'm fairly confident the issue has been resolved - pending to be released in an update.

    • Ins Deutsche übersetzt:

      Hallo,

      Nur eine letzte Antwort, um zu sagen, dass ich das Update (1.14) eingereicht habe, das zum Zeitpunkt des Schreibens dieser Antwort auf Genehmigung wartet. Es ist jetzt auch auf Github verfügbar.


      Ich hoffe, es löst das Problem ein für alle Mal, danke, dass du es gemeldet hast! Sag Bescheid, wenn möglich, danke.


      ---


      English:

      Hi,

      Just a final reply to say I've submitted the update (1.14) pending approval at the time of writing this reply. It's also available on Github now.


      I hope it resolves the issue once and for all, thanks for reporting it! Let me know if possible, thanks.

  • Hey,


    seit dem neuen Update stellt sich bei mir die Zeit immer viel weiter vor als die reale Uhrzeit. Beispielsweise ist es in echt erst 19:30 Uhr aber im Spiel stellt er die Zeit immer auf 20:33 Uhr. Ab und zu stellt er die Zeit auch auf 2 Uhr vor.

    • Hi,

      Sorry to hear that.


      That's odd, that shouldn't be happening. Is there a possibility you can add me on Discord and perhaps stream what's happening so I can see for myself? If so please add Ixel#6107 to Discord. I will use a translator if need be, as I only speak English.


      I've not been able to replicate this behavior during my testing, but perhaps the difference in time zone is having an unintended side effect as I'm GMT+0 (United Kingdom, England).


      Worst case I will add a manual hours offset setting again, which should solve this problem for sure.


      ---


      Ins Deutsche übersetzt:

      Hallo,

      Tut mir leid das zu hören.


      Das ist seltsam, das sollte nicht passieren. Gibt es eine Möglichkeit, mich auf Discord hinzuzufügen und vielleicht zu streamen, was passiert, damit ich es selbst sehen kann? Wenn ja, füge bitte Ixel#6107 zu Discord hinzu. Da ich nur Englisch spreche, werde ich bei Bedarf einen Übersetzer hinzuziehen.


      Ich konnte dieses Verhalten während meiner Tests nicht replizieren, aber vielleicht hat der Unterschied in der Zeitzone einen unbeabsichtigten Nebeneffekt, da ich GMT + 0 (Vereinigtes Königreich, England) bin.


      Im schlimmsten Fall werde ich wieder eine manuelle Stunden-Offset-Einstellung hinzufügen, die dieses Problem mit Sicherheit lösen sollte.

    • Hey,


      im Endeffekt habe ich nur die Dateien in den plugins Ordner gezogen und OMSI gestartet, dass Plugin dann eingerichtet und OMSI dann über BBS gestartet. Dann war die Zeit halt generell immer weiter vorne als die reale Uhrzeit.

    • Hi,

      I see, I'm starting to wonder if it's because your system is in a different time zone.


      I will have to try setting my system's time zone to GMT+1 to see what kind of effect it has. All being well I can replicate the problem that way. Thanks for the information.


      I'll update as soon as I have more to share. For now I would recommend going back to version 1.00 if possible, until I'm able to replicate and fix this issue.


      ---


      Ins Deutsche übersetzt:

      Hallo,

      Ich verstehe, ich fange an, mich zu fragen, ob es daran liegt, dass sich Ihr System in einer anderen Zeitzone befindet.


      Ich muss versuchen, die Zeitzone meines Systems auf GMT + 1 einzustellen, um zu sehen, welche Auswirkungen dies hat. Wenn alles in Ordnung ist, kann ich das Problem so replizieren. Danke für die Auskunft.


      Ich werde aktualisieren, sobald ich mehr zu teilen habe. Im Moment würde ich empfehlen, wenn möglich zu Version 1.00 zurückzukehren, bis ich in der Lage bin, dieses Problem zu replizieren und zu beheben.

  • Ich verstehe den Mehrwert noch nicht. Meine Erwartungen von dem Tool sind aktuell folgende: Ich stelle ein, dass die Zeit dauerhaft mit der Systemzeit gesynct wird. Aber OMSI wird wie immer 100 Nachladeruckler während der Fahrt haben. Es ist doch also unvermeidbar, das ich nach jeder Runde mit etlichen Minuten Verspätung am Ziel ankomme. Ich werde es mal austesten aber ich vermute es wird genau darauf hinauslaufen.

    • The idea of the plugin is that it will keep OMSI's in-game time relative to real-life time, despite the periodic lagging in OMSI. This is especially useful if you use Bus Company Simulator or CCS.


      This plugin won't fix the periodic lag in OMSI nor is it meant to. It may therefore not meet your specific expectation.


      Hope this clarifies.


      ---


      Ins Deutsche übersetzt:

      Die Idee hinter dem Plugin ist, dass es die In-Game-Zeit von OMSI relativ zur realen Zeit hält, trotz der periodischen Verzögerungen in OMSI. Dies ist besonders nützlich, wenn Sie Bus Company Simulator oder CCS verwenden.


      Dieses Plugin wird die periodische Verzögerung in OMSI nicht beheben, noch ist es dazu gedacht. Es kann daher Ihre spezifischen Erwartungen nicht erfüllen.


      Hoffe das klärt auf.

  • Hallo,


    bei mir funktionierte das Programm ein Tag. Am nächsten Tag konnte ich es nicht mehr öffnen. Da das ganze Menü fehlte.

    Aber ich sehe schon anhand der Kommentare, dass der Entwickler an ein Support nicht dran interessiert ist. Da weiß man schon im Vorfeld, was man von dem Programm zu halten hat.

    • Hi,

      Can you be more specific? I don't quite follow what you mean. A screenshot might be useful.


      That said, the update today might resolve the issue you were having.


      I don't understand how you've ascertained that I'm not interested in supporting the program. It's a free program, donationware, I'm not obligated to provide continued support but I am doing so.


      ---


      Ins Deutsche übersetzt:

      Hallo,

      Kannst du genauer sein? Ich kann dir nicht ganz folgen, was du meinst. Ein Screenshot könnte hilfreich sein.


      Das heutige Update könnte jedoch das Problem lösen, das Sie hatten.


      Ich verstehe nicht, wie Sie festgestellt haben, dass ich nicht daran interessiert bin, das Programm zu unterstützen. Es ist ein kostenloses Programm, Spendenware, ich bin nicht verpflichtet, weiterhin Unterstützung zu leisten, aber ich tue es.

  • ⭐⭐⭐⭐⭐

    Vielen Dank für dieses Tool! Sowas hat in OMSI noch gefehlt! <3

    Thank you for this tool!

    Gefällt mir 1
    • Gern geschehen!


      You're welcome!

  • Sounds really good. I have one question.Doesn't this mean that you can have higher delay than usual?

    For example, if you have less FPS, OMSI running slower than normal, which means 60 seconds in-game ≠ 60 seconds IRL. It can be 65 seconds IRL, less or more depending on lags.


    Due to this, if we will keep Time Sync ON, we'll lose these a few seconds every 1 minute. If you drive for 10 minutes and in-game time is slower by for example 5 seconds every 1 minute, you will be late 50 seconds after 10 minutes of driving. If you driving for 60 minutes, you can be late to 5-6 minutes according to timetables.


    Is my speculation correct?

    • Thanks.


      Unfortunately yes, the more the game lags then the greater time lost. This will vary depending on hardware, settings, map, traffic, etc. The user has the option of manually and instantly syncing the time instead of automatically, e.g. at the end of a tour before they start another tour via Bus Company Simulator while staying in OMSI, saving them from adjusting the time in OMSI itself. Alternatively the user can change to another auto sync mode (e.g. when bus has stopped moving), this requires the optional OMSI2 plugin which is linked on Github for essential telemtry

    • Okay, thanks for answer :)

    • Ein gutes Tool, was manchmal nützlich sein kann, aber auch zu Problemen führen kann. Ich bin gerade über den Tageswechsel auf Berlin-Spandau gefahren. Die Einstellungen stehen auf "Only re-sync OMSI time if it falls behind the actual time" und "Automatically keep the time in OMSI synchronised" sowie bei Auto Sync Mode auf "Always, every second". Als es 0:00 Uhr wurde hat in Omsi der Tag nicht umgeschaltet. Das Tool zeigt bei OMSI Time den 09.01.2022 an. Im Spiel ist es aber beim 08.01.2022 geblieben. Da wurde die Uhr einfach nur 24 Stunden zurück gestellt, was jetzt zur Verfrühung an einigen Haltestellen führte.

      English by Google Translate:
      A good tool that can be useful at times but can also cause problems. I just drove to Berlin-Spandau for the day change. The settings are set to "Only re-sync OMSI time if it falls behind the actual time" and "Automatically keep the time in OMSI synchronized" as well as to "Always, every second" for Auto Sync Mode. When it got to 0:00 the day did not change in Omsi. At OMSI Time, the tool shows January 9th, 2022. In the game, however, it stayed on January 8th, 2022. The clock was simply set back 24 hours, which has now led to it being premature at some stops.

      Erledigt 1
    • Hi @Eschy5


      I noticed a recent bug regarding that and am looking into it further. I'm hopeful however that I may have fixed it in the version I hope to release next week after it has gone through some for a while.

Anzeige