get plane's coordinates ?
#1

Hi,
so I finally managed to compile my 1st dummy mod which does nothing and now I start the real work.

The question is now can I can the plane's current coordinates ? I had a look in the FlightModel class (World.getPlayerFM()) but I'm not sure which method from there I should use. Are those two values the plane position:

Code:
World.getPlayerFM().Loc.x
World.getPlayerFM().Loc.y

If yes, what is the origin of the 3D space ?

regards,
tex
Reply
#2

So when I am using this, I get values like
Code:
World.getPlayerFM().Loc.x: 6293.14
World.getPlayerFM().Loc.y: 51846.13

What is the origin point of those values ? ?
Reply
#3

Tex-Twil Wrote:So when I am using this, I get values like
Code:
World.getPlayerFM().Loc.x: 6293.14
World.getPlayerFM().Loc.y: 51846.13

What is the origin point of those values ? ?

Those are meters from the south-west corner of the map.

A new question: how can I get the name of the current map ? Or even better, is there a way to get the 2D picture of the IL2 maps ? The one that is displayed when I open the pilots map in game.
Reply
#4

Tex-Twil Wrote:A new question: how can I get the name of the current map ? Or even better, is there a way to get the 2D picture of the IL2 maps ? The one that is displayed when I open the pilots map in game.

I would think if you looked in the map part of the site you might
be able to find something there about that.

Deutschmark
Reply
#5

Deutschmark Wrote:
Tex-Twil Wrote:A new question: how can I get the name of the current map ? Or even better, is there a way to get the 2D picture of the IL2 maps ? The one that is displayed when I open the pilots map in game.

I would think if you looked in the map part of the site you might
be able to find something there about that.

Deutschmark
I've just had a look but found nothing. Maybe I can ask there.
Reply
#6

Tex-Twil Wrote:
Deutschmark Wrote:
Tex-Twil Wrote:A new question: how can I get the name of the current map ? Or even better, is there a way to get the 2D picture of the IL2 maps ? The one that is displayed when I open the pilots map in game.

I would think if you looked in the map part of the site you might
be able to find something there about that.

Deutschmark
I've just had a look but found nothing. Maybe I can ask there.

Using the SFS Extractor I can get the high res maps Wink The labels are not there but it's a start.

here is an example

[Image: ed_m01.png]

The next step is how to get the name of the currently played map
Reply
#7

Hi,
I think, the easiest way is to create a mission in FMB and then open the certain .mis file with the an editor!
The name of the map is in the second line after "map":

[MAIN]
MAP Mapname

Hope it helps!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)