Jump to content

sunski34

Members
  • Posts

    753
  • Joined

  • Last visited

Everything posted by sunski34

  1. repawn Bonjour, il n'y a pas de fonction respawn à proprement parler. Pour faire un respawn automatique, il faut utiliser la fonction setAutoRespawn de la classe ATME.C_Group. Cette fonction permet de respawner un groupe détruit avec un délai donné. Pour détruire un groupe, deux possibilités : dans la réalisation de la mission, à la réception des events DCS ad'hoc par ton script en utilisant la fonction disable de la classe ATME.C_Group, c'est ce que veut dire snowsniper Voici un exemple simple qui fixe l'autorespawn entre 1 et 4 seconde puis si le groupe existe le détruit... Donc il sera recréé ensuite dans le délai indiqué. Il existe un exemple en 1.45 dans "Other examples.zip" dont est tiré l'extrait ci dessous (ATME_direct_menu_spawn_destroy) : local group = ATME.C_Group.getByName("copy0") if group ~= nil then -- If exists, disable group ... thisModule:output("Avant auto...",1) group:setAutoRespawn("RANDOM 1 00:00:04") thisModule:output("Après auto...",1) group:disable() end Mais en faisant celà, le groupe va toujours refaire la même chose. Maintenant, si tu veux qu'un groupe reparte de l'endroit ou il est, il faut toujours faire un disable puis faire un spawn à partir du cloningcontext créé comme je t'ai montré mais cette fois avec une route inverse. Il faut la faire waypoint par waypoint pour l'instant car les copies de route ne se font pas en sens inverse (c'est une idée que je retiens). Je précise que dans les dernières version de DCS, pour les avions, il existe un nouveau cas "atterrir et repartir", je dois voir celà car pour l'instant non implémenté dans ATME.
  2. Bonjour à tous, ce matin la version 1.4.6 a été publiée avec sa documentation à jour et le fichier basique pour créer un module. On notera cependant que les exemples restent actuellement dans les anciennes versions. Les mise à jour sont en cours et seront publiées dès que possible (en fonction de ma charge de travail professionnelle). Je reste disponible pour toute question ou remarque. Le travail sur les optimisations se poursuit afin de rendre ATME encore plus performant. Merci à tous pour vos encouragements ;) Le lien pour le téléchargement :https://forums.eagle.ru/showpost.php?p=3001633&postcount=1 A+ Sunski
  3. J'oubliai : tu peux aussi créer plusieurs groupes identiques avec un délai entre chaque et une quantité définie. C'est la fonction setAutoRepeatSpawn(qté, période) dans la classe C_CloningContext. La période peut etre fixe ou aléatoire avec un min/max en secondes, voir la doc.
  4. en complément, dans l'exemple, le nouveau groupe est spawnné dans une zone DCS nommée "spawnZone". Le positionnement dans cette zone est aléatoire. Après, à partir du waypoint 1, c'est la route du groupe "source" qui sera donc suivie elle aussi à partir du waypoint 1.
  5. Cloning Il est tout à fait possible de cloner un groupe en multiple version, il faut utiliser la classe C_CloningContext. Deux possibilités, le faire avec des données directement dans le lua c'est plus compliqué car ce sont les tables DCS. Ou plus simple cloner un groupe existant, dans le cas ci dessous son nom est "source" et le groupe cloné s'appelle "dest". Si tu spawn plusieurs fois tu auras "dest #001" "dest #002" etc.... Dans l'exemple je mets une route spécifique. Pour avoir le même route que le groupe initial, il suffit de ne pas mettre de paramètre à la fonction spawn. Tu peux aussi créer des routes diverses donc avec cette classe C_Route. local cloningContext = ATME.C_CloningContext("source", "dest") if cloningContext ~= nil then local route = ATME.C_Route("GROUND") route:addAbsoluteWaypoint("spawnZone", 0) route:addInitialWaypointsFrom("source", 1) cloningContext:spawn(route) end ATTENTION : A partir de la V1.46 à venir, le onSpawnGroupHandler n'existera plus mais tu pourras ajouter une callback qui sera executée lors du spawn après le onCreateGroupHandler s'il existe : local cloningContext = ATME.C_CloningContext("source", "dest") if cloningContext ~= nil then local route = ATME.C_Route("GROUND") route:addAbsoluteWaypoint("spawnZone", 0) route:addInitialWaypointsFrom("source", 1) cloningContext:addSpawnCallback(mySpawnCallback) cloningContext:spawn(route) end et la fonction callback est de type : local function mySpawnCallback(context, group) -- Callback de spawn pour mon contexte cloningContext que l'on récupère dans context -- Le groupe spawné est récupéré dans group. ATME.displayForAll("New group " .. group:getName() .. " is spawned from intitial group : " .. context:getGroupName(), 5) end
  6. Bonjour, concernant le spawn simple ou multiple, ainsi que l'auto respawn celà existe dans ATME pour les AI. Pour ce qui est du scheduling, ATME dispose qu'une classe alarme qui permet le déclenchement d'événement, le timing est à la seconde. Une alarme peut etre réarmée autant de fois que nécessaire. Je profite de ce mail pour indiquer que la version 1.46 est en cours de finalisation et apportera encore plus de stabilté. A+ Sunski
  7. I understood ! Nobody has respond but I understood that JTAC (with laser) process has changed. When IP IN BOUND, you have to : -> LASER ON -> Select target point then SPOT -> Then IN -> JTAC give you informations -> Then drop GBU at good time Then you can perform another attack , go to IP then IP IN BOUND .... same process. There's several options but I don't test them yet (like TEN SECOND etc...) I hope that help people.
  8. The problem is the same with Caucasus map. But more precisions : The ennemy group to lase has few vehicules, all visible. The first time the process doesn't change (Contact.... IP INBOUND ... LASING). That's ok, target is destroyed Then JTAC said SHIFT and you can SHOT, SHIFT, TERMINATE. I chose SHOT Then IN Then IP INBOUND .... If you try this in a different position than the first time, JTAC said Stop stop stop... If you do that at the same position, no problem... JTAC said CONTINUE but you can't LASE again. The menu is IN again. If you drop the bomb no lasing...Bad shoot.
  9. Hi, I put a JTAC in my mission (I've already done that in Caucasus but on old version of DCS, I need to retry now in Caucasus to be sure), but sometimes JTAC told me to abord !!! But I think all is good : -> Contact JTAC -> Respond -> Ready to copy -> Read 9 line -> Copy remarks -> INBOUND than he said CONTINUE -> In menu, LASER ON... But when I drop my bomb GBU12 (before LASING), he told me ABORD three times. Then I can't do anything. If it works the first time, then JTAC said SHIFT.... But I can't LASE again. Strange. What is the problem. I noticed there are more options in F9 menu... so, perhaps the process changed ? I attached the mission, use the in air aircraft... In that case, JTAC is a drone but it's the same problem using a ground JTAC Petroleum Crisis V1.miz
  10. Hi, I tested a simple mission using ME to embark then disembark then reembark an infantry group. I do that to see if I can simplify my framework ATME using standard DCS tasks. I noticed few bugs : I can't set the land zone with the triangle associated with embarking task. The helo always land at the WP where the task is defined. If troops have their "embark to transport" task activated before the helo lands, the troops turn around the first man of the group ;) After helo disembark troop, it doesn't do anything else even if other WP exist for example to reembark. I think some options don't work like setting the helo for distribution in embarking task (but I must do more tests) You can find the mission attached and see those problems. Sunski
  11. Bonjour à tous. Après un été tranquille, voici une nouvelle version ATME. Elle apporte plus de stabilité par la correction de plusieurs bugs embêtants. Pas de nouvelle fonctionnalités importantes, l'objectif étant maintenant de bien tester cette version 1.4.X avant de passer en 1.5.0. A bientot et si soucis ou question, n'hésitez pas ;) Lien pour la 1.4.5 : https://forums.eagle.ru/showpost.php?p=3001633&postcount=1 A+ Sunski
  12. Hi, after summer, a new version of ATME : V1.4.5 This version fixes some bugs. More detail here : https://forums.eagle.ru/showpost.php?p=3001608&postcount=1 Enjoy ATME ;) Sunski
  13. When flying over clouds, without any ground visibility (set to 10 in ME), pilot can see lakes and rivers through cockpit mirror. Tested with M2000C on DCS 2.5 OB, last version.
  14. Persepolis Is Persepolis, near Shiraz, represented in the map? That would be good !
  15. No change at this time, on Open Beta, last update. Yesterday, tested in MP with new spitfire. AI ground units can't follow roads in town, the first unit takes large turns when crossing intersections and sometimes goes out of road, even if no intersection, when some buildings are closed from the road. I noticed a road problem in Ouistreham, near the church, if AI ground units use this road, they stop immediatly. I can't reproduce thos morning seems to be random when first vehicule can't move anymore after a turn too large, out of road.
  16. For those 2 cases, we were 2, cold or hot start from parking (airbase).
  17. Hi, here my post in Persian Gulf because I thought there's a pb with the map. But today, another pb of synch with 2x FA-18 on Caucasus. https://forums.eagle.ru/showthread.php?t=213192
  18. Seems to be a pb with F18. Today another pb of sync in MP with 2 F18 at kobulati. I was client. Hosting player went up in air and went back to ground, starting cold.. When changing for a M2000C, no more pb.
  19. Hi, yesterday,we made a MP mission starting form Abu Musa Island. There was a position problem between aircrafts for client Player. He saw me outside the taxi and the runway, I was on the right of the runway. But he saw me in its left. Synchro pb I think. After take off, all was good. sunski
  20. Hi, Is that bug so difficult to be fixed ? MK2000C and AV88 (perhaps other aircrafts) can't refuel external tanks in air, several missions can't be played. We have no information about a fix. Is there any news about that issue ? :mad::mad::mad:
  21. Ok I will see. Thanks
  22. Yes good remark thanks
  23. Even if active program is CCIP ?
  24. Actually, with last update, Moving map is just visible on AMPCD. If you set HSI on left DDI, then MAP ON/OFF, it appears (desapears) for AMPCD). Bug or correct implementation?
  25. Hi, When select a WP as target on HSI, if you program CCIP mode for bombing, then HUD indicates AUTO and you are in CCRP mode. Strange. Is that normal?
×
×
  • Create New...