Author Topic: Storm Front mission loading error  (Read 8518 times)

0 Members and 1 Guest are viewing this topic.

Offline CT27

  • 211
Storm Front mission loading error
I've played the campaign "Storm Front" relatively well but I'm at the fourth mission of act 2 and it won't seem to load.

Unable to find WEAPON_LIST_TYPE string "MX-52" in stuff_int_list

Many possible sources for this error.  Get a programmer!

ntdll.dll! ZwWaitForSingleObject + 21 bytes
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
fs2_open_3_7_1_20140902_r11061-DEBUG.exe! <no symbol>
kernel32.dll! BaseThreadInitThunk + 18 bytes
ntdll.dll! RtlInitializeExceptionChain + 99 bytes
ntdll.dll! RtlInitializeExceptionChain + 54 bytes


This is what I got when I couldn't even load a debug build.  I've also attached a fs2open log.


[attachment kidnapped by pirates]

 

Offline CT27

  • 211
Re: Storm Front mission loading error
It happens whether I use 3612 or 2014 vps.

 

Offline LHN91

  • 27
Re: Storm Front mission loading error
To start with, it looks like you're loading Stormfront twice in your command line:

Code: [Select]
Passed cmdline options:
  -mod StormFront_1+2,StormFront_1+2,StormFrontStock,MediaVPs_2014

Beyond that, I'm not sure. It's triggering an Int3 loading a model, it seems.

 

Offline CT27

  • 211
Re: Storm Front mission loading error
I have no idea why it's saying I'm loading Storm Front twice.

[launcher]
image255x112 = StormFront12-Logo.bmp;
infotext     = The Storm Front Saga - Episodes I & II;
website      = http://www.junk-productions.de.vu/;
forum        = http://www.hard-light.net/forums/index.php?topic=67097.0;

[multimod]
primarylist = ;
secondarylist = StormFront_1+2,StormFrontStock,MediaVPs_2014;





That's what my mod.ini looks like and I don't have that one thing loaded twice.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Storm Front mission loading error
...So the mod contains itself in the secondarylist? That would be why it's loading twice.

It's triggering an Int3 loading a model, it seems.
No, it's parsing mv_root-shp.tbm and weapon_info_lookup("MX-52") is failing, which is... odd.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline CT27

  • 211
Re: Storm Front mission loading error
http://www.hard-light.net/forums/index.php?topic=84844.0

I also tried the secondary list line Yarn suggested in this thread^ and same problems...

 

Offline Macfie

  • 210
  • If somebody made a campaign I've probably got it
Re: Storm Front mission loading error
The secondary should never have the name of the mod you have selected in it.
secondarylist = StormFront_1+2,StormFrontStock,MediaVPs_2014;
Since you are playing StormFront_1+2, the secondary should be:
secondarylist = StormFrontStock,MediaVPs_2014;
Normal people believe that if it isn't broke, don't fix it. Engineers believe that if it isn't broke, it doesn't have enough features yet.
The difference between Mechanical Engineers and Civil Engineers is:
Mechanical Engineers build weapons.  Civil Engineers build targets
An optimist sees the glass half full; the pessimist sees it half empty. An engineer sees that the glass is twice as big as it needs to be.

 

Offline CT27

  • 211
Re: Storm Front mission loading error
I made the secondarylist what Macfie said and I still get the same problem.  I select my pilot but after I click on the ready room to try and continue the campaign, nothing...the loading screen just sits there for minutes.  When I click the mouse the game stops and I get a small popup saying that FS Open has stopped working.

For the record I'm using nightly build 11061.


http://www.freespacemods.net/download.php?view.615   (this is where I got my download from).

 

Offline CT27

  • 211
Re: Storm Front mission loading error
Here is what I did ( I just tried redownloading things):

I downloaded the campaign from the link I just provided.  Then I used 7-Zip to extract things.

I got two folders from that:  A Storm Front 1+2 folder and a StormFrontStock folder.  I put both folders into my FS2 folder like I usually do for mods.  I then went into the "1+2" folder and changed the mod.ini to the line Macfie suggested.

Is it possible that since I originally played with the campaign name in the secondarylist (like Macfie said shouldn't be done) that somehow my pilot file got corrupted?  Would starting over with a new pilot file maybe fix things?

 

Offline Macfie

  • 210
  • If somebody made a campaign I've probably got it
Re: Storm Front mission loading error
Pilot file corruption is always a possibility.  you could do like you did for Tango and delete the .csg file, which just stores progress for this campaign.
Normal people believe that if it isn't broke, don't fix it. Engineers believe that if it isn't broke, it doesn't have enough features yet.
The difference between Mechanical Engineers and Civil Engineers is:
Mechanical Engineers build weapons.  Civil Engineers build targets
An optimist sees the glass half full; the pessimist sees it half empty. An engineer sees that the glass is twice as big as it needs to be.

 

Offline CT27

  • 211
Re: Storm Front mission loading error
I tried deleting all three FS files concerning my pilot file for this campaign instead of just deleting the .csg file.

After I beat act 2 mission 3 of Storm Front I and tried to go onto mission 4, like before, the mission just won't seem to load.

So I still have this problem unfortunately.

 

Offline CT27

  • 211
Re: Storm Front mission loading error
Also, should the Amun be a simple red dot in this campaign on the radar instead of the symbol for a bomber?  That's another issue I noticed.

 

Offline CT27

  • 211
Re: Storm Front mission loading error
It just seems strange that a campaign works fine but then all of a sudden it just won't load one mission.

Is there any other place to download this other than FSMods?

 

Offline Yarn

  • 210
Re: Storm Front mission loading error
I haven't actually tried playing this yet, but I think I know what the problem is. The StormFront1+2 mod includes a version of weapons.tbl that does not include an MX-52 entry (well, it has MX-52#Shivan, but that's it), even though the retail table has it. Thus, when tables referencing this weapon (like mv_root-shp.tbm) are loaded, the game can't find the weapon, resulting in the error message that CT27 is getting.
"Your fighter is running out of oil.  Please check under the hood and add more if necessary"
--strings.tbl, entry 177

"Freespace is very tired.  It is shutting down to get some rest."
--strings.tbl, entry 178

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Storm Front mission loading error
I haven't actually tried playing this yet, but I think I know what the problem is. The StormFront1+2 mod includes a version of weapons.tbl that does not include an MX-52 entry (well, it has MX-52#Shivan, but that's it), even though the retail table has it. Thus, when tables referencing this weapon (like mv_root-shp.tbm) are loaded, the game can't find the weapon, resulting in the error message that CT27 is getting.
...Somehow, it just didn't occur to me that the mod would actually be referencing the 2014 MediaVPs without being able to load them. Note to self: check for the most obvious reason the game can't find the damned weapon next time.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Yarn

  • 210
Re: Storm Front mission loading error
I tried fixing the problem myself by adding an MX-52 entry to Storm Front's weapons.tbl, and all it fixed was the message about that weapon being missing (and it's actually a warning, not an error, so it can be ignored by clicking "no"). The mission still crashed with a generic "this program has stopped working" message. That means that the problem must lie elsewhere.
"Your fighter is running out of oil.  Please check under the hood and add more if necessary"
--strings.tbl, entry 177

"Freespace is very tired.  It is shutting down to get some rest."
--strings.tbl, entry 178

 

Offline CT27

  • 211
Re: Storm Front mission loading error
I got the error message (about the MX-52) when trying to start a debug build.

On 'normal' builds (including nightly ones) I'm able at least to get to the main hall and click on the ready room to try and play act 2 mission 4 but that's when things freeze up (and this was using 3612 and 2014s).

 

Offline Yarn

  • 210
Re: Storm Front mission loading error
I did some more testing. The crash happens when loading the Amalthea model, and it appears to be caused by an access violation in find_tri_counts() when reading the values for the id and size variables.

The patch below contains the code that I used to determine this. Once it's applied, load the Storm Front mod, go to the Tech Room, and select the GTC Amalthea. After the game crashes, open your fs2_open.log (did I mention that you need to run a debug build?) and scroll to the very bottom. You'll probably notice that the offset at the end suddenly grew by a few orders of magnitude and that the id value was not read (because of the crash).
Code: [Select]
Index: code/model/modelinterp.cpp
===================================================================
--- code/model/modelinterp.cpp (revision 11072)
+++ code/model/modelinterp.cpp (working copy)
@@ -4110,8 +4110,11 @@
 // tri_count
 void find_tri_counts(int offset, ubyte *bsp_data)
 {
+ mprintf(("Yarn: offset = %d, ", offset));
  int id = w(bsp_data+offset);
+ mprintf(("id read successful, "));
  int size = w(bsp_data+offset+4);
+ mprintf(("size read successful\n"));
 
  while (id != 0) {
  switch (id)


I have no idea what's really causing the crash, though.
"Your fighter is running out of oil.  Please check under the hood and add more if necessary"
--strings.tbl, entry 177

"Freespace is very tired.  It is shutting down to get some rest."
--strings.tbl, entry 178

 

Offline CT27

  • 211
Re: Storm Front mission loading error
Is it perhaps the mission file that's not working right?

 

Offline niffiwan

  • 211
  • Eluder Class
Re: Storm Front mission loading error
I think it's more likely that the GTC Amalthea POF has something wrong with it.
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...