Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: SadisticSid on January 06, 2004, 01:59:34 pm
-
Problem: I've got a fighter with a $PBank Capacity (300, 300). I have a ballistic gattling cannon with a $Cargo Size: 0.5. Except in game I only have 2 shots per bank. Am I using the wrong flag to specify cargo size? How do I set things so this fighter has 600 shots in both banks?
It's not explained in the readme.
-
I dont know if it works with huge numbers like 300
-
Goober screwed up the convention. it should be +PBank Capacity. i think i may have changed it. you may have it in the wrong place. this is why i want that wiki entries for everything done
edit: it is "$Pbank Capacity:". it goes after "$Default PBanks:" and before "$Allowed SBanks:"
i also looked at the code at it really should be "$Pbank Capacity:" the b is not capitalized. but i dont know if the parser is case sensitive.
edit 2: parser is not case sensitive.
-
Good point Phreak, thanks for the Heads up, I've been neglecting my work on the Wiki.
I'll fix that and get something set up this week.
Sorry guys :)
-
Ignore Phreak; SadisticSid did everything right. In the parser code, the capacity is forced to 1, regardless of what's specified. Therefore, 1 divided by 0.5 = 2.
Now, the convention I had in mind would be that the capacities specified on fighters would all be 1, because you are loading one magazine onto a fighter. The magazine size is directly determined by the "cargo size" specified in the weapon entry. So in this case there would be two bullets per magazine.
But just because this is the convention doesn't mean everyone has to do it this way. So it's a bug. Put it on Mantis. :)
-
no
I have some fighters using different numbers. I have sizes specified in the 12_05 version so that every '1" gives them 1000 ammo. I have heavy bombers carrying more than light fighters and such for the Avenger. Works fine.
-
Originally posted by Goober5000
Ignore Phreak; SadisticSid did everything right. In the parser code, the capacity is forced to 1, regardless of what's specified. Therefore, 1 divided by 0.5 = 2.
Now, the convention I had in mind would be that the capacities specified on fighters would all be 1, because you are loading one magazine onto a fighter. The magazine size is directly determined by the "cargo size" specified in the weapon entry. So in this case there would be two bullets per magazine.
But just because this is the convention doesn't mean everyone has to do it this way. So it's a bug. Put it on Mantis. :)
and I can set it to 2 and oh-the-miracle have doubly my ammonition.
dont listen to Goober :p
-
:wtf: What build are you using?
-
12_05_2003...read my post. Think Lightspeed is using the same one.
-
For reference: $PBank Capacity: (n, n) in ships.tbl and $Cargo Size: n in weapons.tbl are the ones that do the trick. Thanks guys.
-
see the link in my title?
using that and doing some edit's would be awsome.
-
Originally posted by Goober5000
:wtf: What build are you using?
FS2_shivan_xtra_evil.exe -- why? :lol:
Ever since i first tried using ballistic weapons those two parameters work like a charm. I have used varying primary bank capacities from 1-20 and they all worked fine.
-
Originally posted by kasperl
see the link in my title?
using that and doing some edit's would be awsome.
I added weapons.tbl -- it still is missing the new flags and stuff, but most of it's there :)
-
nice.
when i have time, i'll do some wiki stuff myself, but first i need time.
-
Originally posted by kasperl
nice.
when i have time, i'll do some wiki stuff myself, but first i need time.
You better like it, I spent nearly 2 hours on it *curses wiki* :)