ziocan Posted May 22 Share Posted May 22 I am trying to load into my project a driver that I found on the net. I can add it but the tooltip and summary page say "this device's c4i is badly formed". What could cause this message? Composer logs do not help. Is this error caused by something wrong in the driver.xml, or should I rather look in the actual lua code? The driver format is c4z anyways not c4i. Thanks Rick Quote Link to comment Share on other sites More sharing options...
msgreenf Posted May 22 Share Posted May 22 Driver is junk Quote Link to comment Share on other sites More sharing options...
ziocan Posted May 22 Author Share Posted May 22 likely it is, but I would like to try and fix it. any idea on what the ambiguous error message could mean? Quote Link to comment Share on other sites More sharing options...
Popolou Posted May 22 Share Posted May 22 Could be a fault anywhere from the contents of the driver.xml to the contents of the zip container file or its layout. You could try comparing to another c4z file but that is a hugely time consuming and manual process and up to you whether it is worth the effort. Surprised nothing appears in the logs about the validation tbh. Quote Link to comment Share on other sites More sharing options...
ziocan Posted May 22 Author Share Posted May 22 nothing in logs. checked both composer logs and controller logs.... Quote Link to comment Share on other sites More sharing options...
msgreenf Posted May 22 Share Posted May 22 This is a c4i not a c4z. So not a zip. It's an old driver. Quote Link to comment Share on other sites More sharing options...
ziocan Posted May 22 Author Share Posted May 22 No, it is a c4z driver. The message is misleading to say the least... Also not old, updated 2023. I tried to convert to c4i; got the same error. All I would like to know is whether this error is XML related, or LUA related... Quote Link to comment Share on other sites More sharing options...
Popolou Posted May 22 Share Posted May 22 (edited) Deleted Edited May 22 by Popolou Quote Link to comment Share on other sites More sharing options...
msgreenf Posted May 22 Share Posted May 22 We would have no way of knowing without knowing the driver. Quote Link to comment Share on other sites More sharing options...
ziocan Posted May 22 Author Share Posted May 22 is there any way to validate a driver.xml file? other than a XML validator of course Quote Link to comment Share on other sites More sharing options...
ziocan Posted May 22 Author Share Posted May 22 I believe the error must come from driver.xml validation anyway. As I have in the past uploaded bad lua code and the driver loaded fine, then spat out LUA errors when executed... Quote Link to comment Share on other sites More sharing options...
ziocan Posted May 22 Author Share Posted May 22 stupid composer. I was trying to use "update driver". I tried removing the driver and re-adding and it worked. go figure. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.