w03 wrote:Can anyone tell me how to hack a tesla? Thanks in advance!
That's a good question, to which
I have no reliable answer. I haven't started hacking anything. I'm a little afraid to, yet...
That said, I'm going to guess that an entry in master_parts_list.csv requires a matching one in units.csv, which I believe defines
all valid units, buyable or not. The two files follow different schemas: the MPL contains just a few columns related to buying an item; the units file defines what it is, what it has, and to some degree, how it works.
Here is (part of) the MPL line for a stock Llama:
Code: Select all
"Llama.stock","starships/Merchant/Light",180000,1000,20000,"What can be said of a llama..."
I cut the last column short for brevity. As you can probably see, it contains the item description. As for the rest, the line starts with the unit's identifier, followed by its category "path", cost, some other number (think it's cargo mass), and cargo volume. Basically, all the data used in the cargo and upgrade screens. Nothing that really tells the engine how it works as a starship;
that information is in units.csv:
Code: Select all
Llama.stock,./vessels/Llama,Llama,MANEUVOUR,Vessel,SHUTTLE,Venerable LIHW built armed light cargo shuttle,llama-hud.spr,7,,0,0,3.5,{llama.bfxm;;},,,,,,,230,230,25,500,1,1,1,1,1,1,1,1,75,75,75,75,,,,,4,0,325,100,15,FALSE,1,,300,120,1,4,50000,50000,50000,45,50,55,17000,17000,15000,4000,4000,4000,4000,125,125,FALSE,FALSE,300000000,4,180,25,2000,,,,,0,0,0,0,0,1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1,1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1,1,1,1,1,1,1,1,1,0,0,,,,mult_shady_moreupgrade:1;mult_shady_morethrust:1;mult_shady_moreshields:1;mult_shady_moregunrecharge:1;mult_shady_moreshieldrecharge:1;mult_shady_moreturning:1;upgrades/Overdrive:1;upgrades/Capacitors:1;upgrades/Reactors:1;upgrades/Armor:1;upgrades/Sensors:1;upgrades/Shield_Systems:1;upgrades/Passenger_Quarters:1;upgrades/Repair_Systems:1;upgrades/ECM_Systems:1,,;;;;;;,{supernova.bmp.bfxm;0.00000e+0;0.350000;-2.09200;2;;;;;}{supernova.bmp.bfxm;1.31600;-6.00000e-3;-1.82200;2;;;;;}{supernova.bmp.bfxm;-1.32800;-6.00000e-3;-1.82200;2;;;;;},{;;10;Light Medium;1.01200;-6.80000e-2;3.40800;;;;;;;;;1;1}{;;10;Light Medium;-0.964000;-6.80000e-2;3.40800;;;;;;;;;1;1}{;;5;Light;0.380000;0.176000;1.07600;;;;;;;;;1;1}{;;5;Light;-0.336000;0.176000;1.07600;;;;;;;;;1;1}{;0;48;light-missile medium-missile special-missile;0;0;0;;;;;;;;;1;1}{;0;48;light-missile medium-missile special-missile;0;0;0;;;;;;;;;1;1},,,,{skyscope1;upgrades/Sensors/Basic;200;1;0.01;1;1;1;;0}{capacitor01;upgrades/Capacitors/Standard;200;1;2;2;1;1;;0}{reactor01;upgrades/Reactors/Standard;200;1;1;2;1;1;;0}{add_spec_capacitor01;upgrades/SPEC_Capacitors;200;1;5;4;1;1;;0}{quadshield01;upgrades/Shield_Systems/Standard_Quad_Shields;200;1;1;4;1;1;;0},,0,360,0,,,,,,pPiI
No, I won't even
try to explain this mess; not in this post, anyway.
Now, I believe, in order for this to work and let you buy the ship, you need not only an entry in the MPL, but its identifier (like Llama.stock, or Tesla.blank), must match an entry in the units file. Your entry does, so I don't think that's the problem here. Okay, that probably makes everything up to this point a waste of text, but I think I'll leave it. Who knows, maybe somebody will learn something from it...
OOPS!! Strike that. I think your entry might be wrong after all! The only two Teslas I'm finding in units.csv have all lowercase identifiers! If the line you added really starts with "Tesla.blank", try changing it to "tesla.blank". That just MIGHT do it, assuming a watson actually carries Andolian light capships. That was one of the alternative suggestions I was going to make. I was also going to suggest the system ignores *.blank ships entirely in the cargo and ship lists, but I see no reason to believe so, at this point.
The category issue is a lot more likely to throw you. According to my units.csv, the only ships a Watson does carry are various Confed models: Heavy, Light, Medium, and Milspec. I would suggest putting the Tesla into one of those categories, though I don't know if that will be enough. If the system checks the Tesla's cargo volume against the Watson's hold volume, it might not
ever give you one, unless you cheat on that, too.
![Wink :wink:](./images/smilies/icon_wink.gif)