Lua excerpt:
HUD change..
Moderator: Moderators
- Cerfon Rournes
- Master Bounty Hunter

- Posts: 1558
- Joined: Thu Jul 08, 2010 5:53 pm
- Projects :: WIP. I will reveal what it is later on..
- xbox live or psn: No gamertag set
- Location: New York, USA
- Contact:
HUD change..
I edited some lines In the HUD, munged a new Ingame, put that .lvl In Gamedata/addon/***/data/Lvlpc, and I got this.
Looks like the weapon area was duplicated and flipped... Strange, no? All I did was edit a few color lines.
Lua excerpt:
Ingame.req:
Anyone have an answer to this? Thanks.
Hidden/Spoiler:
Lua excerpt:
Hidden/Spoiler:
Hidden/Spoiler:
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: HUD change..
The issue is that you are loading the stock HUD(well, actually the 1.2 patch HUD) and your custom HUD. There is no fix, the only way to get around this is to not load the stock ingame.lvl, which involves making a brand new, full ingame.lvl of your own.
Last edited by THEWULFMAN on Sun Jul 10, 2011 11:45 pm, edited 1 time in total.
- Cerfon Rournes
- Master Bounty Hunter

- Posts: 1558
- Joined: Thu Jul 08, 2010 5:53 pm
- Projects :: WIP. I will reveal what it is later on..
- xbox live or psn: No gamertag set
- Location: New York, USA
- Contact:
Re: HUD change..
So....load up the stock HUD meshs then?
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: HUD change..
Cerfon Rournes wrote:So....load up the stock HUD meshs then?
THEWULFMAN wrote:There is no fix, the only way to get around this is to not load the stock ingame.lvl, which involves making a brand new, full ingame.lvl of your own.
- Cerfon Rournes
- Master Bounty Hunter

- Posts: 1558
- Joined: Thu Jul 08, 2010 5:53 pm
- Projects :: WIP. I will reveal what it is later on..
- xbox live or psn: No gamertag set
- Location: New York, USA
- Contact:
Re: HUD change..
I'm sorry..but I'm not getting you. Are you saying to not put ReadDataFile("dc:ingame.lvl") before ReadDataFile("ingame.lvl")? Or, load up the stock HUD meshs...
Hidden/Spoiler:
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: HUD change..
I apologize for not making it clear.
Loading the stock Ingame.lvl ((ReadDataFile(ingame.lvl")) loads the stock HUD files, when you add the ReadDataFile("dc:ingame.lvl"), you load your new HUD, however, it does not override the old one, it simply adds the new one on top of the old one.
Because of this, the only way to have a custom HUD is to make a complete ingame.lvl and only load your new one, but not load the old stock ingame.lvl
I hope its a bit clearer now.
Loading the stock Ingame.lvl ((ReadDataFile(ingame.lvl")) loads the stock HUD files, when you add the ReadDataFile("dc:ingame.lvl"), you load your new HUD, however, it does not override the old one, it simply adds the new one on top of the old one.
Because of this, the only way to have a custom HUD is to make a complete ingame.lvl and only load your new one, but not load the old stock ingame.lvl
I hope its a bit clearer now.
- Cerfon Rournes
- Master Bounty Hunter

- Posts: 1558
- Joined: Thu Jul 08, 2010 5:53 pm
- Projects :: WIP. I will reveal what it is later on..
- xbox live or psn: No gamertag set
- Location: New York, USA
- Contact:
Re: HUD change..
Thanks for explaining. I'm doing some things to make It work now, so I'll edit this later with results..
EDIT..
We have some problems here..
I got a fresh ingame.req, added my things, and munged. Now, with just..:
That^ In the Lua, the game crashes, with no Sev 3's. When I put...:
That^ In the Lua, the game loads and runs, with the stock HUD. Problem Is, none of my changes are visible.
I have no clue what Is going on right now..Anyway, I'll do a manual clean just to check.
Ingame.req:
EDIT
Did a manual clean..no change...
EDIT..
We have some problems here..
I got a fresh ingame.req, added my things, and munged. Now, with just..:
Code: Select all
ReadDataFile("dc:ingame.lvl")Code: Select all
ReadDataFile("dc:ingame.lvl") ReadDataFile("ingame.lvl")I have no clue what Is going on right now..Anyway, I'll do a manual clean just to check.
Ingame.req:
Hidden/Spoiler:
Did a manual clean..no change...
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: HUD change..
Oh yeah, I forgot to mention that making a full ingame.lvl is nigh impossible. I think Zerted knows how to do it, Repsharpshooter did as well.
Just because I told you the solution, I didnt say that the solution was possible.
Just because I told you the solution, I didnt say that the solution was possible.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: HUD change..
as far as i know you can make a custom global ingame.lvl by getting all the entrys from the original ingame.lvl and putting them in your ingame.req.
- Cerfon Rournes
- Master Bounty Hunter

- Posts: 1558
- Joined: Thu Jul 08, 2010 5:53 pm
- Projects :: WIP. I will reveal what it is later on..
- xbox live or psn: No gamertag set
- Location: New York, USA
- Contact:
Re: HUD change..
Would I need to hex-edit for that?..
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: HUD change..
I don't have any experience building custom HUDs, but you should to uninstall any shell mods (v1.3) when building your own, complete lvls. The ingame.req from BF2_ModTools/data/Common should be fine.
Repsharpshooter knows HUDs best. Have you searched the forum and FAQ for HUD topics?
Post your error log anyway.
Repsharpshooter knows HUDs best. Have you searched the forum and FAQ for HUD topics?
Post your error log anyway.
- Cerfon Rournes
- Master Bounty Hunter

- Posts: 1558
- Joined: Thu Jul 08, 2010 5:53 pm
- Projects :: WIP. I will reveal what it is later on..
- xbox live or psn: No gamertag set
- Location: New York, USA
- Contact:
Re: HUD change..
Hidden/Spoiler:
Current error log: I got a red line that said something like,'Your post has too many characters" When I tried to put the entire thing, so here are the parts that show up the most.
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
I removed the v1.3 hud, but I still have two duplicate huds. Ideas?
The game still crashes if I put:
Code: Select all
ReadDataFile("dc:ingame.lvl")Code: Select all
ReadDataFile("ingame.lvl")
ReadDataFile("dc:ingame.lvl")EDIT2
Current ingame.req:
Hidden/Spoiler:
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: HUD change..
its impossible to modify the hud through a local ingame.lvl, th icons will either be duplicated or not modified. all you can do is replace he global ingame.lvl but then it will loose the 1.3 patch features...a real bummer
- Cerfon Rournes
- Master Bounty Hunter

- Posts: 1558
- Joined: Thu Jul 08, 2010 5:53 pm
- Projects :: WIP. I will reveal what it is later on..
- xbox live or psn: No gamertag set
- Location: New York, USA
- Contact:
Re: HUD change..
That is fine. How do I do it? 
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: HUD change..
you mean how to replace the global ingame.lvl? you rename the ingame.lvl in gamedata\lvl_pc\ and paste yours in there.
if you keep everything in the ingame.lvl thats in your maps lvl_pv folder, it will work.
if you keep everything in the ingame.lvl thats in your maps lvl_pv folder, it will work.
- Cerfon Rournes
- Master Bounty Hunter

- Posts: 1558
- Joined: Thu Jul 08, 2010 5:53 pm
- Projects :: WIP. I will reveal what it is later on..
- xbox live or psn: No gamertag set
- Location: New York, USA
- Contact:
Re: HUD change..
That worked, thanks. I have a custom hud fully working.
However, I have one question. Doing that removed the mini map (m key). Anyone know why this happened?/How it can be fixed?
EDIT
Just ran bf2 log, got many of these..
Any clue about that?
EDIT
Just ran bf2 log, got many of these..
Hidden/Spoiler:
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: HUD change..
as far as i remember i didnt get these when replacing the ingame.lvl and the minimap worked normally. what changes did you make to the hudfiles and did you remove anything from the ingame.req?
- Cerfon Rournes
- Master Bounty Hunter

- Posts: 1558
- Joined: Thu Jul 08, 2010 5:53 pm
- Projects :: WIP. I will reveal what it is later on..
- xbox live or psn: No gamertag set
- Location: New York, USA
- Contact:
Re: HUD change..
I didn't make any changes that edited the mini map In the .hud files. (I did change a great deal of other stuff tho
) The only thing I took out of the ingame.req was the fakeconsole line.
Ingame
Lua
As you can see, the mus1_map texture is not showing up.
Ingame
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:


