[HUD Extension] Speedo

TheRoDent
10-01-2004, 02:43 AM
[Irrational]pcd, mentioned in this thread (http://www.tribalwar.com/forums/showthread.php?t=328205) that there's a means for a client-side hud extension working off the ClientSideCharacter object (which KP mentioned a while ago too) in T:V. An example of this script interaction has been included with the demo, and is called Speedo.HUDSpeedo. It's not enabled by default.

I'm not good at this gui stuff (location, positioning etc) but I can use a Hex viewer. Thus, here's a Speedo.ini that enables the small speed indicator.

Speedo.ini (save to C:\tv\Content\System)

[ext_Speedo]
;text displayed after the value (eg: KM/h)
UnitsText="kph"

;ratio of these units to unreal units
UnitsRatio=1.000000

;Speed you have to be travelling for the speedo to be visible
VisibleThreshold=30

;range below VisibleThreshold through which the speedo will fade in
VisibleThresholdRange=10

horizontalAlignment=HALIG N_Center
verticalAlignment=VALIGN_ Bottom
OffsetY=-10
Width=100
Height=30

[ext_Speedo_SpeedLabel]
horizontalAlignment=HALIG N_Center
verticalAlignment=VALIGN_ Bottom
Width=50
Height=30
offsetY=-5
offsetX=2


[ext_Speedo_UnitsLabel]
horizontalAlignment=HALIG N_Previous
verticalAlignment=VALIGN_ Bottom
Width=50
Height=30
offsetX=2


Then, you have to edit your c:\tv\Content\System\Trib esHUD.ini and add/uncomment the speedo line at the top.


[default_CharacterHUD]
ExtensionSpecs=(ElementNa me="ext_Speedo",ClassName="Speedo.HUDSpeedo",IniFile="Speedo.ini")


I'm not too clued up on HUD element positioning and cannot be arsed so perhaps someone can fix it so the labels actually match up.

Cheers.

TheRoDent
10-01-2004, 02:45 AM
Err, my bad. Should prolly have posted this in T-S&M

WaTTz!
10-01-2004, 02:57 AM
Someone make this work lol.

KnightMare
10-01-2004, 02:59 AM
whats with your sig?

TheRoDent
10-01-2004, 03:06 AM
Knightmare: The T:V Server on my host, was listening on port 80, and asking everyone to login :). Even tho Apache was also running on port 80 (which serves my .sig), it appears this thing would magically (still boggles the mind) get every second or third HTTP request instead of apache...

TheRoDent
10-01-2004, 03:07 AM
Someone make this work lol.
Er, it does work. Someone just needs to fixup the hud positioning.

WaTTz!
10-01-2004, 03:08 AM
Er, it does work. Someone just needs to fixup the hud positioning.

Yes, do that^

KnightMare
10-01-2004, 03:33 AM
oh shazbot it works!!

_Kater_
10-01-2004, 03:56 AM
Screenshot anyone?

byteasc
10-01-2004, 05:53 AM
sexy

i want a graphical meter too :p not just text

MikSchultzy
10-01-2004, 06:43 AM
Bah, I'll get it working, if not released. :)

Wulfen
10-01-2004, 08:56 AM
Sweet work, Rodent.

pyrot3chnic
10-01-2004, 01:07 PM
[default_CharacterHUD]
ExtensionSpecs=(ElementNa me="ext_Speedo",ClassName="Speedo.HUDSpeedo",IniFile="Speedo.ini")
textFontName=TahomaBd8
textFont=font'TribesFonts .Tahomabd8'
textColor=(R=0,G=240,B=0, A=255)
bCentered=true
shadowColor=(R=0,G=0,B=0, A=190)
bShadowed=true
shadowPixelOffset=1
horizontalAlignment=HALIG N_Right
verticalAlignment=VALIGN_ Bottom
I'm not sure if it needs any dimensions, but if it does, add..

Width=125
Height=16

..or w/e the dimensions are.. haven't tested it, so not sure if it works, at work right now.

Phantom
10-01-2004, 01:16 PM
Sorry to bother you guys but,
could someone upload speedo.u? I accidentally changed one char there and now T:V doesn't load anymore.

gOOse
10-01-2004, 06:00 PM
Hey this thing is really groovy, works great for me, its cool how it fades out under 30kmh
Wish I knew how to post an image on here
Oh and ....
My hud is the best............ (for me)
http://www.iatse99.com/charlie/gUEces.bmp
sorry its so big
Hey im new .... :rolleyes: