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
  #1  
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
  #2  
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
  #3  
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
  #4  
Old 07-28-2011, 06:12 AM
CaptainDoggles's Avatar
CaptainDoggles CaptainDoggles is offline
Approved Member
 
Join Date: Jun 2011
Posts: 1,198
Default

This is an awesome project; please make it open source so others can contribute.
Reply With Quote
  #5  
Old 07-29-2011, 05:27 AM
TheEnlightenedFlorist TheEnlightenedFlorist is offline
Approved Member
 
Join Date: May 2011
Location: SLC, Utah, USA
Posts: 143
Default

Quote:
Originally Posted by CaptainDoggles View Post
This is an awesome project; please make it open source so others can contribute.
I have attached them. Unfortunately, they are in separate Visual Studio solutions (and not very well written, in my opinion).

Also, it turns out there's a much easier way to reference the dll than using reflection.

Code:
//$reference IL2ServerMasterLibrary.dll
using IL2ServerMasterLibrary;
Then...

Code:
ServerMaster master = new ServerMaster("pass", 27340);
string[] command = master.popCommand();
Attached Files
File Type: zip IL2ServerMaster.zip (1.07 MB, 7 views)
File Type: zip IL2ServerMasterLibrary.zip (42.6 KB, 8 views)

Last edited by TheEnlightenedFlorist; 07-29-2011 at 05:32 AM.
Reply With Quote
  #6  
Old 07-29-2011, 06:19 AM
CaptainDoggles's Avatar
CaptainDoggles CaptainDoggles is offline
Approved Member
 
Join Date: Jun 2011
Posts: 1,198
Default

Quote:
Originally Posted by TheEnlightenedFlorist View Post
I have attached them. Unfortunately, they are in separate Visual Studio solutions (and not very well written, in my opinion).

Also, it turns out there's a much easier way to reference the dll than using reflection.

Code:
//$reference IL2ServerMasterLibrary.dll
using IL2ServerMasterLibrary;
Then...

Code:
ServerMaster master = new ServerMaster("pass", 27340);
string[] command = master.popCommand();
Thanks! I'll delve into the code this weekend.
Reply With Quote
  #7  
Old 07-29-2011, 07:19 AM
adonys adonys is offline
Approved Member
 
Join Date: Apr 2010
Posts: 850
Default

Quote:
Originally Posted by TheEnlightenedFlorist View Post
I have attached them. Unfortunately, they are in separate Visual Studio solutions (and not very well written, in my opinion).

Also, it turns out there's a much easier way to reference the dll than using reflection.

Code:
//$reference IL2ServerMasterLibrary.dll
using IL2ServerMasterLibrary;
Then...

Code:
ServerMaster master = new ServerMaster("pass", 27340);
string[] command = master.popCommand();
Have you tested it? Because this referencing of a namespace (which it actually is) might just look for the dll to already be loaded, and might not load it by itself (and where it would look for it? core folder? bob folder? current script folder?) if it finds out is not loaded.

You might also use kegetys' way to have a dll loaded at the start of the game.
Reply With Quote
  #8  
Old 07-29-2011, 08:55 AM
TheEnlightenedFlorist TheEnlightenedFlorist is offline
Approved Member
 
Join Date: May 2011
Location: SLC, Utah, USA
Posts: 143
Default

It works. It looks in the root directory of IL-2. Maybe it would make more sense if it were:

//$reference parts/ServerMaster/IL2ServerMasterLibrary.dll
Reply With Quote
Reply

Thread Tools
Display Modes

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 02:51 AM.


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