Announcement

Collapse
No announcement yet.

Dynamic Medevac Script

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Originally posted by Andy2828 View Post
    The amount of wounded is limited....it turned away others saying I was full but I cant tell how many I picked up.
    There is a parameter for the maximum wounded you can pick up. In the version you use at the moment, that is very limited. A quick glance at the script in the miz you provided above shows many settings set to true but using True with upper case T ! It needs to be all lower case IIRC.
    In my version I made the bleed timer optional with levels of urgency instead of a death timer exact to the second.
    I'll try integrating it into your miz and if that works, I'll report back and upload it.
    Shagrat

    - Flying Sims since 1984 -
    Win 10 | i5 10600K@4.1GHz | 32GB | GeForce RTX 2080S - Acer XB280HK 28" 4k | TrackIR5 | Simshaker & Jetseat | VIRPIL CM 50 Stick & Throttle | MFG Crosswind Rudder Pedals | TM Cougar MFDs | a hand made UFC | AHCP | 2x Elgato StreamDeck (Buttons galore)

    Comment


      Update - As your mission was loading half a dozen scripts including CTLD and another script likely CTLDs JTAC already produces multiple script errors. I had to disassemble my combined script. Another problem, we now have multiple scripts trying to create F10 Radio entries and this seems to cause issues. That was one of the reasons I combined CTLD and MEDEVAC scripts, to get one consistent F10 menu with fewer submenus.
      I'll build a test mission next week and see if I can get CTLD and MEDEVAC scripts running in parallel.
      Shagrat

      - Flying Sims since 1984 -
      Win 10 | i5 10600K@4.1GHz | 32GB | GeForce RTX 2080S - Acer XB280HK 28" 4k | TrackIR5 | Simshaker & Jetseat | VIRPIL CM 50 Stick & Throttle | MFG Crosswind Rudder Pedals | TM Cougar MFDs | a hand made UFC | AHCP | 2x Elgato StreamDeck (Buttons galore)

      Comment


        Thanks Shagrat...I appreciate your time!

        Comment


          Quick update, due to a private loss, I have no time at the moment. Last I could test the basic script and found the loadout/number of wounded to transport calculation broken by DCS.
          I'll try to upload the test mission and my current version of the script, nonetheless on the weekend.
          I can't guarantee I can fix the issue with the loadout calculation, though. Need to find out what has been changed to cause this first.
          Shagrat

          - Flying Sims since 1984 -
          Win 10 | i5 10600K@4.1GHz | 32GB | GeForce RTX 2080S - Acer XB280HK 28" 4k | TrackIR5 | Simshaker & Jetseat | VIRPIL CM 50 Stick & Throttle | MFG Crosswind Rudder Pedals | TM Cougar MFDs | a hand made UFC | AHCP | 2x Elgato StreamDeck (Buttons galore)

          Comment


            So here is the current state. Please be aware that dynamic loadout calculation does not work correct.
            This is based on ciribob's overhaul of Ragnarda's original script.
            It will likely conflict with CTLD/MOOSE, when loading multiple scripts that create menu items with a scheduler...
            May be you have the time to fix this.

            MEDEVAC_TEST.miz
            Last edited 09-07-2019, 09:09 PM.
            Shagrat

            - Flying Sims since 1984 -
            Win 10 | i5 10600K@4.1GHz | 32GB | GeForce RTX 2080S - Acer XB280HK 28" 4k | TrackIR5 | Simshaker & Jetseat | VIRPIL CM 50 Stick & Throttle | MFG Crosswind Rudder Pedals | TM Cougar MFDs | a hand made UFC | AHCP | 2x Elgato StreamDeck (Buttons galore)

            Comment


              @shagrat what's difference between showbleedtimer and realisticMSG?

              Comment


                I hope someone is still watching this thread. I could use some tips. I have added Medevac to our public server (The Forgotten War 1950-1953) a Korean War PVE. Unfortunately we have to use the Huey as the Bell-47G mod breaks the mission for those without it.

                To my issues

                I can use the 2014 version of the script but the 2018 version creates a fatal error and crashes DCS.

                With that in mind; the 2014 version spams messages constantly to the heli pilot after you pick up a downed pilot or vehicle crew. Is there a way to set the time between messages?

                The other thing (so far) is that there is no sling for the 2014 version. Is there a snippet I can steal from the newer version that will work in the older version or do you know of a script that I can add?

                Thanks

                Comment


                  Originally posted by danvac View Post
                  @shagrat what's difference between showbleedtimer and realisticMSG?
                  Bleedtimer shows how many seconds remain until the patient dies, the realisticMSG gives you an estimation based on time left, so no timer but a "He's doing fine" when you have time and more urgent messages depending on time remaining. You will not get exact seconds but more and more urgent messages, the closer to death the patient is.
                  Shagrat

                  - Flying Sims since 1984 -
                  Win 10 | i5 10600K@4.1GHz | 32GB | GeForce RTX 2080S - Acer XB280HK 28" 4k | TrackIR5 | Simshaker & Jetseat | VIRPIL CM 50 Stick & Throttle | MFG Crosswind Rudder Pedals | TM Cougar MFDs | a hand made UFC | AHCP | 2x Elgato StreamDeck (Buttons galore)

                  Comment


                    Originally posted by Propnut View Post
                    I hope someone is still watching this thread. I could use some tips. I have added Medevac to our public server (The Forgotten War 1950-1953) a Korean War PVE. Unfortunately we have to use the Huey as the Bell-47G mod breaks the mission for those without it.

                    To my issues

                    I can use the 2014 version of the script but the 2018 version creates a fatal error and crashes DCS.

                    With that in mind; the 2014 version spams messages constantly to the heli pilot after you pick up a downed pilot or vehicle crew. Is there a way to set the time between messages?

                    The other thing (so far) is that there is no sling for the 2014 version. Is there a snippet I can steal from the newer version that will work in the older version or do you know of a script that I can add?

                    Thanks
                    I'll check my latest version. Haven't used it in quite a while.
                    Meanwhile any log that you can share? May have some indication what's going wrong.
                    Shagrat

                    - Flying Sims since 1984 -
                    Win 10 | i5 10600K@4.1GHz | 32GB | GeForce RTX 2080S - Acer XB280HK 28" 4k | TrackIR5 | Simshaker & Jetseat | VIRPIL CM 50 Stick & Throttle | MFG Crosswind Rudder Pedals | TM Cougar MFDs | a hand made UFC | AHCP | 2x Elgato StreamDeck (Buttons galore)

                    Comment


                      Since last night I did get the 2018 script to work by deleting some ground attack AI. I am not sure it was the script for the AI or spawning tank crew that gave the fatal error.

                      There is the error and then crashdump lines from the log:

                      Spoiler:
                      2020-03-17 19:54:07.873 INFO SCRIPTING: Event unit - Pilot Ejected or Unit Dead
                      2020-03-17 19:54:07.883 ERROR SCRIPTING: Error while handling event [string "C:\Users\David\AppData\Local\Temp\DCS.openbeta\/~mis000032AD.lua"]:1746: attempt to get length of field 'freeVHFFrequencies' (a nil value)
                      2020-03-17 19:54:11.449 INFO SCRIPTING: unit nil MEDEVAC #2
                      2020-03-17 19:54:11.449 INFO SCRIPTING: unit nil MEDEVAC #3
                      2020-03-17 19:54:16.462 INFO SCRIPTING: unit nil MEDEVAC #2
                      2020-03-17 19:54:16.462 INFO SCRIPTING: unit nil MEDEVAC #3
                      2020-03-17 19:54:20.848 INFO SCRIPTING: Event unit - Pilot Ejected or Unit Dead
                      2020-03-17 19:54:20.853 ERROR SCRIPTING: Error while handling event [string "C:\Users\David\AppData\Local\Temp\DCS.openbeta\/~mis000032AD.lua"]:1746: attempt to get length of field 'freeVHFFrequencies' (a nil value)
                      2020-03-17 19:54:21.329 INFO EDCORE: try to write dump information
                      2020-03-17 19:54:21.342 INFO EDCORE: # -------------- 20200317-195421 --------------
                      2020-03-17 19:54:21.343 INFO EDCORE: DCS/2.5.6.44266 (x86_64; Windows NT 10.0.18362)
                      2020-03-17 19:54:21.344 INFO EDCORE: f:\Program Files\Eagle Dynamics\DCS World OpenBeta\bin\Transport.dll
                      2020-03-17 19:54:21.346 INFO EDCORE: # C0000005 ACCESS_VIOLATION at 020883EA 00:00000000
                      2020-03-17 19:54:21.385 INFO EDCORE: SymInit: Symbol-SearchPath: '.;f:\Program Files\Eagle Dynamics\DCS World OpenBeta;f:\Program Files\Eagle Dynamics\DCS World OpenBeta\bin;C:\WINDOWS;C:\WINDOWS\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 530, UserName: 'David'


                      attacted is the entire crash dump zip file.


                      EDIT: Checked the server this morning and it had indeed crashed after a bit of gameplay.
                      Attached Files
                      Last edited 03-18-2020, 12:06 PM.

                      Comment


                        Hi !

                        It's possible to add "addCommandForGroup" in MIST submenu to launch your mission with F10 => "Missions" => "Active MEDEVAC/SAR" ?

                        Comment


                          This script has so much potential and the latest version (6.3) ran seamlessly the other night for me. Unfortunately i can't get it to work consistently!

                          Most of the time the ground infantry keep running circles after their vehicle explode and don't stop to then request the medevac.

                          Then sometimes they will request medevac but then the 'active medevac/sar' option only works once then it shows nothing at all.

                          Can any of you talented people check out whats up?
                          Last edited 04-05-2020, 12:05 PM. Reason: disregard
                          F/A-18C | F-14B | A-10C | UH-1H | Mi-8MTV2 | Ka-50 | SA342 | Super Carrier | Nevada | Persian Gulf | Syria |

                          sigpic
                          i7 4770 (3.9GHz) - 32GB DDR3(1600MHz) - GeForece GTX 1050TI - 1TB 860 EVO SSD

                          Comment


                            Can anyone point me too a working version of this script? It used to work great but cant get it too function anymore. Thanks.
                            The Flying Kiwis - Since ages ago...
                            Find us at https://www.simcentral.co.nz

                            Comment

                            Working...
                            X