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 10-20-2011, 01:38 AM
wildwillie wildwillie is offline
Approved Member
 
Join Date: Aug 2010
Posts: 111
Default Data for Stats

I'm looking for a little help in a script.

I have been putting together a Server commander for CloD and have some of it working.

I have the following method that I use to pass back info when a pilot creates a new plane (Spawns in) but I would like to have a little more information.

I have Player Name
Player position
Army
Plane
Plane Type
Spawn location

I need the fuel quantity selected, loadouts, and markings.

here is the basic method that is called from OnPlaceEntered:
Code:
       public void sortieBegin(Player p, AiActor actor, int placeIndex)
        {
            try
            {
                String timeStamp = ConvertToTimestamp(DateTime.Now);
                AiAircraft aircraft = actor as AiAircraft;
                if (aircraft == null) { return; }
                String acType = aircraft.Type().ToString();   // Fighter, Heavy Fighter, etc
                String acName = aircraft.InternalTypeName();   // Plane (Bf109E, etc)
                String callSign = aircraft.CallSign();   // Not useful
                String playerPosition = aircraft.CrewFunctionPlace(placeIndex).ToString();    // Pilot, Gunner, Bombadier, etc
                String pilotName = p.Name();
                int army = p.Army();
                Point2d actorPos = new Point2d(actor.Pos().x, actor.Pos().y);
                String startingGrid = GamePlay.gpSectorName(actorPos.x, actorPos.y).ToString();

                svr.SendMessage(StatCommands.SortieBegin + "::" + pilotName + "::" + army + "::" + acName + "::" +
                acType + "::" + playerPosition + "::" + "::"  + startingGrid);

            }
            catch (Exception ex)
            {
                System.Console.WriteLine("IL2ClodStats.sortieBegin - Exception: " + ex);
                // Error coding
            }
Any ideas on what I need to reference for the above info ?

Thanks,

RAF238thWildWillie
Reply With Quote
  #2  
Old 10-20-2011, 05:33 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

GetParameterType:
http://forum.1cpublishing.eu/showthread.php?t=26189
But i think its not exactly what you mean.
Reply With Quote
  #3  
Old 10-20-2011, 08:31 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Here is a list of parameters from the devs in attachment http://forum.1cpublishing.eu/showthr...338#post342338
Reply With Quote
  #4  
Old 10-20-2011, 10:53 AM
wildwillie wildwillie is offline
Approved Member
 
Join Date: Aug 2010
Posts: 111
Default

Thanks for the info.

OK fuel quantity is good, now to find the Markings and Loadout info(Neither of those are in the getParameters area).

RAF238thWildWillie
Reply With Quote
  #5  
Old 10-23-2011, 09:06 PM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default

Quote:
Originally Posted by wildwillie View Post
Thanks for the info.

OK fuel quantity is good, now to find the Markings and Loadout info(Neither of those are in the getParameters area).

RAF238thWildWillie
Aircraft markings? - Try here Willie http://forum.1cpublishing.eu/showthread.php?t=27278
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash.

Get the latest COD Team Fusion patch info HERE
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 08:53 PM.


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