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-26-2012, 11:01 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Argh forget to test it in multiplayer.
Ok then no recon missions in multiplayer, in singleplayer it makes not so much sense i think.
Reply With Quote
  #2  
Old 10-26-2012, 07:41 PM
41Sqn_Banks 41Sqn_Banks is offline
Approved Member
 
Join Date: Oct 2007
Posts: 644
Default

Quote:
Originally Posted by naryv
It was a single-mission sample, i tryed step by step check , but now it seems like i know what is the problem:. In multiplayer label will not sent to player which is author of this label - just to not doubling labels, exept case when labels sent to everybody. So, when you use that code you make label with player who enter the plane as author, sever will not send it to this player. But You can change the author of label, then it would be send to remote player, server is good candidate to be author(couse hi makes it really) like this :
Code:
using maddox.game;
using maddox.game.world;
using maddox.GP;
using System.Collections.Generic;
using Math = System.Math;


public class Mission : AMission
{

    public override void OnPlaceEnter(Player player, AiActor actor, int placeIndex)
    {
        base.OnPlaceEnter(player, actor, placeIndex);
        Point2d p ;
        p.x = actor.Pos().x;
        p.y = actor.Pos().y;
        GPUserLabel ul = GamePlay.gpMakeUserLabel(p, GamePlay.gpPlayer(), actor.Name(), GamePlay.gpTimeofDay(), (int)GPUserIconType.Plane);
        GamePlay.gpDrawUserLabel(ul);
        p.x -= 300;        
        ul.pos = p;
        ul.Text = "Show player";
        GamePlay.gpDrawUserLabel(new Player[] { player }, ul);

        p.x += 600;
        p.y += 300;
        ul.pos = p;
        ul.Text = "Show army";
        GamePlay.gpDrawUserLabel(0,ul);
        p.x += 300;
        p.y += 300;
        ul.pos = p;
        GamePlay.gpDrawUserLabel(1, ul);
        p.x += 300;
        p.y += 300;
        ul.pos = p;
        GamePlay.gpDrawUserLabel(2, ul);
    }
    
}
it should draw 3 labels - actor.Name, Show player and Show army , try it please.
Maybe this will help you to solve the problem.

In multiplayer gpDrawUserLabel doesn't draw user labels for the player who was used in gpMakeUserLabel. One should use GamePlay.gpPlayer() (which is the "server") instead for gpMakeUserLabel.
Reply With Quote
  #3  
Old 10-26-2012, 07:57 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Ok, will try it
Reply With Quote
  #4  
Old 10-26-2012, 08:02 PM
41Sqn_Banks 41Sqn_Banks is offline
Approved Member
 
Join Date: Oct 2007
Posts: 644
Default

Habs noch nicht probiert, aber navyr hats wohl erfolgreich auf nem Dedicated Server probiert und 3 Labels angezeigt bekommen.
Reply With Quote
  #5  
Old 10-27-2012, 04:41 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Wenn es funktioniert wäre es auch für die JFS interessant, man könnte in der Navigationsschulung so eine Art Schnitzeljagd veranstalten. Die Frage ist halt wenn ich GamePlay.gpPlayer() verwende, es auch in einer selber gehosteten Multiplayer Mission funktioniert, in dem Fall ist gpPlayer ja der Spieler der hostet.
Muss mal testen.
Reply With Quote
  #6  
Old 10-27-2012, 06:20 AM
theOden theOden is offline
Approved Member
 
Join Date: May 2011
Location: Sweden
Posts: 221
Default

Thanks a tonne Banks, or should I say Danke Sehr?

Still a NoGo as host, guess it works for SP and from a ded.server as described (but we don't have a ded.server exe yet do we? just a second license install where the player runs to another computer flying?)

Tried with "null" as player but still no marker.

In Arma, where I come from, we have "IsMultiplayer" and "IsDedicated" along with a lot of player/server procedures to cope with remote players, hosted server player and dedicated server with no player at all - sure miss them here.

(I prefer flying singleplayer as multiplayer-host on locked server due to MP features - same as in ArmA)

Guess this will work in the "sequel" one day..
__________________
Reply With Quote
  #7  
Old 10-27-2012, 07:14 AM
41Sqn_Banks 41Sqn_Banks is offline
Approved Member
 
Join Date: Oct 2007
Posts: 644
Default

Quote:
Originally Posted by FG28_Kodiak View Post
Wenn es funktioniert wäre es auch für die JFS interessant, man könnte in der Navigationsschulung so eine Art Schnitzeljagd veranstalten. Die Frage ist halt wenn ich GamePlay.gpPlayer() verwende, es auch in einer selber gehosteten Multiplayer Mission funktioniert, in dem Fall ist gpPlayer ja der Spieler der hostet.
Muss mal testen.
If hosted by a player I think the host will not get displayed the created label. IMHO the best way is to run the the dedicated server on the same PC and the host connects as a regular client.

But yes, has to be tested ...
Reply With Quote
  #8  
Old 10-27-2012, 07:20 AM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default

Quote:
Originally Posted by 41Sqn_Banks View Post
If hosted by a player I think the host will not get displayed the created label. IMHO the best way is to run the the dedicated server on the same PC and the host connects as a regular client.

But yes, has to be tested ...
That's what I used to do until the latest patch when I can no longer have 2 interations of the game running simultaneously on the same PC. See http://forum.1cpublishing.eu/showthread.php?t=35085
__________________
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 01:02 PM.


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