[Tool] File Deltas

In this forum, you can ask questions and get help with the House Party Custom Story Creator. Not for Bug Reports. See the forum below for that.
Forum rules
Forum rules
No racism, sexism, anti-semitism, brigading, doxxing, or ANY form of abusive behavior. No discussion of hacking or piracy or the buying, trading, or selling of ANY type of product or service (digital or otherwise). No advertising of any product or service (digital or otherwise, and this includes streams or any service involving 'subscribers'). No discussion of religion or politics. Do not link to other adult sites, with the exception being discussion of other adult games in Offtopic/allowed subforums; i.e. no pornography.

Do not spam, do not try to circumvent any automated tools that are part of these forums or any linking to these forums. Do not judge others based on their preferences for custom stories, their opinions, sexuality, etc., and most certainly do not bring it to the moderators.

Respect the moderators and each other and all will be well. Report any violations of the above rules. Do not violate local or international laws (including, but not limited to the laws of your country and/or the laws of the United States) while making use of these forums. The IP address of all posts are recorded to aid in enforcing these conditions.

We will use username, e-mail, AND IP bans without reservation, and mods hold the final word in such decisions.
Post Reply
e2pii
Posts: 36
Joined: Mon Aug 06, 2018 6:48 pm

[Tool] File Deltas

Post by e2pii » Sun Sep 02, 2018 11:25 am

I wrote a Javascript (HTML/CSS) tool for comparing different versions of a file. If ever you can't remember what changes you made in your latest version, or what you overwrote in the Original Story files.

It works on .story and .character files and finds changes going from the first to the second (hence deltas.) Changes get highlighted, green for additions, red for deletions, and yellow for edits. In addition, "Delta" properties are inserted (I tried to make them not spammy) with values of 'added', 'deleted', or 'edited' so searching can work.

The unchanged content is left for context.

It should detect mid-array deletion / addition / edits. It's not the fastest, go give it a few seconds after selecting your files (particularly for larger files like Madison's.) It's just HTML+Javascript+CSS and should work fine in Chrome, Firefox, and other modern web browsers.
Attachments
fileDeltaFinder.zip
(3.2 KiB) Downloaded 13 times

kenny2060
Posts: 10
Joined: Thu Aug 09, 2018 4:07 pm

Re: [Tool] File Deltas

Post by kenny2060 » Sun Sep 02, 2018 4:27 pm

Not tried it out yet, but great contribution! :D
:lol: HUFFASAURUS REX WANTS TO GET MORE HIGH! :lol:

erasmus
Posts: 601
Joined: Tue Feb 13, 2018 4:29 pm

Re: [Tool] File Deltas

Post by erasmus » Sun Sep 09, 2018 8:31 pm

Interesting, do you feel this is more useful than something like TortoiseSVN?
Erasmus
Quality Control and User Experience Director

ttant
Posts: 198
Joined: Tue Feb 13, 2018 4:49 pm

Re: [Tool] File Deltas

Post by ttant » Mon Sep 10, 2018 12:23 pm

Tools like tortoiseSVN required a source control management (such as SVN for this peculiar one) to do a diff.

In my case, i'm a huge fan of winmerge (i also use kdiff3 which might be the one integrated within tortoiseSVN).

peter980
Posts: 507
Joined: Thu Feb 15, 2018 1:50 am

Re: [Tool] File Deltas

Post by peter980 » Mon Sep 10, 2018 4:25 pm

Two tools I use:

WinMerge:
Free tool that can mass compare content of multiple files.
Downsides are that it is not longer in development and that sometimes it does not compare game JSONs well (sometimes does not detect new inserted sections correctly, leading to showing more differences then there are).

Beyond Compare:
Paid tool that can mass compare files, but compare works much better, although I prefer UI of WinMerge.

erasmus
Posts: 601
Joined: Tue Feb 13, 2018 4:29 pm

Re: [Tool] File Deltas

Post by erasmus » Mon Sep 10, 2018 6:00 pm

ttant wrote:
Mon Sep 10, 2018 12:23 pm
Tools like tortoiseSVN required a source control management (such as SVN for this peculiar one) to do a diff.

In my case, i'm a huge fan of winmerge (i also use kdiff3 which might be the one integrated within tortoiseSVN).
Yeah I think when you ONLY diff using tortoise it doesn't require a repository or any additional setup. I started right click diff-comparing two files right away, so if it is caching or storing versions for that sort of quick compare, it's behind-the-scenes and not anything I remember setting up. So it's been super easy to use and the UI is alright.
Erasmus
Quality Control and User Experience Director

Post Reply