Announcement

Collapse
No announcement yet.

Skynet: An IADS for Mission Builders

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

    Originally posted by Boosterdog View Post
    Hi

    Im struggling more than 1 command centre to work. If I use just one the IADS behaves as expected and the requested degug behaves perfectly. If I add a second, the IADS seems to behave as expected by there is no debug information. The only thing that appears is the header with no further details.

    Ive set the code out various ways. Any help greatly appreaciated.

    Heres how, in general ive been setting it out:

    local commandCenter = StaticObject.getByName("HQ 266th AAMB Poti")
    redIADSPOTI:addCommandCenter(commandCenter)

    local commandCenter = StaticObject.getByName("HQ- 643rd AAMB Gudauta")
    redIADSPOTI:addCommandCenter(commandCenter)

    Ive also tried:

    local commandCenter = StaticObject.getByName("HQ 266th AAMB Poti")
    local commandCenter = StaticObject.getByName("HQ- 643rd AAMB Gudauta")
    redIADSPOTI:addCommandCenter(commandCenter)

    I originally wanted to have three discrete areas (POTI, GUDAUTA and TIBLISI) but ive given up on that as muliple iterations just seem to activite the first and ignore the rest.

    Thanks
    Did you check possible error messages in the dcs.log? Seems like you are referencing a unit that does not exist.
    Skynet: an Integrated Air Defence System for DCS. Download here!

    The best flying school in Switzerland mfgz.ch

    Follow my flying adventures on YouTube

    Comment


      Originally posted by tigair View Post
      For the moment ships can only be used as EW radars. I use the AI on off feature to turn SAM sites on and off. Unfortunately that does not work for ships. Maybe at a later date I will add some workaround for ships.
      Thanks for the response, and confirming I’m not crazy. We deleted the ship and I’ll look forward to some additional functionality at some point in the future. Thx!

      Comment


        Originally posted by tigair View Post
        Did you check possible error messages in the dcs.log? Seems like you are referencing a unit that does not exist.
        Im sure the unit exists as Im copy and pasting its name from the ME into the script. I think its all a little beyond my simple Mancunian brain TBH :-). Im sure there will be a dot or dash or bracket Ive stupidly missed somewhere.

        BTW - THANK YOU for this- even in the forms I can get it to work (eg basic IAD set and with Air Dispatcher) it adds a lot to my enjoyment of DCS.

        Comment


          Originally posted by Boosterdog View Post
          Im sure the unit exists as Im copy and pasting its name from the ME into the script. I think its all a little beyond my simple Mancunian brain TBH :-). Im sure there will be a dot or dash or bracket Ive stupidly missed somewhere.

          BTW - THANK YOU for this- even in the forms I can get it to work (eg basic IAD set and with Air Dispatcher) it adds a lot to my enjoyment of DCS.

          You're welcome! By the way if you need support join the Skynet discord channel:
          https://discord.gg/vkDfe5

          It's easier to share missions there. It might well be that there is a bug in the command center part. I am currently rewriting the radar coverage code to get rid of micro stutters in large multiplayer issues. And some where on the backlog is the command center code.

          I'm 1/2 Mancunian and was able to write an IADS, im sure you will be able to wrap your head around the more advanced setup features
          Last edited 09-17-2020, 07:59 PM.
          Skynet: an Integrated Air Defence System for DCS. Download here!

          The best flying school in Switzerland mfgz.ch

          Follow my flying adventures on YouTube

          Comment


            weapon.dll crash

            With Skynet running, there is a chance when a sam is destroyed, the mission/server will crash with a weapon.dll crash. Is anyone else getting this error condition?
            sigpic

            Comment


              Yes, but its not all the time. Someone said when they were testing it seemed when a radar is damaged but not destroyed and it tries to turn on and search for new target that it crashes.
              The State Military (CVW-17)

              sigpic

              RAM 301
              F/A-18C BuNo 165212
              VFA-83

              CAPT W. “Grekko” Loomis
              www.statelyfe.com

              Comment


                I saw some error logs with that bug. The dll crash is something that not should happen via LUA scripting. If it is indeed due to a partially damaged radar I might be able to work around that in LUA. I will check if the error is consistently reproducible as WRL11 described.
                Skynet: an Integrated Air Defence System for DCS. Download here!

                The best flying school in Switzerland mfgz.ch

                Follow my flying adventures on YouTube

                Comment


                  Originally posted by tigair View Post
                  I saw some error logs with that bug. The dll crash is something that not should happen via LUA scripting. If it is indeed due to a partially damaged radar I might be able to work around that in LUA. I will check if the error is consistently reproducible as WRL11 described.
                  Thanks, this is a show stopper as it's a hard server crash and the mission must be restarted (which is doomed to crash again) with enough folks gunning and HARMing SAMS this is almost guaranteed to crash at some point during a heavy sam/iads mission.

                  OTHERWISE...
                  This script is awesome, the SAMS are way better behaved and make better decisions to destroy us, which we love! thanks for the hard work on this script!!!
                  sigpic

                  Comment


                    @Jeffdude: thanks for the nice words! Just wait until the new features I am working on are released.

                    I have published an update to Skynet:
                    https://github.com/walder/Skynet-IAD...ses/tag/v1.1.2

                    Let me know if that resolves the issue.
                    Skynet: an Integrated Air Defence System for DCS. Download here!

                    The best flying school in Switzerland mfgz.ch

                    Follow my flying adventures on YouTube

                    Comment


                      Since ED has fixed the underlying bug, I have published a updated version of Skynet:
                      https://github.com/walder/Skynet-IAD...ses/tag/v1.1.3
                      Skynet: an Integrated Air Defence System for DCS. Download here!

                      The best flying school in Switzerland mfgz.ch

                      Follow my flying adventures on YouTube

                      Comment


                        Originally posted by tigair View Post
                        Since ED has fixed the underlying bug, I have published a updated version of Skynet:
                        https://github.com/walder/Skynet-IAD...ses/tag/v1.1.3
                        Awesome! Just put it back into my missions. It's a pleasure to watch the SAMs lurk in the darkness until the A-10s get close and the pilot's screams echo through the teamspeak. Bonus points if his speakers are loud enough to hear the RWR go nuts

                        In all seriousness though, this makes Wild Weasel ops really, really fun. Typically one of our boys is the bait while the rest throws in HARMs and CBUs.

                        Comment


                          First of all, thank you for the great work on this. It's awesome and I see amazing longevity and potential in it. I would like to discuss an issue and proposed enhancements.

                          Background:

                          We tried using skynet in the context of a persistently maintained mission and found some code & architecture issues.

                          We are using a modified version of SGS.lua (Pikey's). How this works (for background on the issue) is that at a certain time after start, it wipes all the units off the map, and then replaces them from a saved file, which is periodically written to record the units that are still alive.

                          The basic skynet config works 100% with this off the bat. "-ish." It has all the SAM systems in autonomous mode all the time, which is not what we wanted.

                          So we added connection nodes, and other arch-specific attributes to build out a system. The process of doing this is by manually referring to the group name in the script. Okay, all good so far...

                          Then the mission runs a bit, and stuff starts getting killed. The mission is shut down, and restarted. The SGS script restores what was alive at the last save. Some SAM systems are not there anymore. Others are "partially" not there.

                          (nota bene: the methods for including nodes, power sources, etc. refers by name to groups)


                          If those groups don't exist (anymore), or the group is partially destroyed to some extent, it's fatal to the skynet script.

                          Reproduce:

                          1 - Define a SA-6 site with the radar and 3 launchers.

                          2 - Add it by prefix to skynet.

                          3 - Add a connection node to it.

                          4 - Now go back and destroy (remove) all but one launcher.

                          5 - Restart the mission and observe the log.



                          What I think is needed:

                          1 - Prefix based approaches to the ":add" methods (node, power, etc) to remove the need to manually maintain group names. Or an approach by boolean that unless told not to, automatically adds the system to the nearest node & power source if they exist alive within a given distance.

                          2 - Error handling to account for a partially or totally destroyed system so that it's not fatal to the script.


                          These are basically automation requests that obviate the need to maintain lists of the site's group names by hand if that's undesirable or oppressive.

                          ---

                          I realize that what we're doing may not fall completely inside the targeted use case of skynet, but there is a campaign engine in development and odds are this circumstance would exist there too.
                          Last edited 10-09-2020, 06:02 PM.

                          sigpic

                          Are you ready to take your chopper flying skills to the next level?
                          Then check out http://www.blacksharkden.com/ Or visit us on Discord https://discord.gg/kaayJ5z and talk to some of our awesome pilots today.

                          Comment


                            Thanks for your Feedback Frago007.

                            Skynet stumbles when Units are removed or added in the manner you described. I have put some thought in to adding an autogenerate that would behave similar to as you described.

                            But it may take some time until I am at that point. There is still al ot of stuff in the backlog I want to add first, see:
                            https://github.com/walder/Skynet-IADS/projects/1


                            If you want to be up to date on Skynet, join the discord Server:
                            https://discord.gg/CgwJnt
                            Skynet: an Integrated Air Defence System for DCS. Download here!

                            The best flying school in Switzerland mfgz.ch

                            Follow my flying adventures on YouTube

                            Comment


                              No problem, just wanted to pass on some thanks, observations, and suggestions to you. I'll follow the ongoing work with interest.

                              /F

                              sigpic

                              Are you ready to take your chopper flying skills to the next level?
                              Then check out http://www.blacksharkden.com/ Or visit us on Discord https://discord.gg/kaayJ5z and talk to some of our awesome pilots today.

                              Comment

                              Working...
                              X