Requirements:
1. Modded Xbox
2. Full copy of Battlefront II
3. Battlefront II Mod Tools for PC
3. Notepad
4. Hex Editor (Preferably Hex Workshop)
Difficulty: 6/10
If you havent figured out how to switch weapons (and I dont mean changing a chaingun for a rocket launcher) then this tutorial can help you modify the weapon of your choice or alter weapon caches for some character classes. So lets get to it.
First youll need to copy over the side you wish to edit. For this tutorial Ill be using the all.lvl (the Rebel Alliance). Just so youre not left with tons of questions on how to do this Ill be using the Stormtrooper Luke Skywalker as an example. And yes, there is a Stormtrooper Luke already on the Xbox game disc, just in case you didnt know.
Before editing the all.lvl youll first need to add Stormtrooper Luke to a level. If youve modified the mission.lvl before then you know the process. All youre really doing is replacing one of the soldiers with the line: all_hero_luke_storm. If you dont know how to edit the mission.lvl for the Xbox then refer to the following tutorial:
http://forums.xbox-s...view=getnewpost For test purposes you might want to add Stormtrooper Luke to Mos Eisley. Munge the Mission.lvl and that will be last youll need of the Munging process in this tutorial.
Next youll need to access the all.lvl, so open it up with a hex editor. Now youre going to need references for the stats and weapons, so goto the BF2_ModTools\Assets\Sides\All\Odf folder and open up the files all_hero_luke_ storm.odf and all_hero_hansolo_storm.odf. Youll need these for referential purposes.
Head back to the hex editor and goto the toolbar and click on Find; type in luke_storm. It should bring you right to where you need to be. Youll need to scroll up by approximately three clicks. The following line should be visible:
BASE....all_inf_default.TYPE....all_hero_luke_storm.
The line above indicates that Luke is a standard soldier. Now the problem with this is that the game locks up if you have award weapons on your profile for the Xbox...because Stormtrooper Luke wasnt given the proper weapon placements. Click back over to the all_hero_luke_storm odf and youll notice that Luke only has three weapons. In order for the game to work with profiles with and without award weapons well have to increase the amount of weapons in Lukes profile. Despite popular theory it is, in fact, possible to increase the size of a Side.lvl in a hex editor without the game locking up. But it requires a good deal of precision of code placement and rearrangement. Dont worry, though, the hard parts are almost over with.
Go back into the hex editor and click on the toolbar and highlight Find. Youll need to search up Hansolo_Storm and copy over some attributes. First thing first, scroll up by approximately three clicks until you see the line:
BASE....com_hero_default....TYPE....all_hero_hansolo_storm..
As indicated, Han Solo as a Stormtrooper is labeled as a hero. Thus he has default hero stats. Well need this to indicate Luke as a hero as well.
*This is a very important step*
Drag the mouse from the beginning of the word BASE all the way to the last four periods after com_hero_default. Dont select anything else but what was indicated. Now select copy from the toolbar menu and head back to the toolbar and click on Find. Do another search for luke_storm. If it says it cant find it then repeat the search until it does find the line. Once youre back at the section with Luke, youll need to scroll up to the line:
BASE....all_inf_default.TYPE....all_hero_luke_storm.
*Very important step*
Youll notice that Lukes line is shorter. Now if you manually edit this line it will screw up Lukes data and he wont even appear in the game. So carefully highlight from the word BASE all the way to the single period behind all_inf_default. Do not highlight the word TYPE or anything after it. Its also important to note not to highlight anything before the word BASE. Again, youll screw things up and Luke wont appear in the game. Now after youve highlighted the indicated text youre going to paste over it with the contents you copied. So the new line for Stormtrooper Luke should look like this:
BASE....com_hero_default....TYPE....all_hero_luke_storm.
The four extra periods after the word default are a-okay and need to be there. Save the all.lvl file. Youre not done yet but consider this to be a checkpoint.
Next up is adding new weapons and abilities for Luke. This works the exact same way as changing Luke into a hero. Were going to have to copy and paste in new weapons. First well exchange Lukes standard Stormtrooper rifle for Hans blaster pistol (viz., This is all for referential purposes, you can select whatever weapon you want). So search up hansolo_storm and look for the phrase:
PROP.......,all_weap_hero_hanpistol.
Again, youre going to copy this whole phrase (including the period after the word hanpistol) Youre going to search up luke_storm and look for the phrase:
PROP.......,all_weap_inf_rifle..
So youll want to select all of the forementioned phrase (including the two periods after the word rifle) and paste in the line you copied. Luke will now have a DL-44 blaster pistol as his main weapon. You might want to take the game for a test spin to see how things work. Next, though, were going to need to add a second weapon for Lukes secondary weapon slot. So go back to Stormtrooper Han...well be using his fusion cutter for this example. Look for the following lines after searching up Hansolo_storm:
PROP.....C.,1...PROP......./all_weap_inf_fusioncutter...PROP....e...0...PROP.....E.-1...
Youll need to copy that entire line, including the three periods after the E -1 statement. Pasting this will be slightly tricky, only because Lukes data doesnt extend past three weapons, yet were giving him his fourth weapon! So go back to the notepad you opened with all_hero_luke_storm.odf and look where it says:
FoleyFXClass = "imp_inf_trooper"
Youre going to want to keep your eye out for this statement in the hex editor, only it wont say FoleFXClass...so youll just need to look for imp_inf_trooper. That indicates where Lukes weapon cache ends and where well need to extend it. So youll need to go back to StormTrooper Lukes section in the all.lvl and look for the phrase just before imp_inf_trooper (which should be at the end of Lukes weapon listing). It should be the following:
PROP.....C.,1...
Youll need to select this line (including the three periods) and paste over it with the one you copied from above, for Hans fusion cutter. Save and test it to see if it works.
Now for the last part of the weapon switching (feel proud, youre almost near the end). Even though weve added a new weapon to Lukes stash, the game will still lock-up if someone with a profile that starts with award weapons is playing Stormtrooper Luke. So youll need to add one more weapon to Lukes weapon cache. In this case well be adding the original Rebel Alliance Award Rifle. So goto the toolbar and select find. Type in default_rifleman. It should bring you to the default Rebel soldier. You should also see all the available weapons for the soldier. If you notice, unlike the Mod Tools ODF listings for the soldiers/characters, the weapon listing is as follows for the rifle, pistol, thermal detonator, etc: 2.1, 2.2, 2.3, etc., etc., So for future reference just remember that when adding a new weapon to a character look for the weapon listing reference number. If the character has six weapons then the sixth weapon would be 2.6, etc. Or if you only want the character to have four weapons, the fourth weapon would be 2.4. Get it? As a side note, if the fusion cutters for Luke dont work, simply go back to Han in the hex editor and find the line PROP.....C.,1...PROP......2.4...PROP......./all_weap_inf_fusioncutter...PROP....e...0...PROP.....E.-1...
Copy and paste it over the phrase in Lukes section and test to see if it works.
Anyway, back to the Rebel rifleman...you should see the following line for the award rifle (which is the weapon were going to add to Stormtrooper Lukes repetoire):
PROP......2.5...PROP.....}..all_weap_award_rifle....PROP........6...PROP....<I.a1...
Copy this line to the end of Lukes weapon cache listing (preferably where there are just periods representing 0s), just as it was done in the previous steps and then save the file and copy it over to your Xbox. If it doesnt work then go back and start from scratch by copying the all.lvl from your Battlefront II disc. Just make sure when you copy the code you copy the entire segments, as the segments contain formatting that keeps the code readable for the game. Primarily, thats the one thing to remember when adding, changing weapons...you want to keep the formatting intact.
Now that youre all done Luke should have fusion cutters and can earn a playable award rifle, without locking up the game!