Jump to content
dead_name

Binary File Editor

Recommended Posts

dead_name

A tool that allows low-level editing and saving of the binary-coded formats of Lego Racers.

REQUIRES .NET FRAMEWORK 4.

Version 1.4.5445.1850 (LATEST): LINK

Source code available on bitbucket

Past builds:

Version 1.4.5444.9397: LINK

Version 1.3.4779.34743: LINK

Version 1.3.4779.33571: LINK

Version 1.3.4775.41358: LINK

Version 1.2.4774.34658: LINK

Version 1.2.4774.32223: LINK

Version 1.1.4774.26914: LINK

Version 1.0.4771.38689: LINK

Version 1.0.4771.38445: LINK

Version 1.0.4771.37089: LINK

Changelog:

(28/11/2014) v1.4.5445.1850

> Line numbers margin automatically resizes, now supporting line numbers greater than 9999 :)

> Fixed the year in the copyright notice.

(27/11/2014) v1.4.5444.9397

> Massive speed improvements when loading!

> Open sourced it!

+ Added icon, finally!

(31/01/2013) v1.3.4779.34743

> Reworked localization to use US-style decimal separators even on non-US machines.

(31/01/2013) v1.3.4779.33571

> Fixed saving bug if your computer uses a comma as the decimal separator (god I hate localization bugs)

+ Added misc. keyword hints

(27/01/2013) v1.3.4775.41358

> Replaced the syntax highlighting engine with a more stable one

> Moved keyword hint database into config files

+ Added misc. keyword hints

(26/01/2013) v1.2.4774.34658 (hot-patch)

+ Added global error logger so I can debug crashes more easily

(26/01/2013) v1.2.4774.32223

+ Added syntax highlighting

+ Added line numbers

> Syntax highlighting can be disabled by adding -no-highlight as a command-line argument

> stopped really small floating-point numbers being shown in exponential form

(26/01/2013) v1.1.4774.26914

+ Added support for "Open With..."

+ Added drag-and-drop for file opening

> Fixed broken handling of escape characters in strings

(23/01/2013) v1.0.4771.38689 (hot-patch)

> fixed window title being "Form1" on startup

(23/01/2013) v1.0.4771.38445 (hot-patch)

- removed syntax highlighting for speed reasons

(23/01/2013) v1.0.4771.37089

> Initial build

+ Comments for a number of partially/fully understood formats

+ Saving gallery_254_22_254.png

Share this post


Link to post
Share on other sites
mumboking

Now this will definitely allow for more mods!

Excellent work! :D

It would be nice if it supported drag-dropping files onto it.

Share this post


Link to post
Share on other sites
dead_name

Cyrem has alerted me to a bug with saving, where I wasn't handling backslashes in strings properly. I'll patch this later (hopefully today), am spending time with the gf :)

Share this post


Link to post
Share on other sites
Mysteli

A request for future update: Add a search function (which can be activated by ctrl+f or something), if that isn't too much to ask.

Share this post


Link to post
Share on other sites
JimbobJeffers

:o

Thank you for this tool. Perhaps we can finally change the actual colours of bricks? I had a look in MENUDATAPIECEDBLPIECELO.MDB and several colours have the following (obviously with different names and values):

k_27 // Material

"ltgray"

{

k_29 // Diffuse Color

173

173

173

255

k_28 // Ambient Color

173

173

173

255

}

Would changing the values change the colour of light grey bricks in this instance? It looks like an RGB colour code to me. I can't test it out right now.

Share this post


Link to post
Share on other sites
dead_name

:o

Thank you for this tool. Perhaps we can finally change the actual colours of bricks? I had a look in MENUDATAPIECEDBLPIECELO.MDB and several colours have the following (obviously with different names and values):

k_27 // Material

"ltgray"

{

k_29 // Diffuse Color

173

173

173

255

k_28 // Ambient Color

173

173

173

255

}

Would changing the values change the colour of light grey bricks in this instance? It looks like an RGB colour code to me. I can't test it out right now.

Yup, I can confirm this does indeed change the brick colors. RGBA, values ranging from 0-255. You'll probably want to modify both LPIECELO.MDB and LPIECEHI.MDB though.

Share this post


Link to post
Share on other sites
JimbobJeffers

e342159.png

Thank you for this tool. Perhaps we can finally change the actual colours of bricks? I had a look in MENUDATAPIECEDBLPIECELO.MDB and several colours have the following (obviously with different names and values):

k_27 // Material
"ltgray"
{
k_29 // Diffuse Color
173
173
173
255
k_28 // Ambient Color
173
173
173
255
}

Would changing the values change the colour of light grey bricks in this instance? It looks like an RGB colour code to me. I can't test it out right now.

Yup, I can confirm this does indeed change the brick colors. RGBA, values ranging from 0-255. You'll probably want to modify both LPIECELO.MDB and LPIECEHI.MDB though.

SANDCASTLES.png?1318627593

Thank you, so very, very much.

EDIT: Here's a screenshot of the colours changed through those two files:

gallery_5738_269_131222.png

Share this post


Link to post
Share on other sites
dead_name

Have uploaded v1.1.

 

@Mumboking: drag-and-drop is now supported. I've also added support for "Open with..."

@Cyrem: string handling has now been fixed.

@Segatendo: no search function yet, but I will make sure it arrives in a future update.

Share this post


Link to post
Share on other sites
dead_name

v1.2 is here with syntax highlighting :D

 

EDIT: balls, broke drag-and-drop. I'll investigate in a bit.

Share this post


Link to post
Share on other sites
mumboking

v1.2 is here with syntax highlighting :D

 

EDIT: balls, broke drag-and-drop. I'll investigate in a bit.

That's not the only thing that's broken...

"LR1BinaryEditor has stopped working." whenever I click the load button.

Share this post


Link to post
Share on other sites
dead_name

v1.2 is here with syntax highlighting :D

 

EDIT: balls, broke drag-and-drop. I'll investigate in a bit.

That's not the only thing that's broken...

"LR1BinaryEditor has stopped working." whenever I click the load button.

 

I've added an error logger to the latest build of v1.2; can you download it, and send me the contents of any error log files it creates?

Share this post


Link to post
Share on other sites
mumboking

I've added an error logger to the latest build of v1.2; can you download it, and send me the contents of any error log files it creates?

Where would the log file be? I don't see one appearing.

Share this post


Link to post
Share on other sites
dead_name

I've added an error logger to the latest build of v1.2; can you download it, and send me the contents of any error log files it creates?

Where would the log file be? I don't see one appearing.

 

It'll either be in the directory that the program is, or wherever you ran it from (if you used a shortcut, for example). It'll only make them if you get the "An error of type `<blah>` has occurred with the message: <blah>" popup.

Share this post


Link to post
Share on other sites
mumboking

It'll only make them if you get the "An error of type `<blah>` has occurred with the message: <blah>" popup.

Ah, there's the problem. It just shows Windows' own "LR1BinaryEditor has stopped working" message.

Problem signature:

Problem Event Name: APPCRASH

Application Name: LR1BinaryEditor.exe

Application Version: 1.2.0.0

Application Timestamp: 51042b45

Fault Module Name: ntdll.dll

Fault Module Version: 6.1.7601.17725

Fault Module Timestamp: 4ec49b60

Exception Code: c0000005

Exception Offset: 00052cc7

OS Version: 6.1.7601.2.1.0.256.1

Locale ID: 2057

Additional Information 1: 0a9e

Additional Information 2: 0a9e372d3b4ad19135b953a78882e789

Additional Information 3: 0a9e

Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Share this post


Link to post
Share on other sites
Mysteli

Yeah, I get the same problem as mumboking when trying to open. I'll just stick with an earlier version for now.

Share this post


Link to post
Share on other sites
dead_name

.___. Damnit. Right, I'll release another build today with syntax highlighting taken out AGAIN, while I look for a more stable alternative.

Share this post


Link to post
Share on other sites
dead_name

Okay I might have found a viable alternative library for syntax highlighting. Once I've integrated it, I'll send a private build to mumboking and segatendo, and if that all goes well then I'll put it here.

Share this post


Link to post
Share on other sites
dead_name

Triple post... Sorry!

Uploaded v1.3, bringing a new syntax highlighting library and improvements to the keyword hinting system.

Share this post


Link to post
Share on other sites
Debug Mode

Would it be possible to get the source? The editor doesn't seem to play well with either Wine / .NET4.0 or Mono.

Share this post


Link to post
Share on other sites
grappigegovert

There are a lot of free .NET decompilers on the internet that you can use to view the source.

Share this post


Link to post
Share on other sites
Debug Mode
Type: System.ArgumentException
Message: Parameter is not valid.
Stack Trace:    at System.Drawing.Image.get_RawFormat()
   at System.Windows.Forms.ToolStripItem.set_ImageTransparentColor(Color value)
   at LR1BinaryEditor.MainFormScintilla.InitializeComponent()
   at LR1BinaryEditor.MainFormScintilla..ctor(String[] args)
   at LR1BinaryEditor.Program.Main(String[] args)

Share this post


Link to post
Share on other sites
Mysteli

Just thought I'd go over the file extensions that are still marked as unknown, because I haven't seen them discussed elsewhere.

 

BDB = (still unknown)

CMB = Chassises

EVB = Events

FDB = Font Database

GCB = Character Builder Parts

HZB = Hazzards

MSB = (Menu functionality? + What images to use)

PCB = Body Parts

TGB = ?!?

TIB = Timer (purpose? No idea)

TRB = ? (Although, for each track there is are files called ENVIRON, supposedly meaning environment, and MAINTRIG, which triggers some main things (like, I see "startfin" in there))

Share this post


Link to post
Share on other sites
Almogzxp

Just thought I'd go over the file extensions that are still marked as unknown, because I haven't seen them discussed elsewhere.

 

BDB = (still unknown)

CMB = Chassises

EVB = Events

FDB = Font Database

GCB = Character Builder Parts

HZB = Hazzards

MSB = (Menu functionality? + What images to use)

PCB = Body Parts

TGB = ?!?

TIB = Timer (purpose? No idea)

TRB = ? (Although, for each track there is are files called ENVIRON, supposedly meaning environment, and MAINTRIG, which triggers some main things (like, I see "startfin" in there))

I'm pretty sure that the EVB file is for the sound of every event, and not the actual script of the event.

 

EDIT:

It contains most of the race track sounds, and it connects the finish line (or the checkpoints) to it's function.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.