Ships value

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Ships value

Post by Joubarbe » Wed, 25. Mar 15, 18:05

Hi,

I'd like to forbid the player to sell his ships, but the only way I found to do that is to set the value of the ships to 0. But even with "Production rel. value" and "Price Modifiers" at 0, I still have a positive price for the ship.

Where does it come from ? How does the game know that, no matter what, a Centaur will worth at least 2.5 million credits ?

BlackArchon
Posts: 1016
Joined: Wed, 4. Feb 04, 17:37
xr

Post by BlackArchon » Sun, 29. Mar 15, 10:49

Maybe components like cargo bay extensions, speed and steering upgrades and other built-in components add up to this?

User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe » Sun, 29. Mar 15, 11:05

Nope, that's the Centaur, from LU, and it has no built-in components.

User avatar
NodusCursorius
Posts: 112
Joined: Mon, 13. Jan 14, 15:51
x4

Post by NodusCursorius » Sun, 29. Mar 15, 11:20

There are two entries for the cost of a ware in Tships: NPC and Player

This means two fields for Price Modifier and two fields for Production Rel. Value, thus four field edits total.

Did you edit both the NPC and Player fields for PM and PRV?
Last edited by NodusCursorius on Mon, 30. Mar 15, 23:40, edited 1 time in total.
This isn't about death. This is about what you learn from death. Never hollow.

User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe » Sun, 29. Mar 15, 18:50

Yep, all at 0. You can try :)

EDIT : even though the question remains interesting, I found a way to make it work. My shipyards are now classic factories !

User avatar
Phlt
Moderator (Français)
Moderator (Français)
Posts: 4195
Joined: Fri, 31. Mar 06, 19:26
x4

Post by Phlt » Sun, 29. Mar 15, 19:03

Joubarbe wrote:
EDIT : even though the question remains interesting, I found a way to make it work. My shipyards are now classic factories !
Would you mind to tell us how you did ? Thx. :)

User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe » Sun, 29. Mar 15, 19:06

Oh sure, you just edit the TFactories.pck with XEditor, then change the "Subtype" to anything but "SG_FACT_SHIP".

0o0o0
Posts: 93
Joined: Sun, 6. Mar 11, 19:33
x3ap

Post by 0o0o0 » Fri, 23. Jun 17, 05:07

Sorry to resurrect but . . . .

say I want to produce ships from my HQ to sell for profit. As it stands in my version of Litcubes universe I'm losing 20 million or so profit on the sale of a Kvasir (for example) if I count the production cost in credits for each component needed at the HQ to build the ship. I've tried editing the rel. value (player) and (npc) and both price modifiers. but haven't figured out how to increase the sale price or decrease the production cost (in terms of raw materials).

Any help is much appreciated.

User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe » Fri, 23. Jun 17, 10:14

If I'm not mistaken, HQ production costs are hardcoded.

User avatar
ubuntufreakdragon
Posts: 5195
Joined: Thu, 23. Jun 11, 14:57
x4

Post by ubuntufreakdragon » Fri, 23. Jun 17, 13:48

I don't know whether Litcubes universe changes this but in vanilla the types\HQ.xml contains the price to resource multipliers, they can be changed freely.
Oh and please crate new topics instead of creating undead things.
My X3 Mods

XRebirth, things left to patch:
In General; On Firing NPC's; In De Vries; Out Of Zone; And the Antiwishlist

User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe » Fri, 23. Jun 17, 14:10

Then I'm mistaken :)

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”