Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Backslash on March 06, 2006, 09:27:16 pm

Title: Modular ship tables -- changing secondary banks error?
Post by: Backslash on March 06, 2006, 09:27:16 pm
I'm not sure if this is a bug or by design, so I thought I'd first ask here.

I get the error
Code: [Select]
Error: ships-shp.tbm(line 760:
Error: Missing required token: [$SBank Capacity:]. Found [$Name:                          ]
in ship: SF Dragon instead.

when the offending code looks like:
Code: [Select]
$Name:                          SF Dragon
+nocreate
$Default SBanks:        ( "Shark" )

If I add
Code: [Select]
$SBank Capacity:        ( 20 ) (a stat which I get from the existing ships.tbl) the error goes away.

So the question is, is it not allowed to change the default secondary bank without changing (or at least restating) the secondary bank size?  If yes, perhaps it should be noted somewhere (perhaps it is and I missed it); if not, perhaps it is a bug?  [and I should mantis it?]