Results 1 to 5 of 5
  1. #1
    10+ Posting Member
    Join Date
    Apr 2012
    Location
    Netherlands
    Posts
    24
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Reading Config File

    Hello,
    I have some difficulties with starting up a compiled pascal script (the executable).
    Every time I want to start a script, I first have to initiate the udp port (say 1027) in the IDE.
    After that I can start the script.
    I think it has to do with the fact that the generic executables from Sismo, all have a config file.
    So my question is, how can I make my executable read a config file ????????
    Kind regards
    Jedeen

  2. #2
    25+ Posting Member
    Join Date
    Dec 2010
    Location
    Jerez
    Posts
    58
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Reading Config File

    Hello Jedeen,

    Please verify if the configuration file you have is a config.ini and not a config.ini.txt

    You you want to use the .ini format, go to the downloads section on our website and download any script; modify this and save it with the code you want.

    The function which calls config.ini is the one which is shown in the image I have attached.


    Another thing, the config.ini must be in the same folder as the script you are running.

    Regards,

    Thomas Lee, Sismo Soluciones
    Attached Images Attached Images

  3. #3
    10+ Posting Member
    Join Date
    Apr 2012
    Location
    Netherlands
    Posts
    24
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Reading Config File

    Hello Thomas,
    are you kidding ?????
    The files in your download section are only executable's !!!!! no scripts.
    Can you send me a PM with that part from the script, dealing with the "ReadIniFile(........)" instruction.
    I can't find anything in the help files regarding that instruction.
    Thanks in advance
    Regards
    Jedeen

    BTW: the script for the MCP and EFIS for XPlane11 is functioning.
    I am now working on the mip.....

  4. #4
    25+ Posting Member
    Join Date
    Dec 2010
    Location
    Jerez
    Posts
    58
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Reading Config File

    Hi Jedeen,
    I have sent you an e-mail with further details.
    Thomas

  5. #5
    10+ Posting Member
    Join Date
    Apr 2012
    Location
    Netherlands
    Posts
    24
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Reading Config File

    Thank You Thomas