Results 1 to 1 of 1

Thread: How to ensure correct file path in script?

  1. #1
    Supporting Member
    Join Date
    Sep 2019
    Location
    Yorkshire
    Posts
    138
    Post Thanks / Like
    Total Downloaded
    1.39 GB

    How to ensure correct file path in script? ~solved~

    Hi,

    In this line in a script:

    @"missions\MC_Mod\Tobruk\%nationality%\%folder%".R eplace("%nationality%",nationality).Replace("%fold er%",taskName);

    When running this as a script for some missions, the game looks in the 1C Softclub path for the missions folder, but in others it looks in the main game folder i.e. steam folder in C:\Program Files (x86).

    Is there a way to force that it always looks in the 1C Softclub folder?

    I noticed this behaviour when adding script to users campaign where it looks in 1C, but if added to a TF Tobruk campaign it looks in x86.

    Thanks

    M


    #SOLVED with#

    private static string userdocpath = Environment.GetFolderPath(Environment.SpecialFolde r.MyDocuments);
    private static string MC_ModFilePath = userdocpath + @"\1C SoftClub\il-2 sturmovik cliffs of dover";
    Last edited by Marcost; Aug-02-2021 at 11:35.

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
  •