Marshall Whitlock Posted January 19, 2021 at 06:51 AM Posted January 19, 2021 at 06:51 AM (edited) Hey guys, I'm having issues troubleshooting my vPilot client when it comes to model matching. Sorry if this has been posted before but I have searched for my specific problem and wasn't able to find it. I downloaded and installed the vPilot rules re: the installation instructions. https://flightsim.to/file/1632/msfs-vpilot-modelmatching I also installed this liveries Megapack https://msfsaddons.com/2020/11/28/msfs-liveries-mega-pack-version-x/ The problem is out of 10, I maybe only see 1 plane with a livery. The rest are the Generic Asobo Twin Engine model with the baby blue tail. This is even happening with plane that I can see on SimAware that are A320s When I use the command .aircraft I can see that the majority of rules that vPilot is using are N/A and not, the BritishAvGeek rules. I was under the assumption that these rules take most twin engine jetliners and convert them to an A320 and then give them the appropriate livery, am I wrong? EDIT: I should not that the aircraft models I am seeing in .aircraft are planes that should be recognized e.g. B738, A319, etc Edited January 19, 2021 at 08:02 AM by Marshall Whitlock Link to comment Share on other sites More sharing options...
Ross Carlson Posted January 19, 2021 at 02:44 PM Posted January 19, 2021 at 02:44 PM Did you get any red error messages in the vPilot window? Can you send me the vmr file that you have loaded? Also, take a screenshot of the vPilot aircraft window showing an aircraft that is using the generic Asobo model when it should be using one of the rules from the VMR file. I can then look through the file to see if I can determine why it didn't use the model from the VMR file rule. Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
David Louis Posted January 31, 2021 at 11:24 PM Posted January 31, 2021 at 11:24 PM (edited) Hello, Is it possible that the variable used to handle ModelName is too small ? It seems that rules with a long model name (around 20+ characters) are all set to AutoGenerated example : <ModelMatchRule CallsignPrefix="DAL" TypeCode="A320" ModelName="Airbus A320 Neo Delta" /> is working : match to the ruleset and display the "Airbus A320 Neo Delta" model <ModelMatchRule CallsignPrefix="BAW" TypeCode="A320" ModelName="Airbus A320 Neo British Airways" /> is not working : rule Set is AutoGenerated and display a generic model , no error message after renaming the livery model from title ="Airbus A320 Neo British Airways" to title = "Airbus A320 Neo BA" : <ModelMatchRule CallsignPrefix="BAW" TypeCode="A320" ModelName="Airbus A320 Neo BA" /> is working : match to the ruleset and display the "Airbus A320 Neo BA" model Edited January 31, 2021 at 11:26 PM by David Louis typo Link to comment Share on other sites More sharing options...
Ross Carlson Posted February 1, 2021 at 01:01 AM Posted February 1, 2021 at 01:01 AM Do you get any red errors when it tries to add an aircraft using the longer model title? Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
David Louis Posted February 1, 2021 at 03:11 AM Posted February 1, 2021 at 03:11 AM Negative. It seems to skip the rule and apply AutoGenerated without returning any red error Link to comment Share on other sites More sharing options...
Ross Carlson Posted February 1, 2021 at 03:41 AM Posted February 1, 2021 at 03:41 AM Please post the VMR file that you're using, and a screenshot of the .aircraft window showing the aircraft that is using the AutoGenerated rule instead of the one you think it should be using. Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
David Louis Posted February 1, 2021 at 10:29 AM Posted February 1, 2021 at 10:29 AM (edited) <?xml version="1.0" encoding="utf-8"?> <ModelMatchRuleSet> <ModelMatchRule CallsignPrefix="BAW" TypeCode="A320" ModelName="Airbus A320 Neo British Airways" /> <ModelMatchRule CallsignPrefix="EZY" TypeCode="A320" ModelName="Airbus A320 Neo Delta" /> </ModelMatchRuleSet> PS : I have not checked all the long named models, this is only a supposition. It could well be that something else is preventing the model to load and the simple fact to rename it unlocks the situation Edited February 1, 2021 at 10:30 AM by David Louis i know EZY is not Delta, this is just for testing ;) Link to comment Share on other sites More sharing options...
Ross Carlson Posted February 1, 2021 at 05:45 PM Posted February 1, 2021 at 05:45 PM Everything looks good there, please post the actual VMR file so I can take a closer look. Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
David Louis Posted February 1, 2021 at 08:10 PM Posted February 1, 2021 at 08:10 PM https://drive.google.com/file/d/1iAwc7lfr3duuimThm85vVEGr8h-4ZE6h/view?usp=sharing Link to comment Share on other sites More sharing options...
Ross Carlson Posted February 2, 2021 at 02:38 AM Posted February 2, 2021 at 02:38 AM I'm afraid I have no idea why that's not working. The file is working fine for me. There is no length limit. Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
Daniel Mckee Posted February 2, 2021 at 03:27 AM Posted February 2, 2021 at 03:27 AM David where did the middle screen generate from please? i.e. the screen that is titled vPilot Aircraft on which you have highlighted the BAW49E aircraft. Thank you. Link to comment Share on other sites More sharing options...
Ross Carlson Posted February 2, 2021 at 03:48 AM Posted February 2, 2021 at 03:48 AM 20 minutes ago, Daniel Mckee said: David where did the middle screen generate from please? i.e. the screen that is titled vPilot Aircraft on which you have highlighted the BAW49E aircraft. Thank you. https://vpilot.rosscarlson.dev/Documentation#dot-commands 1 Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
David Louis Posted February 2, 2021 at 08:54 AM Posted February 2, 2021 at 08:54 AM 6 hours ago, Ross Carlson said: I'm afraid I have no idea why that's not working. The file is working fine for me. There is no length limit. Thanks for taking the time ! Still something is preventing the assignment of some models and the simple fact to rename the model solved the problem, which is really odd. Link to comment Share on other sites More sharing options...
Daniel Mckee Posted February 5, 2021 at 10:59 AM Posted February 5, 2021 at 10:59 AM In some of the megapaks available there are parse or spelling errors which cannot be fixed by vPilot. In those cases as a livery is identified as not working you have to try and locate the error in the megapak file. Same thing happened in Bluebell CSL files for X-Plane which again is not an error that can be fixed by xPilot.🙂 Link to comment Share on other sites More sharing options...
Ross Carlson Posted February 5, 2021 at 11:38 AM Posted February 5, 2021 at 11:38 AM 36 minutes ago, Daniel Mckee said: In some of the megapaks available there are parse or spelling errors which cannot be fixed by vPilot. In those cases as a livery is identified as not working you have to try and locate the error in the megapak file. Same thing happened in Bluebell CSL files for X-Plane which again is not an error that can be fixed by xPilot.🙂 In those situations, though, you would get a nasty red error message when it tries to use the misspelled model name. David said he's not getting any errors. 1 Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
Nicholas Camperos Posted February 6, 2021 at 10:28 PM Posted February 6, 2021 at 10:28 PM (edited) I had actually just made a VMR file generator for MSFS which made its stuff by searching your community folder for liveries, right after finding out that it did not work at all (with the exception of like 3 airlines such as KLM for some reason.) I spent a good while trying to figure out what exactly I was doing wrong, and made a similar example to the one shown above by David, and I had no luck in figuring out what was going on. The original model matching .vmr I used from BritishAvGeek did not work either, after having it work for more than a few months now. Perhaps you could let me know if there seems to be an issue here as well in the way I made it? I can confirm I receive no errors when in sim (those MODEL NOT FOUND red ones or whatever,) and all aircraft get matched with the generic one I selected on vpilot, with the exception of a couple of random ones, such as in the case of any KLM aircraft in my test yesterday. (I could have set any KLM to a a320, 747, 787, but no other airline would do anything.) Here is the link to my file: https://drive.google.com/file/d/1K7YFB5x1Rhfm7u_NDJGRcE5GnKFQkzWp/view?usp=sharing (On a side note, I have tried to re-install vPilot and gotten no luck with that. I've considered re-installing MSFS but logic wants to tell me the sim is not the culprit for this problem. Especially since there hasn't been any updates recently to warrant this issue. I could also try to re-install all my liveries to see if that fixes anything, I'm not sure.) Edited February 6, 2021 at 10:30 PM by Nicholas Camperos Link to comment Share on other sites More sharing options...
Ross Carlson Posted February 6, 2021 at 11:51 PM Posted February 6, 2021 at 11:51 PM Nicholas, your file looks fine to me. I don't think that reinstalling vPilot or reinstalling the sim would make any difference here. So far I haven't been able to reproduce David's issue where the VMR file rules seem to be ignored and you just get either an aircraft matched from the auto-generated rules, or you just get the default model match, without any red errors. The lack of red errors suggests that the VMR file somehow isn't even taking effect. What would be really helpful is if either of you could make me a set of files that exhibits this error with the bare minimum "stuff" involved. For example, create a zip file that contains just one model folder that I can drop into my community folder, plus a VMR file that should invoke those models but isn't. Then I'll install that stuff and see if I can reproduce the problem on my end. Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
Nicholas Camperos Posted February 8, 2021 at 03:52 PM Posted February 8, 2021 at 03:52 PM Sure thing, I will see what I can do and send it over. Link to comment Share on other sites More sharing options...
Nicholas Camperos Posted February 9, 2021 at 02:11 AM Posted February 9, 2021 at 02:11 AM (edited) Here is a zip with 2 liveries (from the publicly available + free livery megapack) and a vmr file that I have tested on my end to not work. Depending on what traffic was there I did mess around with the aircraft type of callsign, but hopefully when you test it you can find an american airlines or a delta - or just change the callsign prefix and use the same model.https://drive.google.com/file/d/1Y16vsmi1NsAlTHY1pjH17rUlG8zito0N/view?usp=sharing Edited February 9, 2021 at 02:12 AM by Nicholas Camperos Link to comment Share on other sites More sharing options...
Ross Carlson Posted February 9, 2021 at 02:55 AM Posted February 9, 2021 at 02:55 AM Those files seem to work fine. (See screenshot below.) I really have no idea why they're not working for you. Silly question, but you are naming the file with a .vmr extension, right? The file I downloaded from your google drive link has a .vmr.xml extension. This is not a problem, but you do need to select "All Files" from the file selection popup when adding the VMR to the custom rules in vPilot, else the file won't appear in the list, since the list is filtered to show only .vmr files by default. I assume you know this, but I thought I would check just in case. Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
Nicholas Camperos Posted February 9, 2021 at 11:35 AM Posted February 9, 2021 at 11:35 AM (edited) Yeah I'm not sure how that .xml bit got added to the end there. I did not notice that when working with the file. I don't know if it's a hidden extension or something. It is a VMR on my end though. I have no clue why it would not work. Edited February 9, 2021 at 01:41 PM by Nicholas Camperos Link to comment Share on other sites More sharing options...
Nicholas Camperos Posted February 9, 2021 at 01:35 PM Posted February 9, 2021 at 01:35 PM is there some type of log or something I could grab to help? I'd be happy to run any tests to figure out what the issue may be. I am going to continue attempting this over the days, but seeing as you can't recreate it I fear this may be a local issue. Link to comment Share on other sites More sharing options...
Ross Carlson Posted February 9, 2021 at 02:09 PM Posted February 9, 2021 at 02:09 PM (edited) You could run vPilot in debug mode and see if there are any clues in the debug window messages. Edited February 9, 2021 at 02:09 PM by Ross Carlson Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
Nicholas Camperos Posted February 9, 2021 at 03:08 PM Posted February 9, 2021 at 03:08 PM [10:02:25.295] Model matching rule set test started [10:02:26.515] Failed to create test aircraft with model "Generic Airliner Quad Engines Asobo 04: Generic Airliner Quad Engines Asobo 01" [10:02:26.736] Failed to create test aircraft with model "Cessna Skyhawk 172SP" [10:02:26.774] Model matching rule set test stopped I observed that the "Rule Set" section switched from my test file to AutoGenerated so I would assume those two errors are some msfs issues and not related to my file. Link to comment Share on other sites More sharing options...
Nicholas Camperos Posted February 9, 2021 at 03:13 PM Posted February 9, 2021 at 03:13 PM In addition, another odd thing, here is my original model matching ruleset that had a ton of airlines and stuff. Loaded it up in a busy gatwick and found that a couple did match, but others didn't. Seeing as we now know this isn't a problem with the file itself, I guess nothing to be done about that, but I don't see why these few in specific work. Link to comment Share on other sites More sharing options...
Recommended Posts