Random crash thing....again

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
Song
Fleet Admiral
Fleet Admiral
Posts: 2831
Joined: Mon Aug 17, 2009 4:27 am

I swear to god, I have seen this before in earlier versions......sometimes with vanilla game ships.

Image

What was happening: CSC Atlantica+ escorts attacking nearby gaian processor. My Ronin/D (modded ships I'm developing) wingmen (spawned with G.O.D Mod) went in to attack, did so...and then it crashed when I tried an order. Not sure which, but I think that debug text says somewhere.

But I have seen VERY similar things before. And not always with wingmen.
Mischievous local moderator. She/Her pronouns.
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

It has to do with orders, and I think its actually not random; it requires a very specific procedure to activate, if I remember correctly.
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

I can't repro this bug and maybe someone can help.

The crash happens because a Fleet wingman (a ship using the fleet controller) is trying to escort a non-existent leader.

Unfortunately, I can't see how that can happen.

1. This could happen if a Fleet wingman got an order to escort Nil. But I don't think that can happen (the code to add orders checks for Nil).

2. If the leader gets destroyed, the escort order is canceled, so it should not continue trying to escort.

If anyone can reproduce this bug (with or without mods) I would appreciate it.
schilcote
Militia Captain
Militia Captain
Posts: 726
Joined: Sat Feb 02, 2008 7:22 pm

Whenever something "can't happen", that's exactly what's happening. Just like shifting emphasis can change the entire meaning of a sentence in english, one missed punctuation mark can completely change the meaning of a block of code, usually for the worse.
[schilcote] It doesn't have to be good, it just has to not be "wow is that the only thing you could think of" bad
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

What would happen if the leader gates out of the system?
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Wolfy wrote:What would happen if the leader gates out of the system?
It counts as destroyed--at least, that's what's supposed to happen.

But don't take my word for it. The fact that I can't see how this can happen means that I'm wrong about one of my assumptions.

But I need help in figuring out *which* assumption is wrong. A reproducible case would help a lot.
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

I'll see if I can rig something up later this week to test the situation... (no promises on my workload though)
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
Song
Fleet Admiral
Fleet Admiral
Posts: 2831
Joined: Mon Aug 17, 2009 4:27 am

Hmm. I once saw a bug in either 0.99c or early 1.0 RCs where the game crashed if you tried to command an auton in the instant it was destroyed.....
Mischievous local moderator. She/Her pronouns.
Post Reply