Jump to content

Hawx [Modding] Adding Planes to the Hangar


bBurn

Recommended Posts

*Note, adding another plane into HAWX will probably screw up your Profile, so do a backup or if like me you don't really care about the XP/Ranking just carry on (challenges aren't affected)

Required

======

http://www.mediafire.com/?jnyg5mnomuj

http://www.mediafire.com/?4nymjjjgzmy

7-Zip or some other Zip tool

rF4hfGe1PfrzGe3IbaRtWsIn (password for pak files)

Microsoft .Net 3.5 for the toolkit

I will use Impala_88 EDI Mod as the basis for the guide. http://files.filefront.com/EDI+UCAV+hawx+M...;/fileinfo.html

The latest Mod already includes the plane, this is how I got it in the game

?Why is it called dem_EurofighteZ_Typhoon_player

to save time when hex editing

open up plane2skins.lua and add the following lines in (add them into the function)

isPlaneWithTwoSkinsName()

		..

		if id == "dem_EurofighteZ_Typhoon_player" then

			return true

		end

		..

	end	
function isNewModdedPlane ( plane )

		..

		if plane == "dem_EurofighteZ_Typhoon_player" then

			return true

		end

		..

	end	
function getNewModdedPlaneCaption ( plane )

		..

		if plane == "dem_EurofighteZ_Typhoon_player" then

			return "EDI Stealth"

		end

		..

	end
function isExtraPlayablePlane( plane )

		..

		if plane == "dem_EurofighteZ_Typhoon_player" then

			return true

		end

		if plane == "dem_EurofighteZ_Typhoon_skin2_player" then

			return true

		end

		..

	end	
getNewModdedPlaneCaption, this sets the name to display for the plane in the hangar This makes the EDI Stealth unlocked, displays EDI Stealth in the hangar and allows the plane to use 2 skins open up default_planes.lua add the following to the end of the file
{

		   Name = "EDI",

		   Pack = "MainMenu",

		   Model = "dem_EurofighteZ_Typhoon_player",

		   Dat = "Data/Models/plane_playable/menu_Eurofighter-200Z_Typhoon.dat",

		   Skin2 = 1,

		   Skin2Model="dem_EurofighteZ_Typhoon_skin2_player",

		   Skin2Dat="Data/models/plane_playable/menu_skin2_Eurofighter-200Z_Typhoon.dat",

		   Country = 2,

		   Level = 0,

		   Speed = 5,

		   Maneuverability = 9,

		   Resistance = 6,

		   AARating = 9,

		   AGRating = 7,

		   Role = 3,


		   Stealth = 0,

		   Carrier = 0,

		   EW = 0,

		   SuperCannon = 0,

		   Drift = 1,

		   StallRecovery = 1,

		   Stability = 1,

		   Avionics = 3,

		   WeaponCharge = 1,

		   SPPacks = {

			 {"wpm_BM-MM-FL",140,40,0,5},

			 {"wpm_BM-MM-FFB-FL",140,20,60,5},

			 {"wpm_BM-AM-RL-FL",140,50,140,5},

			 },

		   MPPacks = {

			 {"wpm_BM-MM-FL_mp",40,20,0,3},

			 {"wpm_BM-MM-FFB-FL_mp",40,16,20,3},

			 {"wpm_BM-AM-RL-FL_mp",40,10,60,3},

			 },

		   Pic = {"Data\\Textures\\Menus2\\PlaneIcons.dds",0.7,0.5,0.8,0.625}

	},
Go to where you extracted the EDI Stealth Model data\models\plane_playable

Eurofighter-2000_Typhoon.dat rename to Eurofighter-200Z_Typhoon.dat

menu_Eurofighter-2000_Typhoon.dat rename to menu_Eurofighter-200Z_Typhoon.dat

copy Eurofighter-200Z_Typhoon.dat to skin2_Eurofighter-200Z_Typhoon.dat

copy menu_Eurofighter-200Z_Typhoon.dat to menu_skin2_Eurofighter-200Z_Typhoon.dat

data\textures\geom
	

Eurofighter-2000_Typhoon_N.dds rename to Eurofighter-200Z_Typhoon_N.dds

Eurofighter-2000_Typhoon_P01.dds rename to Eurofighter-200Z_Typhoon_P01.dds

Eurofighter-200Z_Typhoon_P01.dds copy to Eurofighter-200Z_Typhoon_P02.dds

Eurofighter-2000_Typhoon_S.dds rename to Eurofighter-200Z_Typhoon_S.dds

open up Eurofighter-200Z_Typhoon.dat in xvi32 Hex Edtior replace EuroFighter-2000_Typhoon_<xx>.dds with EuroFighter-200Z_Typhoon_<xx>.dds (4 occurences) open up menu_Eurofighter-200Z_Typhoon.dat in xvi32 Hex Edtior replace EuroFighter-2000_Typhoon_<xx>.dds with EuroFighter-200Z_Typhoon_<xx>.dds (4 occurences) open up skin2_Eurofighter-200Z_Typhoon.dat in xvi32 Hex Edtior replace EuroFighter-2000_Typhoon_<xx> with EuroFighter-200Z_Typhoon_<xx> (4 occurences) open up menu_skin2_Eurofighter-200Z_Typhoon.dat in xvi32 Hex Edtior replace EuroFighter-2000_Typhoon_<xx> with EuroFighter-200Z_Typhoon_<xx> (4 occurences) <xx>; Value are P01, _N or _S Go to 'entities_recompiler\tests\unknown'
	

dem_Eurofighter_Typhoon_player.bin copy to dem_EurofighteZ_Typhoon_player.bin

dem_Eurofighter_Typhoon_player_Expert.bin copy to dem_EurofighteZ_Typhoon_player_Expert.bin

dem_Eurofighter_Typhoon_skin2_player.bin copy to dem_EurofighteZ_Typhoon_skin2_player.bin

dem_Eurofighter_Typhoon_skin2_player_Expert.bin copy to dem_EurofighteZ_Typhoon_skin2_player_Expert.bin
open up dem_EurofighteZ_Typhoon_player.bin in xvi32 Hex Edtior replace EuroFighter-2000 with EuroFighter-200Z (1 occurence) open up dem_EurofighteZ_Typhoon_player_Expert.bin in xvi32 Hex Edtior replace EuroFighter-2000 with EuroFighter-200Z (1 occurence) open up dem_EurofighteZ_Typhoon_skin2_player.bin in xvi32 Hex Edtior replace EuroFighter-2000 with EuroFighter-200Z (1 occurence) open up dem_EurofighteZ_Typhoon_skin2_player_Expert.bin in xvi32 Hex Edtior replace EuroFighter-2000 with EuroFighter-200Z (1 occurence) open up entities_ordered.txt add the following to the bottom of the file
	dem_EurofighteZ_Typhoon_player

	dem_EurofighteZ_Typhoon_skin2_player

	dem_EurofighteZ_Typhoon_player_Expert

	dem_EurofighteZ_Typhoon_skin2_player_Expert
open up entities_unknown3.txt add the following to the bottom of the file
	dem_EurofighteZ_Typhoon_player.bin,814

	dem_EurofighteZ_Typhoon_skin2_player.bin,826

	dem_EurofighteZ_Typhoon_player_Expert.bin,834

	dem_EurofighteZ_Typhoon_skin2_player_Expert.bin,846
run 'Entities Recompiler.exe', this will output entities_mod.mdl .. rename this to entities.mdl and drop into data\missions\common folder go to the extracted \inicache\data\scripts folder

eurofighter-2000_typhoon.ini copy to eurofighter-200Z_typhoon.ini

menu_eurofighter-2000_typhoon.ini copy to menu_eurofighter-200Z_typhoon.ini

eurofighter-200Z_typhoon.ini copy to skin2_eurofighter-200Z_typhoon.ini

menu_eurofighter-200Z_typhoon.ini copy to menu_skin2_eurofighter-200Z_typhoon.ini

go to the inicache folder, select all files and folders ( config, data, config.ini, test.ini )

create a Zip file, password for the file is rF4hfGe1PfrzGe3IbaRtWsIn, call it DataInis.pak

That's about it....

Textures go in

data\textures\geom

Models go in

data\models\plane_playable

Scripts go in

data\menus2\

Entities.mdl goes in

data\mission\common\

DataInis.pak goes in main Hawx Program Folder

Edited by bBurn
Link to comment
Share on other sites

I've seen a B2 skin and model inside the game's directory but it's a non-player model. I wonder if it would be possible to add it as playable model to the hangar basically convert it and use hardpoints of another model. :)

Edited by Vth_F_Smith
Link to comment
Share on other sites

Nice. Hopefully the AWACS and the B2 are the next ones. :)

The B2 shouldn't be that difficult, as he could basically use all the data from the A-12 and the AWACS could use the same file as the B-52 (only without bombs and rockets of course). :)

Edited by Vth_F_Smith
Link to comment
Share on other sites

dem_EurofighteZ_Typhoon_player.bin,814

dem_EurofighteZ_Typhoon_skin2_player.bin,826

dem_EurofighteZ_Typhoon_player_Expert.bin,834

dem_EurofighteZ_Typhoon_skin2_player_Expert.bin,846

as I am not exactly sure what the values relate to , I incremented them by 12 for the 2nd skins, as looking at all the other 2nd skin entries they are all +12

so for example, dem_Eurofighter_Typhoon_player.bin,814 is the value for the original EuroFighter mod, I copied that value for the EDI Model and for the 2nd Skin added 12 to the value

dem_Eurofighter_Typhoon_player.bin,814

dem_Eurofighter_Typhoon_skin2_player.bin,826

dem_Eurofighter_Typhoon_player_Expert.bin,834

dem_Eurofighter_Typhoon_skin2_player_Expert.bin,846

Link to comment
Share on other sites

  • 1 year later...

I Don't get this whole part

open up Eurofighter-200Z_Typhoon.dat in xvi32 Hex Edtior

replace EuroFighter-2000_Typhoon_<xx>.dds with EuroFighter-200Z_Typhoon_<xx>.dds (4 occurences)

open up menu_Eurofighter-200Z_Typhoon.dat in xvi32 Hex Edtior

replace EuroFighter-2000_Typhoon_<xx>.dds with EuroFighter-200Z_Typhoon_<xx>.dds (4 occurences)

open up skin2_Eurofighter-200Z_Typhoon.dat in xvi32 Hex Edtior

replace EuroFighter-2000_Typhoon_<xx> with EuroFighter-200Z_Typhoon_<xx> (4 occurences)

open up menu_skin2_Eurofighter-200Z_Typhoon.dat in xvi32 Hex Edtior

replace EuroFighter-2000_Typhoon_<xx> with EuroFighter-200Z_Typhoon_<xx> (4 occurences)

<xx>; Value are P01, _N or _S

Go to 'entities_recompiler\tests\unknown'

dem_Eurofighter_Typhoon_player.bin copy to dem_EurofighteZ_Typhoon_player.bin

dem_Eurofighter_Typhoon_player_Expert.bin copy to dem_EurofighteZ_Typhoon_player_Expert.bin

dem_Eurofighter_Typhoon_skin2_player.bin copy to dem_EurofighteZ_Typhoon_skin2_player.bin

dem_Eurofighter_Typhoon_skin2_player_Expert.bin copy to dem_EurofighteZ_Typhoon_skin2_player_Expert.bin

open up dem_EurofighteZ_Typhoon_player.bin in xvi32 Hex Edtior

replace EuroFighter-2000 with EuroFighter-200Z (1 occurence)

open up dem_EurofighteZ_Typhoon_player_Expert.bin in xvi32 Hex Edtior

replace EuroFighter-2000 with EuroFighter-200Z (1 occurence)

open up dem_EurofighteZ_Typhoon_skin2_player.bin in xvi32 Hex Edtior

replace EuroFighter-2000 with EuroFighter-200Z (1 occurence)

open up dem_EurofighteZ_Typhoon_skin2_player_Expert.bin in xvi32 Hex Edtior

replace EuroFighter-2000 with EuroFighter-200Z (1 occurence)

open up entities_ordered.txt

add the following to the bottom of the file

dem_EurofighteZ_Typhoon_player

dem_EurofighteZ_Typhoon_skin2_player

dem_EurofighteZ_Typhoon_player_Expert

dem_EurofighteZ_Typhoon_skin2_player_Expert

open up entities_unknown3.txt

add the following to the bottom of the file

dem_EurofighteZ_Typhoon_player.bin,814

dem_EurofighteZ_Typhoon_skin2_player.bin,826

dem_EurofighteZ_Typhoon_player_Expert.bin,834

dem_EurofighteZ_Typhoon_skin2_player_Expert.bin,846

run 'Entities Recompiler.exe', this will output entities_mod.mdl .. rename this to entities.mdl and drop into data\missions\common folder

go to the extracted \inicache\data\scripts folder

eurofighter-2000_typhoon.ini copy to eurofighter-200Z_typhoon.ini

menu_eurofighter-2000_typhoon.ini copy to menu_eurofighter-200Z_typhoon.ini

eurofighter-200Z_typhoon.ini copy to skin2_eurofighter-200Z_typhoon.ini

menu_eurofighter-200Z_typhoon.ini copy to menu_skin2_eurofighter-200Z_typhoon.ini

How do u replace any file another?

i am trying to add the B-1B Lancer

so far i have the model in the hanger, the name, the weapons and the skin

Edited by Dr.Thrax123
Link to comment
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.

×
×
  • Create New...