Jump to content
The simFlight Network Forums
stratosfly

LUA Script meaning of ipcread "UD" "UW" "SD" "SW" ?

Recommended Posts

Hello,

 

I hope my question is not to dull, but I didn´t find the answer so far.

 

I want to make some simple lua.script for playing sound in Prosim737 and managed already to get one working.

 

However, The meaning of ipc.read is clear. But what is the difference between ipc.readUW, UD, SD, UD, SW and so on.

 

Did not find an explanation in the manuals. Probably its just to simple.

 

Regards

Michael

Share this post


Link to post
Share on other sites

However, The meaning of ipc.read is clear. But what is the difference between ipc.readUW, UD, SD, UD, SW and so on.

 

Did not find an explanation in the manuals. Probably its just to simple.

 

Where on Earth are you looking? In the Lua library reference document each of those functions is described separately, and each one tells you what the data type is, clearly, in the first sentence describing the function in the right-hand column!!

 

Pete

Share this post


Link to post
Share on other sites

Thanks Pete for the reply!

That exactly was my fear to have overseen a document or something like that, that is obvious and where I should have had a look at before posting here.

Thanks again for the help, I will check the library tomorrow.

Best

Michael

Share this post


Link to post
Share on other sites

... well, I think you mean one of these lua library reference manuals (5.3, 5.2, 5.1...). I tried but I do not find a description of  ipc.readUW, UD, SD, UD, SW there.

 

Maybe the problem is that I don´t understand the whole context of the language, but I dont want to learn LUA. All what I miss in understanding these small scripts made by Lapi (Prosim) is the function mentioned. 

 

Best

Michael

Share this post


Link to post
Share on other sites

... well, I think you mean one of these lua library reference manuals (5.3, 5.2, 5.1...). I

 

NO I do not!!!

 

The libraries you are using are in FSUIPC and WideClient ONLY. They are not general purpose Lua libraries for the general user, they are purpose specific libraries for FSUIPC and FS. 

 

The reference document for the library is in the Lua package installed in your FSUIPC Documents folder, in the FS Modules folder, the place where it is clearly defined in the Install instructions that you should look!! Have you never even bothered to find and refer to the FSUIPC User Guide either? That's in there too!

 

:-(

 

Pete

Share this post


Link to post
Share on other sites

Pete, forgive me, I am a relative newbee with this and just jumped in without much preparation.

Lesson learnt: First take more time for reading the manuals before bugging the sim with faulty luas.

Thanks and regards

Michael

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

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.