Frederic_320 Posted June 30, 2017 Report Posted June 30, 2017 (edited) Hello, Compiled lua files give me an error "Bad header in precompiled chunk" with P3D4 and FSUIPC 5.103. Source LUA files are OK. Everything was OK with P3D3 and FSUIPC4 : both sources and compiled files were executed. I tried x86 and x64 versions of luac53, no change, still the same error. Any idea on how to execute compiled lua scripts in P3D4 is welcome, thanks in advance and sorry for my English ... Regards, Frederic Edited June 30, 2017 by Frederic_320
Pete Dowson Posted June 30, 2017 Report Posted June 30, 2017 49 minutes ago, Frederic_320 said: Compiled lua files give me an error "Bad header in precompiled chunk" with P3D4 and FSUIPC5. Source LUA files are OK. Everything was OK with P3D3 and FSUIPC4 : both sources and compiled files were executed. I tried x86 and x64 luac53, no change, still the same error. Well, nothing is different in the Lua interpreter and loader side -- EXCEPT of course that it's recompiled into 64-bit, of course (else it cannot run within P3D4). I would guess that your compiled Lua isn't 64-bit compatible. In fact that seems quite likely as I would assume they include compiled machine level code. See if there's a 64-bit version of the compiler. Pete
Frederic_320 Posted July 1, 2017 Author Report Posted July 1, 2017 Thanks Pete for your response. The compiler used is luac 5.3 x64, I thought it was compiling in 64 bit, but perhaps it's only a 64 bit luac.exe which creates 32 bits byte code. I didn't find any documentation to confirm, but I'll investigate further. If you have any idea on how to compile 64-bit compatible lua on a Windows platform, please let me know. Regards, Frederic
Pete Dowson Posted July 1, 2017 Report Posted July 1, 2017 1 hour ago, Frederic_320 said: If you have any idea on how to compile 64-bit compatible lua on a Windows platform, please let me know. Certainly, if I find anything relevant. It might instead be the use of a 5.3 version compiler. FSUIPC's Lua system is frozen at 5.1. With the amount of source changes I needed to weld it into FSUIPC's multi-thread plug-in system, I'm not about to update it. Can you find a 5.1 x64 compiler? Pete
Frederic_320 Posted July 1, 2017 Author Report Posted July 1, 2017 Just tried LUA 5.1.5 x64 compiler and it works fine :-) Many thanks Pete for your support, I was needed it to update LAAP script (Live ATC Auto Play). If you have some time here is a demonstration made by Fs-Pilots.com : And if you enjoy, I'll be happy to send you a full version ! Thanks one more time, Regards, Frederic
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now