Jump to content
The simFlight Network Forums

FSUIPC7 v7.2.0 beta release: New facility to add lvars to offsets for both read and write/update


Recommended Posts

I have added a new facility to allow lvars to be added to FSUIPC offsets, where they can be read and updated.

This beta release is available here: http://www.fsuipc.com/download/Install_FSUIPC7.2.0a.zip

This is the relevant section from the Advanced User Guide:

Quote

Adding Lvars to Offsets
A facility is provided to add Lvars directly to FSUIPC offsets, for both reading and writing (i.e. updating an lvar value
by updating the offset). This facility is currently only available by direct editing of your
FSUIPC7.ini file.

To add an lvar to an offset, you need to open your FSUIPC7.ini file in an editor (e.g. Notepad++) and add a new section
to specify the lvars you would like to add and the offset it should be added to. This can be a
general section, which is
applicable to ALL aircraft, which can be achieved by adding the following section name:

    [LvarOffsets]
However, as lvars are aircraft specific, it is usually better to add this as a profile specific section, in which case you need
to append your profile name preceeded by a full stop. So, for a profile called 'TwinProps', for example, the new section
name would be:

    [LvarOffsets.TwinProps]
Note that a profile LvarOffsets section will replace/supersede a general LvarOffsets section, not augment it.

Once you have created the section, you can add the lvars to the offsets you require by adding lines of the following
format to this section:
    <
index>=<lvar name>=<size><offset>
where
- <
indexis the index number of the entry, starting from 0 with a max value of 1023 (i.e. maximum of 1024 entries)
- <
lvar nameis the name of the lvar, optionally preceded by 'L:'
- <
sizedesignates the size/type of the offset. This can be omitted and a size/type of 8 bytes/double will be used,
otherwise you can use the following designators:
        SB – signed byte (1 byte)
        UB – unsigned byte (1 byte)
        SW – signed word (2 bytes)
        UW – unsigned word (2 bytes)
        SD – signed double-word (DWORD) (4 bytes)
        UD – unsigned double-word (4 bytes)
You can edit this section while FSUIPC is running. If running, to load any changes, use the
Add-ons → WASM →
Reload
function.

Once an lvar has been added to an offset, you can use the offset for the lvar value as you would any other offset. You
can also update the lvar by updating the offset value, using, for example, one of the FSUIPC Offset Controls (see page
35), such as
Offset Word Set, or Offset Byte Togglebits. Make sure that the control that you use matches the size of
the offset defined to hold the value.

 

For any questions or issues, please use the following support topic: 

 

 

John

Link to post
Share on other sites
  • John Dowson changed the title to FSUIPC7 v7.2.0 beta release: New facility to add lvars to offsets for both read and write/update
  • 2 weeks later...

Please find attached the latest (and hopefully final) beta, v7.2.0d: 

FSUIPC7.exe

This contains the following changes:
   - max allowed AlsoManage ini parameter entries increased from 32 to 64
   - offset 0x0818 (AUTOPILOT ALTITUDE LOCK VAR:3 ) now writeable. Write the required altitude in feet. Uses the AP_ALT_VAR_SET_ENGLISH  control
   - simvar AUTOPILOT VS SLOT INDEX added to offset 0x02FC for read and write
   - additional (non-axes) controls/events added:
        GPS_OBS_ON
        GPS_OBS_OFF
        GPS_OBS_SET
        GPS_OBS_INC
        GPS_OBS_DEC
        GPS_OBS
        ADF_ACTIVE_SET
        ADF_STBY_SET
        ADF2_ACTIVE_SET
        ADF2_STBY_SET
        AP_PITCH_REF_SET
        AP_AVIONICS_MANAGED_ON
        AP_AVIONICS_MANAGED_OFF
        AP_AVIONICS_MANAGED_TOGGLE
        AP_AVIONICS_MANAGED_SET
    - rebuild against MSFS SDK v0.13.0.0
    - delayed starting of WAPI until after leaving MSFS main menu


     John

  • Thanks 1
Link to post
Share on other sites
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.