the.gamer112
-
Posts
9 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Posts posted by the.gamer112
-
-
Problem is, the print function is just for testing, since I'm kinda lazy I wanted to see if I can even intercept the event before writing the rest of my code...
Is there any other way to intercept those events before they get processed by something else?
-
Once again...
Is there a limit to the event ids that are being watched by event.control?
I'm specifically interested in the range from 70442 up to 70841.
this is my code for testing right now:
print("Running")
function test(evnt,par)
print("gotem")
endevent.control(70442,"test")
-
On 5/22/2019 at 8:17 PM, Luke Kolin said:
Do you have the right encoding? These are 16-bit unicode characters IIRC.
The way to request it out of IPC is (in lua):
text, powered = ipc.readStruct("5400","1215STR") --read 1215 character string from offset 5400 (Left CDU)
after decoding from unicode-escape the text is formatted as followes:
symbol(as string), color(hex), flags(x01, x02 or x04 not sure if combinations possible)
so, as an example:
0\x00\x01 would show a small 0 in default color (green on monochrome screen, white on LCD)
F\x02\x04 would show a normal F in dark green (dark because of the x04 flag, inop/unavailable)
-
3 hours ago, Pete Dowson said:
I'm afraid I am of no help regarding the data itself. I've never used any PMDG aircraft. I can only advise about programming, and then only in C.
Oh, I see. Thanks for giving me somesort of direction Pete.
I'll see what PMDG can do for me then.
Have a nice day 😉
-
5 minutes ago, Pete Dowson said:
Did you enable CDU broadcasts as instructed in the Offsets PDF?
Yup
6 minutes ago, Pete Dowson said:As with most all of the offsets populated from PMDG aircraft, the format of the data is documented by PMDG, not by us (it is their aircraft after all). This would be in the .h document referenced right at the start of the Offsets PDF.
I know, but since i'm using FSUIPC offset, for which the documentation in this case unfortunately are unclear I hoped you could help me out.
(My biggest issue is the formatting)
I assume this is the part I should get my info out of?
struct PMDG_747QOTSII_CDU_Cell
{
unsigned char Symbol;
unsigned char Color; // any of PMDG_747QOTSII_CDU_COLOR_ defines
unsigned char Flags; // a combination of PMDG_747QOTSII_CDU_FLAG_ bits
};// 747QOTSII CDU Screen Data Structure
#define CDU_COLUMNS 24
#define CDU_ROWS 14struct PMDG_747QOTSII_CDU_Screen
{
PMDG_747QOTSII_CDU_Cell Cells[CDU_COLUMNS][CDU_ROWS];
bool Powered; // true if the CDU is powered
};I tried reading the offset at 4500 as str and this is the rawstring my function returns:
\x00\x00 \x00\x00N\x00\x00 \x00\x00N\x00\x00 \x00\x00N\x00\x00 \x00\x00N\x00\x00 \x00\x00N\x00\x00-\x00\x00<\x00\x00 \x00\x00 \x00\x00I\x00\x015\x00\x00I\x00\x015\x00\x00I\x00\x015\x00\x00G\x00\x015\x00\x00G\x00\x015\x00\x00-\x00\x00I\x00\x00 \x00\x00 \x00\x00R\x00\x011\x00\x00R\x00\x011\x00\x00R\x00\x011\x00\x00P\x00\x011\x00\x00P\x00\x011\x00\x00-\x00\x00N\x00\x00 \x00\x00 \x00\x00S\x00\x01\xb0\x00\x00S\x00\x01\xb0\x00\x00S\x00\x01\xb0\x00\x00S\x00\x01\xb0\x00\x00S\x00\x01\xb0\x00\x00-\x00\x00D\x00\x00 \x00\x00 \x00\x00 \x00\x002\x00\x00 \x00\x002\x00\x00 \x00\x002\x00\x00 \x00\x002\x00\x00 \x00\x002\x00\x00-\x00\x00E\x00\x00 \x00\x00 \x00\x00L\x00\x016\x00\x00C\x00\x016\x00\x00R\x00\x018\x00\x00L\x00\x018\x00\x00R\x00\x018\x00\x00-\x00\x00X\x00\x00 \x00\x00 \x00\x00 \x00\x00.\x00\x00 \x00\x00.\x00\x00 \x00\x00.\x00\x00 \x00\x00.\x00\x00 \x00\x00.\x00\x00-\x00\x00 \x00\x00 \x00\x00 \x00\x00 \x00\x003\x00\x00 \x00\x002\x00\x00 \x00\x003\x00\x00 \x00\x003\x00\x00 \x00\x003\x00\x00-\x00\x00 \x00\x00 \x00\x00 \x00\x00 \x00\x00 \x00\x00 \x00\x00 \x00\x00 \x00\x00 \x00\x00 \x00\x00 \x00\x00 \x00\x00 \x00\x00-\x00\x00 \x00\x00 \x00\x00P\x00\x00 \x00\x00W\x00\x00 \x00\x00W\x00\x00 \x00\x00W\x00\x00 \x00\x00W\x00\x00 \x00\x00W\x00\x00-\x00\x00 \x00\x00 \x00\x00O\x00\x00 \x00\x000\x00\x00 \x00\x000\x00\x00 \x00\x000\x00\x00 \x00\x000\x00\x00 \x00\x000\x00\x00-\x00\x00 \x00\x00 \x00\x00S\x00\x00 \x00\x000\x00\x00 \x00\x000\x00\x00 \x00\x000\x00\x00 \x00\x000\x00\x00 \x00\x000\x00\x00-\x00\x00 \x00\x00 \x00\x00 \x00\x00 \x00\x00'
-
Hello,
I'm quite new to IPC, and i'm wondering if anybody knows how to read the CDU offsets of the QOTS2 v3 because the documentation only gives me the offsets.
I only want to read the left CDU (5400-57FF) for now, but i'm only getting some weird formatted gibberish from IPC.....
I'm running FSUIPC 4.974b with FSX:SE
Best regards and thanks before,
Fabian Gallinat
-
is there anything cheaper than the 28€ version on simmarket?
-
Hey guys,
I'm currently writing a program that is interfacing between two FSXs over the internet.
My current problem is that ipc doesn't start the required lua module thats needed to interface between my program and IPC.
Is it possible since i'm using an unregistered version (money sits tight rn) that IPC doesn't execute the lua file?
Best regards,
Fabian Gallinat
PMDG 744 event ids
in FSUIPC Support Pete Dowson Modules
Posted
I don't need them to be stopped from going through, but I need to see when one of the events are happening (Every event triggers or gets triggered by a button press inside the cockpit)
Would it be possible to increase the priority for IPC to handle these events first? That way IPC would intercept the event, make it possible for me to process it extrnally, and then send it on...
I'm using FSUIPC 4.974b btw
Fabian