Register - Login
Views: 95141014
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
09-18-18 11:49:16 PM

Jul - General Game/ROM Hacking - 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: 7


Posts: 9/9
EXP: 915
For next: 533

Since: 07-28-15


Since last post: 1.0 years
Last activity: 1.0 years

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 - General Game/ROM Hacking - Python script to easily visualise difference between two files New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 5d36857 [2018-03-03]
©2000-2018 Acmlm, Xkeeper, Inuyasha, et al.

26 database queries.
Query execution time: 0.158774 seconds
Script execution time: 0.004706 seconds
Total render time: 0.163480 seconds
Memory used: 524288