News:

Come Chat with us live! Learn how HERE!

Main Menu

Hud Problem

Started by Kuszja, January 30, 2008, 04:09:30 PM

Kuszja

I am making a hud and human part is done, but when I go to join a game, I get the error
menu file not found ui/magc_hud.cfg using default
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?

kevlarman

you should be able to use your own hud on pure servers, did you make sure you have all the paths right?
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Kuszja

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:
{
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" }
}


kevlarman

i think any files you add yourself have to end in .cfg
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

FisherP

I know this sounds silly, but try changing the "/" to "\" it worked for someone else I suggested it to.

Kuszja

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

Eternity

Hello
Quote from: 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
[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 ?

Kuszja

In game I call
cg_hudfiles ui/magc_hud.cfg

Circle

Is the file put in the correct location? base\ui\[Hud Files] Don't put it in your data.pk3 zip

Kuszja

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.

kevlarman

you can't put your hud in a pk3 if you want it to work on pure servers.
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Kuszja

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.

kevlarman

Quote from: 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.
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)
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Kuszja

So just take everything out of my pk3 file and put it in a folder with the same name?

kevlarman

no, just dump it in base
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Kuszja

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.

kevlarman

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
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Kuszja

So no custom images, ok

kevlarman

Quote from: tyrant_master on February 07, 2008, 09:45:54 PM
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)
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----