Jump to content
The simFlight Network Forums
Sign in to follow this  
Masterius

No longer can read from, or write to, (new) Lvars

Recommended Posts

I'm running FSX Steam Edition on Windows 7 using  FSUIPC4, Version 4.974 and LINDA Version 3.0.12.810, and have been for some time now. Never really had any problems before, except for a little glitch with LINDA at setup over my throttle quadrants. I've been writing my own lua scripts, and they've been running just fine up until the middle of last week. Now, however, if a newly-created function attempts to write to, or read from, a Lvars, nothing happens. I can see the function called, I can trace the button as it is activated and deactivated, but the LVar value itself does not change. As well, if I remove a function that has been working, make and save any changes to the user.lib, and then paste that function back inside, it no longer works. 

 

For example, this function had been working, until I removed it for a revised version. When the revised version didn't work, I deleted it and pasted the original back, but now that one no longer works, either. The function actually runs, because it takes 6 seconds to complete and permit subsequent functions to execute. 

 

function All_Magnetos_Off_a ()

    ipc.writeLvar("L:Magnetos1Switch",0)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos2Switch",0)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos3Switch", 0)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos4Switch",0)
    ipc.sleep(1500)

end

I've no idea what's up, but it's intensely frustrating. 

Share this post


Link to post
Share on other sites
20 minutes ago, Masterius said:

For example, this function had been working, until I removed it for a revised version. When the revised version didn't work, I deleted it and pasted the original back, but now that one no longer works, either. The function actually runs, because it takes 6 seconds to complete and permit subsequent functions to execute. 

Well, FSUIPC 4.974 wouldn't have changed itself. 

Have you updated or changed the relevant aircraft?

A log from the log Lvars lua plug-in would be useful.

22 minutes ago, Masterius said:

the LVar value itself does not change.

And you know this how? By using the logging?

Pete

 

Share this post


Link to post
Share on other sites
23 hours ago, Pete Dowson said:

Well, FSUIPC 4.974 wouldn't have changed itself. 

I didn't think it had.

23 hours ago, Pete Dowson said:

Have you updated or changed the relevant aircraft?

Negative to both.

23 hours ago, Pete Dowson said:

A log from the log Lvars lua plug-in would be useful.

I'll try and record that.

23 hours ago, Pete Dowson said:

And you know this how? By using the logging?

I also use LINDA, which permits real-time observation of button executions. I could see the button operating, see the execution of the script, but not see the Lvar change. However, when I manually switched the magnetos in-game, I could see the Lvar values change.

 

Al

Share this post


Link to post
Share on other sites
12 hours ago, Masterius said:

I also use LINDA, which permits real-time observation of button executions. I could see the button operating, see the execution of the script, but not see the Lvar change. However, when I manually switched the magnetos in-game, I could see the Lvar values change

Ah! LINDA use is different and I don't know it so cannot help. Please check with their support.

Pete

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • 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.