grappigegovert Posted January 26, 2014 Share Posted January 26, 2014 (edited) GHB Recorder It records ghost paths! The only thing is, it saves as TXT file, not (yet) as GHB file. So you'll have to copy the contents into 's binary editor. The readme file in the archive explains how to record a ghost path. (in short: F2 starts/stops recording) Many thanks to RobExplorien for explaining the GHB format. Download: https://www.rockraidersunited.com/files/dl-r18/ Changelog: v1.2 Actual time is now correctly saved Recording will stop automatically upon finishing the race (don't press F2 after finishing, or it will start a new recording, overwriting the previous one.) v1.1 Fixed rotation for 2001 version v1.0 Initial release Edited April 1, 2022 by Slimy Slug Fixed image embed and download link Car CrazeXVI, Jack Bluebeard, RobExplorien and 8 others 11 Link to comment Share on other sites More sharing options...
Jimbob Posted January 26, 2014 Share Posted January 26, 2014 *Round of applause* This is excellent, thank you for making this tool! The past two days have been awesome for RRU. I can't remember if the GHB files are formatted differently from NPC racer paths, but even if not, could similar programming not be applied to make a recorder for AI paths? Simply jot down the location of the player every so often, and speed could be post-edited or perhaps equated with an algorithm. Link to comment Share on other sites More sharing options...
grappigegovert Posted January 26, 2014 Author Share Posted January 26, 2014 AI paths use a different stucture which isn't completely clear yet, but I intend to make a recorder for AI paths aswell when the format gets cracked. alan and Fluffy Cupcake 2 Link to comment Share on other sites More sharing options...
lol username Posted January 26, 2014 Share Posted January 26, 2014 I'd really love to edit NPC paths as well once everything's figured out. LR1 is just too easy for me now. Link to comment Share on other sites More sharing options...
Jimbob Posted January 26, 2014 Share Posted January 26, 2014 I thought AI paths were cracked? There are mods such as AcceleRacers which have changed them, it's just that it's a laborious process. Link to comment Share on other sites More sharing options...
Car CrazeXVI Posted January 26, 2014 Share Posted January 26, 2014 I've been waiting for this to happen. Good job! Now we just need a tool that can properly accelerate/decelerate the NPCs... In the meantime, I'm going to see if I can get a twenty-something second lap time on Maga Moon Marathon again. Link to comment Share on other sites More sharing options...
RobExplorien Posted January 26, 2014 Share Posted January 26, 2014 Amazing! If I may ask, how'd you figure out rotation? Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted January 26, 2014 Share Posted January 26, 2014 Yes! So much yes! If only we had this before the tournament, then all the top record ghosts could of been saved (if people would be bothered to record almost every time). Now for AI as others have been saying. Link to comment Share on other sites More sharing options...
Car CrazeXVI Posted January 26, 2014 Share Posted January 26, 2014 [...] how'd you figure out rotation? Wait, this can record rotation? Why isn't it recording mine? : I blame Win8. Racers never worked right on it. Link to comment Share on other sites More sharing options...
RobExplorien Posted January 26, 2014 Share Posted January 26, 2014 [...] how'd you figure out rotation? Wait, this can record rotation? Why isn't it recording mine? : I blame Win8. Racers never worked right on it. It doesn't? Well, my bad. I didn't test it, I assumed it would. grappigegovert figured out converting the player coördinates to the (calling it) .GHB format and rotation was the other issue still to be figured out. It isn't Windows 8 then. Link to comment Share on other sites More sharing options...
grappigegovert Posted January 26, 2014 Author Share Posted January 26, 2014 Hmm, the rotation should work... I guess I was too excited I finally got the rotation working and missed something. The rotation took a long time to figure out. It's essentially quaternions but stored as an unsigned 8 bit fixed point value. I asked a friend of mine who is good at maths to convert the rotation from the vector pair to quaternions, and he almost got it when I noticed the quaternions are also stored in memory. I'll see if I can fix the rotation, but that will be tomorrow then. Jimbob 1 Link to comment Share on other sites More sharing options...
grappigegovert Posted January 26, 2014 Author Share Posted January 26, 2014 I actually had to go to sleep but I couldn't resist the urge to fix the rotation. Turns out the 2001 version stores the quaternions in a different memory address. (I'd only tested the 1999 version) I've uploaded a new version which fixes that problem. I've also noticed that the time to beat is independent of the path and is not saved correctly. I guess the time is saved in the first three integers of the GHB file somehow, but I have to figure out how exactly, so untill I fix that, the time to beat is always the standard time of IGP. O.T. Sorry for double-posting le717, Fluffy Cupcake and Jimbob 3 Link to comment Share on other sites More sharing options...
Jimbob Posted January 26, 2014 Share Posted January 26, 2014 O.T. Sorry for double-posting There's no need to apologise, you made a post that more than contributed to the topic, seeing as you so quickly fixed a bug. Looking forward to the times being fixed too. Link to comment Share on other sites More sharing options...
Creator Posted January 27, 2014 Share Posted January 27, 2014 This is so epic, I almost fell from my chair when I saw this. Awesome! *_* Can't wait for the version that can record RRB. Keep up the good work! Link to comment Share on other sites More sharing options...
grappigegovert Posted January 28, 2014 Author Share Posted January 28, 2014 Updated again Recordings will now include the time and will stop automatically when finished. Link to comment Share on other sites More sharing options...
dead_name Posted January 28, 2014 Share Posted January 28, 2014 grappigegovert, drop me a PM/email (preferably email but whatever - it's on my website which is on my profile) and I'll help you integrate my LR1 library code - this means you'll be able to save directly to GHB. le717 and grappigegovert 2 Link to comment Share on other sites More sharing options...
Creator Posted March 2, 2014 Share Posted March 2, 2014 Ok... this may be a bit too late, but... it doesn't work for me. The window does not display the "STATUS: Waiting for Lego Racers to start" bit, and it crashes/freezes when I launch the game. I pray to all known Gods this won't happen with the RRB recorder EDIT Did some further testing. On my laptop, the program doesn't freeze, and it does display the STATUS correctly , but it starts opening a new pop-up window every second and keeps flooding my screen with them as soon as I start LR. It claims that I'm using an "Unknown version of LEGO Racers exe". My version is the regular 1999 build, though. As for technical side, my main machine runs on Windows 7, 64 bit, whereas my Laptop uses the 32-bit version. Link to comment Share on other sites More sharing options...
grappigegovert Posted March 3, 2014 Author Share Posted March 3, 2014 Oops, I'm sorry for the window spamming, I hoped that nobody would get that error. Could you send me a copy of your LEGORacers.exe, so I can take a look at it (and fix the error)? Link to comment Share on other sites More sharing options...
ReflectedMantis Posted November 14, 2016 Share Posted November 14, 2016 I have not been able to get this to work.. but it will not detect that my game is even running. I tried this on 2 computers. I choose the directory, started the game, started a race, and pressed F2, but it will not record my path. It just keeps saying "Waiting for lego racers to start". What could I be doing wrong? Link to comment Share on other sites More sharing options...
grappigegovert Posted November 14, 2016 Author Share Posted November 14, 2016 Try running the recorder as administrator (right click->run as administrator). It should detect the game as soon as you launch it. Link to comment Share on other sites More sharing options...
ReflectedMantis Posted November 17, 2016 Share Posted November 17, 2016 I got it to work, thanks to you. I wonder why I didn't think of that myself, though. This worked perfectly for me. And now I can't beat the time trial on imperial grand prix (even though it's mine ) Link to comment Share on other sites More sharing options...
Recommended Posts