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!

    A Full New Faction for FAF Offline.

    Scheduled Pinned Locked Moved Modding & Tools
    20 Posts 6 Posters 156 Views 1 Watching
    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.
    • NuggetsN Offline
      Nuggets FAF Association Board
      last edited by

      Vault version just makes it generally easier as the user doesnt have to do anything. The host installs it, and everyone else gets it when joining

      1 Reply Last reply Reply Quote 0
      • R Offline
        RavenCurow
        last edited by

        That makes sense. I had only been thinking in terms a presentation for myself since I mostly play offline, but it would need a vault version to play online. I'll see about doing that then.

        1 Reply Last reply Reply Quote 0
        • R Offline
          RavenCurow
          last edited by RavenCurow

          I've uploaded a new version to the Vault that gives a faction selection menu on game start. Selecting a faction swaps out the spawned ACU with the chosen one. An anti cheat method is implemented to prevent players from moving and building before a faction is selected. The faction choice menu gives you 30 seconds to choose a faction and defaults to the menu chosen faction if one isn't selected.
          image.png

          S 1 Reply Last reply Reply Quote 2
          • C Offline
            CDRMV @Nuggets
            last edited by CDRMV

            @Nuggets
            My Mod Mechdivers comes with an specific Faction Pick for the Terminids as Well.

            @ravencurow
            The Faction looks great reminds me alot of the Tron Franchise.

            1 Reply Last reply Reply Quote 0
            • R Offline
              RavenCurow
              last edited by

              @cdrmv Lol I can see the parallel with the color choice. I just thought the cyan color looked good and gave the faction a distinctive identity.

              R 1 Reply Last reply Reply Quote 0
              • S Offline
                SplashGG @RavenCurow
                last edited by SplashGG

                @RavenCurow Hi! I've also been working on my Sentinels faction mod (Not published yet), for the past month.

                I've figured out a way to make the faction selectable from the Lobby without needing to be a Featured Mod, by using a few tricks and Lua's black magic 👽
                I think this might be useful for your mod

                47741b37-595c-4b3a-b8e0-5f93a5e6d2f8-image.png

                NuggetsN R 2 Replies Last reply Reply Quote 0
                • NuggetsN Offline
                  Nuggets FAF Association Board @SplashGG
                  last edited by

                  @SplashGG said:

                  @RavenCurow Hi! I've also been working on my Sentinels faction mod (Not published yet), for the past month.

                  I've figured out a way to make the faction selectable from the Lobby without needing to be a Featured Mod, by using a few tricks and Lua's black magic 👽
                  I think this might be useful for your mod

                  47741b37-595c-4b3a-b8e0-5f93a5e6d2f8-image.png

                  Thats amazing! How did you do that? Did you make a lobby wrapper where you have to add an argument to the faf client so it launches the wrapper or is this actually something within the mod?!

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    RavenCurow
                    last edited by

                    Yea, how the heck did you do that!?

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      RavenCurow @RavenCurow
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        RavenCurow @SplashGG
                        last edited by

                        @SplashGG How did you manage that?

                        S 1 Reply Last reply Reply Quote 0
                        • N Offline
                          Nomander Balance Team Team Lead
                          last edited by

                          It's a hack where you run lua from a mod's LobbyOptions.lua and find your way into the lobby's code from there.

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            SplashGG @RavenCurow
                            last edited by SplashGG

                            @RavenCurow Hello, copied from a previous reply I posted on Discord:

                            lobbyoptions.lua
                            
                            I'm using it because it is the earliest point where a normal mod code can run in the lobby. while loading, its ImportModAIOptions() imports lua/AI/LobbyOptions/lobbyoptions.lua from every installed mod, to read the mod's AI settings, importing a file runs all of its code, so besides giving back an empty AIOpts, ours adds Sentinels (my faction) to the lobby.
                            
                            from FAF's faction list 
                            factions.lua
                             i copy the UEF entry, rename it to Sentinels, and give it our icons and our commander id, then it is added to the end of the list, so lobby and my code shares the same list that way the lobby sees Sentinels(my faction) as faction 5 or (6 if Nomads enabled)
                            
                            then i fill the extras needed: hover desc, list of AI names (without one the lobby errors), and purple skin
                            
                            I keep random as the default, FAF works out which number means random with "last faction + 1" before we add ours, so i apply small fix
                            
                            button and lobby background images are loaded from game folders that mods can't add files to. I catch those two image loads and swap in the files from the mod
                            
                            extra fix for lobby.lua private list of faction names, it uses that list the background, skin and chat color. In this case my Sentinels fac is 5, which that list calls 
                            "random faction"
                            , this list is private to the file, but one lobby function uses it so I wait for that function to be defined, then use Lua's debug tools to reach the list and rewrite it with real names (Sentinels name now included)
                            
                            mod turned to ON when anyone presses launch.
                            after launch, so FAF loads its normal hooks like any mod's. hook/lua/factions.lua adds Sentinels to the game's faction list again.
                            
                            and Voalah!
                            

                            Testing Video
                            However, I'll be contributing to FAF to add an official way to easily add custom factions, since this method is very “hacky.”

                            R 1 Reply Last reply Reply Quote 0
                            • R Offline
                              RavenCurow @SplashGG
                              last edited by

                              @SplashGG Oh, you cheeky bastard. So you put the lobby code in the AI options to import the functions earlier than is normally checked so it bypasses the lockout.

                              1 Reply Last reply Reply Quote 0
                              • Z Offline
                                Zopto
                                last edited by

                                Yeah, with the advent of all the new factions that are going to pop up sooner or later, something is going to need to be done to help make them all compatible with each other. While an in-game faction picker is nice (that's what I did), they're all very obviously incompatible with each other.

                                (shameless self-promotion of my own)
                                20F321~1.JPG

                                R 1 Reply Last reply Reply Quote 0
                                • R Offline
                                  RavenCurow @Zopto
                                  last edited by

                                  @Zopto Yea, not really a way to make that work without a patch for each one. Your's looks cool. Much more grounded looking than the neon glow of mine. Kinda almost has an ancient asthetic with te pyramids and the subdued colors.

                                  Z 1 Reply Last reply Reply Quote 0
                                  • Z Offline
                                    Zopto @RavenCurow
                                    last edited by

                                    @RavenCurow said:

                                    @Zopto Yea, not really a way to make that work without a patch for each one. Your's looks cool. Much more grounded looking than the neon glow of mine. Kinda almost has an ancient asthetic with te pyramids and the subdued colors.

                                    I did make a mod called Universal Faction Picker, which is on the FAF vault, that is designed to help alleviate the problem. Faction mods only need to add a file on their end (so I don't have to keep updating the picker myself) to add themselves to the list. Documentation is simple enough, you can just have your AI agent read it and it should figure it out no problem. Getting everyone to use a single standard is hard, regardless of whatever it is.

                                    1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      RavenCurow
                                      last edited by RavenCurow

                                      Success!
                                      image.png

                                      For fun, I've also uploaded a BlackOps addon for my faction to the Vault so anyone who wants to play with BlackOps can.

                                      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