Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: headdie on May 11, 2009, 03:32:48 pm

Title: Primary Ammo
Post by: headdie on May 11, 2009, 03:32:48 pm
Hi

I'm trying to set up ballistic weapons (E.G. Avenger/GTW-66 Maxim) but to be believable I want to incorporate limited ammo.

I have set my weapon to - $Cargo Size: 0.1 ;; Amount of space taken up in weapon cargo
I have added the line in the ship entry - $PBank Capacity:            ( 40, 40 )
but I get the following error when firing up FRED

---------------------------
Warning!
---------------------------
Warning: Pbank capacity specified for non-ballistic-primary-enabled ship LSiF-17 M2.
Resetting capacities to 0.
File: Ship.cpp
Line: 5361
Call stack:
------------------------------------------------------------------
    fred2_open_3_6_10_RC2_debug.exe 00540c8c()
    fred2_open_3_6_10_RC2_debug.exe 00457abe()
    fred2_open_3_6_10_RC2_debug.exe 0044d831()
    fred2_open_3_6_10_RC2_debug.exe 009c65c2()
    fred2_open_3_6_10_RC2_debug.exe 009c5f24()
    fred2_open_3_6_10_RC2_debug.exe 009c3ac9()
    fred2_open_3_6_10_RC2_debug.exe 009c3f65()
    USER32.dll 77d48709()
    USER32.dll 77d4d297()
    USER32.dll 77d4b368()
    USER32.dll 77d4e840()
    ntdll.dll 7c90eae3()
    USER32.dll 77d518a4()
    USER32.dll 77d5193e()
    fred2_open_3_6_10_RC2_debug.exe 009c48f9()
------------------------------------------------------------------
[ This info is in the clipboard so you can paste it somewhere now ]
Use Yes to break into Debugger, No to continue.
and Cancel to Quit
---------------------------
Yes   No   Cancel   
---------------------------

Any one have any idea what i need to do next?  also how will this affect the support ship?
Title: Re: Primary Ammo
Post by: FUBAR-BDHR on May 11, 2009, 03:59:00 pm
Is the weapon defined with the "ballistic" flag?
Title: Re: Primary Ammo
Post by: headdie on May 11, 2009, 04:06:19 pm
Such a simple answer just need to set the rearm time now. cheers