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 > CoD Multiplayer

CoD Multiplayer Everything about multiplayer in IL-2 CoD

Reply
 
Thread Tools Display Modes
  #11  
Old 05-27-2011, 09:37 AM
Flashman Flashman is offline
Approved Member
 
Join Date: May 2010
Posts: 109
Default

Quote:
Originally Posted by TheEnlightenedFlorist View Post
Was there at least one aircraft in existence on each side? The number should be showing up in the chat bar. I only tested it on my own server, so I know it shows up for the server, but it should show up for all players. If it's still not showing up, I don't know how to make the number show up without plastering it in those big gold letters in the center of the screen.

I will check my timing. This is the only thing in my mission which uses tick counts so perhaps ive missed something... wouldn't be the first time. But yeah there where plenty of AI when it should have run the first time. Will see what I can see.
Reply With Quote
  #12  
Old 05-27-2011, 09:43 AM
TheEnlightenedFlorist TheEnlightenedFlorist is offline
Approved Member
 
Join Date: May 2011
Location: SLC, Utah, USA
Posts: 143
Default

Try this:

Code:
     if (GamePlay.gpAirGroups(1) != null && GamePlay.gpAirGroups(2) != null)
     {
         if (Time.tickCounter() % 9000 == 0)
         {
             int totalAircraft = GamePlay.gpAirGroups(1).Length + GamePlay.gpAirGroups(2).Length;
             GamePlay.gpLogServer(new Player[] { GamePlay.gpPlayer() }, totalAircraft.ToString(), null);
              if(GamePlay.gpRemotePlayers() != null)
              {
                     GamePlay.gpLogServer(GamePlay.gpRemotePlayers(), totalAircraft.ToString(), null);
               }
         }
     }
That might help with Flashman's problem too.
Reply With Quote
  #13  
Old 05-27-2011, 09:51 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Code:
[13:45:21]	=================================================
[13:45:21]	System.IndexOutOfRangeException: Индекс находился вне границ массива.
[13:45:21]	
[13:45:21]	Server stack trace: 
[13:45:21]	   в WLxT1kvtHRQOtMZZl62.DRdThMvpbN33CGywFW7.wXZFyNGvcs2(Player[] , Boolean , String , Object[] )
[13:45:21]	   в WLxT1kvtHRQOtMZZl62.DRdThMvpbN33CGywFW7.ppDoUYCpY9HF87vxRBGe(Object , Boolean , Object , Object )
[13:45:21]	   в WLxT1kvtHRQOtMZZl62.DRdThMvpbN33CGywFW7.0AAFyzF3TVd(Player[] , String , Object[] )
[13:45:21]	   в UXx9sZjCf3yc9i99GpR.69j9o82zIn0dDNk0dpm.LogServer(Player[] , String , Object[] )
[13:45:21]	   в maddox.game.GameDef.gpLogServer(Player[] to, String format, Object[] args)
[13:45:21]	   в System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
[13:45:21]	   в System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
[13:45:21]	
[13:45:21]	Exception rethrown at [0]: 
[13:45:21]	   в System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
[13:45:21]	   в System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
[13:45:21]	   в maddox.game.IGamePlay.gpLogServer(Player[] to, String format, Object[] args)
[13:45:21]	   в Mission.OnTickGame()
[13:45:21]	   в maddox.game.ABattle.OnTickGame()
[13:45:21]	   в maddox.game.world.Strategy.OnTickGame()
[13:45:21]	   в System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
[13:45:21]	   в System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
[13:45:21]	
[13:45:21]	Exception rethrown at [1]: 
[13:45:21]	   в System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
[13:45:21]	   в System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
[13:45:21]	   в maddox.game.IBattle.OnTickGame()
[13:45:21]	   в maddox.game.GameDef.tickGame()
[13:45:21]	   в 13yXBRPwF6JbN5OXHZ6.NTKTOgPPsXwbvypIj6k.Z37cRDxFulC()
[13:45:21]	   в RKuLtykUFmi8DgWf36W.9FOhqSkweWrYgooHcsk.neSF4RIW4t3(Boolean , Boolean )
[13:45:21]	=================================================
[13:49:51]	Server to [Server]: 4
[13:49:51]	
[13:49:51]	=================================================
[13:49:51]	System.IndexOutOfRangeException: Индекс находился вне границ массива.
[13:49:51]	
[13:49:51]	Server stack trace: 
[13:49:51]	   в WLxT1kvtHRQOtMZZl62.DRdThMvpbN33CGywFW7.wXZFyNGvcs2(Player[] , Boolean , String , Object[] )
[13:49:51]	   в WLxT1kvtHRQOtMZZl62.DRdThMvpbN33CGywFW7.ppDoUYCpY9HF87vxRBGe(Object , Boolean , Object , Object )
[13:49:51]	   в WLxT1kvtHRQOtMZZl62.DRdThMvpbN33CGywFW7.0AAFyzF3TVd(Player[] , String , Object[] )
[13:49:51]	   в UXx9sZjCf3yc9i99GpR.69j9o82zIn0dDNk0dpm.LogServer(Player[] , String , Object[] )
[13:49:51]	   в maddox.game.GameDef.gpLogServer(Player[] to, String format, Object[] args)
[13:49:51]	   в System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
[13:49:51]	   в System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
[13:49:51]
Reply With Quote
  #14  
Old 05-27-2011, 09:58 AM
TheEnlightenedFlorist TheEnlightenedFlorist is offline
Approved Member
 
Join Date: May 2011
Location: SLC, Utah, USA
Posts: 143
Default

Wait, are you running it on a dedicated server? If so, try this. Otherwise, I'm out of ideas.

Code:
     if (GamePlay.gpAirGroups(1) != null && GamePlay.gpAirGroups(2) != null)
     {
         if (Time.tickCounter() % 9000 == 0)
         {
             int totalAircraft = GamePlay.gpAirGroups(1).Length + GamePlay.gpAirGroups(2).Length;
             if(GamePlay.gpPlayer() != null)
             {
                     GamePlay.gpLogServer(new Player[] { GamePlay.gpPlayer() }, totalAircraft.ToString(), null);
              }
              if(GamePlay.gpRemotePlayers() != null)
              {
                     GamePlay.gpLogServer(GamePlay.gpRemotePlayers(), totalAircraft.ToString(), null);
               }
         }
     }
Reply With Quote
  #15  
Old 05-27-2011, 10:07 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Sorry, same

Code:
[14:02:10]	System.IndexOutOfRangeException: Индекс находился вне границ массива.
[14:02:10]	
[14:02:10]	Server stack trace: 
[14:02:10]	   в WLxT1kvtHRQOtMZZl62.DRdThMvpbN33CGywFW7.wXZFyNGvcs2(Player[] , Boolean , String , Object[] )
[14:02:10]	   в WLxT1kvtHRQOtMZZl62.DRdThMvpbN33CGywFW7.ppDoUYCpY9HF87vxRBGe(Object , Boolean , Object , Object )
[14:02:10]	   в WLxT1kvtHRQOtMZZl62.DRdThMvpbN33CGywFW7.0AAFyzF3TVd(Player[] , String , Object[] )
[14:02:10]	   в UXx9sZjCf3yc9i99GpR.69j9o82zIn0dDNk0dpm.LogServer(Player[] , String , Object[] )
[14:02:10]	   в maddox.game.GameDef.gpLogServer(Player[] to, String format, Object[] args)
[14:02:10]	   в System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
[14:02:10]	   в System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
[14:02:10]	
[14:02:10]	Exception rethrown at [0]: 
[14:02:10]	   в System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
[14:02:10]	   в System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
[14:02:10]	   в maddox.game.IGamePlay.gpLogServer(Player[] to, String format, Object[] args)
[14:02:10]	   в Mission.OnTickGame()
[14:02:10]	   в maddox.game.ABattle.OnTickGame()
[14:02:10]	   в maddox.game.world.Strategy.OnTickGame()
[14:02:10]	   в System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
[14:02:10]	   в System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
[14:02:10]	
[14:02:10]	Exception rethrown at [1]: 
[14:02:10]	   в System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
[14:02:10]	   в System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
[14:02:10]	   в maddox.game.IBattle.OnTickGame()
[14:02:10]	   в maddox.game.GameDef.tickGame()
[14:02:10]	   в 13yXBRPwF6JbN5OXHZ6.NTKTOgPPsXwbvypIj6k.Z37cRDxFulC()
[14:02:10]	   в RKuLtykUFmi8DgWf36W.9FOhqSkweWrYgooHcsk.neSF4RIW4t3(Boolean , Boolean )
[14:02:10]	=================================================
[14:06:40]	Server to [Server]: 4
[14:06:40]	
[14:06:40]	=================================================
[14:06:40]	System.IndexOutOfRangeException: Индекс находился вне границ массива.
[14:06:40]	
[14:06:40]	Server stack trace: 
[14:06:40]	   в WLxT1kvtHRQOtMZZl62.DRdThMvpbN33CGywFW7.wXZFyNGvcs2(Player[] , Boolean , String , Object[] )
[14:06:40]	   в WLxT1kvtHRQOtMZZl62.DRdThMvpbN33CGywFW7.ppDoUYCpY9HF87vxRBGe(Object , Boolean , Object , Object )
[14:06:40]	   в WLxT1kvtHRQOtMZZl62.DRdThMvpbN33CGywFW7.0AAFyzF3TVd(Player[] , String , Object[] )
[14:06:40]	   в UXx9sZjCf3yc9i99GpR.69j9o82zIn0dDNk0dpm.LogServer(Player[] , String , Object[] )
[14:06:40]	   в maddox.game.GameDef.gpLogServer(Player[] to, String format, Object[] args)
[14:06:40]	   в System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
[14:06:40]	   в System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
[14:06:40]	
[14:06:40]	Exception rethrown at [0]: 
[14:06:40]	   в System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
[14:06:40]	   в System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
[14:06:40]	   в maddox.game.IGamePlay.gpLogServer(P
Reply With Quote
  #16  
Old 05-27-2011, 10:15 AM
TheEnlightenedFlorist TheEnlightenedFlorist is offline
Approved Member
 
Join Date: May 2011
Location: SLC, Utah, USA
Posts: 143
Default

Alright, one more try.

Code:
     if (GamePlay.gpAirGroups(1) != null && GamePlay.gpAirGroups(2) != null)
     {
         if (Time.tickCounter() % 9000 == 0)
         {
             int totalAircraft = GamePlay.gpAirGroups(1).Length + GamePlay.gpAirGroups(2).Length;
             if(GamePlay.gpPlayer().Length > 0)
             {
                     GamePlay.gpLogServer(new Player[] { GamePlay.gpPlayer() }, totalAircraft.ToString(), null);
              }
              if(GamePlay.gpRemotePlayers().Length > 0)
              {
                     GamePlay.gpLogServer(GamePlay.gpRemotePlayers(), totalAircraft.ToString(), null);
               }
         }
     }
If you're not using a dedicated server, you can get in an aircraft on the server and this should work.

Code:
     if (GamePlay.gpAirGroups(1) != null && GamePlay.gpAirGroups(2) != null)
     {
         if (Time.tickCounter() % 9000 == 0)
         {
             int totalAircraft = GamePlay.gpAirGroups(1).Length + GamePlay.gpAirGroups(2).Length;
             if(GamePlay.gpPlayer() != null)
             {
                     GamePlay.gpLogServer(new Player[] { GamePlay.gpPlayer() }, totalAircraft.ToString(), null);
              }
         }
     }
Reply With Quote
  #17  
Old 05-27-2011, 10:57 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

For testing i am running a dedi server and joining it with a client from the same PC. I got error messages before joining the server.

It would be nice to have it working on a dedi server. Will try the latest version later. Thank you for your input.
Reply With Quote
  #18  
Old 05-27-2011, 11:02 AM
TheEnlightenedFlorist TheEnlightenedFlorist is offline
Approved Member
 
Join Date: May 2011
Location: SLC, Utah, USA
Posts: 143
Default

Quote:
Originally Posted by Ataros View Post
For testing i am running a dedi server and joining it with a client from the same PC. I got error messages before joining the server.

It would be nice to have it working on a dedi server. Will try the latest version later. Thank you for your input.
I'm sorry it's not working right. The server log methods are a little confusing to me. Tomorrow, I'll see if I can find a better solution.
Reply With Quote
  #19  
Old 05-27-2011, 11:04 AM
Flashman Flashman is offline
Approved Member
 
Join Date: May 2010
Posts: 109
Default

Your efforts are appreciated...as for me, I haven't a bloody clue! Im just muddling along trying to get a mission to work!

Thanks
Reply With Quote
  #20  
Old 05-27-2011, 05:07 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Now it is better.
It says
"maddox.game.Player" does not contain definition for "Length"

Code:
[20:55:59]	=================================================
[20:55:59]	System.Exception: c:\Users\Andy\Documents\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Multi\Dogfight\BoF1\BoF_1_main1_7.cs(105,37): error CS1061: "maddox.game.Player" не содержит определение для "Length". Не удалось найти метод  расширения "Length", принимающий первый аргумент типа "maddox.game.Player"  (пропущено использование директивы или ссылка на сборку?)
[20:55:59]	
[20:55:59]	   в W95BpjQhQGdapXjq6AD.Y79VY6QHpIXBu63gDbj.DNrbvsoLYTD(String , Boolean , Boolean )
[20:55:59]	   в W95BpjQhQGdapXjq6AD.Y79VY6QHpIXBu63gDbj.3Iw2CLCaNTnBeBq9j1Yy(Object , Boolean , Boolean )
[20:55:59]	   в W95BpjQhQGdapXjq6AD.Y79VY6QHpIXBu63gDbj.XBibvrRFwOK(String )
[20:55:59]	   в W95BpjQhQGdapXjq6AD.Y79VY6QHpIXBu63gDbj.b2WbvifgeN1(String , Int32 )
[20:55:59]	=================================================
[20:55:59]	
[20:55:59]	=================================================
[20:55:59]	System.Exception: c:\Users\Andy\Documents\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Multi\Dogfight\BoF1\BoF_1_main1_7.cs(105,37): error CS1061: "maddox.game.Player" не содержит определение для "Length". Не удалось найти метод  расширения "Length", принимающий первый аргумент типа "maddox.game.Player"  (пропущено использование директивы или ссылка на сборку?)
[20:55:59]	
[20:55:59]	   в W95BpjQhQGdapXjq6AD.Y79VY6QHpIXBu63gDbj.b2WbvifgeN1(String , Int32 )
[20:55:59]	   в PvIUEjqHoL1yDhuyUY9.KErMihqBkLOM7gFVKGE.1sOBZ4gmJ3(MTsEYPOQbCed3fk571y )
[20:55:59]	=================================================
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 05:41 AM.


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