FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login
    The current pre-release of the client ("pioneer" in the version) is only compatible to itself. So you can only play with other testers. Please be aware!

    SCFA.exe populate ScenarioInfo with Options BEFORE active mods system\Blueprint.lua

    Scheduled Pinned Locked Moved Modding & Tools
    4 Posts 2 Posters 108 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      F19
      last edited by

      Hi!
      Options added in lua\AI\LobbyOptions\lobbyoptions.lua as AIOpts may edit in lobby. After setup session Option readed from file and may read user selected options. Need reaction on Option while Blueprint loading.
      How manual read option file before simInit? Or may in new version SCFA do ScenarioInfo populate after start exe BEFORE load active mods.

      1 Reply Last reply Reply Quote 0
      • JipJ Offline
        Jip
        last edited by

        I'm afraid that this is not quite possible at the moment. There is a hacky approach to read the preference file (where the information is stored), but there's no guarantee that the information in the preference file is synced properly. Meaning if we create more features that rely on it to be in sync then that's a huge risk to random, hard to debug desyncs.

        A work of art is never finished, merely abandoned

        1 Reply Last reply Reply Quote 0
        • F Offline
          F19
          last edited by

          In Lobby press "lunch game", saved selected Map, Users, Teams, Options, ActiveMods, GlobalOptions, AIOptions, Company to file. File stable for repeat load.
          After lobby start SCFA.exe and working background.
          Exe load command line option, game.pref, client.pref, how understand list active mods then load mods, blueprints, simInit create copy __blueprints load ScenarioInfo.Options buttle session begin.
          May be if exe understand "list active mods" then may be undestand 🙂 and load Options. If do that early then when simInit.SetupSession doscript reman only copy early loaded Option to ScenarioInfo.Option and copy __blueprints and BeginSession.
          All time from SCFA.exe start and to BeginSession file stable with current map, selected options, active mods.

          1 Reply Last reply Reply Quote 0
          • F Offline
            F19
            last edited by

            SCFA.exe load options for understand map coorinate drop-off ACU and army who ally who enemy and start simInit.BeginSession battle began.
            SCFA.exe load options too late for mods who change blueprints.
            Options only for change algorithms during buttle. No any Options for balance because while loading blueprints no Options in memory.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post