Page 2 of 2

Re: Capship Weapons

Posted: Mon Jun 22, 2009 8:00 pm
by w03
Well, I searched master_part_list.csv, and found many capship weapons (flak/antimatter/capship missiles) and strange ships (kierkergaaurd/kafka/GTIO) that seem buyable, but I can't find them anywhere!

Re: Capship Weapons

Posted: Tue Jun 23, 2009 12:27 am
by MC707
w03 wrote:Well, I searched master_part_list.csv, and found many capship weapons (flak/antimatter/capship missiles) and strange ships (kierkergaaurd/kafka/GTIO) that seem buyable, but I can't find them anywhere!
If I am not mistaken, you can't buy the ships you just mentioned. I guess you can only hack to get da ride :P

Re: Capship Weapons

Posted: Tue Jun 23, 2009 12:43 am
by loki1950
If they are in the master_part_list.csv they are buyable but the corresponding import cargo entries are missing from base entries in units.csv in other words the job ain't finished :wink:

Enjoy the Choice :)

Re: Capship Weapons

Posted: Tue Jun 23, 2009 12:51 am
by MC707
loki1950 wrote:If they are in the master_part_list.csv they are buyable but the corresponding import cargo entries are missing from base entries in units.csv in other words the job ain't finished :wink:
Oh so thats the case...? nice nice. So what ships are not buyable then? And, is there going to be a point when every ship is going to be buyable? Or not for balancing issues?
For instance, will the Agasicles baby be buyable at some point? :twisted:

Re: Capship Weapons

Posted: Tue Jun 23, 2009 4:24 am
by athomic1
One thing I noticed in master_parts_list.csv is, a lot of those ships are assigned to the starships/restricted category, which almost certainly means the player can't buy them. Whether some of these will eventually be moved to buyable categories, I don't know, but I'm hoping.

What I would really like to see is more capships eventually become available, and more "rare" ships that show up either just every now and then at certain types of bases (clues to such would be very cool!), or somehow as rewards for completing special missions. 'twould make things a little more interesting as one wanders from system to system, I think... :wink:

Re: Capship Weapons

Posted: Tue Jun 23, 2009 4:33 am
by MC707
Thanks for the answer athomic. As you can see, my Linux partition is already messed up so I can't check master_parts_list.csv :oops:

Re: Capship Weapons

Posted: Tue Jun 23, 2009 8:24 pm
by w03
Well, I tried editing master part list and units.csv to make the kafka/GTIO/etc. buyable, and it worked, but only for ships already in the list. For example, if I change "Kafka" "Starships/restricted" to "Starships/Merchant/Light" and edit units.csv so watsons carry kafkas, the code works, and I can buy kafkas. But, if I try the same thing with a Tesla.blank by creating a new row and assigning it to "starships/andolian/light_capship", the Tesla never shows up at the watson. Can anyone tell me how to hack a tesla? Thanks in advance!

Re: Capship Weapons

Posted: Wed Jun 24, 2009 7:02 am
by athomic1
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... :oops:

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:

Re: Capship Weapons

Posted: Wed Jun 24, 2009 8:01 am
by loki1950
You also need a ship.csv file in the relevant serialized_xml save folder for each ship you own :wink:

Enjoy the Choice :)

Re: Capship Weapons

Posted: Thu Jun 25, 2009 1:13 am
by athomic1
loki1950 wrote:You also need a ship.csv file in the relevant serialized_xml save folder for each ship you own :wink:
Oh, HEY! That's good to know! I think he's probably going to buy the ship, rather than try to hack it in, so he probably doesn't need this info, but that's VERY useful! :D

Thanks for posting!

Re: Capship Weapons

Posted: Thu Jun 25, 2009 8:24 pm
by w03
Thanks, it worked this time and the tesla is buyable now (for 750000000 credits because it's blank). I'll try this for the H496 as well.

Re: Capship Weapons

Posted: Tue Jun 30, 2009 6:06 am
by athomic1
Hey, cool! :D Was it the lowercase identifier, or something else?

Keep us posted on the H496, eh?

I'm curious to know, from anyone who does: What's the difference between 'blank' and 'stock' models, anyway? I'm thinking it has something to do with basic upgrades that come with the 'stock' version, whereas the 'blank' is typically bare? Is that right, or is it something else?

Re: Capship Weapons

Posted: Tue Jun 30, 2009 8:13 am
by loki1950
That's the basics and the .blank version is used when a new flight-group is spawned with the upgrades appropriate to the role of the group.

Enjoy the Choice :)

Re: Capship Weapons

Posted: Tue Jun 30, 2009 9:41 am
by athomic1
loki1950 wrote:That's the basics and the .blank version is used when a new flight-group is spawned with the upgrades appropriate to the role of the group.
Does that mean the system generates the new ships from the *.blank files, and then upgrades them just before deployment? That's interesting...

Re: Capship Weapons

Posted: Tue Jun 30, 2009 10:02 pm
by loki1950
Yes thats the way it works have a look at the logs just after loading a new game some upgrades don't work so lots of messages in the logs.

Enjoy the Choice :)