How would i go about learning to write plugin? (extract data from Omsi and send it to an arduino)

Willkommen in der OMSI-WebDisk!
Als Gast kannst du nur Inhalte in deiner ausgewählten Sprache sehen. Registrierte Nutzer können die Sichtbarkeit anderer Sprachen in ihrem Kontrollzentrum aktivieren, weitere Infos hier.
Alle Themen sind in den Foren mit einer Sprachflagge gekennzeichnet: = Englisch [EN], = Deutsch [DE], = Französisch [FR]. Wenn du die angegebene Sprache nicht beherrschst, schreibe auf Englisch!
  • Short version:


    Can someone point me to a tutorial on how to make a plugin .dll which can read variables in omsi 2 and send them to some arduino's to operate lights, gauges LCD's etc,

    or can someone help me with the basics of what to write where and how to make it a plugin .dll that i can build on.


    Is there something like the arduino.IDE programming environment that i can use for this?


    -------------


    Long version:


    I am pretty clueless when it comes to computer programming, i can just about program an arduino for basic stuff, but mostly i end up altering existing code to suit what i need it to do.


    Way back in 2012 a kind person called Thiago (i believe from the Aussie-X forum) wrote plugin for me that read data from omsi 1 and sent that data as a string to an arduino, this then made a speedometer and a few other gauges move and turn on some dashboard lights to match what was happening in omsi,


    I recall it consisted of 2 items, 'gazz.dll' and 'gazz.opl'


    Unfortunately i lost contact with Thiago, and Komsi came out and took over the job of reading omsi 2 data and sending it to multiple arduino's to operate real dashboards.

    Thiago did send me the source code for the gazz.dll stuff, but i had no idea what to do with it and can't find it now.


    Komsi stopped being updated in 2016 i believe, as the writer moved away from omsi,


    And whilst Komsi is amazing, there is data i'd like to read from omsi and send to arduino's that komsi does not handle, and the logical step of asking the writer to add some more functions to his program isn't an option.

    I'm thinking of things like a better way to get the ibis display text, get the interior 'next stop' display data to operate a real unit, make both needles of the air gauges work and so on.




    So, i'd like to try to write a plugin for omsi, i.e the stuff that gets turned into the .dll file that goes in the plugins folder with the matching .opl file.



    Is there a tutorial anywhere which covers how to do this... aimed at someone who has pretty much no programming skills,

    what programs do i download to write the plugin with, i believe delphi is what omsi is written in but is outdated and not an ideal language to learn?


    i know about that tutorial from the writers of omsi, where you change a file extension and it makes a popup on the screen with a speedo, a slider and a click button, but that does not tell me what to write the code in and how to make it into a .dll


    Or is anyone able to give me some help with maybe a sample of text that gets turned into a .dll... i don't even know how that is done, compiling or something, honestly, i really am that bad at this programming thing, i'm more of a mechanical person.