Chocolate Software Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3 ... 10
 1 
 on: May 19, 2013, 06:35:45 AM 
Started by shadow - Last post by shadow
Please, someone who can explain in detail, how to put the navigation map on my fshost website.

I contacted the several people who have fshost map in their website, but do not help me, please can anyone help me with this, but those who want to help me, please, while the explanation clearer I will be better for it.

I have always wanted to put map, but the explanation I've read I do not help enough

right here, in the area of addons, explains how to put map, but trying to lose me, and I get nothing


please anyone who can help.

I will be grateful for your help

 2 
 on: April 26, 2013, 11:55:06 AM 
Started by FSX30HD - Last post by Russell Gilbert
This is a complete shot in the dark, but when I've used Polylines in the past, I didn't have to call setMap(). Just calling "google.maps.Polyline()" was enough, since you're passing in the map as the first parameter.

If that doesn't fix it, maybe you could show us an example of what's going wrong.

Thanks,
Russell

 3 
 on: April 26, 2013, 12:43:53 AM 
Started by FSX30HD - Last post by FSX30HD
Hello,

Need help for drawing Polylines with two colors showing progression for each user this is my code. Working good for one user but for more one player polylines cross.

Need help please  :'(

Code: [Select]

           //

    $(xml).find("FlightPlan").each(function(){

      var lPlan = $.trim($(this).find('Plan').text());

      if(lPlan != "")
      {
        var lElements = lPlan.split(" ");
        for(var lI in lElements)
        {
          if(lElements[lI].indexOf("-") != -1)
          {
            var lDepart = lElements[lI].split("-")[0];
            var lArrivee = lElements[lI].split("-")[1];
            break;
          }
        }

                   //alert(lDepart);
                   //alert(lArrivee);


      $.ajax({
            url: "http://www.serveur-perso.net/fshost/scripts/getOaci.php",
            crossDomain : true,
            dataType: "xml",
            type: "post",
            data: {oaci1: lDepart, oaci2: lArrivee},
            success: function(iXml){
              $(iXml).find("flight").each(function(){

var points= [];
var points_1= [];
var points_2= [];

                //Progresiion
LatLine[idx] = myLat;
LonLine[idx] = myLon;

                var lPosition1 = new google.maps.LatLng(parseFloat($(this).attr("depart_lat")),parseFloat($(this).attr("depart_lon")));
                var lPosition2 = new google.maps.LatLng(parseFloat($(this).attr("arrivee_lat")),parseFloat($(this).attr("arrivee_lon")));
        var lPosition_ac = new google.maps.LatLng(myLat,myLon);
       

//alert(+lPosition_ac);
points.push(lPosition1, lPosition_ac);
points_1.push(lPosition_ac, lPosition2);
points_2.push(lPosition1, lPosition2);
                //Progresiion

// création des markers
              var lMarker = new google.maps.Marker({map: MYMAP.map, position: lPosition1, clickable: true, flat: true, zIndex: 30, icon:"http://www.serveur-perso.net/fshost/images/POI_DEP"});
              var lInfoWindow = new google.maps.InfoWindow({content: "Aéroport de : <span style=\"color: #FF0000\">"  +$(this).attr("depart_nom") +"</span><br />" +"ICAO :"  +lDepart +"<br />"+ "Pays : " +$(this).attr("depart_pays") +"<br />"+ "Altitude : "+$(this).attr("depart_alt")+" pieds" , disableAutoPan: false});



                LierMarqueurEtInfoWindow(lMarker, lInfoWindow);

               var lMarkerarr = new google.maps.Marker({map: MYMAP.map, position: lPosition2, clickable: true, flat: true, zIndex: 30, icon:"http://www.serveur-perso.net/fshost/images/POI_ARR"});
               var lInfoWindowarr = new google.maps.InfoWindow({content: "Aéroport de : <span style=\"color: #00AC00\">" +$(this).attr("arrivee_nom") +"</span><br />" +"ICAO :"   +lArrivee +"<br />"+ "Pays : " +$(this).attr("arrivee_pays") +"<br />"+ "Altitude : "+$(this).attr("arrivee_alt")+" pieds" , disableAutoPan: false});
                LierMarqueurEtInfoWindowarr(lMarkerarr, lInfoWindowarr);

               


               //var trajet = new google.maps.Polyline({map: MYMAP.map, path: points, strokeColor: "#FF0000", strokeOpacity: 2.0, strokeWeight: 1.5, geodesic: true, clickable: true, zIndex: 20});
               //var trajet_1 = new google.maps.Polyline({map: MYMAP.map, path: points_1, strokeColor: "#00AC00", strokeOpacity: 2.0, strokeWeight: 1.5, geodesic: true, clickable: true, zIndex: 20});
        var trajet_2 = new google.maps.Polyline({map: MYMAP.map, path: points_2, strokeColor: "#00AC00", strokeOpacity: 2.0, strokeWeight: 1.5, geodesic: true, clickable: true, zIndex: 20});

                //trajet.setMap(MYMAP.map);
                //trajet_1.setMap(MYMAP.map);
                trajet_2.setMap(MYMAP.map);
                //update = setTimeout('updateXml()', refreshRate);


             });
            }
          });

      }
      else
      {
        var lDepart = "";
        var lArrivee = "";
      }



    });

//


Thanks

 4 
 on: April 16, 2013, 09:03:18 PM 
Started by shadow - Last post by shadow
Thank you Russell, for your quick reply and help

I now run tests with the FsPortTest and gave me this result

please check the picture

the question is: All ports went "OK", these are the ports that I should use, and I will not have that problem with players in different server?

 5 
 on: April 16, 2013, 08:28:13 PM 
Started by shadow - Last post by Russell Gilbert
This is most likely a networking problem, due to someone's router not being configured correctly with port forwarding. All players, including the machine running FSHost, must be configured correctly and should use FSPortTest to test their setup.  Please see this forum post for details:

Firewalls, Routers, and Port Forwarding

Thanks,
Russell

 6 
 on: April 16, 2013, 08:05:47 PM 
Started by shadow - Last post by shadow
Hello.

I am having a problem with the fshost servers that I have open.

I rented a VPS server, and I have several copies fshost server open, the problem is that in the different servers all pilots are having problems connecting, when there more than 3 pilots connected in a server, there comes a lock or block that keeps that fourth or fifth player to connect to the server, and this problem is happening on all copies that I have open.

I do not know if the problem is in the amount of open copies in the same machine, or there is another problem differently.

Please if anyone can help me with this problem, grateful for the help

Please if anyone can help me, please be detail in helping to save time and solve the problem faster

God bless you

 7 
 on: April 03, 2013, 02:43:46 PM 
Started by a520384 - Last post by a520384
I guess there isn't as much interest as I had hoped...

I'm at a point where I can have server admins beta test it but without any interest I don't see a reason to further compile the searches and dashboards. 

I'll monitor this page for a week or two.

Kyle

 8 
 on: April 03, 2013, 12:51:53 PM 
Started by Robert - Last post by FSX30HD
Hello,

Sorry but the link is dead someone can share with me the source code please ?

Regards Fred

 9 
 on: March 31, 2013, 12:45:08 AM 
Started by FSX30HD - Last post by FSX30HD
Hi all,
And congratulations to the author of this wonderful program that I use to fly with friends ...

Here my problem is that I want to recover the flight plan of all the drivers and create an card with a line connecting the starting ICAO ICAO arrival and the MAP players could see their progress.

Could someone help me thank you in advance :)

Sorry for my English but I am French pathetic ...

Here is an example of what I'm looking for

http://www.vafinancials.com/v5/maps/flightmap.php

Regards Fred

My server here: http://fshost.p3d-simulation.fr:3031

 10 
 on: March 30, 2013, 09:22:04 PM 
Started by a520384 - Last post by a520384
Here is a Map example.  So this takes the IP address of the user connecting and adds them to a dashboard running the 'Google Map' app/add-on for Spunk. (all free mind you).

This is the raw event in the FSHost.log
Code: [Select]
130330 22:00:00  IP address for 'Anybody': 74.125.137.139 Their ip address is saved as a field extraction and named as a variable called User_IP.

The search command in Splunk is:
Code: [Select]
sourcetype=FSHost User_IP | geoip User_IPAnd with a little more scripting I created this:


For testing I created a false FSHost.log file by using IP's I found in my firewall log.  However this works with any FSHost.log file and no scripting is required on your end. Also any of the bubbles on the map you can drill down to and see the raw event.  Also you can zoom in like Google maps.

Kyle

Pages: [1] 2 3 ... 10