Page 1 of 1
Hex-editing .lvl files
Posted: Fri Sep 17, 2010 12:24 pm
by Ty294
Ok, I want to change the vehicles that spawn in some of the shipped maps. I believe it was possible to do this thru hex-editing. Is this correct? And if so, how?
Re: Hex-editing .lvl files
Posted: Fri Sep 17, 2010 2:11 pm
by ANDEWEGET
If its possible then you would have to change the vehicle info in the vehicle spawns in the world .lvl's and load them in the mission.lvl(you can use belks mission.lvl builder[). I dont know where exactly or how the info is written in the .lvl file(text or digits). The best way to find out is to open the .lvl file in a hex editor(PSPad or XV...whatever, look in the EYN thread) and search for the vehicle names or vehicle spawn names or similar.
Remember that(if you arent a hex editing pro) you cant hex edit vehicles in with longer names.
If you find something out please report back.
Side note: Writing this all from mind so there might be mistakes somewhere.
Edit: found first mistake: i meant the mission.lvl not the common.lvl.
Re: Hex-editing .lvl files
Posted: Fri Sep 17, 2010 4:16 pm
by giftheck
You don't need to do anything with common.lvl unless you're adding new vehicles with new effects.
After hex-editing a .lvl file you will need to reference the .req file in your new mission.lvl file. As well as this, the vehicle ODF's name must be equal to or less than the name of the ODF you're replacing in the .lvl file. Such as when I modified Bespin Platforms, I changed the Y-Wings ("all_fly_ywing") to gunships ("all_fly_trans"="all_fly_ywing") and the Jedi Fighters ("rep_fly_jedifighter") for ARC-170s ("rep_fly_arc170"<"rep_fly_jedifighter")
Re: Hex-editing .lvl files
Posted: Fri Sep 17, 2010 5:37 pm
by Ty294
Does a new vehicle mean something like a BF2 or Modder-created vehicle? Cause my vehicle(s) are modded BF1 vehicles.
Re: Hex-editing .lvl files
Posted: Sat Sep 18, 2010 5:11 am
by ANDEWEGET
Sooo if i put ggctuks and my info together something like this would be the solution(?):
1. Munge the new vehicles into a side .lvl(just add them to the shipped side .lvls).
2. Hex edit the world .lvl files.
3. Edit the mission.lvl to load the new vehicles.
4. Reference your .req in the mission.lvl.
Something like that. My memory is not that used to SWBF modding anymore...
The last two steps would be easier if you use Belks builder.
Re: Hex-editing .lvl files
Posted: Sat Sep 18, 2010 7:33 am
by giftheck
Yep, that pretty much sums up how to do it.