Page 1 of 4 1234 LastLast
Results 1 to 10 of 36
  1. #1
    25+ Posting Member
    Join Date
    Feb 2009
    Location
    Preston, UK
    Posts
    37
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    SIOC Pre compiler

    Hi Guys,

    Well im deep into SIOC now and while I love its functionality and the power it provides, I hate its syntax!

    So im going to write a Precompiler that will allow us to write in a more friendly manor and then compile this into valid SIOC script

    here are a few ideas I have,but I am looking for more ideas so I can make this a success!

    intelliSense
    Automatic VAR numbering
    All Parameters to be declared at the top of the code,
    then all scipt underneath, allowing you to keep Var decleration neat
    Color coding of Functions, vars etc


    So come on guys let meknow what really annoys you about SIOC

  2. Thanks venenoso, phil744 thanked for this post
  3. #2
    500+ This must be a daytime job ian@737ng.co.uk's Avatar
    Join Date
    Jan 2006
    Location
    Oswestry, Shropshire
    Posts
    609
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Hi Chris

    i personally would love to get to grips with SIOC, but time, age and computer skills sadly are not on my side. you are a professional programmer, so make it as simple as you can.
    a lot of us didn't grow up in the 'computer generation', so what about a 'what you see is what you get' type of dropdown menu system with the ability to 'manipulate variables' in a simple manner (not suggesting that we are a simple bunch, just that a lot of us need some
    help).
    i was talking to John Rossiter (boeing737ng) the other day about exactly the same issue.
    maybe you should have a chat with him.
    good luck anyway and keep us posted.
    and for those of you who dont know chris, here he is....

    http://www.737ng.co.uk/chriswarner310109.jpg

    sorry chris, couldn't resist it .......

    regards ... ian
    Mr. Ian. P. Sissons is hereby recognised as an Honorary Flight Sim Captain following his passing in February 2016. This is in recognition for his commitment to Flight Simulation.

    www.mycockpit.org Featured Builder August 2008 www.737ng.co.uk
    FS9/PROSIM737/CPFLIGHT/Lots of BU0836X's and a Beer Fridge

  4. #3
    2000+ Poster - Never Leaves the Sim Michael Carter's Avatar
    Join Date
    Oct 2006
    Location
    Southern Illinois, USA
    Posts
    2,887
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    For those of us who do not speak 'programming' it's an excellent idea. I really hope you succeed with this.

    I might even be able to use SIOC with that add-on.
    Boeing Skunk Works
    Remember...140, 250, and REALLY FAST!

    We don't need no stinkin' ETOPS!



    Powered by FS9 & BOEING

  5. #4
    500+ This must be a daytime job



    Join Date
    Jul 2013
    Posts
    917
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Chris/Mr Roper

    In addition to agreeing with Ian (as always!) I am not certain how far your pre complier will go, however, existing SIOC error messages are totally inadequate. One great addition would be the facility to select a variable and then have all other uses of that variable highlighted in colour - I get fed up doing individual notepad "find" calls to try and track what is going on when a variable changes. I am not used to the anarchic programme flow

    Regards and thanks

    David

  6. #5
    75+ Posting Member MortenHa's Avatar
    Join Date
    Apr 2007
    Location
    Norway, Vardø
    Posts
    77
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    An excellent idea! Go for it Chris! But don't wear yourself out (I know how fast these projects can grow out of proportions )!

    I get fed up doing individual notepad "find" calls to try and track what is going on when a variable changes. I am not used to the anarchic programme flow
    David!
    Try Notepad++! http://notepad-plus.sourceforge.net/uk/site.htm
    Although it will not help with the programme flow. The find/replace facilites are great. Syntax highlightning, linenumbers and kinds of other good stuff is in this powerful editor!

    Without it, I'm lost.

    Chris:
    Was thinking about writing a Perl script for renumbering variables,but I'm putting that on hold for now

  7. #6
    10+ Posting Member venenoso's Avatar
    Join Date
    Aug 2007
    Location
    SCJO
    Posts
    15
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Great Idea ,
    I could like a more visual programing , like drag and drop , could be???
    think SIOC is great and very powerfull but very complicated for normal people like me. Thanks in advance for your work.
    regards

  8. #7
    25+ Posting Member
    Join Date
    Feb 2009
    Location
    Preston, UK
    Posts
    37
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Ian...Just wait until I see you next!!!! (only joking!)

    My idea is that It will precompile the script and make sure It is valid..taking it from my interface into native SIOC.. It wont be a debugger im afraid (i.e. you wont be able to use it to debug values in real time

    my idea is this so far, and I have this working in a very early stage

    step 1

    type "var" as you press space, a list of available types of var will appear..then when you select this it will show you all the available parameters for this type of var

    all the "vars" will be at the top of the code with none of the inline script as is now

    you will then be able to implement the script underneath and this will precompile into correct "SIOC"

    an example might be

    Code:
    Var VSdisplay, IOCARD_DISPLAY, 14, 5
    Var CRSRdisplay, IOCARD_DISPLAY, 19, 3
    Var MCPstatus, FSUIPC_IN, Offset $62BC, Length 4
    MCPstatus
    {
     VSdisplay = 1000
    }
    as you can see you wont have to worry about numbers, and this will all be color coded and use "intellisense" so that as I typed MCPstatus, it would have showed me all the variables that match what im typing.

    also a lot of the syntax that is required by SIOC wont be required

    My main problem with drag and drop style is that it is quite slow, whereas a intilsense type approach is normally much faster to write.
    Does this make sense, and do people think it would help?

  9. #8
    300+ Forum Addict


    brianwilliamson's Avatar
    Join Date
    Oct 2005
    Location
    Gold Coast-AUSTRALIA
    Posts
    455
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Brilliant !! I can't wait for something to make it easier to facilitate programming SIOC.
    Regards......................Brian W.

  10. #9
    500+ This must be a daytime job



    Join Date
    Jul 2013
    Posts
    917
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Chris

    Yes please, this would be a great improvement and the variables list at the top reminds me of programming in C back in 1982, though sadly mostly now forgotten!

    Thanks again

    David

  11. #10
    500+ This must be a daytime job kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    698
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Quote Originally Posted by fordgt40 View Post
    Yes please, this would be a great improvement and the variables list at the top reminds me of programming in C back in 1982, though sadly mostly now forgotten!
    Hi guys, its 2009 now (!), global variables should be avoided in programming as much as possible, it is considered bad practise nowadays...

    But more serious, I do not think a SIOC pre compiler is a good approach. Personally I do not need that at all ...

    The SIOC language already is an application language, particularly targeted to building cockpits, so why do you want to abstract from that??? And more important, the 'event driven' mechanisms in SIOC will be very difficult to abstract from.

    I think it is better to try to understand the SIOC language, just spent some time, it is not as difficult as it seems. My website may be of help:
    http://www.lekseecon.nl/howto.html. Start with simple examples.

    And if it still does not work, for instance because you do not understand the syntax of the SIOC language, so you have difficulty to program using a text editor, you could also fall back at the GUI interface of SIOC.

    regards,
    nico

Page 1 of 4 1234 LastLast

Similar Threads

  1. Sioc / PM
    By mpl330 in forum OpenCockpits General Discussion
    Replies: 6
    Last Post: 02-07-2010, 01:26 PM
  2. CNC compiler problem
    By davek in forum Westozy's Mechanical Engineering
    Replies: 1
    Last Post: 01-01-2010, 09:23 AM
  3. Help with SIOC please?
    By Jake 747 400 in forum General Builder Questions All Aircraft Types
    Replies: 13
    Last Post: 11-20-2009, 07:00 PM
  4. SIOC Help
    By CessnaGuy in forum I/O Interfacing and Hardware
    Replies: 5
    Last Post: 10-25-2009, 10:00 AM
  5. SIOC for MIP?
    By HondaCop in forum I/O Interfacing Hardware and Software
    Replies: 17
    Last Post: 07-21-2009, 07:48 AM