Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Turey on September 23, 2006, 11:05:20 pm

Title: MAX_SHIP_CONTRAILS problem
Post by: Turey on September 23, 2006, 11:05:20 pm
alright, i've been running a couple of my new ships through a simple mission on a debug build, to see if there's anything at all wrong with them. The regular build is weird, as it does one of three things:
1. CTD's at some random point in the mission.
2. Locks up my steering (but not my speed. I can move, it's just i can't turn at all.)
3. Works fine.

so i've been running them through the debug build, fixing errors as they pop up. Then i get to this one:
Code: [Select]
Assert: MAX_SHIP_CONTRAILS > shipp->ab_count
File: C:\temp\fs2_open_3_6_9.t\code\ship\Ship.cpp
Line: 8651
[This filename points to the location of a file on the computer that built this executable]

Call stack:
------------------------------------------------------------------
    parse_create_object_sub()    parse_create_object()    parse_wing_create_ships()    post_process_ships_wings()    post_process_mission()    parse_mission()    parse_main()    mission_load()    game_start_mission()    game_enter_state()    gameseq_set_state()    game_process_event()    gameseq_process_events()    game_main()    WinMain()------------------------------------------------------------------


Even though i know plenty of C, I don't know the FSO source code well enough to understand WHY this is happening.

If you really need the xxx-shp.tbm file, i'll post it, but i'd rather not.

help?
Title: Re: MAX_SHIP_CONTRAILS problem
Post by: Bobboau on September 24, 2006, 01:15:55 am
my guess is you put more thruster glows on a ship with AB trails than you were alowed to. I think it's like 16 or something.
Title: Re: MAX_SHIP_CONTRAILS problem
Post by: Turey on September 24, 2006, 01:21:49 am
lol yeah..........


the fighter has 20 glows, the bomber 10.

I like the Millenium Falcon bar engine look, and my ships reflect that preference, esp. in glows.

I can probably chop the fighter down to 10.
Title: Re: MAX_SHIP_CONTRAILS problem
Post by: WMCoolmon on September 24, 2006, 01:44:47 am
Can it be safely bumped?
Title: Re: MAX_SHIP_CONTRAILS problem
Post by: taylor on September 24, 2006, 04:12:57 am
It just needs to be made dynamic, no point in bumping a limit as stupid as this one.  I only gave the code a quick look, but going dynamic with it should be fairly easy.  It's not something I'm planning to do however. :)