dead_name Posted January 23, 2013 Share Posted January 23, 2013 (edited) 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 [dead] Version 1.3.4775.41358: LINK [dead] Version 1.2.4774.34658: LINK [dead] Version 1.2.4774.32223: LINK [dead] Version 1.1.4774.26914: LINK [dead] Version 1.0.4771.38689: LINK [dead] Version 1.0.4771.38445: LINK [dead] Version 1.0.4771.37089: LINK [dead] 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 http://www.rockraidersunited.org/public/style_emoticons/default/gallery_254_22_254.png Edited April 1, 2022 by Slimy Slug Fixed another broken link lol username, Jack Bluebeard, Fluffy Cupcake and 11 others 14 Link to comment Share on other sites More sharing options...
mumboking Posted January 23, 2013 Share Posted January 23, 2013 Now this will definitely allow for more mods! Excellent work! It would be nice if it supported drag-dropping files onto it. Link to comment Share on other sites More sharing options...
MrElephant Posted January 23, 2013 Share Posted January 23, 2013 This looks like a great tool origamiguy! Great work Link to comment Share on other sites More sharing options...
dead_name Posted January 23, 2013 Author Share Posted January 23, 2013 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 :) Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted January 23, 2013 Share Posted January 23, 2013 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. Link to comment Share on other sites More sharing options...
Jimbob Posted January 23, 2013 Share Posted January 23, 2013 :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. Link to comment Share on other sites More sharing options...
dead_name Posted January 23, 2013 Author Share Posted January 23, 2013 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. Link to comment Share on other sites More sharing options...
Jimbob Posted January 23, 2013 Share Posted January 23, 2013 (edited) On 1/23/2013 at 6:09 PM, origamiguy said: http://www.rockraidersunited.org/public/style_emoticons/default/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. http://i0.kym-cdn.com/photos/images/newsfeed/000/185/885/SANDCASTLES.png?1318627593 Thank you, so very, very much. EDIT: Here's a screenshot of the colours changed through those two files: Spoiler Edited January 17, 2022 by Slimy Slug Fixed image Link to comment Share on other sites More sharing options...
Creator Posted January 24, 2013 Share Posted January 24, 2013 Great work! This is marvelous! Link to comment Share on other sites More sharing options...
dead_name Posted January 26, 2013 Author Share Posted January 26, 2013 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. Link to comment Share on other sites More sharing options...
dead_name Posted January 26, 2013 Author Share Posted January 26, 2013 v1.2 is here with syntax highlighting EDIT: balls, broke drag-and-drop. I'll investigate in a bit. Link to comment Share on other sites More sharing options...
mumboking Posted January 26, 2013 Share Posted January 26, 2013 v1.2 is here with syntax highlighting 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. Link to comment Share on other sites More sharing options...
dead_name Posted January 26, 2013 Author Share Posted January 26, 2013 v1.2 is here with syntax highlighting 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? Link to comment Share on other sites More sharing options...
mumboking Posted January 26, 2013 Share Posted January 26, 2013 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. Link to comment Share on other sites More sharing options...
dead_name Posted January 26, 2013 Author Share Posted January 26, 2013 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. Link to comment Share on other sites More sharing options...
mumboking Posted January 26, 2013 Share Posted January 26, 2013 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 Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted January 26, 2013 Share Posted January 26, 2013 Yeah, I get the same problem as mumboking when trying to open. I'll just stick with an earlier version for now. Link to comment Share on other sites More sharing options...
dead_name Posted January 27, 2013 Author Share Posted January 27, 2013 .___. Damnit. Right, I'll release another build today with syntax highlighting taken out AGAIN, while I look for a more stable alternative. Link to comment Share on other sites More sharing options...
dead_name Posted January 27, 2013 Author Share Posted January 27, 2013 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. Link to comment Share on other sites More sharing options...
dead_name Posted January 28, 2013 Author Share Posted January 28, 2013 Triple post... Sorry! Uploaded v1.3, bringing a new syntax highlighting library and improvements to the keyword hinting system. Link to comment Share on other sites More sharing options...
Debug Mode Posted February 23, 2014 Share Posted February 23, 2014 Would it be possible to get the source? The editor doesn't seem to play well with either Wine / .NET4.0 or Mono. Link to comment Share on other sites More sharing options...
grappigegovert Posted February 24, 2014 Share Posted February 24, 2014 There are a lot of free .NET decompilers on the internet that you can use to view the source. Link to comment Share on other sites More sharing options...
Debug Mode Posted March 6, 2014 Share Posted March 6, 2014 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) Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted July 18, 2014 Share Posted July 18, 2014 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)) Yajmo 1 Link to comment Share on other sites More sharing options...
Almogzxp Posted August 10, 2014 Share Posted August 10, 2014 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. Link to comment Share on other sites More sharing options...
Recommended Posts