Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Spoon on February 22, 2011, 10:38:24 am

Title: $Substitute: does not work on turrets?
Post by: Spoon on February 22, 2011, 10:38:24 am
I'm getting this crash when giving a capital ship a weapon that has substitute defined
Assert: position != NULL
File: weapons.cpp
Line: 4966
'LSF Challenger 1' is trying to fire a weapon that is not selected

And from the debug log:
ASSERTION: "position != NULL" at weapons.cpp:4966
 'LSF Challenger 1' is trying to fire a weapon that is not selected
Int3(): From g:\fso\fs2_open_0\code\globalincs\windebug.cpp at line 970
Title: Re: $Substitute: does not work on turrets?
Post by: Iss Mneur on February 22, 2011, 02:11:48 pm
Hmm, I will have to take a look at it when I get home.  Unfornatly, I never tested the feature with capships.
Title: Re: $Substitute: does not work on turrets?
Post by: Spoon on February 24, 2011, 03:14:13 pm
Doesn't work with beam weapons either
"WARNING: "An attempt to fire a beam ('Ravagerbeam') through weapon_create() was made." at weapons.cpp:4946
Int3(): From g:\fso\fs2_open_0\code\globalincs\windebug.cpp at line 1277"
Title: Re: $Substitute: does not work on turrets?
Post by: Iss Mneur on February 27, 2011, 05:43:05 pm
Doesn't work with beam weapons either
"WARNING: "An attempt to fire a beam ('Ravagerbeam') through weapon_create() was made." at weapons.cpp:4946
Int3(): From g:\fso\fs2_open_0\code\globalincs\windebug.cpp at line 1277"
What is the expected result of using beams with this system.  Because beams work so differently from every other weapon I am not sure if it is doable.

Because of how the engine handles turrets I am consulting with SCP as to what we figure will be the best solution.
Title: Re: $Substitute: does not work on turrets?
Post by: Dragon on April 21, 2011, 07:24:21 am
 :bump:
Any progress on this?
I've recently tried to make a realistic ZSU-23-4 style turret and ran into this problem.
Title: Re: $Substitute: does not work on turrets?
Post by: Iss Mneur on April 21, 2011, 01:30:13 pm
:bump:
Any progress on this?
I've recently tried to make a realistic ZSU-23-4 style turret and ran into this problem.
Not really.  Primarily because I don't have time until August to actually sit down and actually spend the time to work on this.

Also, nobody answered my question about the expected behavior of substituting beams.
Title: Re: $Substitute: does not work on turrets?
Post by: Droid803 on April 22, 2011, 05:47:12 pm
Substituting beams would fire a beam down the turret normal?
If only it were that easy...
Title: Re: $Substitute: does not work on turrets?
Post by: Iss Mneur on April 22, 2011, 08:19:21 pm
Substituting beams would fire a beam down the turret normal?
If only it were that easy...

:D

I didn't really want to have to rewrite the entire weapons code...