Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: chief1983 on December 02, 2008, 03:06:32 pm

Title: Need verification: FRED crashes when changing squad logo
Post by: chief1983 on December 02, 2008, 03:06:32 pm
I'm getting crashes using FRED nightly builds after assigning a player to a wing and trying to change its squad logo in the Wing editor.  SCP staff have so far been unable to reproduce this, and I'm curious if anyone else is able to, so I know how severe a bug this could be.  Could some people please try to check it real quick?  The bug report for it is 1748 (http://scp.indiegames.us/mantis/view.php?id=1748), and it's currently low priority, but if others experience a crash as well it'll need to get fixed sooner than later.  Only takes a few seconds to add your ship to Alpha wing and hit the squad logo button in the wing editor to see if it dies.
Title: Re: Need verification: FRED crashes when changing squad logo
Post by: FUBAR-BDHR on December 02, 2008, 04:00:27 pm
No cash here but there are a few quarks.  First it only lets you choose .pcx files but then displays 2 file types that are junk.  One is just special character the other a bunch of special characters followed by Head-TP5.  Also get that warning about changing the player wing one.

What file type are you trying to change it to?  Is the file the right size? 

Title: Re: Need verification: FRED crashes when changing squad logo
Post by: karajorma on December 02, 2008, 04:04:28 pm
I just fixed that bug with the gibberish characters actually. When the next Nightly build is out check again to see if I caught all the instances of it.
Title: Re: Need verification: FRED crashes when changing squad logo
Post by: chief1983 on December 02, 2008, 05:06:17 pm
Sorry, the crash happens before the dialog pops up, as soon as I click the button to change the logo.  I don't even know what the dialog should look like, for some reason I've never been able to open it.
Title: Re: Need verification: FRED crashes when changing squad logo
Post by: terran_emperor on December 02, 2008, 05:45:04 pm
No cash here but there are a few quarks.

 :wtf:

----Begin Rant----

Surely you mean "No CRASH but there are a few QUIRKS"

You totally change the meaning of the Sentence with "quarks". My initial reaction was "WTF?! Of course there are going to be quarks. How casn there not be quarks? Anything made of matter is going to have quarks. I'd be worried if it didn't have quarks...

Then when i saw the "No Cash" bit i was like "Now the sentence makes no sense at all"

----End Rant----

I've never gotten this crash. I've just never gotten the Squad logo thing to work for me. I tried to create a new squad logo, but i coundn't get it to show up in game.

[edit]
I thought the Squad logo was done in "mission specs" editor. Ive just checked wing editor and seen you can do it there. Maybe the "mission specs" way is the more stable way
Title: Re: Need verification: FRED crashes when changing squad logo
Post by: Zacam on December 02, 2008, 09:03:07 pm
Given that I never run FRED, I tried this out.

Opened FRED2_Open (Builds 4939-4968).  Shift+N. Put in a Name "101st Test". Hit the Logo Button. Crash.

Hmmm.

Re-Opened FRED2. Placed 4 ships, formed BLAZI--err, wing (CTRL+W). Right-Clicked lead and chose Edit Wing. Hit Squad Logo, Crash.

Retail and MediaVP's (3.6.8zeta+710 and Internal 3.6.10).

Debug generates this:

Debug Assertion Failed!

Program: C\Freespace2\fred2_open_3_6_10d.exe
File: f:\dd\vctools\crt_bld\self_x86\crt\src\drive.c
Line: 109

Expression: ("Invalid Drive Index",0)

For information on how your program can cause an assert
failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)
Title: Re: Need verification: FRED crashes when changing squad logo
Post by: FUBAR-BDHR on December 02, 2008, 09:11:19 pm
Just tired the same steps (reverse order) and no crash. 
Title: Re: Need verification: FRED crashes when changing squad logo
Post by: FUBAR-BDHR on December 02, 2008, 09:15:19 pm
FOUND IT!!!!!!!!!!

It will crash if you don't have a data\players\squads directory.
Title: Re: Need verification: FRED crashes when changing squad logo
Post by: Zacam on December 02, 2008, 10:41:20 pm
Unfortunately, I do, both in retail and in my SVN working DIR of the mediavp's.

Sorry.
Title: Re: Need verification: FRED crashes when changing squad logo
Post by: FUBAR-BDHR on December 02, 2008, 10:47:17 pm
Well then we have 2 issues here because all I did to get the crash was rename the squads directory to squads.sav.  No mods of MediaVPs active. 

Just tried it again and I get the exact same error message you did right down to the line number.

Little more testing.  I opened a file from another directory.  After that it defaulted to that directory for the files.  Removed that directory and it defaulted back to squads except when there were no files in quads it defaulted to my documents.  It kept defaulting to my documents until I put a file back in squads and opened it.  Now even with no files in squads it will still default to squads.  No crash though.
Title: Re: Need verification: FRED crashes when changing squad logo
Post by: phreak on December 03, 2008, 12:28:33 am
Should be fixed as of the next nightly.
Title: Re: Need verification: FRED crashes when changing squad logo
Post by: chief1983 on December 03, 2008, 01:45:08 am
The reason for this particular crash should be taken care of, I'm still not sure why it would crash for Zacam.  It looks like it can't find his squads folder even when it exists.  Either way, this should fix the crash, but not finding the squads folder might still be a bug, although it may not matter in the end anyway.  Zacam, does your squads folder actually work?
Title: Re: Need verification: FRED crashes when changing squad logo
Post by: Zacam on December 14, 2008, 03:07:04 pm
A bit late and it is already addressed in IRC and Mantis, but the issue has been resolved with chiefs fixes. It was trying to load a mod location that didn't exist from some bygone day when I last ran FRED. But rather than a warning or switching to the new mod location, it just crashed.