|
RomRaider
Documentation
Community
Developers
|
| Author |
Message |
|
Pytrex
|
Post subject: NissanDefinitions (v1.0) Posted: Fri Apr 09, 2021 2:39 pm |
|
 |
| RomRaider Donator |
 |
Joined: Fri Jul 26, 2019 3:35 am Posts: 789 Location: United States of America
|
|
| Top |
|
 |
|
dschultz
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Fri Apr 09, 2021 5:07 pm |
|
 |
| RomRaider Developer |
Joined: Wed May 20, 2009 9:49 pm Posts: 7314 Location: Canada eh!
|
|
RomRaider does not support A2L, so you won't be able to load it in the Editor. The Editor only supports XML formatted RomRaider definitions.
|
|
| Top |
|
 |
|
a33b
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Sat Apr 10, 2021 11:09 am |
|
 |
| Experienced |
Joined: Sat Jun 24, 2017 2:23 pm Posts: 315
|
dschultz wrote: RomRaider does not support A2L, so you won't be able to load it in the Editor. The Editor only supports XML formatted RomRaider definitions. The repo is xml. He's gone to the max converting all the A2L defs into RR xml format!
|
|
| Top |
|
 |
|
bradsm87
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Sat Apr 10, 2021 8:27 pm |
|
 |
| Experienced |
Joined: Thu Apr 14, 2011 8:16 am Posts: 425
|
|
I'm confused by the files here. combine_all.bat does not reference the A2L.xml file in the folder and table_templates is missing from the folder. Am I supposed to rename A2L.xml to table_templates?
Why is there already a nissandefs.xml in the folder when it gets deleted in the combine_all.bat?
|
|
| Top |
|
 |
|
Pytrex
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Sat Apr 10, 2021 8:51 pm |
|
 |
| RomRaider Donator |
 |
Joined: Fri Jul 26, 2019 3:35 am Posts: 789 Location: United States of America
|
bradsm87 wrote: I'm confused by the files here. combine_all.bat does not reference the A2L.xml file in the folder and table_templates is missing from the folder. Am I supposed to rename A2L.xml to table_templates?
Why is there already a nissandefs.xml in the folder when it gets deleted in the combine_all.bat? Combine all works identically to how it does in A33B's repository. The only difference is that my definition base is already setup as an xml file. But there aren't any differences in our methods except for not having to convert it to an xml file if you want Notepad++ to look pretty  Just in case someone wanted to add a non-relabeled definition file to their folder, I left the majority of the old labeling at the end of the template so that it should be fully compatible with any definition base. As for why there's already a nissandefs.xml, so that you don't have to manually click combine all whenever there's an update to the repo. It's how my personal repo is designed so it's just how I have the public one setup.
_________________ NissanDefinitions Repository
Last edited by Pytrex on Fri Aug 06, 2021 12:51 am, edited 2 times in total.
|
|
| Top |
|
 |
|
bradsm87
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Sat Apr 10, 2021 9:27 pm |
|
 |
| Experienced |
Joined: Thu Apr 14, 2011 8:16 am Posts: 425
|
Pytrex wrote: bradsm87 wrote: I'm confused by the files here. combine_all.bat does not reference the A2L.xml file in the folder and table_templates is missing from the folder. Am I supposed to rename A2L.xml to table_templates?
Why is there already a nissandefs.xml in the folder when it gets deleted in the combine_all.bat? Combine all works identically to how it does in A33B's repository. The only difference is that my definition base is already setup as an xml file. But there aren't any differences in our methods except for not having to convert it to an xml file if you want Notepad++ to look pretty  Just in case someone wanted to add a non-relabeled definition file to their folder, I left the majority of the old labeling at the end of the template so that it should be fully compatible with any definition base. As for why there's already a nissandefs.xml, so that you don't have to manually click combine all whenever there's an update to the repo. It's how my personal repo is designed so it's just how I have the public one setup. Great thanks. You should prob add to the readme that the nissandefs.xml is already good to go. So what is A2L.xml used for if combine_all.bat doesn't use it?
|
|
| Top |
|
 |
|
Pytrex
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Sat Apr 10, 2021 10:02 pm |
|
 |
| RomRaider Donator |
 |
Joined: Fri Jul 26, 2019 3:35 am Posts: 789 Location: United States of America
|
bradsm87 wrote: So what is A2L.xml used for if combine_all.bat doesn't use it? Combine all will merge all .xml files and the table_templates file into one. So removing table_templates from the folder still merges all .xml files. All RomRaider cares about is having the template and the definition file in the same file, how it gets there is irrelevant. However, there might be a reason A33B didn't just label the table template file as a .xml? But everything has worked as intended by just labeling it as a .xml  Technically you could rename A2L.xml as table_templates and it would still work just fine, but I see no reason to do so when the .xml tag already works.
_________________ NissanDefinitions Repository
|
|
| Top |
|
 |
|
bradsm87
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Sat Apr 10, 2021 10:24 pm |
|
 |
| Experienced |
Joined: Thu Apr 14, 2011 8:16 am Posts: 425
|
Pytrex wrote: bradsm87 wrote: So what is A2L.xml used for if combine_all.bat doesn't use it? Combine all will merge all .xml files and the table_templates file into one. So removing table_templates from the folder still merges all .xml files. All RomRaider cares about is having the template and the definition file in the same file, how it gets there is irrelevant. However, there might be a reason A33B didn't just label the table template file as a .xml? But everything has worked as intended by just labeling it as a .xml  Technically you could rename A2L.xml as table_templates and it would still work just fine, but I see no reason to do so when the .xml tag already works. Ah yep. Makes sense. Thanks.
|
|
| Top |
|
 |
|
fenugrec
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Sun Apr 11, 2021 8:52 am |
|
 |
| Experienced |
 |
Joined: Wed Jan 08, 2014 11:07 pm Posts: 652
|
Pytrex wrote: didn't just label the table template file as a .xml? because I need to insert the contents of table_template before all the defs in the final xml; and combine_all does Code: ... for %%a in (*.xml) do type %%a >> nissandefs.tmp to insert all the ECU defs, which doesn't control the order of concatenation. So renaming to table_template.xml would usually not work as intended.
_________________ If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/ For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net
|
|
| Top |
|
 |
|
Pytrex
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Sun Apr 11, 2021 11:35 am |
|
 |
| RomRaider Donator |
 |
Joined: Fri Jul 26, 2019 3:35 am Posts: 789 Location: United States of America
|
fenugrec wrote: because I need to insert the contents of table_template before all the defs in the final xml; and combine_all does Any particular reasoning for this? Opening ROMs that were placed above the A2L.xml template inside of nissandefs still open up as intended. But that makes sense why it's not a .xml file type then. Since if it were, it wouldn't be distinguishable from the other files.
_________________ NissanDefinitions Repository
|
|
| Top |
|
 |
|
fenugrec
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Sun Apr 11, 2021 1:15 pm |
|
 |
| Experienced |
 |
Joined: Wed Jan 08, 2014 11:07 pm Posts: 652
|
Pytrex wrote: Any particular reasoning for this? I haven't touched that .bat since 2017, but I vaguely recall RR wasn't happy when the NISSAN_BASE block wasn't placed before each ECU def. If that's no longer the case, then the combine_all script could definitely be simplified and table_templates renamed to .xml
_________________ If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/ For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net
|
|
| Top |
|
 |
|
Pytrex
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Sun Apr 11, 2021 1:26 pm |
|
 |
| RomRaider Donator |
 |
Joined: Fri Jul 26, 2019 3:35 am Posts: 789 Location: United States of America
|
|
Dschultz must've touched up RR's code since then haha Speaking of which, I still have to remove the "file not found" error when you run combine all.
_________________ NissanDefinitions Repository
|
|
| Top |
|
 |
|
Pytrex
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Thu Apr 15, 2021 1:13 am |
|
 |
| RomRaider Donator |
 |
Joined: Fri Jul 26, 2019 3:35 am Posts: 789 Location: United States of America
|
|
I think I might start working on adding some maps to G35 and 350z ROM's exclusively. All G35 and 350z ROM's cross reference incredibly well with CF48D. To the point that the values are practically 1:1. So I think 350z and G35 ROMs will get some love. For other vehicles, I don't have much interest in pursuing. I might make my repo G35 and 350z exclusive, and have A33B's repo be for everything else. But (at least for now) I'll continue to allow my template to support all vehicles, but I just won't be actively focusing on non-G/Z vehicles.
However, this doesn't mean that I won't work on non-G/Z ROM's. Some non-G/Z SH7058 ROMs have actually shown to be quite easy to cross reference with CF48D. But it would probably be a case-by-case basis rather than actively pursuing them.
_________________ NissanDefinitions Repository
|
|
| Top |
|
 |
|
bradsm87
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Thu Apr 15, 2021 11:20 pm |
|
 |
| Experienced |
Joined: Thu Apr 14, 2011 8:16 am Posts: 425
|
Pytrex wrote: I think I might start working on adding some maps to G35 and 350z ROM's exclusively. All G35 and 350z ROM's cross reference incredibly well with CF48D. To the point that the values are practically 1:1. So I think 350z and G35 ROMs will get some love. For other vehicles, I don't have much interest in pursuing. I might make my repo G35 and 350z exclusive, and have A33B's repo be for everything else. But (at least for now) I'll continue to allow my template to support all vehicles, but I just won't be actively focusing on non-G/Z vehicles.
However, this doesn't mean that I won't work on non-G/Z ROM's. Some non-G/Z SH7058 ROMs have actually shown to be quite easy to cross reference with CF48D. But it would probably be a case-by-case basis rather than actively pursuing them. That's a great idea. Doubling up definition repositories is messy. Just keep the ones in there that have the extra stuff in them and we can always use the template for our own ROMS if we define some extra stuff. Great work.
|
|
| Top |
|
 |
|
Pytrex
|
Post subject: Re: Updated Nissan Definitions w/ A2L Template Posted: Fri Apr 16, 2021 1:24 am |
|
 |
| RomRaider Donator |
 |
Joined: Fri Jul 26, 2019 3:35 am Posts: 789 Location: United States of America
|
bradsm87 wrote: That's a great idea. Doubling up definition repositories is messy. Just keep the ones in there that have the extra stuff in them and we can always use the template for our own ROMS if we define some extra stuff.
Great work. Agreed. Given how I don't see myself being interested in non-Z/G ROMs in the near future, I don't see why I should keep them here. Especially because it literally wouldn't add anything for them haha Just some relabeling and that's about it. We'll see if A33B wants to pick up the non-Z/G defs for his repo so then he can continue maintaining them. He's quite a bit more experienced than I am with non-Z/G ROMs, so there isn't anyone better for it than him  Edit; Thanks to switching to Focusing on Z/G exclusive, I’ve now written a basic software that potentially can auto define the DTCs based on offset. So you enter in the first DTC address and it can automatically fill in the rest and write out the definition for you. Based off the auto-defined results, it seems to be 100% accurate for any USDM Z/G ROM, with G ROMs being a tad bit different due to different sensors, AWD, etc. But it seems that the only adjustment needed is bit extending some of the DTC templates to support them. Just checked a JDM 03 Z ROM, it actually seems that the offsets work for all market Z/G's  The only issue is that they use some different bits, so bit extension is required of course.
_________________ NissanDefinitions Repository
Last edited by Pytrex on Tue Apr 27, 2021 12:30 pm, edited 1 time in total.
|
|
| Top |
|
 |
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|