Jump to content

[SP] Operation Persian Power


rmk80

Recommended Posts

Did this mission break for anyone else after the latest Patch. Me and buddy can't get it working as a headless server run mission. When we connect as clients it never starts. Was working fine yesterday. But today no joy and when we deleted the saved state file and restarted/rebooted with a fresh run of the mission it just wouldn't work at all.

 

Started wondering if the latest patch broke moose or something.

Link to comment
Share on other sites

Did this mission break for anyone else after the latest Patch. Me and buddy can't get it working as a headless server run mission. When we connect as clients it never starts. Was working fine yesterday. But today no joy and when we deleted the saved state file and restarted/rebooted with a fresh run of the mission it just wouldn't work at all.

 

Started wondering if the latest patch broke moose or something.

Did you re-edit the missionscripting.lua file after the update? I always forget to lol...

 

Cheers!

 

Sent from my SM-G950F using Tapatalk

W10 Home 64Bit, Intel Skylake I5 6600K 3.50GHz, ASUS ROG Stryx Z270F MoBo, 32GB G.Skill RipJaws V DDR4 3200 RAM, Samsung 960 Pro 512GB M.2 SSD (OS), Samsung 850 Pro 512GB SSD, 2TB Seagate SDHD, 2TB WD Green HDD, GALAX GTX GeForce 1070 EXOC Sniper White 8GB VRAM

Link to comment
Share on other sites

@rmk80:

 

It might be my personal preference, but you might want to consider changing the mission starting time to 05.00 AM

 

As you probably know, since version 2.5.6 everything became much brighter. So 05.00 now, looks about the same as 06.00 did on version 2.5.5. Also, it doesn't make sense that the cockpit setup in DCS is automatically set to "night" (dim DDI's, MPCD and IFEI), while at 6 AM it completely light.

 

I changed it to 05.00 in the ME myself and it looks quite amazing, watching the sun come up over Dubai, while flying toward the action

System specs:

 

i7-8700K @stock speed - GTX 1080TI @ stock speed - AsRock Extreme4 Z370 - 32GB DDR4 @3GHz- 500GB SSD - 2TB nvme - 650W PSU

HP Reverb G1 v2 - Saitek Pro pedals - TM Warthog HOTAS - TM F/A-18 Grip - TM Cougar HOTAS (NN-Dan mod) & (throttle standalone mod) - VIRPIL VPC Rotor TCS Plus with ALPHA-L grip - Pointctrl & aux banks <-- must have for VR users!! - Andre's SimShaker Jetpad - Fully adjustable DIY playseat - VA+VAICOM

 

~ That nuke might not have been the best of ideas, Sir... the enemy is furious ~ GUMMBAH

Link to comment
Share on other sites

  • 1 month later...

Hi rmk80,

 

This is a wonderful dynamic mission, thank you. I was playing it for like 3 hours yesterday and had a great time. I have one question though: maybe I am blind but I didn't see a viper slot available. Is that on purpose?

Link to comment
Share on other sites

Hi rmk80,

 

This is a wonderful dynamic mission, thank you. I was playing it for like 3 hours yesterday and had a great time. I have one question though: maybe I am blind but I didn't see a viper slot available. Is that on purpose?

 

Hi, no not really on purpose. When I made this mission the Viper was not released already. You can easily add one yourself if you like. It won't mess up the scripts.

Link to comment
Share on other sites

  • 2 months later...

Fantastic persistent mission. I've changed the maxairborne down to ease the load. After the initial generation of sorties, after a bit my (Blue) side drops off with no more sorties generated. I've added Airboss in, so do the (Airboss generated) RecoveryTanker, CarrierAWACS, and RescueHelo spawns count as "generated sorties" on my side? What is parameter for inclusion into the maxairborne count?

 

Excellent work, easily my favourite now.

 

Ps, I've made four copies of PP, one starts at dawn, one day, one evening and a night. Doing each in turn creates a "mission day"......I'm on "Day 3" and going well!

Link to comment
Share on other sites

  • 3 weeks later...

Outstanding!!

 

Any chance of a WWll map or Syria in the future?

 

got to go.....got another sortie.......

skunk160 | Win10 PRO 64bit | i7-4770K 3.50 GHz | 32GB DDR3/1866MHz | GIGABYTE GeForce GTX 1080 x2 | Oculus Rift S | Virpil MongoosT-50CM2 | Virpil F-14B grip | Virpil 200m Curved Extension | PointCTRL | Delta Sim TM Slew | Sim Bandit AHCP | MFG Crosswind Pedals | //FOX2 Switch Boxes | RECARO SPG Seat | AuraSound AST-2B-4 Pro Bass Transducer x2

//FOXTWO Multi-Role Combat Pit Build http://forums.eagle.ru/showthread.php?t=134745

Link to comment
Share on other sites

  • 2 weeks later...
I've added Airboss in, so do the (Airboss generated) RecoveryTanker, CarrierAWACS, and RescueHelo spawns count as "generated sorties" on my side? What is parameter for inclusion into the maxairborne count?

 

Only the flight generated by my script count as part of the maxairborne count. Anything you'll add yourself will not count.

 

Glad you are still enjoying this. I'm currently too busy playing Liberation Dynamic Campaign myself :)

 

There is no newer version of Georgian Power (or a Syrian Map version) yet.

Let me see, maybe I can port the latest version to these maps this weekend.

Link to comment
Share on other sites

Ok, I updated all versions on the first post. Changes:

  • Added Syrian Power
  • Added A10-C II
  • Updated Moose
  • All versions use updated code

You need to remove all save games to prevent issues.

 

Note: I did not have time to really test it (specifically Syrian Power).

  • Like 2
Link to comment
Share on other sites

  • 5 months later...
On 11/7/2020 at 11:04 AM, rmk80 said:

Ok, I updated all versions on the first post. Changes:

 

  • Added Syrian Power
  • Added A10-C II
  • Updated Moose
  • All versions use updated code

You need to remove all save games to prevent issues.

 

Note: I did not have time to really test it (specifically Syrian Power).

Hello! Amazing amazing work! I have a simple question, can I change the red AI CAP airplane types for example a mig29 change it to a cap mig19? Will it affect anything like the persistency of the enemy AI planes left ? 
 

thanks I’m advance  


Edited by Kevstosmart
Link to comment
Share on other sites

  • 3 weeks later...
On 11/24/2019 at 10:43 PM, rmk80 said:

 

You can add any Client plane (module) in Mission Editor yourself and all menu options should work. No special names or anything required. This also works for adding Clients on the RED side.

 

 

 

Hi! First of all, great missions!

 

I tried to add some planes ( & helicopters ) to fit the needs of my small community of dcs friends, but unfortunately the "Persian Power" menu does not appear for those. Did this change with 2.7 ? 

 

Bests,

Meliok

 

Link to comment
Share on other sites

22 hours ago, Meliok said:

 

Hi! First of all, great missions!

 

I tried to add some planes ( & helicopters ) to fit the needs of my small community of dcs friends, but unfortunately the "Persian Power" menu does not appear for those. Did this change with 2.7 ? 

 

Bests,

Meliok

 

Answering my own question

 

if you want to add helicopters, edit PersianPower.lua line 2032

 

Replace

do -- CLIENT SET
  CLIENTS_SET = SET_CLIENT:New()
  :FilterCategories("plane")
  :FilterOnce()
end

 

With

do -- CLIENT SET
  CLIENTS_SET = SET_CLIENT:New()
  :FilterCategories({"plane","helicopter"})
  :FilterOnce()
end

 

EDIT : Planes were working, That's what guided me to an answer 😛 


Edited by Meliok
  • Like 2
Link to comment
Share on other sites

  • 8 months later...
  • 7 months later...

Hi,  been awhile since there was any activity here, but I just discovered Persian Power and it's siblings. I had a few questions  and a problem:

- I am intending to try Persian Power in Multiplayer with a small group of friends. Still working on current DCS Open Beta?

- One of our number doesn't have SuperCarrier, so I tried to add a STENNIS into the mission along with some Client F/A-18's.  Also added a couple more Client F/A-18's on the CVN-71.

- When I try to run my modified mission, (MissionScripting.lua commenting has been done) it hangs on the TRIGGER START message.

--Same issue trying to add the STENNIS in Georgian Power.  I tried both as a separate Naval Group and also tried adding the Carrier as another unit in the BLUECARRIER group.  Hung on TRIGGER START in both cases.

- I can load up the unmodified Persian Power just fine, and it generates missions and all seems to work.  Oddly enough if I exit, and THEN start my modified Stennis mission, it loads OK...but the CVN-74 battlegroup is immediately marked as DESTROYED and I can see the smoke from the deck of the CVN-71.

 

- If I delete the SAVE files, the modified mission again hangs at the TRIGGER START.

-Is there a way to add the Stennis that won't break things?

- I notice that all the CLIENTS present by default are single aircraft.  When I add Client Flights, can I add them in a GROUP so we can fly as a Wing (with attendant Data Links in the F/A-18?)

 

Thanks!! Hope you are still around!

 

EDIT: I added a wing of 4 F/A-18's at Nellis in Vegas Power, and it worked, so I guess I have an answer to that particular question.

 

EDIT: Thanks much to @rmk80 for helping me out with some LUA edits to allow the STENNIS addition. Working great!


Edited by Recluse
Link to comment
Share on other sites

Just posting the solution in case anybody else has the same issue:

You need to add all units of the carrier group to this script part (so they are not considered airbases):

Note that these are unit names!

do -- FIND BLUE AIRBASES
  BLUE_AIRBASE_SET = SET_AIRBASE:New()
  :FilterCoalitions("blue")
  :FilterOnce()
  BLUE_AIRBASE_SET:RemoveAirbasesByName({"CVN-71","Blue Escort #001","Blue Escort #002","Blue Escort #003","Blue Escort #004"})
  MESSAGE:New( BLUE_AIRBASE_SET:Count().. " BLUE AIRBASES FOUND", messageTime, nil ):ToAllIf(DEBUG)
end

You should also add your carrier (group name) like this:

do -- INIT CARRIER  & TANKER
  MESSAGE:New( "INIT CARRIER  & TANKER", messageTime, nil ):ToAllIf(DEBUG)
  
  local BLUE_CARRIER = GROUP:FindByName( "BLUE CARRIER" )
  BLUE_CARRIER:PatrolRoute()
  
  local BLUE_CARRIER_2 = GROUP:FindByName( "THENAMEOFYOURCARRIER" )
  BLUE_CARRIER_2:PatrolRoute()

  -- CARRIER TANKER
  local BLUE_TANKER_TEXACO= RECOVERYTANKER:New(UNIT:FindByName("CVN-71"), "BLUE TANKER TEXACO")
  BLUE_TANKER_TEXACO:SetTakeoffAir()
  BLUE_TANKER_TEXACO:SetTACAN(81, "TEX")
  BLUE_TANKER_TEXACO:SetRadio(261,"AM")
  BLUE_TANKER_TEXACO:SetCallsign(1)
  BLUE_TANKER_TEXACO:Start()
end

Also set local DEBUG = true at the beginning of the script to see what is happening in case of errors or stalling of the mission.

Link to comment
Share on other sites

  • 4 weeks later...

We have been enjoying the heck out of Georgian Power/Vegas Power/Persian Power both in Single and Multiplayer!!

Another question!

One of our crew wants to fly the Apache. I added some Apaches to Syrian Power using the tip above for editing the LUA file to allow Helicopters. Worked perfectly!!

I based the Apaches on FARPS situated within easy flying distance of the enemy bases.  I set the FARPS as NON-Airbases in the LUA similar to the way Carriers and Escorts are set in the example above.  The FARPS have the usual complement of AMMO, FUEL, ATC, etc.. statics AND some SAM and AAA defenses.

When I START the mission, the OPFOR starts with 22%  Progress and the number of targets is significantly higher than in the plain vanilla mission.  I believe it is because the FARP objects are somehow being COUNTED in the totals of BLUE objects, but LUA gets the count of SURVIVING  targets from those that are GENERATED, so it looks like there are fewer total targets than there really are. Just a guess on my part. I haven't actually counted them up.

Probably no big deal, as the total number of generated targets remains the same, and the OPFOR probably won't get many more of them if we do our jobs, but I was wondering if there was an easy LUA edit to add the FARP objects (if indeed this is what is causing the discrepancy).

Link to comment
Share on other sites

  • 2 weeks later...

This might be caused because a FARP is considered as a group, but with "dead" units/objects in it  (just guessing).

Somehow the original counting of total units (when saving) has a different result then when you request a status report.

 

You could try to add two lines.

First: (see line that has THENAMEOFYOURFARP)

  --SAVE TOTAL UNIT COUNT
  totalRedUnitCount = 0
  totalBlueUnitCount = 0
  local AllGroups = SET_GROUP:New():FilterCategories("ground"):FilterActive(true):FilterOnce() 
  AllGroups:RemoveGroupsByName("THENAMEOFYOURFARP")
  SCHEDULER:New( nil, function()
    AllGroups:ForEachGroupAlive(function (GROUP)
      if GROUP:GetCoalition() == 1 then totalRedUnitCount = totalRedUnitCount + getAliveUnitsGrp(GROUP) end
      if GROUP:GetCoalition() == 2 then totalBlueUnitCount = totalBlueUnitCount + getAliveUnitsGrp(GROUP) end
    end)

Second: (see line that has THENAMEOFYOURFARP)

BLUE_TARGET_SET = SET_GROUP:New()
BLUE_TARGET_SET = RemoveGroupsByName("THENAMEOFYOURFARP")

Not sure if this will work though

Link to comment
Share on other sites

Thanks!! Oddly enough, last night after the Open Beta Patch, we re-started Syrian Power from the beginning, and oddly enough both coalitions started off at 0!  I was afraid I loaded the wrong mission, but all the FARPS and Apaches were functional, so it must have been the right one.  The two or three times I loaded it in SP and the one time we did it in MP previously, it had that 22% for OPFOR start.  I have NO IDEA what could have changed. I hosted instead of the usual host, but that shouldn't have affected anything.  If it happens again, I will try your script additions above.

 

 

  • Like 1
Link to comment
Share on other sites

  • Recently Browsing   0 members

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