Author Topic: Any help? Got an error after compile  (Read 1548 times)

0 Members and 1 Guest are viewing this topic.

Offline avengre

  • 22
    • http://www.geocities.com/avengre
Any help? Got an error after compile
------------------------------------------------------------------
Assert: Num_weapon_expl < MAX_Weapon_expl_info
File: C:\fs2code\code\Weapon\Weapons.cpp
Line: 485

Call stack:
------------------------------------------------------------------
    weapon_init()    game_init()    WinMainSub()    WinMain()    WinMainCRTStartup()    KERNEL32.dll 7c581af6()
------------------------------------------------------------------


Thats the error i'm getting after a stock compile of the fs2 source code.  New to the FS2 scene, but i did a good bit of modding to q2 / HL so i'm gonna see what i can do with the FS2 engine :).  However, i've just gotten stopped by this error.  

I've made no changes to the source, and i've changed all the output directories to the fs2 folder.   I get a similar Assertion error with FRED. Here is the copy/paste of that

---------------------------------------------------------------------
Assert: Num_weapon_expl < MAX_Weapon_expl_info
File: C:\fs2code\code\Weapon\Weapons.cpp
Line: 485

Call stack:
------------------------------------------------------------------
    Fred2.exe 00524b24()
    Fred2.exe 0044b377()
    Fred2.exe 0043478e()
    Fred2.exe 004345b6()
    MFC42D.DLL 5f426b79()
    MFC42D.DLL 5f4631c8()
    MFC42D.DLL 5f4632c0()
    MFC42D.DLL 5f46332d()
    MFC42D.DLL 5f4632f4()
    Fred2.exe 00448c61()
    MFC42D.DLL 5f42f293()
    MFC42D.DLL 5f42ebe8()
    MFC42D.DLL 5f42c789()
    MFC42D.DLL 5f42cc25()
    MFC42D.DLL 5f49049d()
------------------------------------------------------------------



However, Helped will compile and run correctly.  And it uses the "Code" subset.  Anyone have any ideas?

 

Offline redmenace

  • 211
Any help? Got an error after compile
:welcome:
As for your problem try to rebuild all of the source code.

for FRED you have to copy the code.lib over to the FRED_Open directory.
Government is the great fiction through which everybody endeavors to live at the expense of everybody else.
              -Frederic Bastiat

 

Offline avengre

  • 22
    • http://www.geocities.com/avengre
Any help? Got an error after compile
I did rebuild all the source... i deleted all the .obj and intermediate files also.  As for the FRED issue, i dont have FS:O installed.

 

Offline redmenace

  • 211
Any help? Got an error after compile
do you have the direct x 8.1 SDKs installed? I guess you do.
You need the fs2_open code as well inorder to get fred to compile. you need the code.lib file for fred like I said before.
Government is the great fiction through which everybody endeavors to live at the expense of everybody else.
              -Frederic Bastiat

 

Offline avengre

  • 22
    • http://www.geocities.com/avengre
Any help? Got an error after compile
Hmm.. i've done all that you said, i also tried to compile using the Toolkit from 2003 as is stickied... all with the same error.  Is there any chance that you any of you can compile a stock fs2.exe and see if i'm able to run it? Maybe its just some internal computer error on my side.  And if that dosent work, can anyone attempt to run a copy of my compiled fs2.exe and see if they get the same assertion errors that i'm getting.  


- Avengre

 

Offline avengre

  • 22
    • http://www.geocities.com/avengre
Any help? Got an error after compile
These are not compile errors.  These are the errors i'm getting when i attempt to run the .exe

The .exe's compile with no problems at all.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Any help? Got an error after compile
Speaking as someone who has done little more than dabble with the code.

Did you get your source code from CVS or did you just download it from Descent-network or somewhere similar and start playing? I'm not trying to be patronising or anything but this error wouldn't surprise me if you tried to run an old FS2_Open build with new weapon_expl tables.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

  

Offline avengre

  • 22
    • http://www.geocities.com/avengre
Any help? Got an error after compile
Well, i managed to finally get it compiled... (i think) and run.

I deleted my old installation (including fs2_open).

I reinstalled freespace2, ran the patch to 1.20.  Redownloaded the fs2 source code (off freespace-2.com).  copied the fs2.exe i had just compiled and all the errors went away... i wish i knew why. As an afterthought, there is no data in the data->tables directory, should there be?

Is there a place to download the fs2open source code? Or is that a closed resource.  I'd just like to have a top of the line code to do some toying with rather than an outdated one.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Any help? Got an error after compile
Quote
Originally posted by avengre
Redownloaded the fs2 source code (off freespace-2.com).


Aha. I have a knack for spoting these things! :D

You're using old code and as such when this encounters the new tbls in the media vp files it falls over and plays dead. Removing the media.vp's (Which happened when you reinstalled) means that the build finds only the standard FS2 tables and thus is quite happy.

You can get the latest code using a program called WinCVS. A guide on how to use this with the SCP can be found here  but I don't know how current it is (last time I tried CVS it bounced me out saying I needed a proper name and password).

Anyway now they know what the problem is the real programmers on the SCP should be able to set you straight :D
« Last Edit: September 08, 2004, 03:24:25 pm by 340 »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline redmenace

  • 211
Any help? Got an error after compile
Government is the great fiction through which everybody endeavors to live at the expense of everybody else.
              -Frederic Bastiat