Register - Login
Views: 87822516
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - JCS - Stats - Latest Posts - Color Chart - Smilies
12-14-17 09:24:49 AM

Jul - Game Research/Hacking/Modding - Python script to easily visualise difference between two files New poll - New thread - New reply
Next newer thread | Next older thread
rubber_chicken
Random nobody
Level: 6


Posts: 9/9
EXP: 796
For next: 111

Since: 07-28-15


Since last post: 170 days
Last activity: 170 days

Posted on 06-27-17 08:08:21 AM (last edited by rubber_chicken at 06-27-17 08:09:07 AM) Link | Quote
Hello,

I've just written a very simple Python3 script to help visualize where the differences between two files are scattered.

The script compare.py will take two file in input and will produce an image showing where are the difference. One pixel equals to one byte.

There's still some bugs and missing features. This will be fixed in the future. Feel free to patch it.

The code is available here :
http://tinyurl.com/y98zamsx

Here's a list of images produced.

Differences between "[BIOS] Nintendo Game Boy Boot ROM (World).gb" and "[BIOS] Nintendo Game Boy Boot ROM (World) (Rev 1).gb"
https://i.imgur.com/QbvG2rd.png

Differences between "Donald Duck - Goin' Quackers (USA) (En,Fr,De,Es,It).gbc" "Donald Duck - Quack Attack (Europe) (En,Fr,De,Es,It).gbc"
https://i.imgur.com/ftghz6c.png

Differences between "Super Mario Bros. 2 (USA).nes" "Super Mario Bros. 2 (USA) (Rev A).nes"
https://i.imgur.com/3gogatY.png

Differences between "Super Mario World (Europe).sfc" "Super Mario World (Europe) (Rev 1).sfc"
https://i.imgur.com/ss7xhy9.png

Differences between "ToeJam & Earl (World).md" "ToeJam & Earl (World) (Rev A).md"
https://i.imgur.com/gy66GYb.png
Next newer thread | Next older thread
Jul - Game Research/Hacking/Modding - Python script to easily visualise difference between two files New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 2f1bc75 [2017-08-27]
©2000-2017 Acmlm, Xkeeper, Inuyasha, et al.

26 database queries.
Query execution time: 0.147858 seconds
Script execution time: 0.004123 seconds
Total render time: 0.151981 seconds