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

    Why can't CapStructure build around size16 buildings?

    Scheduled Pinned Locked Moved Modding & Tools
    2 Posts 2 Posters 259 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.
    • VanificaV Offline
      Vanifica
      last edited by

      Messing with /lua/ui/game/commandmode.lua...

      It runs SimCallback({Func = 'CapStructure' etc}) whenever you click a building to ring (IE, ringing a T2 mex with storage). This also seems to work on larger buildings (IE, T2pgens), but doesn't work on T3pgens or factories, I'm assuming because they're size16

      Is there a way to change this, or is it hardcoded into the engine?

      Wars of Glory: FAF reimagined. Now casting (somewhat) regularly!

      Discord link in the Mod Vault description!

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

        The functionality is entirely in Lua. It ends up calling this:

        • https://github.com/FAForever/fa/blob/deploy/fafdevelop/lua/SimCallbacks.lua#L202-L373

        Which, when made, did not need to support a structure of that size. You can adjust / add to the logic to allow that

        A work of art is never finished, merely abandoned

        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