Jump to content

gunterlund21

Members
  • Posts

    1012
  • Joined

  • Last visited

Posts posted by gunterlund21

  1. I did some "hierarchical" changes to the code, and built some new docs for it. Now the Setup class only contains appropriate functions. Other, more "background-code" functions are moved to other classes.

     

    Here is a link to the new docs: https://birgersp.github.io/dcs-autogft/Setup.html

     

    Brilliant Gromit. Now the docs make alot more sense. And thanks for the explanation of the zones. Big help.

     

    Now if only DCS could fix the unit path finding we will have a battle.

  2. Thanks Gromit for the great explanation. Im still a little confused though between controlzone and intermediatezone. From your explanation it looks like they do the same thing. I thought the intermediatezone was just a way to get units to go in a certain direction without any kind of capture process. Will the units fight over an intermediatezone as well?

     

    Also gain the capturetask:new should I worry about this and what are the coalition numbers...

    Thanks again for this great system and your support on it. Having a blast with it.

  3. Gromit Im a bundle of questions

    trying to use Capturetask

    USCapture = CaptureTask:new("CONTROL1", "blue")

    Is this the right format for the coalition. Im getting a big nil error on its execution. Im assuming that when blue is in control1 the flag will be set to true.

  4. Hi Gromit

    ok did some testing. It looks like the maxdistance is working but not sure if the timer is working. Need to understand what its doing. Is the timer supposed to gauge how long the units will travel for or is the timer the gap between the next bound. It looks like the units travel for 120 seconds then sit for 30. My timer is set to 145 seconds so if it gauges distance they should make the 4km (assuming setMaxRouteDistance is in km)

    see attached

    GROUND_ENGAGEMENT.miz

  5. New version: https://github.com/birgersp/dcs-autogft/releases/latest/

     

    The crash in setAdvancementTimer should be gone now, and maxDistanceKM should be working as intended.

     

    gunterlund21 can you give 1.14 a go and let me know if the errors are gone?

     

    And can you check if you still have the same problem with setAdvancementTimer (Russia and US using the same advancement timer)?

     

    yes will do. Here is the test mission with old autofgt. It has moose elements in it but they should not be affecting autogft. problem still occurs without moose.

    GROUND_ENGAGEMENT.miz

  6. Gromit thanks for the tip. To answer your question yes there were units inside the base zones.

    :setCountry(country.id.USA) fixed the timer issue.

    Now its just the distance parameter. Thanks for making this a fantastic tool.

     

     

    Another question

    I have setAdvancementTimer set for each of the sides. US is set at 120 , Russia at 60. It looks like its ignoring the 120 a everyone is moving at 60. Is this command side dependent. I

    should see the Russians moving twice as many times as US but they are moving the same.

  7. also dont think maxroutedistance is working

    autogft_Setup:new()

    :addBaseZone("BLUE_BASE")

    :addControlZone("CONTROL1")

    :addControlZone("CONTROL2")

    :addControlZone("CONTROL3")

    :setSpeed(30)

    --:setAdvancementTimer(120)

    :setMaxRouteDistance(4)

     

    They still move about 1 km then wait for 300 seconds then move another km which must be default?

  8. gROMIT Getting an error with setadvancementtimer

    2020-10-10 02:38:48.654 ERROR SCRIPTING: Mission script error: [string "C:\Users\bryce\AppData\Local\Temp\DCS.openbeta\/~mis00002EEB.lua"]:2274: Parameter #1 (coalition id) missed

    stack traceback:

    [C]: ?

    [C]: in function 'getGroups'

    [string "C:\Users\bryce\AppData\Local\Temp\DCS.openbeta\/~mis00002EEB.lua"]:2274: in function <[string "C:\Users\bryce\AppData\Local\Temp\DCS.openbeta\/~mis00002EEB.lua"]:2271>

    (tail call): ?

    [string "C:\Users\bryce\AppData\Local\Temp\DCS.openbeta\/~mis00002EEB.lua"]:2338: in function 'isAccomplished'

    [string "C:\Users\bryce\AppData\Local\Temp\DCS.openbeta\/~mis00002EEB.lua"]:2700: in function 'updateCurrentTask'

    [string "C:\Users\bryce\AppData\Local\Temp\DCS.openbeta\/~mis00002EEB.lua"]:2372: in function 'updateTarget'

    [string "C:\Users\bryce\AppData\Local\Temp\DCS.openbeta\/~mis00002EEB.lua"]:1886: in function 'updateAndAdvance'

    [string "C:\Users\bryce\AppData\Local\Temp\DCS.openbeta\/~mis00002EEB.lua"]:1890: in function 'setAdvancementTimer'

    [string "C:\Users\bryce\AppData\Local\Temp\DCS.openbeta\/~mis000039D9.lua"]:104: in main chunk

     

    code is

     

    autogft_Setup:new()

    :addBaseZone("BLUE_BASE")

    :addControlZone("CONTROL1")

    :addControlZone("CONTROL2")

    :addControlZone("CONTROL3")

    :setSpeed(30)

    :setAdvancementTimer(120)

×
×
  • Create New...