* June 19, 2013, 01:01:13 AM
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Come Chat with us live! Learn how HERE!
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: How to force my UI?  (Read 452 times)
rotacak


Turrets: +39/-64
Posts: 761


« on: November 05, 2011, 08:50:28 AM »

Hi,
I using own HUD in my new 3team mod and I need to force this hud for everybody, even when they have different HUD. How to do that? On some client it works ok, somewhere is custom HUD displayed (when someone installed different than default) and somewhere is no HUD at all.

Any advice?
Logged

/dev/humancontroller


Turrets: +19/-376
Posts: 865


« Reply #1 on: November 05, 2011, 09:35:59 AM »

you should not "force" a certain HUD. but if the 3team cgame/ui modules are not capable of loading stock HUD files, then you should modify the modules not to use the stock cg_hudFiles cvar: use, instead, something like cg_hudFiles3Team (defaulting it to "ui/hud.txt"). this automatically warns users that 3team HUD modifications require 3team-specific HUD files, and automatically requires the user's "confirmation" to load a HUD that is not supplied with the 3team mod. (this is what has to be done for 1.1 mods due to a 1.1's client behaviour of propogating cvar values to non-base mods. the described problem would not exist in 1.2, just be sure to use an fs_game other than "" and "base" on the 3team server.)
Logged
rotacak


Turrets: +39/-64
Posts: 761


« Reply #2 on: November 05, 2011, 06:17:04 PM »

I used your solution with cg_hudFiles3Team. Now it is better, it will load right HUD, but only on TJW-like client. On stock client I still see no HUD at all, without errors in console. fs_game is set to "3team".
« Last Edit: November 05, 2011, 06:18:41 PM by rotacak » Logged

/dev/humancontroller


Turrets: +19/-376
Posts: 865


« Reply #3 on: November 06, 2011, 05:13:34 AM »

I used your solution with cg_hudFiles3Team. Now it is better, it will load right HUD, but only on TJW-like client. On stock client I still see no HUD at all, without errors in console.
works for me (i've just tested a stock client with an installed Warrior HUD).
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
TremPlus theme by Ingar, based on AF316 theme by Fedhog
Valid XHTML 1.0! Valid CSS!