OCP4NGX crash on P3D v2.5(SOLVED)

Forum for the OC4BA v2/v3 and OC4BAConfig including the OCP4NGX driver
Post Reply
Orphee
Posts: 3
Joined: Fri Jul 03, 2015 12:00 pm

OCP4NGX crash on P3D v2.5(SOLVED)

Post by Orphee »

Hi,

i have a a cdu from plug n flyhttp://www.plugnfly.com/fr_fms-737-ng-pro.html and i use the first and freeware version of OCP4NGX, the only problem i have, is the double entry (i presse one time a key, for example the letter "F", i have "FF" one the CDU), for resolve the problem i must reload two time the SIOC and go to the sioc monitor to press a key, after that i can launch the OCP4NGX and it work fine.

Today i buy the latest version of OCP4NGX, i change the script for my CDU (plug n fly and not opencockpit), but when i press a key OCP4NGX crash :evil:

If someone have a solution!


The error msg on the event viewer :
Faulting application name: OCP4NGX.exe, version: 3.3.0.0, time stamp: 0x554d0b2f
Faulting module name: OCP4NGX.exe, version: 3.3.0.0, time stamp: 0x554d0b2f
Exception code: 0xc0000005
Fault offset: 0x0000f5d0
Faulting process id: 0xdbc
Faulting application start time: 0x01d0b66407156d38
Faulting application path: P:\HARDWARE\SIOC\OCP4NGX.exe
Faulting module path: P:\HARDWARE\SIOC\OCP4NGX.exe
Report Id: 4e0b071f-2257-11e5-a0dc-bcee7b74f421
OC.log content :
OCP4NGX 3.3.0 Sat Jul 04 16:23:52 2015

16:23:52 Initialisation ...

16:23:52 Connecting to SIOC ...
16:23:52 Timed asynchronous connection attempt started...
16:23:52 Link established to SIOC server, HostAddress:127.0.0.1, port:8092
16:23:52 Winsock ready for write
16:23:52 Registering needed Control Vars at SIOC Server ...
16:23:53 Initial values of Control Vars received from SIOC Server.
16:23:53 SIOC Connected!

16:23:53 Running ...
my SIOC.ini :

(my IDX is 1, and not 13)
[SIOC]
IOCP_port=8092
IOCP_timeout=4000
Minimized=NO
toggle_delay=20

[PMDG B737]
CONFIG_FILE=OCP4NGX CDU.ssi
USBKeys=1,37

[FSUIPC MODULE]
FSUipcdisable=No
FSUipcRefresh=60

[IOCP CLIENTS MODULES]
IOCPini_delay= 3000
IOCPclient0_disable=no
IOCPclient0_host=localhost
IOCPclient0_port=8092
IOCPclient1_disable=no
IOCPclient1_host=localhost
IOCPclient1_port=8092

[SOUND MODULE]
Sound_disable=Yes
Volume=100
and my script (i change it from original to adjust them to the plug n fly cdu, i just use this cdu and delet the rest in the script, i dont have any other modules from opencockpit) :
Var 1998, name CDU, Link USB_KEYS, Device 1
{
IF &CDU = 18 // MENU
{
&k = 2156
}
IF &CDU = 7 // INIT REF
{
&k = 2144
}
IF &CDU = 8 // RTE
{
&k = 2173
}
IF &CDU = 15 // DES
{
&k = 2134
}
IF &CDU = 19 // LEGS
{
&k = 2154
}
IF &CDU = 22 // PROG
{
&k = 2164
}
IF &CDU = 24 // N1 LIMIT
{
&k = 2158
}
IF &CDU = 25 // FIX
{
&k = 2139
}
IF &CDU = 17 // CLB
{
&k = 2128
}
IF &CDU = 16 // CRZ
{
&k = 2130
}
IF &CDU = 20 // DEP ARR
{
&k = 2133
}
IF &CDU = 21 // HOLD
{
&k = 2142
}
IF &CDU = 23 // EXEC
{
&k = 2137
}
IF &CDU = 62 // PREV PAGE
{
&k = 2163
}
IF &CDU = 56 // NEXT PAGE
{
&k = 2159
}
IF &CDU = 58 // 0
{
&k = 2114
}
IF &CDU = 41 // 1
{
&k = 2115
}
IF &CDU = 42 // 2
{
&k = 2116
}
IF &CDU = 33 // 3
{
&k = 2117
}
IF &CDU = 49 // 4
{
&k = 2118
}
IF &CDU = 43 // 5
{
&k = 2119
}
IF &CDU = 52 // 6
{
&k = 2120
}
IF &CDU = 51 // 7
{
&k = 2121
}
IF &CDU = 50 // 8
{
&k = 2122
}
IF &CDU = 60 // 9
{
&k = 2123
}
IF &CDU = 57 // .
{
&k = 2135
}
IF &CDU = 70 // slash
{
&k = 2175
}
IF &CDU = 59 // + / -
{
&k = 2162
}
IF &CDU = 69 // DEL
{
&k = 2132
}
IF &CDU = 71 // CLR
{
&k = 2129
}
IF &CDU = 68 // SP
{
&k = 2176
}
IF &CDU = 28 // A
{
&k = 2124
}
IF &CDU = 29 // B
{
&k = 2125
}
IF &CDU = 30 // C
{
&k = 2127
}
IF &CDU = 31 // D
{
&k = 2131
}
IF &CDU = 32 // E
{
&k = 2136
}
IF &CDU = 36 // F
{
&k = 2138
}
IF &CDU = 37 // G
{
&k = 2140
}
IF &CDU = 38 // H
{
&k = 2141
}
IF &CDU = 39 // I
{
&k = 2143
}
IF &CDU = 40 // J
{
&k = 2145
}
IF &CDU = 34 // K
{
&k = 2146
}
IF &CDU = 26 // L
{
&k = 2147
}
IF &CDU = 27 // M
{
&k = 2155
}
IF &CDU = 47 // N
{
&k = 2157
}
IF &CDU = 48 // O
{
&k = 2160
}
IF &CDU = 35 // P
{
&k = 2161
}
IF &CDU = 44 // Q
{
&k = 2165
}
IF &CDU = 45 // R
{
&k = 2166
}
IF &CDU = 46 // S
{
&k = 2174
}
IF &CDU = 64 // T
{
&k = 2177
}
IF &CDU = 53 // U
{
&k = 2178
}
IF &CDU = 54 // V
{
&k = 2179
}
IF &CDU = 55 // W
{
&k = 2180
}
IF &CDU = 63 // X
{
&k = 2181
}
IF &CDU = 72 // Y
{
&k = 2182
}
IF &CDU = 61 // Z
{
&k = 2183
}
IF &CDU = 1 // Linea 1L
{
&k = 2148
}
IF &CDU = 2 // Linea 2L
{
&k = 2149
}
IF &CDU = 3 // Linea 3L
{
&k = 2150
}
IF &CDU = 4 // Linea 4L
{
&k = 2151
}
IF &CDU = 5 // Linea 5L
{
&k = 2152
}
IF &CDU = 6 // Linea 6L
{
&k = 2153
}
IF &CDU = 9 // Linea 1R
{
&k = 2167
}
IF &CDU = 10 // Linea 2R
{
&k = 2168
}
IF &CDU = 11 // Linea 3R
{
&k = 2169
}
IF &CDU = 12 // Linea 4R
{
&k = 2170
}
IF &CDU = 13 // Linea 5R
{
&k = 2171
}
IF &CDU = 14 // Linea 6R
{
&k = 2172
}
}

Var 1999, name k, static
{
&CDU = 0
&k = DELAY 0 ,40
}

Var 1377, name CDU_EXEC_led, static, Link IOCARD_OUT, Device 13, Output 2 // CDU EXEC green led

Var 1381, name CDU_FAIL_led, static, Link IOCARD_OUT, Device 13, Output 4 // CDU FAIL red led

Var 1383, name CDU_MSG_led, static, Link IOCARD_OUT, Device 13, Output 1 // CDU MSG amber led

Var 1385, name CDU_OFST_led, static, Link IOCARD_OUT, Device 13, Output 0 // CDU OFST amber led

Var 1379, name CDU_CALL_led, static, Link IOCARD_OUT, Device 13, Output 3 // CDU CALL red led

Var 1012, name CDU_leds, Link IOCP, Offset 57
{
&CDU_EXEC_led = TESTBIT &CDU_leds ,0 // EXEC LED
&CDU_MSG_led = TESTBIT &CDU_leds ,1 // MSG LED
&CDU_FAIL_led = TESTBIT &CDU_leds ,2 // FAIL LED
&CDU_OFST_led = TESTBIT &CDU_leds ,3 // OFST LED
&CDU_CALL_led = TESTBIT &CDU_leds ,4 // CALL LED
}
P3D, Seven 64,ASUS-MAXIMUS-VI-HERO, i7-4770K - 4.2 GHz, NH-U12P SE2, 8 Go ram DDR3, Gigabyte GTX 770 4 Go OC,
Goflight, Cp flight, Saitek
Image
Orphee
Posts: 3
Joined: Fri Jul 03, 2015 12:00 pm

Re: OCP4NGX crash on P3D v2.5

Post by Orphee »

I just updated information,

the dmp file is available here : https://drive.google.com/file/d/0B5-7zR ... sp=sharing
P3D, Seven 64,ASUS-MAXIMUS-VI-HERO, i7-4770K - 4.2 GHz, NH-U12P SE2, 8 Go ram DDR3, Gigabyte GTX 770 4 Go OC,
Goflight, Cp flight, Saitek
Image
mvr1918
Site Admin
Posts: 1703
Joined: Thu Aug 30, 2012 3:35 pm

Re: OCP4NGX crash on P3D v2.5

Post by mvr1918 »

Problem is solved. User needed to change to a script that supported the FMC V2 module.

The FMC V2 needs USBKEYS command vs FMC V3 that needs a IOCARD_KEYS command in the script

Var 0146, name CDU1, Link USB_KEYS, Device 13
vs
Var 0146, name CDU1, Link IOCARD_KEYS, Device 13

In addition, as it was plugnfly model and not a Opencockpit model,
he had to make Key button modification.
Orphee
Posts: 3
Joined: Fri Jul 03, 2015 12:00 pm

Re: OCP4NGX crash on P3D v2.5(SOLVED)

Post by Orphee »

Yes,

and i thank you for your help!
P3D, Seven 64,ASUS-MAXIMUS-VI-HERO, i7-4770K - 4.2 GHz, NH-U12P SE2, 8 Go ram DDR3, Gigabyte GTX 770 4 Go OC,
Goflight, Cp flight, Saitek
Image
mvr1918
Site Admin
Posts: 1703
Joined: Thu Aug 30, 2012 3:35 pm

Re: OCP4NGX crash on P3D v2.5(SOLVED)

Post by mvr1918 »

Solved
Post Reply