Board index FlightGear Support Multiplayer

Aircraft Icon on MpMap

Trouble getting online, setting up a server?
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- copy&paste your commandline.

Please, also see Requesting Technical Help.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

Aircraft Icon on MpMap

Postby eekpo » Tue Sep 27, 2011 12:25 pm

canceled
Last edited by eekpo on Fri Mar 30, 2012 9:16 pm, edited 1 time in total.
eekpo
Retired
 
Posts: 131
Joined: Tue May 03, 2011 9:23 am

Re: Aircraft Icon on MpMap

Postby F-JJTH » Tue Sep 27, 2011 1:35 pm

Hi eekpo,

MPmap icons are defined within Multiplayer server.
Each specific icons are defined in this file : http://mpmap02.flightgear.org/fgmap.js

See this section :
Code: Select all
var FGMAP_CRAFT_ICON_PREFIX = "images/aircraft_icons/";
var FGMAP_CRAFT_ICON_SUFFIX = ".png";
var FGMAP_CRAFT_ICON_ZINDEX = 5;


var FGMAP_CRAFT_ICON_GENERIC = "generic/fg_generic_craft"

var FGMAP_CRAFT_ICON_HELI = "heli/heli"
var FGMAP_CRAFT_MODELS_HELI = [ "bo105", "sikorsky76c", "ec135", "r22", "s76c", "Lynx-WG13", "S51-sikorsky", "CH47", "R22", "apache-model", "uh-1", "uh60", "OH-1" ];

var FGMAP_CRAFT_ICON_SINGLEPROP = "singleprop/singleprop";
var FGMAP_CRAFT_MODELS_SINGLEPROP = [ "c150", "c172p", "c172-dpm", "c182-dpm", "c310-dpm", "c310u3a", "dhc2floats", "pa28-161", "pc7", "j3cub" ];

var FGMAP_CRAFT_ICON_TWINPROP = "twinprop/twinprop";
var FGMAP_CRAFT_MODELS_TWINPROP = [ "Boeing314Clipper", "Lockheed1049_twa", "TU-114-model", "b1900d-anim", "b29-model", "beech99-model", "dc3-dpm", "fokker50" ];

var FGMAP_CRAFT_ICON_SMALLJET = "smalljet/smalljet";
var FGMAP_CRAFT_MODELS_SMALLJET = [ "Citation-II", "Bravo", "fokker100", "tu154B" ];

var FGMAP_CRAFT_ICON_HEAVYJET = "heavyjet/heavyjet";
var FGMAP_CRAFT_MODELS_HEAVYJET = [ "boeing733", "boeing747-400-jw", "a320-fb", "A380", "AN-225-model", "B-52F-model", "Concorde-ba", "FINNAIRmd11", "MD11", "KLMmd11", "737-300", "787", "777-200", "747-400", "737-100", "737-400" ];


var FGMAP_CRAFT_ICON_GLIDER = "glider/glider";
var FGMAP_CRAFT_MODELS_GLIDER = [ "hgldr-cs-model", "paraglider_model", "colditz-model", "sgs233" ];

var FGMAP_CRAFT_ICON_BLIMP = "blimp/blimp";
var FGMAP_CRAFT_MODELS_BLIMP = [ "ZLT-NT", "ZF-balloon", "Submarine_Scout", "LZ-129", "Excelsior-model" ];

var FGMAP_CRAFT_ICON_CARRIER = "carrier/fg_carrier";
var FGMAP_CRAFT_MODELS_CARRIER = [ "mp-nimitz", "mp-eisenhower", "mp-foch" ];


/* Specific aircraft (non-photo) icons */
var FGMAP_CRAFT_ICON_OV10 = "ov10/ov10";
var FGMAP_CRAFT_MODELS_OV10 = [ "OV10", "OV10_USAFE" ];

var FGMAP_CRAFT_ICON_KC135 = "kc135/kc135";
var FGMAP_CRAFT_MODELS_KC135 = [ "KC135" ];

var FGMAP_CRAFT_ICON_CH53E = "ch53e/ch53e";
var FGMAP_CRAFT_MODELS_CH53E = [ "ch53e-model" ];

var FGMAP_CRAFT_ICON_E3B = "e3b/e3b";
var FGMAP_CRAFT_MODELS_E3B = [ "E3B" ];

var FGMAP_CRAFT_ICON_ATC = "atc/atc";
var FGMAP_CRAFT_MODELS_ATC = [ "atc-tower", "atc-tower2", "mibs", "atc" ];


You can see icons here :
http://mpmap02.flightgear.org/images/aircraft_icons/(1).png

Replace the (1) by "heli/heli", "singleprop/singleprop", "twinprop/twinprop" ... like this http://mpmap02.flightgear.org/images/ai ... i/heli.png

In order to change the defined icons (for example the Robinson R44 appears as an aircraft) you need to modify the MPMAP project here : http://pigeond.net/git/?p=flightgear/fg ... ;a=summary
The fgmap.js is here : http://pigeond.net/git/?p=flightgear/fg ... ;hb=master
But I don't know how to change it...

Cheers,
Clément
User avatar
F-JJTH
 
Posts: 696
Joined: Fri Sep 09, 2011 12:02 pm

Re: Aircraft Icon on MpMap

Postby eekpo » Tue Sep 27, 2011 5:55 pm

canceled
Last edited by eekpo on Fri Mar 30, 2012 9:16 pm, edited 1 time in total.
eekpo
Retired
 
Posts: 131
Joined: Tue May 03, 2011 9:23 am

Re: Aircraft Icon on MpMap

Postby Gijs » Tue Sep 27, 2011 6:08 pm

Nothing stops you from mailing the mpmap maintainers (via the mailinglist for example). They'd happily give your aircraft the right icon...
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9549
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Aircraft Icon on MpMap

Postby eekpo » Tue Sep 27, 2011 9:12 pm

Gijs wrote in Tue Sep 27, 2011 6:08 pm:Nothing stops you from mailing the mpmap maintainers (via the mailinglist for example). They'd happily give your aircraft the right icon...


Hmm, No, thanks :)

That's not the most flexible solution, mainly in a free world, we mean out of the Flighgear restrictive policy ( a least that we have understood ).

Best regards.

eekpo team.
eekpo
Retired
 
Posts: 131
Joined: Tue May 03, 2011 9:23 am

Re: Aircraft Icon on MpMap

Postby Gijs » Tue Sep 27, 2011 9:17 pm

If we'd only go for the best/nicest solution, most FlightGear wouldn't exist...
Sometimes you do things, just because they work. Not because you particullary like the way they "look".

As long as no-one adds some function to the mpmap source (which is freely accessible, also for you) that can retrieve the icon-type from, say -set.xml, we're stuck with this "restrictive" method.
But it's your decision, your time, your wish. I'll just be quiet ;)
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9549
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Aircraft Icon on MpMap

Postby eekpo » Fri Sep 30, 2011 5:48 pm

deleted
eekpo
Retired
 
Posts: 131
Joined: Tue May 03, 2011 9:23 am


Return to Multiplayer

Who is online

Users browsing this forum: No registered users and 5 guests