Author Topic: Red alert mission loads wrong ship  (Read 2324 times)

0 Members and 1 Guest are viewing this topic.

Red alert mission loads wrong ship
Hi all,

I recently ran into a problem while playing through Derelict.  It appears several of the red alert mission aren't storing my ship/loadout data correctly, and I'm getting the wrong setup on the following missions.  I initially thought this was due to not creating a new pilot profile, but this is also occurring on the new pilot I created.

It's gotten me stuck on the "chase the Shivans" sequence, as it loaded the Myrmidon/low ammo setup from earlier in the campaign.

Is there a way to manually modify my loadout to something else?


 

Offline LoneKnight

  • 27
  • One does not simply ALT-J into Mordor.
Re: Red alert mission loads wrong ship
There seem to be a lot of issues associated with Red Alerts. I'll be interested to know why...
Burning Heaven

 

Offline LHN91

  • 27
Re: Red alert mission loads wrong ship
IIRC the pilot code is notorious for messing up red alert missions. Out of curiousity, did you start a new pilot when you started Derelict? At the moment, that's most recommended way to avoid errors like those, at least until the new pilot code is finished up over in Antipodes,

 
Re: Red alert mission loads wrong ship
IIRC the pilot code is notorious for messing up red alert missions. Out of curiousity, did you start a new pilot when you started Derelict? At the moment, that's most recommended way to avoid errors like those, at least until the new pilot code is finished up over in Antipodes,

I originally did not, and had problems on the first red alert mission.  I then created a new pilot, did not have problems on the first couple red alert missions, and have now reached a second set of red alert missions that keep pulling loadouts from the first set.

If it's a pilot file error, is there a way to tweak the file in a hex editor to fix the issue?

 

Offline LHN91

  • 27
Re: Red alert mission loads wrong ship
There..... *might* be, I seem to remember someone posted about it before, but I'm not sure when that was, or how to be honest. May have to wait for one of the more experienced support ninjas to show up.

Admittedly, I've almost never had an issue with red alert missions, despite the apparent regularity with which the issues show up.

 

Offline niffiwan

  • 211
  • Eluder Class
Re: Red alert mission loads wrong ship
I've done some simple hex edits to fix some pilot files, but I've got to say that for your situation, it's quite a difficult task.  For each ship on your team in the mission-before-the-red-alert-mission you need to set name, class, hull damage, subsystem damage (for each possible subsystem, i.e. 64), and finally weapon data for the possible 7 banks a ship could theoretically have.  And you need to set the number of ships the red alert data is stored for.  And all the references to ship classes and weapons are mod specific.  And it's all got to be in the right order without anything missing.  And the ints are of course read LSB to MSB, and I've never bothered to work out how floats are stored on disk so I can't help you there!  (note - all the hull & subsystem damage values are floats) :)

If you only want to modify your ship, and only the weapon loadout that you have, and you fully accept the risk of completely trashing your pilot, and you're familiar with reading C/C++, then have a look at the function red_alert_read_wingman_status_campaign in missionui/redalert.cpp to find the order in which everything is in the file, and give it a go (naturally, backup your pilot files 1st!).  Otherwise, forget it, as it would be faster to replay the campaign :D  Or perhaps more relevant to your case, just live with the messed up ship & its loadout for that one mission.
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

  

Offline Jeff Vader

  • The Back of the Hero!
  • Moderator
  • 212
  • Bwahaha
Re: Red alert mission loads wrong ship
Or edit said missions to be not red-alert and have a proper loadout?
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []

 
Re: Red alert mission loads wrong ship
Or perhaps more relevant to your case, just live with the messed up ship & its loadout for that one mission.

I would have just done this, but it put me in a Myrmidon with PromRs and 80 Tempests, and told me to go take out a Lilith main cannon while under fire from 3 cruisers' flak guns.   :ick:

It sounds like Jeff Vader's suggestion might be the simplest fix...get into the VP archives, edit the mission in FRED to not be a red alert, and allow decent loadout equipment?  Are there any drawbacks or things to look out for with this approach?

 

Offline LoneKnight

  • 27
  • One does not simply ALT-J into Mordor.
Re: Red alert mission loads wrong ship
Is there a method to get a Red Alert briefing, but not deal with any of the other red alert settings? Like the mission is a standard, but the briefing is the only thing different.

I ask because Red Alerts caused a bunch of issues in Burning Heaven, and I had to change them to normal missions. I really liked the briefings.
Burning Heaven

 
Re: Red alert mission loads wrong ship
I ended up cracking open the VPs and turning off the red alert option for that mission, which solved the problem.  Thanks everyone for the help!