Jump to content


Photo

Item Costs


  • Please log in to reply
5 replies to this topic

#1 SoulSkorpion

SoulSkorpion

    Squaddie

  • Forum Members
  • PipPip
  • 2 posts

Posted 29 June 2008 - 03:13 AM

Hey.

I realise this forum is probably dead and the editor almost certainly no longe rbeing updated, but:

I notice there's no way to edit the cost of weapons/tanks/magazines/etc in the editor. Any chance of this changing in the future? Failing that, is it known where in the game's files this information is stored?

I ask because I'm interested in going back and re-balancing the game's weapons so that each of them are actually useful. The easiest way to do that that I know of is to balance them as raw effectiveness per dollar cost. I can change the raw effectiveness, but so far not the cost.

#2 Zombie

Zombie

    Colonel

  • Xenocide Creative-Text Departmen
  • 2,947 posts

Posted 29 June 2008 - 09:33 AM

I notice there's no way to edit the cost of weapons/tanks/magazines/etc in the editor. Any chance of this changing in the future? Failing that, is it known where in the game's files this information is stored?

Yes, those values can be found in in the game file called PURCHASE.DAT. And while you are at the X-COM wiki, do take a browse around the Game Files page - you are bound to find some of that helpful. ;)

- Zombie
The Mr. Grognard of X-COM

Zombie: Empirical data's your only man, when formulating a research plan.
A soldier's death is never in vain if it makes the formula more plain.
A few dozen make a better case for refining that third decimal place.
They call me Zombie because I don't sleep, as I slowly struggle to climb this heap,
of corpses, data points, and trials, but from the top - I'll see for miles!


#3 SoulSkorpion

SoulSkorpion

    Squaddie

  • Forum Members
  • PipPip
  • 2 posts

Posted 30 June 2008 - 03:27 AM

I notice there's no way to edit the cost of weapons/tanks/magazines/etc in the editor. Any chance of this changing in the future? Failing that, is it known where in the game's files this information is stored?

Yes, those values can be found in in the game file called PURCHASE.DAT. And while you are at the X-COM wiki, do take a browse around the Game Files page - you are bound to find some of that helpful. ;)

- Zombie

Hey, thanks.

So purchase costs are a per-savegame thing? That's intersting. I wonder where the defaults are stored...

#4 Zombie

Zombie

    Colonel

  • Xenocide Creative-Text Departmen
  • 2,947 posts

Posted 30 June 2008 - 08:00 AM

The default copy is saved in the executable, and when a campaign is started those values are transferred over to your game file into purchase.dat. Basically it is a global file with a local copy. Let me get the offsets for the executable for you. :)

- Zombie
The Mr. Grognard of X-COM

Zombie: Empirical data's your only man, when formulating a research plan.
A soldier's death is never in vain if it makes the formula more plain.
A few dozen make a better case for refining that third decimal place.
They call me Zombie because I don't sleep, as I slowly struggle to climb this heap,
of corpses, data points, and trials, but from the top - I'll see for miles!


#5 stewart

stewart

    Programming Department

  • [Xenocide Senior Members]
  • 10,528 posts

Posted 01 July 2008 - 08:20 AM

How ironic: SoulSkorpion starts out with "I realise this forum is probably dead"

and he is answered by a Zombie. ^_^
Posted Image
I'm starting to like the heavy cannon more and more.

#6 Xeryx

Xeryx

    Squaddie

  • Forum Members
  • PipPip
  • 8 posts

Posted 13 October 2010 - 12:11 PM

How ironic: SoulSkorpion starts out with "I realise this forum is probably dead"

and he is answered by a Zombie. ^_^

ROFL