Comparing bin files

General discussion about Train Simulator, your thoughts, questions, news and views!

Moderator: Moderators

Post Reply
User avatar
749006
Very Active Forum Member
Posts: 9863
Joined: Fri Mar 30, 2012 11:17 am
Location: England
Contact:

Comparing bin files

Post by 749006 »

What is the easiest way of comparing bin files?

I have tried copying the xml data of two similar files and pasting in to excel
But with over 4000 lines I wondered if could it be easier?

Any thoughts?

Peter
http://peter749.piwigo.com/
My Railway Pictures
User avatar
alanch
Very Active Forum Member
Posts: 4907
Joined: Mon Feb 27, 2006 6:07 pm
Location: Leeds, England
Contact:

Re: Comparing bin files

Post by alanch »

A quick search found this comparison plugin for Notepad ++ https://sourceforge.net/projects/npp-compare/ , plus plenty of online file comparison sites.

I've quite often extracted the .bin to xml and viewed side by side in a text editor (Context usually) to check for differences, but that's when I know roughly what I'm looking for - the plugin looks useful, but I haven't tried it yet.
Alan

My railway photos are now on Google + - links to the albums are in this thread http://forums.uktrainsim.com/viewtopic. ... 9&t=149558

Lots of steam and early diesels from 1959 to 1963.
User avatar
alanch
Very Active Forum Member
Posts: 4907
Joined: Mon Feb 27, 2006 6:07 pm
Location: Leeds, England
Contact:

Re: Comparing bin files

Post by alanch »

alanch wrote:A quick search found this comparison plugin for Notepad ++ https://sourceforge.net/projects/npp-compare/ , plus plenty of online file comparison sites.

I've quite often extracted the .bin to xml and viewed side by side in a text editor (Context usually) to check for differences, but that's when I know roughly what I'm looking for - the plugin looks useful, but I haven't tried it yet.
EDIT

I forgot that Context has a build in file comparison tool, so that gives you two options.
Alan

My railway photos are now on Google + - links to the albums are in this thread http://forums.uktrainsim.com/viewtopic. ... 9&t=149558

Lots of steam and early diesels from 1959 to 1963.
User avatar
mikesimpson
Very Active Forum Member
Posts: 6361
Joined: Mon Dec 03, 2001 12:00 am
Location: Southern Hemisphere Penal Colonies
Contact:

Re: Comparing bin files

Post by mikesimpson »

Notepad++ is free and has a file compare plug-in.
Ultra-Edit is a great editor and has a compare option, however it is not free. There is also ultra-compare but it is expensive.

The Notepad++ option should however be fine for the simple checking of 2 .xml files.

Mike
Mike in OZ - Author of TS-Tools & Route-Riter.
http://www.agenetools.com
I'm not arguing (just explaining why I'm right).
johnrossetti
Very Active Forum Member
Posts: 2542
Joined: Wed Mar 14, 2007 9:47 pm
Location: Same place as last time

Re: Comparing bin files

Post by johnrossetti »

a program i keep baging on about "folermatch" will compare and highlight any amount of .bin files you then click on the one you want to look at and RW_Tools will show it too, you, I have seen a program that will actually scroll the two files on a split screen, cant remember the name of it but Ill try and find it, this is what my current way of doing it looks like on two screens side by side.
bin compare.jpg
Cheers john
jalmar
Been on the forums for a while
Posts: 182
Joined: Fri Jun 12, 2009 9:41 am
Location: Vlaardingen, The Netherlands

Re: Comparing bin files

Post by jalmar »

You could try Beyond Compare, not only compares files, also directories.
Free trial, the best program for comparing.
Albert
User avatar
749006
Very Active Forum Member
Posts: 9863
Joined: Fri Mar 30, 2012 11:17 am
Location: England
Contact:

Re: Comparing bin files

Post by 749006 »

Thanks Gents,

I'm going to look at Notepad++ to try.
I already have that installed and it might help

Peter
http://peter749.piwigo.com/
My Railway Pictures
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Comparing bin files

Post by gptech »

4,000 lines is rather a lot....just which .bin files are you looking at?
User avatar
749006
Very Active Forum Member
Posts: 9863
Joined: Fri Mar 30, 2012 11:17 am
Location: England
Contact:

Re: Comparing bin files

Post by 749006 »

gptech wrote:4,000 lines is rather a lot....just which .bin files are you looking at?
I have the RSSLO 193 Vectron and a reskin in to CD Blue livery but the reskin is for the Advanced version which I don't have so I'm getting errors
Screenshot_1 - Test TraK_51.11617-6.22375_12-00-32.jpg
There is a lot of code which is not required where the section

Code: Select all

							<LocalisedControlName>
								<Localisation-cUserLocalisedString>
									<English d:type="cDeltaString"></English>
									<French d:type="cDeltaString"></French>
									<Italian d:type="cDeltaString"></Italian>
									<German d:type="cDeltaString"></German>
									<Spanish d:type="cDeltaString"></Spanish>
									<Dutch d:type="cDeltaString"></Dutch>
									<Polish d:type="cDeltaString"></Polish>
									<Russian d:type="cDeltaString"></Russian>
									<Other/>
									<Key d:type="cDeltaString"></Key>
								</Localisation-cUserLocalisedString>
							</LocalisedControlName>
is repeated many times but is not used apart from the initial section giving the loco name

Peter
http://peter749.piwigo.com/
My Railway Pictures
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Comparing bin files

Post by gptech »

749006 wrote:I have the RSSLO 193 Vectron and a reskin in to CD Blue livery but the reskin is for the Advanced version which I don't have so I'm getting errors
Can't you use the textures with the simpler model's .bin file?.... very much akin to how we'd apply an AP enable reskin to a simpler model, or just what you've been doing with the S&C class 37.

The empty bits in the .bin file are unlikely to be th cause of your woes; it's the calls for files/features you don't have that cause bother.
User avatar
749006
Very Active Forum Member
Posts: 9863
Joined: Fri Mar 30, 2012 11:17 am
Location: England
Contact:

Re: Comparing bin files

Post by 749006 »

gptech wrote:
749006 wrote:I have the RSSLO 193 Vectron and a reskin in to CD Blue livery but the reskin is for the Advanced version which I don't have so I'm getting errors
Can't you use the textures with the simpler model's .bin file?.... very much akin to how we'd apply an AP enable reskin to a simpler model, or just what you've been doing with the S&C class 37.

The empty bits in the .bin file are unlikely to be th cause of your woes; it's the calls for files/features you don't have that cause bother.
I keep trying to starts with the default loco - the Green one in the picture - and change the bin file to the new name and copy the texture files across but it still does not seem to work

Either it does not appear - just the couplings or there is no cab view or the controls don't work
And I cannot get rid of the white patches where the loco number should be on the cab roof.

Peter
http://peter749.piwigo.com/
My Railway Pictures
User avatar
749006
Very Active Forum Member
Posts: 9863
Joined: Fri Mar 30, 2012 11:17 am
Location: England
Contact:

Re: Comparing bin files

Post by 749006 »

gptech wrote:Can't you use the textures with the simpler model's .bin file?.... very much akin to how we'd apply an AP enable reskin to a simpler model, or just what you've been doing with the S&C class 37.
I took your advice and deleted the repaint.
Then I started again by just copying a default AC/DC loco and renaming that to CD 193 ELL and then copying all the files except the ELL.bin from the repaint.
I amended the ELL bin and just changed about 4 lines to read for the new name and it worked :)
Screenshot_1 - Test TraK_51.11623-6.22387_12-04-11.jpg
Pleasing when you change something and it works :)

Peter
http://peter749.piwigo.com/
My Railway Pictures
Post Reply

Return to “[TS] General Discussion”