Custom ship: Can't repair/refuel, or re-buy sold items.

This is the location for all mods to collaborate. Anyone making or planning their own mod should post help requests, screen shots and news here.

Moderators: Omega, tillias, Mod Contributor

Post Reply
DaveAshton
Merchant
Merchant
Posts: 49
Joined: Mon Aug 15, 2011 4:04 pm

Custom ship: Can't repair/refuel, or re-buy sold items.

Post by DaveAshton »

I've made a custom ship, and it works in game, but there are a couple of problems.

Firstly, I can't do a Basic Repair and Refuel, I just get the message "Your ship has no damage. No charge" despite the fact the fuel gauge shows as half-empty and that you'll normally be charged anyway, even if your ship is intact.

Also, by default the ship comes with a SkyScope Alpha. If I sell it, I can't re-buy it, the option is purple not white. I can buy the Alpha Plus and the Beta though (unless I'd already bought and sold one of those). The same goes for the reactor, armour etc. I can upgrade, but not downgrade or refit with an identical part.

I've attached a CSV of just that ship, where am I going wrong?


ETA: I've done further digging, and the problem seems to not relate to the specific ship, and more to the fact it's a NEW vessel. I copied the Llama.begin, pasted the identical entry back into Units.csv, renamed the ship (but kept all the other stats the same), edited the New Game file to point to the pseudo-Llama, started a new game... same problem.

I've also learnt that the problem doesn't apply to guns or missiles.
You do not have the required permissions to view the files attached to this post.
w03
Mercenary
Mercenary
Posts: 125
Joined: Sat Apr 11, 2009 1:47 am

Re: Custom ship: Can't repair/refuel, or re-buy sold items.

Post by w03 »

There is a column labeled "upgrades" in your units.csv file (and the csv file for your vessel) that was not filled out. It needs to be filled with a list of the upgrades on your ship (the upgrade list must match with the ones in "cargo"). Format is {upgrade;;}. Example: {capacitor07;;}

Add this to the upgrades section for your vessel in units.csv, re-buy your ship, and it should work:

Code: Select all

{armor02;;}{quadshield02;;}{add_spec_capacitor01;;}{capacitor02;;}{reactor02;;}{skyscope2;;}
DaveAshton
Merchant
Merchant
Posts: 49
Joined: Mon Aug 15, 2011 4:04 pm

Re: Custom ship: Can't repair/refuel, or re-buy sold items.

Post by DaveAshton »

I got it working, thanks for your help w03.
Post Reply