Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
nschlein

Registered:
Posts: 174
Reply with quote  #1 
EDIT EDIT: Culprit PERHAPS found...still have questions...

I'm getting a persistent crash every time I attempt to start a particular mission after running/aborting EITHER it OR another one. 

[....snipped out incorrect assumption....]


<set_player_carried_type player_slot="0" bay_slot="0" name="Mirror" hullKeys="" raceKeys="" />


I used that (and it's seven siblings) in the start block to name the shuttles on all 8 ships.  (Yes, before Ship 0 is created.) 

The mission works fine when I disabled the lines, and obligingly crashed the instant I enabled just one instance.

EDITED ADDITION:
I'm also getting a crash upon the player ship being destroyed.

Looking for suggestions as to possible causes and solutions...
nschlein

Registered:
Posts: 174
Reply with quote  #2 
Okay...so an update.
The mission is mostly running fine.  I am testing the various endings, but it appears that the main problem had to do with the Mission Editor and some kind of file corruption when it crashes.   This was behavior I'd encountered before and thought had been fixed.

To resolve it, I copied the entire set of mission commands to a new file.  No end-of-mission crash--so far... 

I'm still experiencing crashes when I reactivate <set_player_carried_type>, however.
HaydenBarca

Registered:
Posts: 455
Reply with quote  #3 
Two thoughts on the set_player_carried_type crash.  One is to make sure that command happens before the create player command.  The second is that I don't think it likes leaving the hull and race keys blank.  It doesn't seem content to accept whatever the player chooses and then assigning a name to it, you have to specify a TSN LR Shuttle (for example) through either method (key or hullID).

<set_player_carried_type player_slot="0" bay_slot="0" raceKeys="TSN" hullKeys="shuttle" name="Mirror" />

Of course this one will randomize between LR and regular.
<set_player_carried_type player_slot="0" bay_slot="0" raceKeys="TSN" hullKeys="TSN LR Shuttle" name="Mirror" />
would specify the LR Shuttle
nschlein

Registered:
Posts: 174
Reply with quote  #4 
Thanks, I'd meant to look into that.  I was wondering about specifying hull info at one point; the Wiki says it shouldn't be necessary, but that was going to be my next thing to check after verifying that the endings aren't crashing the game.  (Which seemed rather more important than enabling shuttle proximity as an optional event trigger...)

The shuttles were definitely named before ship creation; the only ship created in the start block is player 0, and it's practically the last thing.  The rest only spawn if players are in the game.


nschlein

Registered:
Posts: 174
Reply with quote  #5 
Update!
HaydnBarca was right: specifying a carried ship name requires keys or a hull ID to avoid crashes.  This is contrary to what the Wiki states.

I also had a eureka moment about two last-minute additions to the mission (this is for the TSN Armada First Contact challenge), and immediately ran into some perplexing behavior around Comms buttons.  I'm not sure if the problem is tied to the Mission Editor or the base Artemis script and I'm a little puzzled that no one has mentioned it previously, but what I was attempting is a bit unconventional; maybe the behavior has been there all along.  All issues are now resolved, and I think the information I learned may be useful to others.

THE TAKEAWAY:

When either creating OR clearing Comms buttons, you can only affect one Ship Side per event.

I could alter as many buttons as I wanted on a single side, but to spawn or clear buttons on multiple sides I had to use separate events.

Having more than one side listed in the code doesn't cause a crash.  However, if you set or clear buttons on side 2 and then side 3, it will process the side 2 buttons and skip the side 3 commands. 

(Just realized that I didn't officially test the result of interspersing them, but I THINK it stopped registering them as soon as the side changed the first time.)

I hope someone finds that to be useful, and I'll submit it as a bug report as soon as I have time.
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.