Results 1 to 3 of 3

Thread: Re: Fs2k2 Scasm variabiles

  1. #1
    cloudandy Guest

    Default Re: Fs2k2 Scasm variabiles

    hi to all
    i'm working with fsds and i found out that some old scasm variables may be
    inserted in fsds language.
    i would like to know if somewhere there's a list of *all* variables which work
    with fs2002 and relative commands.
    by now i've tested 28c-282(in a moving radar, and in flashing lights)-7BE ( for
    COM frequencies)
    i would like to know if there are variables for
    NAV1-NAV2-distance from aircraft-....
    thank you very much
    alex
    Alessandro

    The Microsoft Scenery SDK for FS98 contains a detailed listing of the
    FS global vars, most of them still valid for FS2K/2K2. As well does the
    FS2000 scenery SDK contain a chapter about global vars, but incomplete.
    Distance from viewpoint is 33B. I donīt know if there is really a variable
    for distance from aircraft (which is not always identical with viewpoint).

    Andreas

  2. #2
    bobbel Guest

    Default Re: Fs2k2 Scasm variabiles

    Hey

    how do you make objects show up when you use the 7be command in fsds
    you must enter the freq. in the v1 field......right

    here is my example... its just a simple box ( api macro)

    ; Part: Box
    :Part0
    IfVarAnd( :CNT0 7be 123.00 )
    Return
    :CNT0
    Points( 0
    -99 -99 -99 ; 0
    -99 100 -99 ; 1
    100 100 -99 ; 2
    100 -99 -99 ; 3
    -99 -99 100 ; 4
    -99 100 100 ; 5
    100 100 100 ; 6
    100 -99 100 ; 7
    )
    ;RGBSColor( ef 121 121 121 )
    Dwx( 2d ) ; color command
    Dbd( 121 ) ; red
    Dbx( ef ) ; flag/transparency
    Dbd( 121 ) ; green
    Dbd( 121 ) ; blue
    Poly( 0 0 -32767 100.00 0 1 2 3 )
    Poly( 0 0 32767 100.00 7 6 5 4 )
    Poly( -32767 0 0 100.00 5 1 0 4 )
    Poly( 32767 0 0 100.00 2 6 7 3 )
    Poly( 0 32767 0 100.00 5 6 2 1 )
    Poly( 0 -32767 0 100.00 0 3 7 4 )
    Return
    :End
    EndA

    if you have a macro like this i will love to see it so i can figure what im
    doing wrong.

    Christian

    christian@fsteam.dk

  3. #3
    cloudandy Guest

    Default Re: Fs2k2 Scasm variabiles

    Hey

    how do you make objects show up when you use the 7be command in fsds
    you must enter the freq. in the v1 field......right

    here is my example... its just a simple box ( api macro)

    ; Part: Box
    :Part0
    IfVarAnd( :CNT0 7be 123.00 )
    Return
    :CNT0
    Points( 0
    -99 -99 -99 ; 0
    -99 100 -99 ; 1
    100 100 -99 ; 2
    100 -99 -99 ; 3
    -99 -99 100 ; 4
    -99 100 100 ; 5
    100 100 100 ; 6
    100 -99 100 ; 7
    )
    ;RGBSColor( ef 121 121 121 )
    Dwx( 2d ) ; color command
    Dbd( 121 ) ; red
    Dbx( ef ) ; flag/transparency
    Dbd( 121 ) ; green
    Dbd( 121 ) ; blue
    Poly( 0 0 -32767 100.00 0 1 2 3 )
    Poly( 0 0 32767 100.00 7 6 5 4 )
    Poly( -32767 0 0 100.00 5 1 0 4 )
    Poly( 32767 0 0 100.00 2 6 7 3 )
    Poly( 0 32767 0 100.00 5 6 2 1 )
    Poly( 0 -32767 0 100.00 0 3 7 4 )
    Return
    :End
    EndA

    if you have a macro like this i will love to see it so i can figure what im
    doing wrong.

    Christian

    christian@fsteam.dk
    Hello Christian

    Try to implement the argument as BCD-hex-value into the IfVarAnd, not as
    decimal.
    So, instead

    IfVarAnd( :CNT0 7be 123.00 )

    type

    IfVarAnd( :CNT0 7be 0x8FC )

    The first digit of "!23.00" is omitted in 7be (to fit into the 16 bit variable

    format!), and then the remaining "23.00" are transferred to "2300", and then
    converted as a hex expression.
    If you have switched your COM1 to 123.00 at the panel, the 7be var contains
    8FC, so you have to ask for that value in IfVarAnd. In IfVarAnd, you should
    use only hex values as expression argument.
    If you have switched to 119.05, then 7be reads decimal 1905, hex 771.
    You can read in my macro tutorial at www.combatflight.de about this and others.


    Greetings

    Andreas AKlisch@t-online.de

Similar Threads

  1. Replies: 0
    Last Post: 02-15-2003, 05:21 AM
  2. help with SCASM
    By guatemala in forum Scenery Design Archive
    Replies: 0
    Last Post: 10-18-2002, 09:07 AM
  3. Fs2k2 Scasm variabiles
    By asavarese in forum Scenery Design Archive
    Replies: 0
    Last Post: 06-11-2002, 01:18 PM
  4. Re: Scasm 2.5 or later
    By bob5568 in forum Scenery Design Archive
    Replies: 6
    Last Post: 03-17-2002, 05:54 AM
  5. Re: Scasm 2.50
    By cloudandy in forum Scenery Design Archive
    Replies: 1
    Last Post: 09-11-2001, 04:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •