Adding HUD

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Adding HUD

Post by Anakin »

Hi,

you all know the problem of the floating icons when doing own icons.
And we all know this great tutorial http://www.gametoast.com/forums/viewtop ... =64&t=9703

But for me it doesn't work. i added all the files etc, but nothing works. no matter what changes i do the icons do not move. i hope you can help me.
Last edited by Anakin on Mon Jul 16, 2012 8:17 am, edited 1 time in total.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Floating Icons

Post by AQT »

Anakin wrote:i added all the files etc, but nothing works. no matter what changes i do the icons do not move.
Please explain this by providing said files and what you actually did.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Floating Icons

Post by Anakin »

Ok i replaced the munge.bat. than i added the extraweapons.hud to my rep folder. added this part

Code: Select all

	REQN
    {
		"model"
		"com_inv_mesh"
    }
    
    REQN
    {
		"config"
		"extraweapons"
    }
to my rep.req.

put the com_inv_msh in my msh folder.

than i added this part

Code: Select all

			MeshInfo("ande_dc17_rifle")
			{
				Position(-0.222832, 0.361293, 0.014590, "Viewport")
				Rotation(0.804269, 90.747269, 359.999695)
			}
to the extraweapons.hud file for testing it. i changed the values, but the icon didn't move. i made a manuel clean and noticed, that the munge.bat doesn't work. there was no rep.lvl build. so i decided to use my old munge.bat and get the rep.lvl again, but the icons do not move.
Dreadnot9
Chief Warrant Officer
Chief Warrant Officer
Posts: 341
Joined: Wed Jun 06, 2012 2:05 pm
Projects :: Rising Conflict CW v2.0
Games I'm Playing :: Skyrim TF2 FTL
xbox live or psn: Steam is Dreadnot9

Re: Floating Icons

Post by Dreadnot9 »

If you're using vista/windows 7 you'll need the code in this topic for the munge_side.bat to work properly. I had this problem a little while ago as well.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Floating Icons [Solved]

Post by Anakin »

what is the deifferent to my munge bat, that works for the sides? Can i use this munge bat code for munge the sides too or only for the HUD thing?

==EDIT==

You get it thank you a lot. the first weapon is fixed :D

==EDIT2==

i want an RC HUD and added this to the extraweapon thing.

Code: Select all

Group("RC_HUD")
{
    PropagateAlpha(1)
    Viewport(1)
    Position(0.000000, 1.00000, 0.000000, "Viewport")
    ZOrder(255)
    EventEnable("player1.spawn")
    EventDisable("player1.die")

	Model3D("RC_HUD")
	{
		Mesh("RC_HUD")
		Viewport(1)
		Position(0.00000, 0.000000, -2.212803, "Viewport")
		Rotation(0.804269, 90.747269, 359.999695)
		Scale(0.27000, 0.26000, 0.260000)
		ZOrder(8)
		EventEnable("player1.spawn")
		EventDisable("player1.die")
	}
}
but no HUD is shown.

==EDIT3==

ok the HUD isn't shown in the debugger, but it's there ingame. My only problem is, i cannot move it anymore. first it worked very good, but now it's not moving.

Code: Select all

Group("RC_HUD")
{
    PropagateAlpha(1)
    Viewport(1)
    Position(0.000000, 1.00000, 0.000000, "Viewport")
    ZOrder(255)
    EventEnable("player1.spawn")
    EventDisable("player1.die")

	Model3D("RC_HUD")
	{
		Mesh("RC_HUD")
		Viewport(1)
		Position(0.50000, 50.00000, 50.000000, "Viewport")
		Rotation(0.000000, 0.000000, 359.999695)
		Scale(100.00000, 100.00000, 100.000000)
		ZOrder(8)
		EventEnable("player1.spawn")
		EventDisable("player1.die")
	}
}
Post Reply