Jump to content
Mysteli

Hardcoded Things In LEGO Racers 2 [Offsets]

Recommended Posts

Mysteli

Confused by all this? Use the tool made by RobExplorien! http://www.rockraidersunited.com/topic/6358-lr2-hex-editing-made-easier/

 

Want to change Weapon Stats, Camera View, and much more? Well then you've come to the right place!

 

Useful links for calculations:

Float Converter

Big to Little Endian Converter

 


TIME ATTACK SPEED + GRIP

Open your LEGO Racers 2.exe in a Hex editor and jump to the offset 28A2E, you should land on bytes "CC CC CC 3E" (0.4 in float), this is the value. If you didn't land on it, go to the begining of the file and search for "CC CC CC 3E", it will be the 4th result. Speed and Grip share the same bytes, and shield is not included (why would it need to be?).

 

Enjoy your uber fast car without the need of Cheat Engine (which did by the way help me finding this by telling me the value)

 

P.S. While I was messing around, I noticed one of the "CC CC CC 3E" seem to change the scale of something on the menus...

 

FIELD OF VIEW (FOV)

Offset is 4A105, the bytes being "00 00 B4 42" (90 in float), if not, search this value from the start of the file, it will be the second one in. Enjoy the change of FOV!

 

CAR BONUS STAT MULTIPLIER (ALL STATS)

(fret not, the game calculates as it loads, meaning your adventure mode speed isn't saved in your GameSave file, so the change still occurs even after being maxed upgraded. Oh btw, time trial mode has a stat applied so this affect that too. ? )

Offset is 12FA0C, the bytes being "0A D7 A3 3D" (0.08 in float), if not, search this value from the start of the file, it will be the third result in. Enjoy the new stats changes!

 

BONUS GAME TIME & GOALS

 

ANIMATED MENU BACKGROUND

 

Mystery Bytes

 

Spoiler

The "03 00 00 00" at BD2F5 seems to make everything (main menu and the landscape) disappear except for objects if the value is above 3. Strange.

 

CORKSCREW ????

(Setting the 41 to 40 or below makes the drill instantly explode)

Offset: 133BD0

29th "00 00 20 41" (10 in float)

 

 

 

 

Coming Soon

???

Amount of laps and racers set on an adventure track? (This will be tremendously hard, if impossible, as the numbers are so commonly used. It's like finding a needle in a haystack.)

 

Don't ask for gravity, that is controled by the world files, and I haven't gotten my hands dirty in weapons yet, so don't ask about that either.

 

 

 

O.T.

 

Maybe someone could program a little patcher tool [that takes input] for all the hardcoded things I find?. :3

Share this post


Link to post
Share on other sites
Shadowblaze

Good job, Xiron. :) The stat increment is quite interesting, I'm surprised you even found that out. About weapons, I'm afraid it will take a lot, but really a lot, of time. I've already found something with the Corkskrew myself, but that's not something too useful (rate and angle at which the trail texture is dropped).

Share this post


Link to post
Share on other sites
Mysteli

SPEED FOR FLAME TRAIL TO BE VISIBLE|CORKSCREW SPEED|THUNDERBALL EXPLOSION SIZE|DRILL SPEED|DRILL EXPLOSION RADIUS
Offset: 130FA0
4th "00 00 48 42" (50 in float) in file.

AMOUNT OF LAPS IN TIME TRIAL
Offset: 2878C
1st "E7 03 00 00" (999 in  hex)

POWERUP BUBBLE RESPAWN RATE

(1 seconds delay each for item disappearing and reappearing not included, so that means 2 seconds minimal)
Offset: 1339E4
28th "00 00 20 41" (10 in float)

 

CAR REAR VIEW Z CAMERA DISTANCE|CORKSCREW ROCKS LIFETIME

(-10 & 10 float are cap ranges?)
Offset: 12F3E4
18th "00 00 20 41" (10 in float)

CAR FRONT VIEW Z CAMERA DISTANCE

(this does not have a cap, although putting this as a negative value spazzes out the camera)
Offset: 131590
42nd 00 00 A0 40" (5 in float)

MINIFIGURE RUN SPEED
Offset: 130930
38th 00 00 A0 40" (5 in float)
Info: 0.1 = 1 MPH

Share this post


Link to post
Share on other sites
le717

O.T. Maybe someone could program a little patcher tool [that takes input] for all the hardcoded things I find?. :3

 

 

No.png

 

At least, I won't be. ;P

 

Neato finds anyway. :D

Share this post


Link to post
Share on other sites
Mysteli

THIS POST IS OBSOLETE, SEE A BETTER TOOL HERE

 

THE NON-HEX EDITOR WAY TO MODIFY MY FINDINGS IN THE .EXE!

*Simpler than using a hex editor
 
Alright, so for those who don't want to open a Hex editor to modify these and finds it all too confusing, I've got another way! (The program is written in Java, so it should be compatible for most of you).
 
A few things are needed:

 

  • Download Nightmare 2.0 (should be 2.7 currently) from the link above and open the program (it will be the .jar in the dist folder).
  • Once you got the program open, press the button that says "Select File" and select your LEGO Racers 2.exe you want to open (it can be a copy).
  • Afterwards press "Open Module" and find that NMM file of mine you downloaded and open it, you should be greeted with a new window editible boxes that are labeled (see section three in the image)
  • If you are changing something that is a float, follow this image to get your desired value, and use this topic as a reference for the default values and for what is float and what isn't: '>How_To.png *things that are in bytes and not in floats don't need conversion.
  •  Make sure to hit enter on your keyboard after you entered in your new value, as mentioned in image (changes won't update otherwise). Hit save, and viola!

If there was unclear instructions, I can make a video, it's not all that complicated really. In fact, this IS simpler than using a hex editor because the things are already found for you!


It's too bad the program supports decimal but not floats (yes there is a difference), otherwise I would of used that instead so you wouldn't have to do Hex conversions. The source of Nightmare IS available, so maybe one day...... eh, probably not, I couldn't program if my life depended on it.

 

 

O.T. Up next, this thing for WRL stuff!

Share this post


Link to post
Share on other sites
Shadowblaze

DRILL ???? (Setting the 41 to 40 or below makes the drill instantly explode) Offset: 133BD0 29th "00 00 20 41" (10 in float)

 

I've noticed that a lot of bytes mess with the corkscrew. Here's a list of stuff I've wrote about it a while ago. I'll paste just as it is (yes, I always write in English if possible):

1) At offset 7A630, the second byte determines the rate at which the trail texture is dropped. High numbers are buggy.
2) At offset 7A620, the fourth byte makes the trail glitch badly if set to 00.
3) At offset 7A5D0, the third byte also scrambles the trail if set to low numbers.
4) At offset 7A970, the thirteenth byte, once again, messes with the trail. Altering it seems to make the trail become much deeper (setting it to 0F makes it become almost solid black).

Not sure if it's gonna be useful in any way. :P

Share this post


Link to post
Share on other sites
Mysteli

Next batch. More likely to come in a few days. I'm going yellow titles because white IS impossible to read on mobile white, at least you have a slight chance with yellow.

 

PRE-COUNTDOWN DELAY
Offset: 12F7BC
36th "00 00 A0 40" (5 in float)

SHIELD BASE VALUE
Note: Whatever number you put it will be +1, and negative values are not accepted.
Offset: 423D4
3rd "00 00 70 41" (15 in float)

SLIZER DISC DAMAGE
Offset: 1317F8
35th "00 00 00 41" (8 in float)

IDLE TIME TILL DEMO MODE
Offset: 12F4BC
2nd "00 00 34 42" (45 in float)

RACE START BOOST TIME
Offset: 131804
43th "00 00 A0 40" (5 in float)

BRICK BOOST CAMERA DISTANCE
Offset: 131594
34th "00 00 00 41" (8 in float)

STEALTH INVISIBILITY LENGTH
Offset: 133D58
51st "00 00 40 40" (3 in float)


Also, I just found out something very sad about minifigure run speed. Just look at what happens to the brick boost meter when you increase the run speed.

 

WHY U DO THIS DEVS. >:(

y5iFzwY.gif

Share this post


Link to post
Share on other sites
Shadowblaze

This is a batch of wonderful finds, Xiron! Excellent job! :thumbsup: I finally can reduce the Stealth's duration, in battles it becomes obnoxious after a couple times you get it. It works beautifully, I was afraid it wouldn't have worked well, but fortunately I was mistaken. :D And the Slizer's damage, that's one of the best finds of yours too.

 

 

I'm going yellow titles because white IS impossible to read on mobile white, at least you have a slight chance with yellow.

 

Maybe you could tell to make the mobile version's background similar to the desktop one.

Share this post


Link to post
Share on other sites
Mysteli

Powerup Batch!
 
BLOODHOUND SPEED
Offset: 133584
19th "00 00 70 41" (15 in float)

NEMESIS WEAPON TIMER
Offset: 133838
10th "00 00 c0 40" (6 in float)
 
CORKSCREW LIFETIME
Offset: 130930
38th "00 00 A0 40" (5 in float)

WEAPON RANDOMIZING TIMER
Offset: 133498
47th "00 00 A0 40"(5 in float)

SLIZER DISC LIFETIME
Offset: 133BDC
50th "00 00 A0 40" (5 in float)


Previously Found Powerups Reposted:
(to keep a bit of organization)

POWERUP BUBBLE RESPAWN RATE
(1 seconds delay each for item disappearing and reappearing not included, so that means 2 seconds minimal)
Offset: 1339E4
28th "00 00 20 41" (10 in float)
 
SLIZER DISC DAMAGE
Offset: 1317F8
35th "00 00 00 41" (8 in float)
 
STEALTH INVISIBILITY LENGTH
Offset: 133D5C
51st "00 00 A0 40" (5 in float)


 
 


Maybe you could tell to make the mobile version's background similar to the desktop one.

Already did before you suggested it. :P

Share this post


Link to post
Share on other sites
Shadowblaze

WARNING: The four bytes that determine the Speed for Flame Trail to Be Visible as well as the Corkscrew Speed at offset 130FA0 make the game crash when loading Mars.

 

I thought it would have been useful to know in case you modified a bunch of stuff, and you didn't know which edit caused your game to crash. :)

 

Nevertheless, the other stuff works perfectly fine! Those new discoveries with powerups are amazing, Xiron, those are some of the most useful you could find! :D

Share this post


Link to post
Share on other sites
Mysteli

Wow... really, just... really? HOW MANY things are tied to that one value? :|

I'm slightly annoyed by that.

 

Edit: I just found out it crashes ONLY if you go above 50. If you go lower it does not crash.

Share this post


Link to post
Share on other sites
Mysteli

Today's Findings

 

BRICK BOOST CONSUMPTION RATE
Offset: 130930
"00 00 A0 40" (5 in float; 1 brick = 5 seconds default)

BROKEN BRICK DETERIOR RATE
(time till fade out)
Offset: 131458
"00 00 A0 40" (5 in float)
If the vehicle gets repaired that the brick came from, the brick will teleport back to vehicle.

BROKEN BRICK EXPIRY TIME
(if brick hasn't deteriorated yet, it will do so at this time)
Offset 13145C
"00 00 e0 40" (7 in float)

REAR/FRONT/RUNNING CAMERA Y VALUE (also affects distance that the water starts to fade out...)
Offset: 12F440
"00 00 40 40" (3 in float)

MENU CIRCLES GLOBAL SCALE
Offset: 12FA30
"00 00 80 3f" (1 in float)

MENU CIRCLES CIRCLE SCALE
Offset: 12FA40
"00 00 C0 3F" (1.5 in float)

MENU CIRCLES Y-OFFSET
Offset: 12FA34
"00 00 00 00" (0 in float)

 

Random Garbage:

Spoiler

MENU ROTATION SPEED/SHADOW Z SCALE/CAMERA STARTING DISTANCE/BONUS VORTEX SIZE/CAMERA-TO-CAR CHASE DISTANCE|CAMERA STARTING DISTANCE
Offset: 12FA70
"00 00 C0 3F" (1.5 in float)

RESPAWN HEIGHT| RANDOM ACCELERATING| STARTING LIGHTS GLOW OFFSET| POWERUP ICON HEARTBEAT SCALE|MORE STUFFZ
Offset: 12F8A4

"00 00 00 40"

Share this post


Link to post
Share on other sites
Shadowblaze

I'd like to point out that for the Stealth duration bytes conventional values don't work properly, and are capped to a minimum of 5 cycles. So non-decimal values below 5 (float) are still counted as 5, while (for some reason) values such as 00 00 A0 20 reduce the amount of cycles to 4, and 00 00 A0 10 to 3.

 

And, the bytes at offset 12F8A4 (which by the way I told Xiron about) when set to a value of 3 make driving a lot more fun than normal. Too bad for the messed up AI and bouncy powerup icon scale. :P

 

EDIT: The Physics Breaker doesn't seem to do anything on my game.

Share this post


Link to post
Share on other sites
Mysteli

There are several a few things already found in here, but, I found their counterparts, so I feel it would be wrong to post them separated. So enjoy the mix (already found are darker colour anyway.)

 

SHOCKWAVE CHARGE UP TIME
Offset: 133AAC
"00 00 40 40" (3 in float)

SHOCKWAVE DISCHARGE TIME
Offset: 133AB0
"00 00 80 40" (4 in float)

MENU TEXT BLINK RATE
Offset: 12F440
"00 00 40 40" (3 in float)

SPEECH BUBBLE HEIGHT
Offset: 13325C
"00 00 40 40" (3 in float)

MENU BOXES TOP HEIGHT
Offset: 1302F8
"00 00 20 40" (2.5 in float)

 

MENU BOXES LEFT-SIDE LENGTH

Offset: 13041C

"00 00 90 40" (4.5 float)

 

 

MENU BOXES RIGHT-SIDE LENGTH
Offset: 12f7e0
"00 00 A0 40" (5 float)

 

(bottom side will be edited in here in time)

NEMESIS CHARGE UP TIME
Offset: 133834
"00 00 00 40" (2 in float)

NEMESIS MID-TIME [ALREADY FOUND]
Offset: 133838
10th "00 00 c0 40" (6 in float)

NEMESIS DISCHARGE UP TIME
Offset: 13383C
"00 00 40 40" (3 in float)

STEALTH INVISIBILITY CHARGE UP LENGTH
Offset: 133D54
51st "00 00 80 3E" (0.25 in float)

STEALTH INVISIBILITY MID LENGTH [ALREADY FOUND]
Offset: 133D58
51st "00 00 40 40" (3 in float)

STEALTH INVISIBILITY DISCHARGE LENGTH
Offset: 133D5C
51st "00 00 A0 40" (5 in float)

POWERUP BUBBLE RESPAWN RATE DISCHARGE/RECHARGE
Offset: 1339E0
28th "00 00 20 41" (10 in float)

POWERUP BUBBLE RESPAWN RATE [ALREADY FOUND]
Offset: 1339E4
28th "00 00 20 41" (10 in float)
 

CORKSCREW ROCKS EXPIRY TIME
>Shared with Car Rear View Z Cam :-(
 

 

Useless finds of the day

PARTIAL TIMESCALE
Offset: 13207C
Default "00 00 80 40"

 

RENDER BREAKER
Offset: 136BAC
Default: "04 00 00 00"

 

Edit: Just got a hit on my first Thunderball offset..... tune in next time!

 


I'd like to point out that for the Stealth duration bytes conventional values don't work properly, and are capped to a minimum of 5 cycles. So non-decimal values below 5 (float) are still counted as 5, while (for some reason) values such as 00 00 A0 20 reduce the amount of cycles to 4, and 00 00 A0 10 to 3.

 

And, the bytes at offset 12F8A4 (which by the way I told Xiron about) when set to a value of 3 make driving a lot more fun than normal. Too bad for the messed up AI and bouncy powerup icon scale. :P

I just had the stealth weapon not work at all by setting all (discharge and recharge and mid) to 0. You may have been missing the charge/discharge at the time of the post which is why?

 

I didn't realize that was the one you message me; as you see during our Skype log, I told you sometime afterwards about that offset again without realizing it was the one. xD

I found it along with a bunch of other mess.

Share this post


Link to post
Share on other sites
Mysteli

More weapon stuff this time, plus some other things.

 

FLAME TRAIL DECAY
Offset: 132F14
"00 00 40 40" (3 in float)
 

NUMBER OF FLAME TRAILS THAT CAN EXIST AT ONCE (uncertain)
Offset: 132F1C
"00 00 C8 41" (100 in float)


BATTLE "GET READY" TIME
Offset: 12F438
"00 00 A0 40" (5 in float)

 

BATTLE "WINNER" TIME
Offset: 12F438
"00 00 A0 40" (5 in float)

 

NEMESIS PUSH DISTANCE + FACTOR

From how far away you can push vehicles, as well as by how much.
Offset: 133830
"00 00 F0 41" (30 in float)

 

NEMESIS VISUAL SIZE|AUDIBLE PITCH

Offset: 133844
"CD CC CC 3E" (0.4 float)

THUNDERBALL CHARGEUP TIME
Offset: 133E64
"00 00 90 40" (4.5 float)

 

THUNDERBALL EXPLOSION RADIUS/DRILL EXPLOSION RADIUS

>[shared]

 

SLIZER DISC INITIAL SPEED
Offset: 133BD4
"00 00 A0 42" (80 float)

SLIZER DISC ACCELERATION
Offset: 133BD8
"00 00 8C 42" (70 float)

BLOODHOUND LAUNCH HEIGHT
Offset: 133570
"00 00 90 40" (4.5 float)

 

MINIMAL SPEED FOR CHIPPING DAMAGE
Offset: 1315A0
"00 00 A0 41" (20 float.... 45 MPH???)

STARTING LIGHTS SPEED

The time between each beep in the light sequence.
Offset: 12F7C0
"CD CC 4C 3F" (0.8 float)

RACE STARTING BOOST - BOOST AMOUNT
Offset: 131584
"00 00 C8 41 (25 float)

CHARACTER SELECTION ZOOM
Offset: 13066C
00 00 48 42 (50 float)

MENU BOXES Y-OFFSET
Offset: 1302F8
"00 00 20 40" (2.5 float)

 

HOW MANY SELECTIONS ON MENU....? (Positioning)
Offset: 20A1B
"05 00 00 00"

 

Misc find:

STEALH VISIBILITY???????
Offset: 133D6C
"00 00 00 00" (0 float; 1 in float means fully visible)


 

Share this post


Link to post
Share on other sites
Shadowblaze

CAR REAR VIEW Z CAMERA DISTANCE|CORKSCREW ROCKS LIFETIME

 

This one also changes max SFX volume. Meh.

Share this post


Link to post
Share on other sites
Mysteli

Huh... guess I was waiting for a bigger list before posting this bit but lost interest before I did.

 

Take this!

BONUS VORTEX VISUAL SIZE
Offset: 130B98
Default "00 00 80 3F" (1 in float)

 

FAST FORWARD START DELAY
Offset: 1322DC
Default: "00 00 80 3E" (0.25 float)

 

FAST FORWARD TIMESCALE [DIALOUGE AND SPLINES ONLY]
Offset: 1332E4
Default: "00 00 40 40" (3 in float)

 

RACE FADE IN FROM BLACK TIMESCALE
Offset: 12F73C
Default: "00 00 80 3F" (1 in float)

 

RACE START BLACK SCREEN TIME
Offset: 12F7B8
Default: "00 00 00 00" (0 in float)

 

RACE START BOOST SCALE
Offset: 12F7D4
Default: "00 00 80 3F" (1 in float)

 

CAMERA-Y|SEA TIDES SPEED|MENU/HUD UPDATE RATE
Offset: 12FA14
Default: "9A 99 19 3E" (0.15 float)

 

MENU TITLES SCALE...???
(Doesn't Shrink Any More)
Offset: 12F3C4
Default: "E1 7A 84 3F" (1.035 float)

 

MINIFIGURE TO CAR Z OFFSET|SFX VOLUME...?
Offset: 12F3C8
Default: "CD CC CC 3D" (0.1 float)

 

MINIFIGURE TO CAR Y OFFSET|BRICK-BOOST X SCALE, NEMESIS X SCALE
Offset: 12F6E4
Default: ""CD CC 4C 3E" (0.2 float)


Physic's Car-Gravity-Weight-Rotation-Thing
Offset: 12F3F8
"CD CC 4C 3F" (0.8 float)
(Set up to 1.0 for some nice effects!)


WORD SPACING... BUT, CONTAINS SOMETHING GAME CRASHABLE.
Offset: 12F49C

08 00 00 00 - crashes on higher but not lower?

 

 


Notes for things to find (yes decimal/floats help, because conversions!):

Drill Damage: 7.5-8
Bloodhound Damage: 5
Thunderball: 15 damage; 4.5-5 seconds
Drill damage penalty = 5

Share this post


Link to post
Share on other sites
Mysteli

See my cheat engine hacks for that. You can lock the camera and camera angle as well as move around and rotate it all live there.

Share this post


Link to post
Share on other sites
Mysteli

Post-Race Wait Time (How long before you can skip to celebratories)
Offset: 12F72C
Default: "00 00 A0 40" (5.0 in float)


Voicebanks
Sparky: 143730

Default: "02"

 

Generic Female: 143938

Default "01"

 

Generic Male: 1439C4

Default "02"


Options:
00 = Berg
01 = Generic Female
02 = Generic Male (default)
03 = Martian
04 = Rama
05 = Sanister
06+ = Game Crash


Odd Animation Speed Thingy:
Anything but "02" freezes some animations...
Offset: 293213
Default "02 00 00 00"


Choose Car Vehicle X Position
Offset: 2B44A
Default: 00 00 20 41""

Share this post


Link to post
Share on other sites
Dudelsack
On 1/18/2015 at 10:11 AM, Xir said:

HOW MUCH OF AN UPGRADE DOES A CAR BONUS GET YOU? (ALL STATS)

(fret not, the game calculates as it loads, meaning your adventure mode speed isn't saved in your GameSave file, so the change still occurs even after being maxed upgraded)

Offset is 12FA0C, the bytes being "0A D7 A3 3D" (0.08 in float), if not, search this value from the start of the file, it will be the third result in. Enjoy the new stats changes!

 

Hi!

I don't really get what that changes. What if I e.g. double the value, does every upgrade step (engine/shield/grip) have the double impact? But I still see "1" more point in the upgrade HUD?

Share this post


Link to post
Share on other sites
Mysteli

Yes, double the value, double the impact. The hud will not change. I think I'll edit that to say "car bonus stat multiplier" as that I think sounds clearer.

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.