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

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2011, 12:32 PM
dflion dflion is offline
Approved Member
 
Join Date: Nov 2007
Posts: 319
Cool Sick of playing 'Russian Roulette' in the COD FMB

With the excellent help of ‘Stiboo’, I am finally ‘cracking’ the BOF FMB to make working campaigns.
I have been working ‘slowly and surely’ on creating a generic CS file to add to each mission in my ‘BOF single mission/campaign’ and create a proper campaign. I was successful, or was I???

I discovered that there was a generic CS file in the ‘IC German campaign’ which allowed the ‘success’ or ‘failure’ trigger for each campaign mission completed. All you had to do was change the mission name and number in each CS file. What it did not allow, was that if you got to say, mission 5 and you wanted to leave the flight sim, when you came back, it would not start at mission 6??? You had to revert back to the start of the campaign!

These are the issues with the COD FMB that I am sick of playing ‘Russian Roulette’ with, they are –
1. IC should provide a proper generic basic CS file to indicate the campaign mission file a ‘success’ or ‘failure’ and let each successful mission save, so you can pick-up the next mission if you leave the sim.
2. There should also provide a generic ‘completed campaign’ CS file when you successfully complete the campaign.
3. Finally they should provide a generic CS file that allows aircraft to takeoff from another airfield after the original mission takeoff time.

These are the basic CS FMB files that Luthier and his team (or a gifted member programmer) need to give us to keep the vitally important FMB providing good campaign interest in COD. If this doesn’t happen, the sim will slowly die from lack of interest in the FMB area!

I hope you get this very clear message Luthier and Team? (I know you are all very busy on other issues)

DFLion
Reply With Quote
  #2  
Old 08-15-2011, 03:23 PM
esmiol esmiol is offline
Approved Member
 
Join Date: Dec 2009
Posts: 208
Default

they should give doc about the FMB in fact
Reply With Quote
  #3  
Old 08-16-2011, 07:46 AM
dflion dflion is offline
Approved Member
 
Join Date: Nov 2007
Posts: 319
Cool Two more 'Russian Roulette' FMB issues

I have just downloaded 'The Enlightened Florist's' Dynamic campaigns to check them out? He is doing a great job, under difficult circumstances!

I noticed he mentioned that at the start of the campaign, you have to press 'A' (autopilot) to get your wingman to fly. This problem applys to all my single mission campaigns and has to be fixed by 'Luthier and Team' soon?

The other issue that 'Luthier and Team' need to seriously think about is the 'aircraft warm-up time' at the start of each campaign mission. Because most early WWII fighters from both sides had their 'fitters' already warming-up the engine for an instant takeoff. There needs to be some type of 'option button' for instant warm-up for an instant takeoff!
To help solve the problem in my campaigns, I have placed 'you' the mission flying pilot at the rear of your flight/squadron to give you some time to warm up your engine before takeoff?

DFLion
Reply With Quote
  #4  
Old 08-16-2011, 07:51 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

For the warm up there is a simple solution, set the Airgroup on idle (true), make a script in which you set the idle on false after a specific time. So the player has enough time for warming up.
Reply With Quote
  #5  
Old 08-16-2011, 08:11 AM
dflion dflion is offline
Approved Member
 
Join Date: Nov 2007
Posts: 319
Question Can you do it for me?

Thanks FG28_Kodiak, do it and attach a 'script' copy.

DFLion
Reply With Quote
  #6  
Old 08-16-2011, 09:19 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Code:
using System;
using maddox.game;
using maddox.game.world;
using System.Diagnostics; // for Stopwatch timer

public class Mission : AMission
{

    Stopwatch PlayerGroupIdleTimer = new Stopwatch();
    const int PlayerAirgroupIdleTimeMinutes = 3;  // 3 minutes for player to warm up his engine

    public override void OnPlaceEnter(Player player, AiActor actor, int placeIndex)
    {
        base.OnPlaceEnter(player, actor, placeIndex);
        
        AiAircraft airc1 = (AiAircraft)GamePlay.gpPlayer().Place();
        
        PlayerGroupIdleTimer.Start();

        if (!airc1.IsAirborne())
        {
            airc1.AirGroup().Idle = true;
            GamePlay.gpHUDLogCenter(player.Name() + " warm up your engine");
        }

    }

    public override void OnTickGame()
    {
        base.OnTickGame();

        //check mission timers
        if (PlayerGroupIdleTimer.Elapsed.Minutes >= PlayerAirgroupIdleTimeMinutes)
        {
            PlayerGroupIdleTimer.Reset(); //Set timer to 0
            PlayerGroupIdleTimer.Stop(); 

            AiAircraft airc1 = (AiAircraft)GamePlay.gpPlayer().Place();
            airc1.AirGroup().Idle = false;
        }
    }
}

Last edited by FG28_Kodiak; 08-16-2011 at 10:09 AM.
Reply With Quote
  #7  
Old 08-17-2011, 08:19 AM
dflion dflion is offline
Approved Member
 
Join Date: Nov 2007
Posts: 319
Thumbs up Thanks FG28_Kodiak

Thanks for doing this Kodiak, I will experiment with this script and see what happens? Will give you some feedback as soon as possible.

DFLion
Reply With Quote
  #8  
Old 08-19-2011, 07:00 AM
dflion dflion is offline
Approved Member
 
Join Date: Nov 2007
Posts: 319
Default 'Warm-up' time script report

How are you Kodiak. I have combined your 'time script' with the 'mission sequencing script' and everything seems to be ok, although sometimes it is intermittent (it sometimes works and somestimes not).

Just to get the function of the script clear in my head. When you start the mission, your wingman and leader go straight onto autopilot, then they wait for three minutes before they take-off, giving you time to warm-up your engine. You then take-off when they take-off. Is my explanation right, on what you are trying to do with the script?

With this three minute mission lag before takeoff, you have to adjust everything in the mission to occur 3 minutes later, for everything to coincide.

Anyway, thankyou again for your help and if don't agree in what I am saying above, let me know.

DFLion
Reply With Quote
  #9  
Old 08-19-2011, 07:29 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Quote:
Originally Posted by dflion View Post
Just to get the function of the script clear in my head. When you start the mission, your wingman and leader go straight onto autopilot, then they wait for three minutes before they take-off, giving you time to warm-up your engine. You then take-off when they take-off. Is my explanation right, on what you are trying to do with the script?
First i look in which Aircraft the player is.
AiAircraft airc1 = (AiAircraft)GamePlay.gpPlayer().Place();

Then i start the Stopwatch, you can use a trigger or Time.tickCounter() also, its only a example.
PlayerGroupIdleTimer.Start();

Then check if plane is airborne (if it airborne its a bad idea to set it on idle )
if (!airc1.IsAirborne())
{
If the plane is not airborne, i set the complete player airgroup on idle, it's the same you set the idle state in FMB
airc1.AirGroup().Idle = true;
then a short message for the player
GamePlay.gpHUDLogCenter(player.Name() + " warm up your engine");
}

later in OnTickGame i set the AirGroup().Idle = false; so the AI will make it's job
Reply With Quote
  #10  
Old 08-19-2011, 07:53 AM
Mysticpuma's Avatar
Mysticpuma Mysticpuma is offline
Approved Member
 
Join Date: Jan 2008
Location: Bromsgrove, UK
Posts: 1,059
Default

I see Mission Building is going to be for script experts only...how sad

I used to enjoy maing short missions in 1946, this looks like computer coding, which for me is totally out of my league

Good luck to you experts, cheers, MP
__________________
http://i41.tinypic.com/2yjr679.png
Reply With Quote
Reply


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:03 PM.


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