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 03-27-2012, 05:02 AM
hc_wolf hc_wolf is offline
Approved Member
 
Join Date: Jul 2010
Posts: 439
Default

I am such a bool!

Cheers Kodiak

Seems to run through MS Visual Express with out errors also. Thanks
__________________
__________________
Win7, 64bit Ultra
Asus P8P67Pro MB
Intel i7-2600K
Coursair 16GB (4x 4GB), DDR3-1600MHz
Gainward Nvidia 580GTX 3GB DDR5
850-Watt Modular Power Supply
WIN7 and COD on Gskill SSD 240GB
40" Panasonic LCD
TrackIR5 +
Thrustmaster Warthog stick, throttle & pedals
Reply With Quote
  #2  
Old 03-27-2012, 05:11 AM
hc_wolf hc_wolf is offline
Approved Member
 
Join Date: Jul 2010
Posts: 439
Default

Question if anyone can help. I am using MS Visula express c#

When I click 'Start Debugging' It runs but I get an error warning

'A Project with an Output Type of Class Library cannot be started directly.

In order to debug this, add an executable project to this solution which references the library project. Set the executable project as the Startup Project."

I am not sure how to do this. I gather it wants the Launcher.exe which I have, but unsure how to adde it.

If it is to hard to explain the steps don't waist your time. I can get by. Thanks
__________________
__________________
Win7, 64bit Ultra
Asus P8P67Pro MB
Intel i7-2600K
Coursair 16GB (4x 4GB), DDR3-1600MHz
Gainward Nvidia 580GTX 3GB DDR5
850-Watt Modular Power Supply
WIN7 and COD on Gskill SSD 240GB
40" Panasonic LCD
TrackIR5 +
Thrustmaster Warthog stick, throttle & pedals
Reply With Quote
  #3  
Old 03-27-2012, 05:19 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

You create a DLL a DLL must be called by a programm to work. A DLL is never standalone.
BTW the debugger is worthless in this situation, you cannot run it in Cliffs of Dover.
Reply With Quote
  #4  
Old 03-27-2012, 05:48 AM
hc_wolf hc_wolf is offline
Approved Member
 
Join Date: Jul 2010
Posts: 439
Default

Quote:
Originally Posted by FG28_Kodiak View Post
You create a DLL a DLL must be called by a programm to work. A DLL is never standalone.
BTW the debugger is worthless in this situation, you cannot run it in Cliffs of Dover.
LOL well that answers that. Won't waste my time. Cheers buddy!
__________________
__________________
Win7, 64bit Ultra
Asus P8P67Pro MB
Intel i7-2600K
Coursair 16GB (4x 4GB), DDR3-1600MHz
Gainward Nvidia 580GTX 3GB DDR5
850-Watt Modular Power Supply
WIN7 and COD on Gskill SSD 240GB
40" Panasonic LCD
TrackIR5 +
Thrustmaster Warthog stick, throttle & pedals
Reply With Quote
  #5  
Old 03-27-2012, 10:00 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Btw a other aproach to the problem, with counters:
Code:
using System;
using System.Collections;
using System.Collections.Generic;
using maddox.game;
using maddox.game.world;

public class Mission : AMission
{

    const int MinSubMissionsforBlueSucces = 3;
    const int MinSubMissionsforRedSucces = 3;
    int BlueMissionSuccesses = 0;
    int RedMissionSuccesses = 0;

    int ScoreRed = 0;
    int ScoreBlue = 0;


    public override void OnTrigger(int missionNumber, string shortName, bool active)
    {
        base.OnTrigger(missionNumber, shortName, active);

        if (BlueMissionSuccesses < MinSubMissionsforBlueSucces && RedMissionSuccesses < MinSubMissionsforRedSucces)
        {
            if ("RedPartWin".Equals(shortName))
            {
                RedMissionSuccesses++;
                ScoreRed += 10;
            }

            if ("BluePartWin".Equals(shortName))
            {
                BlueMissionSuccesses++;
                ScoreBlue += 10;
            }
        }
        else if (BlueMissionSuccesses >= MinSubMissionsforBlueSucces)
        {
            GamePlay.gpLogServer(null, "Blue already win this Battle", null);
        }
        else if (RedMissionSuccesses >= MinSubMissionsforRedSucces)
        {
            GamePlay.gpLogServer(null, "Red already win this Battle", null);
        }
    }



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


        if (Time.tickCounter() % 18000 == 17990) //check every 10 mins	
        {
            if (BlueMissionSuccesses >= MinSubMissionsforBlueSucces || RedMissionSuccesses >= MinSubMissionsforRedSucces)
            {
                
                GamePlay.gpLogServer(null, "Team scores - RAF {0}: LW {1}", new object[] { ScoreRed, ScoreBlue });
                GamePlay.gpLogServer(null, "Team Objectives Completed - RAF {0} of {1}: LW {2} of {3}", new object[] { RedMissionSuccesses, MinSubMissionsforRedSucces, BlueMissionSuccesses, MinSubMissionsforBlueSucces });
                Timeout(10, () =>
                {
                    if (BlueMissionSuccesses >= MinSubMissionsforBlueSucces)
                        GamePlay.gpHUDLogCenter("Blue Objective 11 Completed!!!");
                    else if (RedMissionSuccesses >= MinSubMissionsforRedSucces)
                        GamePlay.gpHUDLogCenter("Red Objective 11 Completed!!!");
                });

                BlueMissionSuccesses = 0;
                RedMissionSuccesses = 0;
            }
        }
    }
}

Last edited by FG28_Kodiak; 03-27-2012 at 10:14 AM.
Reply With Quote
  #6  
Old 03-27-2012, 10:33 AM
hc_wolf hc_wolf is offline
Approved Member
 
Join Date: Jul 2010
Posts: 439
Default

hummm i like it. I will have a look later and see if I can use it that way.

looks cleaner, but I have many triggers and see if it will work.

Thanks
__________________
__________________
Win7, 64bit Ultra
Asus P8P67Pro MB
Intel i7-2600K
Coursair 16GB (4x 4GB), DDR3-1600MHz
Gainward Nvidia 580GTX 3GB DDR5
850-Watt Modular Power Supply
WIN7 and COD on Gskill SSD 240GB
40" Panasonic LCD
TrackIR5 +
Thrustmaster Warthog stick, throttle & pedals
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 07:39 PM.


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