Editing the bins

Discussion about computers: Hardware, Problems, etc.

Editing the bins

Unread postby _o_OOOO_oo-Kanawha » Sat Feb 20, 2016 5:19 am

When editing the bin files in their xml form, one often changes the values between the > and <.

I usually remove the d:alt_encoding and d:precision values, leaving only d:type="sFloat32" and the actual value between > and <.
This way, I know where my edits have been made and don't have to worry about the values not matching up anymore.

Is there a penalty to this? I assume the BlueprintEditor2.exe puts those encoded values into the line.
What are their purpose? Is hexadecimal quicker interpreted than float by the GameManager.dll?

One cannot recreate or edit the hexadecimal by hand?

How does RW_Tools handle its editing of the encoded part of bin values?
Edwin "Kanawha"
Image
The Chessie, the train that never was ... (6000 hp Baldwin-Westinghouse steam turbine electric)
User avatar
_o_OOOO_oo-Kanawha
 
Posts: 3231
Joined: Mon Nov 14, 2011 2:12 pm

Re: Editing the bins

Unread postby harryadkins » Sat Feb 20, 2016 8:08 pm

I use RW Tools to edit .bin files. It helps me create flawless files.

Harry
User avatar
harryadkins
 
Posts: 3245
Joined: Sun Aug 23, 2009 8:01 am
Location: South Carolina, USA

Re: Editing the bins

Unread postby Chacal » Sat Feb 20, 2016 9:54 pm

These are attributes of XML data fields. It is possible that they are useless, and itis possible that some functions in TS uses them. Impossible to know. I prefer to leave them untouched.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6669
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Editing the bins

Unread postby jalsina » Sat Feb 20, 2016 10:34 pm

Intel i7-7900K (3.60 GHz) - ASUS Prime Z390A - 32 GB DDR4 RAM 2400 MHz
GPU EVGA GTX-1060 OC 6GB at 1920x1080, 144 Hz - Monitor ASUS VG-248QE
System Windows 11 Pro in WD SSD 500 GB. Games in Inland 1Tb M.2 NVMe PCIe
User avatar
jalsina
 
Posts: 2017
Joined: Sun Jul 05, 2015 8:32 pm

Re: Editing the bins

Unread postby _o_OOOO_oo-Kanawha » Sun Feb 21, 2016 2:32 am

jalsina wrote:You may want to take a look to this:
http://ftp.uktrainsim.com/viewtopic.php?f=314&t=118114&p=1455599


UKTS seems to be down at the moment. But I'll check again later.

Edit: I have checked and the consensus over there is that it is safe to delete the encoded value.

Does RW_Tools update the hex values by itself?

Edit: Yes it does, but the changes are only visible when you re-open your .bin file after you've first saved it.

So I shall continue to remove the encoded value in NotePad++ which I prefer for editing larger .xml files since you can collapse the .xml file structure.
Edwin "Kanawha"
Image
The Chessie, the train that never was ... (6000 hp Baldwin-Westinghouse steam turbine electric)
User avatar
_o_OOOO_oo-Kanawha
 
Posts: 3231
Joined: Mon Nov 14, 2011 2:12 pm

Re: Editing the bins

Unread postby Chacal » Sun Feb 21, 2016 12:23 pm

Good explanation by AndiS as usual.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6669
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada


Return to Geek Speak

Who is online

Users browsing this forum: No registered users and 5 guests

cron