Tremulous Forum
Mods => Modding Center => Topic started 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
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?
-
you should be able to use your own hud on pure servers, did you make sure you have all the paths right?
-
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" }
}
-
i think any files you add yourself have to end in .cfg
-
I know this sounds silly, but try changing the "/" to "\" it worked for someone else I suggested it to.
-
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
-
Hello
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 ?
-
In game I call
cg_hudfiles ui/magc_hud.cfg
-
Is the file put in the correct location? base\ui\[Hud Files] Don't put it in your data.pk3 zip
-
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.
-
you can't put your hud in a pk3 if you want it to work on pure servers.
-
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.
-
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)
-
So just take everything out of my pk3 file and put it in a folder with the same name?
-
no, just dump it in base
-
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.
-
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
-
So no custom images, ok
-
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)