Jump to content

[ATME] Comments and remarks


sunski34

Recommended Posts

player:getCoalitionName()

Description : retrieves the name of the coalition from a player's unit.

Parameters : None

Return values:

Without error : string Coalition player’s name : "RED", "BLUE" ou "NEUTRAL"

 

 

see manual in English or French for further explanation

 

here https://forums.eagle.ru/showpost.php?p=3001613&postcount=2 ( English )

or

here https://forums.eagle.ru/showpost.php?p=3001633&postcount=1 ( french )

 

 

cheers

 

 i7-10700KF CPU  3.80GHz - 32 GO Ram - - nVidia RTX 2070 -  SSD Samsung EVO with LG  TV screen 40"  in 3840x2150 -  cockpit scale 1:1

- MS FFB2 Joystick  - COUGAR F16 throttle  - Saitek Pro Flight Rudder Pedals

 

Link to comment
Share on other sites

yep got it :) Do you know if i can retrieve player's aricraft name ? And i have a another question aswell, i'd like to do a polygonal zone i know it's possible with ATME but i don't know how

thank you !

Link to comment
Share on other sites

Hi,

 

yes of course, object:getName() does that. But the best way, is to look french documentation here :https://forums.eagle.ru/showpost.php?p=3001633&postcount=1

This works for groups and static objects too.

 

You can find object form its name with ATME.C_Group.getByName(name) for groups, ATME.C_AIUnit.getByName(name) for AI units and ATME.C_Player.getByName(name) for players.

 

You have lot of functions like positions, altitude, relative positions (isNear, crossAxisFromLeftToRight etc..), fire flares & smokes, load/unload troops in personnel carrier , attributes (isSam, isAirplane) for AI units or groups, etc....

 

For polygon, not yet, but i'm working on it. So I hope soon.

 

Sunski


Edited by sunski34
Link to comment
Share on other sites

be aware, a Group ( airplane Group) unfact there is only One aircraft inside

is not the same than the AIunit inside.

a Group can have one or more Unit.

 

 

local playerUnit = player:getDCSUnit()

local nameUnit = playerUnit:getName()

local Callsign = playerUnit:getCallsign()

local Group = playerUnit:getGroup()

local Groupname = Group:getName()

 

player:display("Player Unit Name is "..nameUnit ,25)

player:display("Player Callsign Name is "..Callsign ,25)

player:display("PlayerAircraft groupeName is "..Groupname ,25)

 

 i7-10700KF CPU  3.80GHz - 32 GO Ram - - nVidia RTX 2070 -  SSD Samsung EVO with LG  TV screen 40"  in 3840x2150 -  cockpit scale 1:1

- MS FFB2 Joystick  - COUGAR F16 throttle  - Saitek Pro Flight Rudder Pedals

 

Link to comment
Share on other sites

ATME don't do and will not do that.

 

As I said, I think the best way is to read ATME documentation, you will see ATME abilities. After if you have specific questions tell us.

 

Sunski


Edited by sunski34
Link to comment
Share on other sites

Ok i've got a new problem right now everything is working when i spawn in aircrafts on the ground or in the air but from the russian aircraft carrier i've got this

errorkuz.PNG

 

I tried recreating a mission with no script (only atme core and then ATME.run("FR")) and only the carrier + a su 33 to spawn in. Same problem so i believe this is not comming from my scripts. Any idea ?

Link to comment
Share on other sites

Hi,

 

I never test that case (just having ATME Core) because you must have your own module script after ATME Core (at least one). So if I find the same problem I will add what is necessary in ATME Core to have no problem. I will tell you if I confirm that issue and will fixed ASAP.

 

If you want to try, download ATME_basicmodel.lua here https://forums.eagle.ru/showpost.php?p=3001608&postcount=1 and had it after ATME Core using clone.

 

See image below and replace ATME_HelloWorld.lua by ATME_basicmodel.lua which does nothing. That should work.

 

here a short video :

 

Hope that help.

 

Sunski

image.png.475cdb0e2f90437c0300a97402517ee2.png


Edited by sunski34
Link to comment
Share on other sites

Exact same thing with empty mission(only the aircraft carrier and the sEDITu33), ATME core could be corrupted ?

EDIT: i tried with basic model and a new Core file it's still not working when spawning on the aircraft carrier


Edited by ked
Link to comment
Share on other sites

  • 1 year later...

easily usable script module to your mission Case III Operations or Night Landing

 

an easy usable script you can use for all your Hornet F18 or AV8 DCS mission. Case III Operations

or Night Landing

 

it gives you Boat and ATIS information ( runway HDG, speed, wind ... )

 

for landing on boat

 

the script is all commented both french and English

2 missions one running ATME in English language the second in French language.

 

works fine with ATME v145.

boatATISandRWYinformationATMEscriptandmissions.zip

 

 i7-10700KF CPU  3.80GHz - 32 GO Ram - - nVidia RTX 2070 -  SSD Samsung EVO with LG  TV screen 40"  in 3840x2150 -  cockpit scale 1:1

- MS FFB2 Joystick  - COUGAR F16 throttle  - Saitek Pro Flight Rudder Pedals

 

Link to comment
Share on other sites

script and demo mission updated with magnetic heading correction for CRS regarding the Map you're playing.

boatRwyHDG_demoscriptATME_v4.zip


Edited by snowsniper
 

 i7-10700KF CPU  3.80GHz - 32 GO Ram - - nVidia RTX 2070 -  SSD Samsung EVO with LG  TV screen 40"  in 3840x2150 -  cockpit scale 1:1

- MS FFB2 Joystick  - COUGAR F16 throttle  - Saitek Pro Flight Rudder Pedals

 

Link to comment
Share on other sites

  • 1 year later...

Hi all, I use your ATME_Race, it works very well. but i'm a newbie about .Lua.

Can I check if the pylon passage is correct and display the "pylon OK" message?

Thx

 

EDIT: PROBLEMS SOLVED. I've added intermediated time for every pylon. if you don't see time, the pylon is wrong.

 

Your scripts is amazing, thx of lot!!!


Edited by EAF51_Luft
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...