Author Topic: Values in Armoury  (Read 4593 times)

Knowitall66

  • Posts: 492
  • Turrets: +70/-52
Values in Armoury
« on: December 13, 2007, 11:22:24 pm »
When i change the cost of a weapon in the 'tremulous.h' document. Ingame it doesnt change at armoury it still shows the oridginal value (but cost what i set it to). Where to i change what is shown in the armoury?

daenyth

  • Posts: 230
  • Turrets: +21/-26
Re: Values in Armoury
« Reply #1 on: December 14, 2007, 04:39:06 pm »
Forgive me if this is stupid, but did you recompile your server?
Quote from: Bullislander05
It's like trying to take apple seeds out of a zebra to plant a giraffe tree.

Rocinante

  • Posts: 642
  • Turrets: +252/-668
    • My Homepage
Re: Values in Armoury
« Reply #2 on: December 14, 2007, 05:14:43 pm »
I think - though I'm not positive - that the game server knows how much items cost for the purposes of buying and selling, but the client is what displays the menu showing how much things are.  The information isn't passed through from the server to the client.

If that's the case, then your modification to change the cost of weapons will work server-side, but clients will still see the original cost of them.  Unless you build a new cgame/ui and package them as a pk3 for clients to download, but most people will not bother downloading a pk3 for something like that (ie, your server will not see much traffic unless people *really* want to be there).

Check the source to verify if I'm just talking out of my rear before you believe it, I'm too lazy to do so right now :P
}MG{Mercenaries Guild
"On my ship, the Rocinante, wheeling through the galaxies, headed for the heart of Cygnus, headlong into mystery." -- Rush, "Cygnus X-1"

Thorn

  • Guest
Re: Values in Armoury
« Reply #3 on: December 14, 2007, 08:10:20 pm »
Rocinante is right. All of the armoury stuff is handled by the client ui/ .

Plague

  • Posts: 238
  • Turrets: +13/-13
Re: Values in Armoury
« Reply #4 on: December 14, 2007, 08:37:35 pm »
Any changes to files prefixed with cg_ (such as cg_misc.c) require the compiled cgame to be placed alongside the game qvm for a server to display any visual changes.

DarkEnix

  • Posts: 67
  • Turrets: +10/-22
Re: Values in Armoury
« Reply #5 on: December 15, 2007, 02:35:42 am »
prices can be changed at ui/infopanes.def too

Knowitall66

  • Posts: 492
  • Turrets: +70/-52
Re: Values in Armoury
« Reply #6 on: December 15, 2007, 02:40:38 am »
Thanks Enix.

DarkEnix

  • Posts: 67
  • Turrets: +10/-22
Re: Values in Armoury
« Reply #7 on: December 15, 2007, 11:59:45 am »
No Prob ^^