Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #33  
Old 02-03-2012, 08:14 PM
Gromic's Avatar
Gromic Gromic is offline
Approved Member
 
Join Date: Aug 2010
Posts: 77
Default

Update

Been doing some "debugging" with a squadie who works in the field and now we're both scratching our heads.

We've implimented a gpHUDLogCenter Message just to see if the triggers are actually meeting thier requirements. They definately are and this begs the question why those three flights aren't spawning. This has us both stumped.

Code:
    public override void OnTrigger(int missionNumber, string shortName, bool active)
    {
        //base.OnTrigger(missionNumber, shortName, active);
        {
		    GamePlay.gpHUDLogCenter(string.Format("Mission {0}, Name {1}, Active={2}", missionNumber, shortName, active));
	    }
        //Triggers for RAF actions
        //Report Examples
        //SendScreenMessageTo(Allies, "Message to Red");
        //SendScreenMessageTo(Axis, "Message to Blue");
        if ((shortName == "LW_Spawn_7A") && active)
        {
            AiAction action = GamePlay.gpGetAction("LW_Spawn_7A"); //TriggerName
            if (action != null)
            {
		        GamePlay.gpHUDLogCenter(string.Format("We have action {0}", action.Name));  
                action.Do();
            }

        }
        if ((shortName == "LW_Spawn_7B") && active)
        {
            AiAction action = GamePlay.gpGetAction("LW_Spawn_7B"); //TriggerName
            if (action != null)
            {
		        GamePlay.gpHUDLogCenter(string.Format("We have action {0}", action.Name));  
                action.Do();
            }

        }
        if ((shortName == "LW_Spawn_7C") && active)
        {
            AiAction action = GamePlay.gpGetAction("LW_Spawn_7C"); //TriggerName
            if (action != null)
            {
		        GamePlay.gpHUDLogCenter(string.Format("We have action {0}", action.Name));  
                action.Do();
            }

        }
We are getting messages stating the trigger number, name and its active status so now we know that the actual trigger is firing and getting passed through to action.Do(). Still, the aircraft tied to those triggers aren't spawning at the airfield. I figured it might be a problem with the airfield itself (spawn points) and tested with air starts. No luck.

Frustrating to say the least.

__________________
I5-750 @ 3,8GHz / MSI P55-GD65 / MSI GTX570 Twin Frozr II / 4x2GB G.Skill 1600MHz / Corsair TX650 PSU / RAID 0 2x640GB WD Black
W7 Pro x64 SP1 / MS FFB2 +Saitek X45 / Freetrack + NP Clip Pro + PS3 Eye / Samsung BX2450 24" HDMI LED
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.