Author Topic: Hud Problem  (Read 9992 times)

Kuszja

  • Posts: 72
  • Turrets: +1/-0
Hud Problem
« 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?

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Hud Problem
« Reply #1 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?
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok 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

  • Posts: 72
  • Turrets: +1/-0
Re: Hud Problem
« Reply #2 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" }
}


kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Hud Problem
« Reply #3 on: January 30, 2008, 10:22:34 pm »
i think any files you add yourself have to end in .cfg
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok 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

  • Posts: 295
  • Turrets: +31/-32
Re: Hud Problem
« Reply #4 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.

Kuszja

  • Posts: 72
  • Turrets: +1/-0
Re: Hud Problem
« Reply #5 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

Eternity

  • Posts: 7
  • Turrets: +1/-0
    • Eternity's Website
Re: Hud Problem
« Reply #6 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 ?

Kuszja

  • Posts: 72
  • Turrets: +1/-0
Re: Hud Problem
« Reply #7 on: February 04, 2008, 08:12:01 pm »
In game I call
Code: [Select]
cg_hudfiles ui/magc_hud.cfg

Circle

  • Posts: 93
  • Turrets: +8/-13
Re: Hud Problem
« Reply #8 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

Kuszja

  • Posts: 72
  • Turrets: +1/-0
Re: Hud Problem
« Reply #9 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.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Hud Problem
« Reply #10 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.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok 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

  • Posts: 72
  • Turrets: +1/-0
Re: Hud Problem
« Reply #11 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.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Hud Problem
« Reply #12 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)
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok 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

  • Posts: 72
  • Turrets: +1/-0
Re: Hud Problem
« Reply #13 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?

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Hud Problem
« Reply #14 on: February 06, 2008, 07:37:46 pm »
no, just dump it in base
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok 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

  • Posts: 72
  • Turrets: +1/-0
Re: Hud Problem
« Reply #15 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.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Hud Problem
« Reply #16 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
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok 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

  • Posts: 72
  • Turrets: +1/-0
Re: Hud Problem
« Reply #17 on: February 07, 2008, 04:03:36 pm »
So no custom images, ok

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Hud Problem
« Reply #18 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)
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok 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| #
|.@.-##
-----