Author Topic: $Substitute: does not work on turrets?  (Read 2390 times)

0 Members and 1 Guest are viewing this topic.

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
$Substitute: does not work on turrets?
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
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Iss Mneur

  • 210
  • TODO:
Re: $Substitute: does not work on turrets?
Hmm, I will have to take a look at it when I get home.  Unfornatly, I never tested the feature with capships.
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: $Substitute: does not work on turrets?
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"
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Iss Mneur

  • 210
  • TODO:
Re: $Substitute: does not work on turrets?
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.
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: $Substitute: does not work on turrets?
 :bump:
Any progress on this?
I've recently tried to make a realistic ZSU-23-4 style turret and ran into this problem.

 

Offline Iss Mneur

  • 210
  • TODO:
Re: $Substitute: does not work on turrets?
: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.
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: $Substitute: does not work on turrets?
Substituting beams would fire a beam down the turret normal?
If only it were that easy...
(´・ω・`)
=============================================================

 

Offline Iss Mneur

  • 210
  • TODO:
Re: $Substitute: does not work on turrets?
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...
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments