Popular Post grappigegovert Posted August 25, 2015 Popular Post Share Posted August 25, 2015 Track editor When the BMP format was finally cracked, I wanted to make a new GDB viewer that showed textures, and using WillKirkby's LibLR1 that wasn't too hard. But why not an editor? So here is my track editor! Current features: - View GDB files (3D objects), with textures. - View and edit SKB files (Skyboxes). - View and edit PWB files (Powerups). - View RRB files (AI paths). - View the static object part of WDB files. Planned: - Edit RRB files (AI paths) - (partially) View and edit WDB files (Static/animated objects). - View and edit startup positions and checkpoints Known bugs: - Dragging bricks acts weird from certain angles - Semi-transparent textures only work in native LR bitmaps, and are not yet depth-sorted. NOTE: You need to have XNA Framework 4.0 installed, otherwise the application will crash. Download: http://www.rockraidersunited.com/files/lego-racers-1/tools/track-editor-12-r59/ Current version: v1.2.0.365 New in this version: (full changelog included in download) Spoiler +adds WDB-(static object) viewing +adds RRB viewing +adds multi-brick placing with ctrl +now includes a modified version of LibLR1 to read n64 GDBs =adds correct 120DPI scaling =fixes some minor bugs Let me know what you think! Massive thanks to WillKirkby, for making LibLR1 and the original GDB_viewer and to Sluicer for helping with both GDB and BMP file formats. Rock Monster, ProfessorBrickkeeper, Quisoves Potoo and 16 others 18 1 Link to comment Share on other sites More sharing options...
Jimbob Posted August 25, 2015 Share Posted August 25, 2015 Holy pepperoni you genius, I love you. Link to comment Share on other sites More sharing options...
Shadowblaze Posted August 25, 2015 Share Posted August 25, 2015 Wow, I thought something like this would never be done. Glad I was wrong. Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted August 25, 2015 Share Posted August 25, 2015 Haha, awesome! Thanks grappigegovert! Link to comment Share on other sites More sharing options...
supercoolguy32 Posted August 25, 2015 Share Posted August 25, 2015 great tool, now we just need a racer editer Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted August 25, 2015 Share Posted August 25, 2015 No, now all we need is an easy way to import custom models. :P Link to comment Share on other sites More sharing options...
RacerRabbit Posted August 25, 2015 Share Posted August 25, 2015 Would it eventually be possible to render custom tracks? Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted August 25, 2015 Share Posted August 25, 2015 Of course. As long as the customs are of the same file format as the original tracks. Feedback & Suggestions: First: On camera movement. When mouse lock is on, can you make it so only the four WASD keys are needed? Basically, move where you look. Secondly: When selecting an item, can you make a 'go to' button that jumps the camera to selected item? It would make getting around the map to specific points easier. Thirdly: Is it possible to make the program see indexed colors in the .bmp? So that you can see transparent backgrounds as you would in the game. This isn't a major thing. Fourthly: Can you add two keys that when held down change the speed variable of the camera movement, one to slow down and one to speed up? Perhaps use Q&E for a suggestion. Lastly (for now), can you add in a refresh button? This program will be mighty useful for track retextures, though it would be a tiny bother to have to load a different track and reload the one just to see the changes. I really can't wait for the planned features! Link to comment Share on other sites More sharing options...
Phoenyx Posted August 25, 2015 Share Posted August 25, 2015 (edited) Just from the screenshot, this actually reminds me of Toad's Tool 64 when it was first released. Keep up the good work. Edited August 25, 2015 by Phoenyx Link to comment Share on other sites More sharing options...
grappigegovert Posted August 26, 2015 Author Share Posted August 26, 2015 First: On camera movement. When mouse lock is on, can you make it so only the four WASD keys are needed? Basically, move where you look. So W and S remain the same, but S and D turn the camera instead of moving it? Will shift/space also turn the camera instead of moving it?If I add this there will also definitely be an option to switch between these new controls and the old ones. Secondly: When selecting an item, can you make a 'go to' button that jumps the camera to selected item? It would make getting around the map to specific points easier. This sounds like a neat feature, I will try to add something like this. Thirdly: Is it possible to make the program see indexed colors in the .bmp? So that you can see transparent backgrounds as you would in the game. This isn't a major thing. This is already partially in the code but I disabled it because I still need to figure out how to draw the transparent object's parts in order otherwise it ends up looking all funky when transparent objects overlap. Fourthly: Can you add two keys that when held down change the speed variable of the camera movement, one to slow down and one to speed up? Perhaps use Q&E for a suggestion. You can already scroll the mouse wheel up and down to speed up and slow down the camera. (or do you want a set of buttons to do the same?) Lastly (for now), can you add in a refresh button? This program will be mighty useful for track retextures, though it would be a tiny bother to have to load a different track and reload the one just to see the changes. I will add this in. I really can't wait for the planned features! Thanks for the feedback Xiron.I don't know when I will update the program again, because I start my new study next week, so I'll probably not work a lot on this program for a while after this week. Link to comment Share on other sites More sharing options...
ProfessorBrickkeeper Posted August 26, 2015 Share Posted August 26, 2015 (edited) Holy cow car, for this post, I do profess my love. Now, somebody just has to figure out a way to import new objects, and add that function to your editor. Edited August 26, 2015 by ProfessorBrickkeeper Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted August 26, 2015 Share Posted August 26, 2015 First: On camera movement. When mouse lock is on, can you make it so only the four WASD keys are needed? Basically, move where you look. So W and S remain the same, but S and D turn the camera instead of moving it? Will shift/space also turn the camera instead of moving it?If I add this there will also definitely be an option to switch between these new controls and the old ones. Fourthly: Can you add two keys that when held down change the speed variable of the camera movement, one to slow down and one to speed up? Perhaps use Q&E for a suggestion. You can already scroll the mouse wheel up and down to speed up and slow down the camera. (or do you want a set of buttons to do the same?) Lastly (for now), can you add in a refresh button? This program will be mighty useful for track retextures, though it would be a tiny bother to have to load a different track and reload the one just to see the changes. I will add this in. I really can't wait for the planned features! Thanks for the feedback Xiron.I don't know when I will update the program again, because I start my new study next week, so I'll probably not work a lot on this program for a while after this week. Just make it so the controls are relative to the camera instead of the world when mouse lock is on. OH. Didn't notice that. I guess that's what I get for not fully reading the controls area. To be fair it isn't really pleasant to read when it's a jumbled all together. I guess the keys aren't really needed (unless you are using a scrollless mouse). By the way, the increase speed only works if mouse lock mode is on, otherwise it doesn't. Awesome, thanks! Aw, darn them studies making everyone busy. Hey by the way, the click and drag feature breaks if the maximize window button is pressed. The collisions get off. Link to comment Share on other sites More sharing options...
ProfessorBrickkeeper Posted August 27, 2015 Share Posted August 27, 2015 Care to offer some tech support? I installed the program but get the following error whenever I try to open it. If it helps to solve the issue, I'm running the Track Editor on Windows 7, have Visual Studio 2013 and its libraries installed, and also tried launching the program and LibLR1.dll from wi thin the root LEGO Racers folder. Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Xna.Framework.Game, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553' or one of its dependencies. The system cannot find the file specified. at WindowsGame2.Program.Main<String[] args> Link to comment Share on other sites More sharing options...
grappigegovert Posted August 27, 2015 Author Share Posted August 27, 2015 Whoops sorry, you need to install the XNA framework redistributable. I should have mentioned that in the OP. Link to comment Share on other sites More sharing options...
dead_name Posted August 27, 2015 Share Posted August 27, 2015 (edited) Loving it Feature Requests:> Could you add Q/E as keybinds for camera down/up? I say add rather than replace as obviously others may prefer the existing setup.> Make the camera's aspect ratio update when you resize the window. The rendertarget changes resolution but the camera doesn't match. Bug Report:> The resolution does not update when you maximize the window.> If you maximize the window, the mouse input only works in the top-left area of the rendertarget, specifically in the area of the rendertarget's base resolution. Technical Thoughts:Textures with chromakeyed alpha - the "2C" field in the TDB denotes the color to use as a chromakey. You could check against this when loading the bitmaps and set matching pixels to be transparent, then use alpha clipping to skip rendering of those pixels while simultaneously not writing to the depth buffer, solving any ordering issues. You'd still need to do some ordering magic for the alpha blended materials. Edited August 27, 2015 by WillKirkby Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted August 27, 2015 Share Posted August 27, 2015 Although worded more simply, I already reported that bug Will. Also, I was so close to requesting the QE thing as well. Link to comment Share on other sites More sharing options...
grappigegovert Posted August 27, 2015 Author Share Posted August 27, 2015 Updated to v1.1!-fixes the two resizing bugs found by Xiron and WillKirkby-adds Q/E buttons for camera Up/Down-adds reload button/hotkey-adds partial support for transparent textures Jimbob 1 Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted August 28, 2015 Share Posted August 28, 2015 Awesome you got an update out before the end of the week. Here's hoping for one more. =P Link to comment Share on other sites More sharing options...
dead_name Posted August 28, 2015 Share Posted August 28, 2015 Also, nice easter egg in the About window grappigegovert 1 Link to comment Share on other sites More sharing options...
Sluicer Posted August 29, 2015 Share Posted August 29, 2015 Would it eventually be possible to render custom tracks? Of course. As long as the customs are of the same file format as the original tracks. I can confirm that. Really promising tool! Thanks for sharing. LimeKiller, ProfessorBrickkeeper, Fluffy Cupcake and 4 others 6 1 Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted August 29, 2015 Share Posted August 29, 2015 A custom in the viewer already? Awesome! Link to comment Share on other sites More sharing options...
MrElephant Posted October 14, 2015 Share Posted October 14, 2015 Are we able to edit ai paths at all yet? Jack0_Parrot 1 Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted October 15, 2015 Share Posted October 15, 2015 No post, or OP updates, so no. Link to comment Share on other sites More sharing options...
Tim5corpion Posted December 2, 2016 Share Posted December 2, 2016 Hi. I was trying to use this utility to view tracks, but everytime I try to open a model, I get an error for an "unhandled exception" containing "System.Exception: Invalid data. Expected Float, got 16. at LibLR1.IO.LRBinaryReader.Expect(Token p_expected)" If there is anyone who can try and help me with this (and not yell at me for necroposting), I'd appreciate it. Link to comment Share on other sites More sharing options...
ReflectedMantis Posted December 2, 2016 Share Posted December 2, 2016 The only thing I can suggest is running it as administrator. if that doesn't work, then I don't know what to say. Link to comment Share on other sites More sharing options...
Recommended Posts