|
RomRaider
Documentation
Community
Developers
|
| Author |
Message |
|
dschultz
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Wed Sep 12, 2012 9:37 am |
|
 |
| RomRaider Developer |
Joined: Wed May 20, 2009 9:49 pm Posts: 7314 Location: Canada eh!
|
NSFW wrote: Edit one line, click "generate," done.
It's not about saving CPU time, it's about saving people time.
It'll take work to write the DB-to-XML dumper, but I expect that it'll be well worth the time that it saves. I concur. For the logger.xml def I can now produce six versions (two languages and three preferred units of measure) in the "click" of a button and it takes about 15 seconds. I can guarantee that all six versions are accurate too as they all came from the same source.
|
|
| Top |
|
 |
|
Merp
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Wed Sep 12, 2012 1:11 pm |
|
 |
| Experienced |
 |
Joined: Thu Jul 23, 2009 1:46 pm Posts: 863
|
NSFW wrote: Merp wrote: It may only require a one line edit for a table change, but that's only telling half the story. It still has to [...] Sure there's lots more that needs to happen after the one-line-edit, but the rest of that work can be automated. Edit one line, click "generate," done. It's not about saving CPU time, it's about saving people time. It'll take work to write the DB-to-XML dumper, but I expect that it'll be well worth the time that it saves. An XML to XML editor accomplishes the same things with an equally information rich dataset and less complexity. (after switching to proper scaling.xml and a separate language file)
_________________ Please do not send me support questions via PM, use the forum instead!
|
|
| Top |
|
 |
|
nsfw
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Fri Sep 14, 2012 4:35 am |
|
 |
| Moderator |
Joined: Wed Nov 22, 2006 10:23 pm Posts: 2565
|
Merp wrote: An XML to XML editor accomplishes the same things with an equally information rich dataset and less complexity. (after switching to proper scaling.xml and a separate language file) You could also call this "normalization."  If we all agree that the data currently in ecu_defs.xml needs to be normalized, that's a step in the right direction... And given that we'd rather be dealing with normalized data, I think it makes sense to manage it using a tool that was designed from the ground up to make it as easy as possible to manage normalized data. And a SQL database is such a tool. No need for arguments about it though... If there's a way to generate XML from the database, and read XML into the database, then everybody's happy. It just hit me that if we can agree on how the information in each XML file should be ordered (decide on primary keys and sort by them, basically), then we can easily examine changes using diff tools. So, XML files on github might be a totally reasonable way to manage changes.
_________________ 2005 Legacy GT w/ ATP 3076, IWG, MBC, BCS, BC 272, LC, FFS, OMG Please don't send questions via PM. Post a thread and send me a link to it instead. Thanks!
|
|
| Top |
|
 |
|
dschultz
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Fri Sep 14, 2012 9:56 am |
|
 |
| RomRaider Developer |
Joined: Wed May 20, 2009 9:49 pm Posts: 7314 Location: Canada eh!
|
NSFW wrote: Merp wrote: An XML to XML editor accomplishes the same things with an equally information rich dataset and less complexity. (after switching to proper scaling.xml and a separate language file) You could also call this "normalization."  In a way the EcuFlash defs are more normalized as they use separate scalings, where the RomRaider def uses a scaling per table so there is much repetition in scaling definition in it. NSFW wrote: It just hit me that if we can agree on how the information in each XML file should be ordered (decide on primary keys and sort by them, basically), then we can easily examine changes using diff tools. So, XML files on github might be a totally reasonable way to manage changes. You mean view the changes to files, management will still be done elsewhere like in a database as you mention as to keep the information normalized and easier to update than touching every XML file you wish to add/change a table in (such as adding a Fuel Pump Duty table in to correct location in the XML file for every ECU defined). BTW: the 16BITBASE & 32BITBASE effectively define the view which makes comparison easy if it is always followed. I plan on putting an ID tag on all tables so this will help order them as well.
|
|
| Top |
|
 |
|
Fearless
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Fri Oct 05, 2012 6:30 am |
|
 |
| Experienced |
 |
Joined: Thu Apr 19, 2012 3:44 am Posts: 385
|
|
| Top |
|
 |
|
Merp
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Sun Oct 07, 2012 12:29 am |
|
 |
| Experienced |
 |
Joined: Thu Jul 23, 2009 1:46 pm Posts: 863
|
|
Awesome.
For anyone interested, my PerRomXML branch of RomRaider also has some test code for GitHub integration.
Currently, it is incomplete (no settings UI) but mostly functional. Right now it has the ability to clone the repo and check the current head of a GitHub branch and compare it to the local repo. If it doesn't match, it can automatically update to the latest commit.
_________________ Please do not send me support questions via PM, use the forum instead!
|
|
| Top |
|
 |
|
nsfw
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Tue Oct 09, 2012 4:35 am |
|
 |
| Moderator |
Joined: Wed Nov 22, 2006 10:23 pm Posts: 2565
|
|
Very cool.
_________________ 2005 Legacy GT w/ ATP 3076, IWG, MBC, BCS, BC 272, LC, FFS, OMG Please don't send questions via PM. Post a thread and send me a link to it instead. Thanks!
|
|
| Top |
|
 |
|
Fearless
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Tue Oct 16, 2012 6:49 pm |
|
 |
| Experienced |
 |
Joined: Thu Apr 19, 2012 3:44 am Posts: 385
|
|
| Top |
|
 |
|
Merp
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Tue Mar 12, 2013 7:41 pm |
|
 |
| Experienced |
 |
Joined: Thu Jul 23, 2009 1:46 pm Posts: 863
|
Updated OP with more instructions and .gitconfig to run a rebase from GUI. For anyone interested, I have pushed a version of romraider to https://github.com/Merp/RomRaider/tree/ ... amlMapping that utilizes the JGit library to download/update definitions. Still very much a beta implementation, but I've done basic testing on it and it seems to be working. Its OT, but it also uses the Snakeyaml lib to export settings by object mapping to yaml instead of DOM xml output, so adding something to persistent settings is as simple as adding it to the settings class and adding javabean-compliant getter/setter methods (provided the field itself is/contains only javabean compliant class).
_________________ Please do not send me support questions via PM, use the forum instead!
|
|
| Top |
|
 |
|
td-d
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Wed Mar 13, 2013 2:07 am |
|
 |
| Moderator |
Joined: Thu May 20, 2010 4:01 am Posts: 3117 Location: Johannesburg, South Africa
|
|
Excellent, keen to test drive!
_________________ He who dies with the most gadgets wins.
Please do not PM me - use the email option.
|
|
| Top |
|
 |
|
Josh Long
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Sat Apr 13, 2013 1:14 pm |
|
 |
| Experienced |
Joined: Sun Jun 03, 2007 12:08 pm Posts: 224 Location: Gig Harbor, WA
|
|
So I cant believe I have not managed to stumble across this until now. I cant believe how much you have guys have done.
Looks like I have some reading to do!
Josh
|
|
| Top |
|
 |
|
DisoDisp
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Thu May 30, 2013 2:15 pm |
|
 |
| Newbie |
Joined: Sat Jan 21, 2012 2:06 pm Posts: 45
|
|
Hi I can't get this to work as per the instructions.
When trying to clone the Alpha definitions i get a https error, MerpMod defs work just fine.
Any ideas?
|
|
| Top |
|
 |
|
Merp
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Fri May 31, 2013 4:29 pm |
|
 |
| Experienced |
 |
Joined: Thu Jul 23, 2009 1:46 pm Posts: 863
|
|
I'm not sure what you mean. Can you post the error and clarify what you mean by MerpMod defs work?
_________________ Please do not send me support questions via PM, use the forum instead!
|
|
| Top |
|
 |
|
DisoDisp
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Thu Jun 06, 2013 2:56 pm |
|
 |
| Newbie |
Joined: Sat Jan 21, 2012 2:06 pm Posts: 45
|
|
will post when I get a chance tomorrow.
Basically, all the other defs work, but not the Alpha defs.
|
|
| Top |
|
 |
|
DisoDisp
|
Post subject: Re: Managing Experimental Definitions with Git Posted: Fri Jun 07, 2013 9:25 am |
|
 |
| Newbie |
Joined: Sat Jan 21, 2012 2:06 pm Posts: 45
|
|
Never mind, it seems to work just fine now.
|
|
| Top |
|
 |
Who is online |
Users browsing this forum: Google [Bot] and 3 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
|
|