Tremulous Forum

Mods => Modding Center => Topic started by: Kuszja on January 30, 2008, 04:09:30 pm

Title: Hud Problem
Post by: Kuszja on January 30, 2008, 04:09:30 pm
I am making a hud and human part is done, but when I go to join a game, I get the error
Code: [Select]
menu file not found ui/magc_hud.cfg using defaultI didn't think I am missing any files and I can use my hud fine on my localhost server. Is this because there is a hud integrity check when connecting to a pure server?
Title: Re: Hud Problem
Post by: kevlarman on January 30, 2008, 05:23:01 pm
you should be able to use your own hud on pure servers, did you make sure you have all the paths right?
Title: Re: Hud Problem
Post by: Kuszja on January 30, 2008, 07:04:25 pm
Probably not. I was making this by trying to imitate what people did in other huds and the default hud. This is the contents of my ui/magc_hud.cfg as is:
Code: [Select]
{
loadMenu { "ui/magc_human_hud.menu" }
loadMenu { "ui/tremulous_alien_builder_hud.menu" }
        loadMenu { "ui/magc_alien_general_hud.menu" }
loadMenu { "ui/tremulous_default_hud.menu" }

loadMenu { "ui/teamscore.menu" }
loadMenu { "ui/loading.menu" }
}

Title: Re: Hud Problem
Post by: kevlarman on January 30, 2008, 10:22:34 pm
i think any files you add yourself have to end in .cfg
Title: Re: Hud Problem
Post by: FisherP on January 31, 2008, 01:18:06 am
I know this sounds silly, but try changing the "/" to "\" it worked for someone else I suggested it to.
Title: Re: Hud Problem
Post by: Kuszja on January 31, 2008, 04:22:45 am
No, it doesn't sound silly, well, except for the fact that I am used to seeing \\ instead of \ in code. I will try that, but the lines that don't have magc in them are straight from the default hud.cfg
Title: Re: Hud Problem
Post by: Eternity on February 01, 2008, 01:35:42 am
Hello
I am making a hud and human part is done, but when I go to join a game, I get the error
Code: [Select]
[color=red]menu file not found ui/magc_hud.cfg using default[/color]I didn't think I am missing any files and I can use my hud fine on my localhost server. Is this because there is a hud integrity check when connecting to a pure server?
Have you modifiate cg_hudFiles or ui_menuFiles ?
Title: Re: Hud Problem
Post by: Kuszja on February 04, 2008, 08:12:01 pm
In game I call
Code: [Select]
cg_hudfiles ui/magc_hud.cfg
Title: Re: Hud Problem
Post by: Circle on February 04, 2008, 08:40:47 pm
Is the file put in the correct location? base\ui\[Hud Files] Don't put it in your data.pk3 zip
Title: Re: Hud Problem
Post by: Kuszja on February 05, 2008, 05:56:09 pm
I have a pk3 file named "hud_magc.pk3"

"/" contains:
"ui" - folder
"magc_hud.cfg" - a file you can execute in game to set the hud. It is the exact same thing as typing '/cg_hudfiles ui/magc_hud.cfg' in the console.
"readme.txt" - a redundant readme file

"/ui/" contains:
"assets" - folder
"magc_alien_hud_general.cfg" - general alien hud menuDef file
"magc_hud.cfg" - contents found in my above post on January 30, 2008, 07:04:25 PM
"magc_human_hud.cfg" - human hud menuDef file

"/ui/assets/" contains:
"human" - folder

"/ui/assets/human/" contains:
"magc.tga" - a static test image (works)
"stamina.tga" - a replacement for the existing stamina images (works)

====================================================

I don't know too much about how the pk3's get included in the game as far as their scope. From observation, I assume that when loaded, data from one pk3 can see data inside another pk3 that is loaded in the game, as well as see the resources in the data-1.1.0.pk3.
Title: Re: Hud Problem
Post by: kevlarman on February 05, 2008, 07:25:21 pm
you can't put your hud in a pk3 if you want it to work on pure servers.
Title: Re: Hud Problem
Post by: Kuszja on February 05, 2008, 10:47:47 pm
Thank you. It almost makes sense as to why it would be that way with exception to the fact that you can obviously alter the data-1.1.0.pk3 to suit your needs anyway.
Title: Re: Hud Problem
Post by: kevlarman on February 05, 2008, 11:01:19 pm
Thank you. It almost makes sense as to why it would be that way with exception to the fact that you can obviously alter the data-1.1.0.pk3 to suit your needs anyway.
if you alter data-1.1.0.pk3 you can't join ANY pure servers.
on a pure server your client is only allowed to load the pk3s that the server specifies, most files HAVE to be loaded from a pk3, but there are exceptions for certain files (most notably anything named .cfg)
Title: Re: Hud Problem
Post by: Kuszja on February 06, 2008, 03:18:27 pm
So just take everything out of my pk3 file and put it in a folder with the same name?
Title: Re: Hud Problem
Post by: kevlarman on February 06, 2008, 07:37:46 pm
no, just dump it in base
Title: Re: Hud Problem
Post by: Kuszja on February 06, 2008, 09:56:26 pm
That's what I mean. Extract my pk3 into my base folder so the directory tree looks like

Tremulous/base/ui/assets/

No pk3 files, just the contents of my old pk3 in the base folder.
Title: Re: Hud Problem
Post by: kevlarman on February 06, 2008, 10:32:01 pm
you can't add any files that aren't text files and have them still work, assets/ will be ignored, you can only use files that are in 1.1
Title: Re: Hud Problem
Post by: Kuszja on February 07, 2008, 04:03:36 pm
So no custom images, ok
Title: Re: Hud Problem
Post by: kevlarman on February 08, 2008, 04:16:03 am
kevlar do u even play trem anymore, i never can be able to find anyone good players (applejuice, kevlarman, and others which i forget at the moment)
yes, but unless i find a server with 3+ people i actually know i just won't bother, and half the time i won't be going by "kevlarman" (not because i try to hide my identity, usually it's to make a joke)