LEGO Star Wars (PC) Cheats

Lego Star Wars Cheat Codes

Unlock Characters

Enter the following codes in Dexter’s Shop.

987UYR = Battle Droid
EN11K5 = Battle Droid (Commander)
LK42U6 = Battle Droid (Geonosis)
KF999A = Battle Droid (Security)
LA811Y = Boba Fett
F8B4L6 = Clone
ER33JN = Clone (Episode III)
BHU72T = Clone (Episode III Pilot)
N3T6P8 = Clone (Episode III Swamp)
RS6E25 = Clone (Episode III Walker)
14PGMN = Count Dooku
H35TUX = Darth Maul
A32CAM = Darth Sidious
VR832U = Disguised Clone
DH382U = Droideka
SF321Y = General Grievous
19D7NB = Geonosian
ZTY392 = Grievous' Bodyguard
U63B2A = Gonk Droid
PL47NH = Jango Fett
DP55MV = Ki-Adi Hundi
CBR954 = Kit Fisto
A725X4 = Luminara
MS952L = Mace Windu (Episode III)
92UJ7D = Padme
R840JU = PK Droid
BEQ82H = Princess Leia
L54YUK = Rebel Trooper
PP43JX = Royal Guard
EUW862 = Shaak Ti
XZNR21 = Super Battle Droid

Note these codes only unlocks characters in the shop; you still need studs to buy them.

Unlock Extras

Enter these codes while in Dexter’s Shop:

NR37W1 = Silly Blasters
L449HD = Classic Blasters
IG72X4 = Big Blasters
SHRUB1 = Brushes
PUCEAT = Tea Cups
LD116B = Minikit Detector
RP924W = Moustaches
YD77GC = Purple
MS999Q = Silhouettes
4PR28U = Invincible
Submitted by balkk_raider

Unlock Episode IV

Unlock the superkit (the Tantive IV model outside Dexter’s Diner) by filling the Jedi bar while playing. This incidentally unlocks access to the mystery door.
Filling the Jedi bar is not a simple function of money, but also in grabbing all the pre-staged LEGO studs in each mission. Dying in a stage will reduce the Jedi bar (although once the bar is at maximum and pulsing, it cannot diminish).

In vehicular missions (particularly the pod race), the player needs to smash and destroy all the destructable objects to gain money. The invulnerability cheat ($1,000,000 in the shop) can help you get a full Jedi bar in most of the non-vehicular stages.

Hack – Stud Alteration

This cheat will allow you to give yourself as many studs as you want, but it may be a difficult one to follow if you don’t know much about computers. It involves editing the save game. Back-up the original files first before opening them, or you’ll be sorry you altered your FAT.

Save games can be found in your game’s installation directory under directories named lsw_0, lsw_1, etc. These correspond to the save locations available in the game. There should be two files in the directory: CODE.BIN and LSW.BIN.

CODE.BIN is only 4 bytes and that 4 bytes is one place that holds the number of studs you have. It’s a standard 4 byte integral value editable by any hex editor.

LSW.BIN is the file that keeps track of everything in the game, like levels that you’ve completed, characters you’ve bought, and all that. If you know where to look, you can give yourself all of that stuff, too. (I’ve got most of it mapped out, but it would take too long to explain here.) Also in this file, though, is the second location storing how many studs you have (why they decided it needed to be stored twice, I don’t know). Starting at byte 0x204 (with zero as the first byte) is another 4-byte integer that stores your studs. (For you non-hexadecimal speakers, that’s bytes number 516 through 519.)

Now we come to the tricky part. The last four bytes of LSW.BIN (starting at 0x210 or decimal 528) are a checksum. You must set this to a correct value or the game will tell you that the file is corrupted. Since you’ve only changed one value in the file, you don’t need to worry about how the checksum actually works. All you need to do is increase the checksum by the same amount that you increased the studs by. For example, if you had 100 studs and changed it to 1000, you would need to add 900 to the checksum.

To summarize:

1. In CODE.BIN, simply set the four bytes to the number of studs you want (encoded as a four-byte integer, of course).

2. In LSW.BIN, set bytes 0x204-0x207 to the same value that you put in CODE.BIN.

3. In LSW.BIN, find the value of the last four bytes as a 4-byte integer. Add to that value the value by which you increased your stud count. Set this new value in the last four bytes.

Alan is a web architect, stand-up comedian, and your friendly neighborhood Grammar Nazi. You can stalk him on the Interwebs via Google+, Facebook and follow his ass on Twitter @ocmodshop.