FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Where are lua files are located?

    Scheduled Pinned Locked Moved Mapping
    4 Posts 3 Posters 225 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.
    • K Offline
      Katuli
      last edited by Katuli

      For example

      local Objectives = import('/lua/ScenarioFramework.lua').Objectives
      local ScenarioFramework = import('/lua/ScenarioFramework.lua')
      local ScenarioPlatoonAI = import('/lua/ScenarioPlatoonAI.lua')
      local ScenarioUtils = import('/lua/sim/ScenarioUtilities.lua')
      local Utilities = import('/lua/utilities.lua')

      where from these ScenarioFramework.lua, ScenarioUtilities.lua etc?
      Or atleast where is nice documentation that explains what any function does and which functions do even exist?

      I am just new to scripting so I don't know much.

      Edit: I found where are these lua files, they are in 'pathToGame/gamedata/lua.scd and you have to open lua.scd via winRAR or smth else

      K 1 Reply Last reply Reply Quote 0
      • Ctrl-KC Offline
        Ctrl-K
        last edited by

        I'd suggest going to official discord and take roles Mapper and Modder in #role-selection:
        983fdbfa-3a4b-4f10-9a95-86871c579108-image.png

        After that you'll be given with access to these channels:
        0702708e-da1b-42e0-96b5-852a19129008-image.png
        Where you can ask questions ๐Ÿ™‚

        โ€œBe a yardstick of quality. Some people arenโ€™t used to an environment where excellence is expected.โ€
        โ€” Steve Jobs.
        My UI Mods
        Support me

        1 Reply Last reply Reply Quote 1
        • K Offline
          Katuli @Katuli
          last edited by

          I found where are these lua files, they are in 'pathToGame/gamedata/lua.scd and you have to open lua.scd via winRAR or smth else

          1 Reply Last reply Reply Quote 0
          • UvesoU Offline
            Uveso
            last edited by

            If you need the code from the FAF version, then you should look here:

            C:\ProgramData\FAForever\gamedata\lua.nx2 (also a .zip archive like the .scd files)

            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