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-11-2011, 07:14 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

At the moment its only a possibility.

You get a "Object reference not set to an instance of an object" Error. Thats means the script would use a object wich is null, but at the moment i dont see why the player should be null at the moment OnPlaceEnter is active, so may be its null after 12 sec. At time i dont trust the memory management of a dedicated server
Reply With Quote
  #2  
Old 10-11-2011, 07:19 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Edited the previous post a bit. The messages sent after 12 seconds are delivered.
Reply With Quote
  #3  
Old 10-12-2011, 07:22 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

GamePlay.gpRemotePlayers().Length <= 0 should be the bug (to silly btw) GamePlay.gpRemotePlayers().Length > 0 is the correct version.
Next time i should test my code on Multiplayer conditions before give it to the public. Shame on me.

latest version:
http://forum.1cpublishing.eu/showpos...8&postcount=41

Last edited by FG28_Kodiak; 10-12-2011 at 11:31 AM.
Reply With Quote
  #4  
Old 10-12-2011, 07:47 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Thank you very much! You know mistakes are a pathway to future success.

So, the "NET message" in OnPlaceEnter will also work I hope. Will try it tonight hopefully.
Reply With Quote
  #5  
Old 10-12-2011, 07:56 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

I am using about 10-20 timeout statements in onTickGame to send messages. Does it slow down server processor if server has to count 10-20 timers at the same time or not?

Maybe it should be optimized to have only one timer?
Reply With Quote
  #6  
Old 10-12-2011, 08:50 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Made little additions to the code, to avoid exeptions.

latest version:
http://forum.1cpublishing.eu/showpos...8&postcount=41

Last edited by FG28_Kodiak; 10-12-2011 at 11:31 AM.
Reply With Quote
  #7  
Old 10-12-2011, 08:59 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Thank you! Testing on R2 now.
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 11:07 AM.


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