Campaign Play: Upping the Ante
Results 1 to 10 of 10

Thread: Campaign Play: Upping the Ante

  1. #1
    SOH-CM-2020
    Join Date
    Jun 2005
    Location
    Aotearoa, New Zealand
    Age
    63
    Posts
    2,896

    Campaign Play: Upping the Ante

    In the Knowledgebase Sticky I talk about mods to the uisel.xml file which can improve AI pilot performance (Thread Nos 20, 45).

    After lots of experimenting, I've finally written a script using Auto Hot Key that enables the _mission.xml to be modified while you are sitting on the runway, waiting to take off on your campaign mission. When you select a mission to fly in a campaign, and you confirm your loadouts and proceed to the runway to take off on the campaign mission, a new _mission.xml file is written in you AppData pathway for your install, under the Missions folder. What is frustrating is that the pilots who fly in your wing, and the escort flight, all have a skill="1" setting.

    Hence the new hotkey. Once the hotkey is running, I can switch the skill levels in the _mission.xml file to 3, with a couple of key strokes. Then I can switch windows and resume takeoff, with more skillful wingmen. Is there any interest in this? Users need to install AutoHotkey unicode version to use the hotkey script.

  2. #2
    Member sixstrings5859's Avatar
    Join Date
    May 2011
    Location
    Sulphur,South West Louisiana in the good'ol USA
    Age
    59
    Posts
    3,516
    Blog Entries
    1
    Sounds very interesting. A very cool feature !

  3. #3
    This is very interesting! I wonder what else can be changed? Does this work in regular missions, or just campaign? Can you make changes after takeoff?

    Also, are you aware that when you download AHK you can install a compiler that appears in the right click menu when you right click on the script? You can compile your script into an exe that will work even on computers that do not have AHK installed?

  4. #4
    SOH-CM-2023 mongoose's Avatar
    Join Date
    Jun 2005
    Location
    Navigator, where are we?
    Age
    79
    Posts
    3,535

    Cato said "Carthaginem esse delendam"
    I say "Carthago iam diu deleta,sed enim Bellum Alium adhuc aedificandum est"

  5. #5
    Yes. If you've tried the Fw 190 animations module, this is how it was created. The Spitfire we're working on uses it as well.

  6. #6
    SOH-CM-2020
    Join Date
    Jun 2005
    Location
    Aotearoa, New Zealand
    Age
    63
    Posts
    2,896
    Quote Originally Posted by gecko View Post
    This is very interesting! I wonder what else can be changed? Does this work in regular missions, or just campaign? Can you make changes after takeoff?

    Also, are you aware that when you download AHK you can install a compiler that appears in the right click menu when you right click on the script? You can compile your script into an exe that will work even on computers that do not have AHK installed?
    Hi Daniel, in terms of regular missions, if the regular missions are written to the _mission.xml file, then yes, skill levels can be changed. Doing the changes after takeoff - yes, I presume so. I just have focussed on campaign play and takeoff because it is more "contained", but perhaps more imaginative uses can be made of the ability to edit the _mission.xml file. However my script is pretty dumb and so far will change ALL instances of Skill="1", to Skill="3". This would radically change some regular missions where the author has put a fair bit of thought into what skill levels apply where.

    As for the compiler - I have thought about using the compiler, but a key part of the script is the pathway to the _mission.xml file. Trouble is, this varies from install to install and I thought for uploading, people will need to edit their AppData pathway (and it will also vary from Windows XP, Win 7, and Win 10).

    So far I have a hotkey file (*.ahk) for the stock install, so that would work for a lot of people. But after that, the variations in the name of the install, start to grow.

    So, thinking about the compiler, I could provide an exe which works for a stock install in Windows 10. I guess quite a few people would have one.

  7. #7
    SOH-CM-2020
    Join Date
    Jun 2005
    Location
    Aotearoa, New Zealand
    Age
    63
    Posts
    2,896

    Uploaded: Campaign Mission Skill Promoter for Stock CFS3

    When the admins have seen and approved, the small package is uploaded under CFS3 other - utilities. If you want to run it in something other than Windows 10, you will have to make extra changes to the Application Data pathway than found in the Readme which is set up for Win 10.

    http://www.sim-outhouse.com/sohforums/local_links.php?catid=159


    This little hotkey requires Autohotkey to be installed (the link is provided in the Readme).

    When you run the hotkey and follow the instructions, you will have promoted the skill for your wingmen and Escort AI Pilots, when you start a campaign mission, from skill="1" to skill="3".

    Have fun!

    NB: once you have edited the Skill Promoter.ahk to work for your AppData pathway, you can try what Gecko says and run the compiler which comes with the Auto Hotkey software, and make the .ahk file an exe which protects it from accidental modification.

  8. #8
    SOH-CM-2020
    Join Date
    Jun 2005
    Location
    Aotearoa, New Zealand
    Age
    63
    Posts
    2,896
    How is the Hotkey going? Any problems with installation?

  9. #9
    SOH-CM-2020
    Join Date
    Jun 2005
    Location
    Aotearoa, New Zealand
    Age
    63
    Posts
    2,896
    .....Bump??

  10. #10
    SOH-CM-2020
    Join Date
    Jun 2005
    Location
    Aotearoa, New Zealand
    Age
    63
    Posts
    2,896

    Campaign Skill Promoter

    Anyone got this to work?

Members who have read this thread: 0

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •