Ravenfield

Ravenfield

Not enough ratings
Local Flags
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Mutators
File Size
Posted
172.189 KB
6 Mar @ 7:16pm
1 Change Note ( view )

Subscribe to download
Local Flags

Description
Subscribing to this WILL not give you the mod. Instead you will get a mutator that does ♥♥♥♥♥♥♥♥♥. Please read the description in its entirety before requesting help on this mod. However, it would be appreciated if you subscribed AS that does boost popularity!

Introduction
Imagine installing the Custom Flags Framework to add in your favorite flags only to find that nobody has created a flag pack that has your favorite flags! What to do? Well, usually you'd follow a guide to create your own flag pack, however that may seem daunting to non-modders as that requires learning the Unity Editor and learning how to use Ravenfield modding tools. Thus, here comes Local Flags!

Local Flags is a BepInEx mod on GitHub for Ravenfield that interacts with the Custom Flags Framework to allow users to add their own flags locally without needing to make their own flag packs with the Unity Editor. As such this removes the need for downloading or learning external tools like the Ravenfield modding tools or the Unity Editor.

Why Release on GitHub?!
  • A proper release cannot be provided on the workshop because this is a BepInEx mod that would otherwise not exist due to the limitations of RS. Follow the below instructions to install this.
Why should I use this over the default method (Unity Editor)?
  • Removes the need for learning the Unity Editor or Ravenfield modding tools. No modding experience needed!
  • A much simpler process than creating your own flag packs. Adding custom flags is much faster with this.
Why should I NOT use this over the default method (Unity Editor)?
  • There is a longer load time depending on how many flags you have BUT it does not add as much load time assuming everything has been cached and is optimized. Loading times can be heavily improved if you optimize the flags with instructions in the FAQ. ~30 second load time with 1000+ flags at resolutions 1250x750 or lower.
  • These cannot be published to the Steam workshop! You need to create a flag pack mutator with Ravenfield modding tools in order to publish your packs.

Installation
Before you begin installing this mod, I recommend optimizing your flags beforehand so that they are not the best quality in the world. You will not be seeing these textures up close and personal enough to warrant the extra quality. Especially do not have images with resolutions greater than 1500x1500! They will take a long time to load and generate colors for!
  1. Install BepInEx 5[github.com] into Ravenfield.
  2. Download the latest release for Local Flags[github.com].
  3. Extract zip into "Ravenfield\BepInEx\plugins"
  4. Open the newly extracted folder, open "Local" and drag any flag textures (jpg and png only) you want into the "CustomFlags" folder. If your images are not JPG/PNG, or they are not optimized, drop them in the "OptimizeFlags" folder instead. They will get optimized, converted to JPG and moved to "CustomFlags" automatically upon mod start.
  5. Launch Ravenfield and enjoy your new flags! The first startup may take some additional time to load as colors have to be generated for your images which can take long if they are not optimized!
(Optional Steps)
  1. If you want, you can add a cover inside of the "Local" folder. This will replace the default cover. Make sure your file is named "cover" and is a jpg or png file.
  2. If you want to, you can create multiple local packs. Duplicate the "Local" folder and rename it. This name will be the name of the pack in game. You now have another pack that you can separate flags into and put a different cover for!

FAQ
How do I update the mod?
  • If you already have a "LocalFlags" folder in your plugins folder, all you need to do is replace the dlls within the "LocalFlags" folder with the dlls from the new release. This effectively updates the mod.
My game is frozen upon load!
  • If you have a lot of flags this may happen. The mod freezes the game intentionally to let all the flags load first. The game will unfreeze once the flags have all loaded. If you want to confirm that the mod is loading the flags, open "Ravenfield\BepInEx\config\BepInEx.cfg" and enable the console at the category "Logging.Console". When you next load Ravenfield, a command prompt window will open that shows a bunch of text. After a few seconds or so, Local Flags will start logging progress of loading flags.
  • If you just optimized your flag textures or had the mod generate colors for you, the game will for some reason freeze for a while depending on how much was done. This does not happen upon next game load. Don't ask me why it happens, I don't know.
Flags are taking forever to load!
  • Try throwing your flags into the "OptimizeFlags" folder. The mod will compress your flags for you and downsize if your flags are terribly big. After it optimizes them, it automatically places them in "CustomFlags" (Make sure you have copies! This will remove the images within the folder as they are optimized). Optimizing will take some time depending on the resolution of the flag.
  • If colors are not already provided for the flags in CustomFlagToTeamColors, the mod has to generate them which can take some time depending on the resolution of your flags. If this is taking forever, you should consider optimizing your flag textures as instructed in the above line!
  • If you want to see the progress of the mod loading/generating the flags/colors, turn on the console as instructed in the FAQ question "My game is frozen upon load".
My computer crashed/The game crashed!
  • If this mod is crashing your game or computer, chances are you are running out of memory. Check your Task Manager to confirm as Ravenfield is loading. Consider optimizing your flags or removing some. If you want the best memory efficiency, you should consider learning the Unity Editor and creating your flag packs with the official method
Does this work on Linux or other CPU architectures?
  • No idea. I've attempted to keep compatibility with what I have used so they should work, but I have no way to test.

Credits
  • amir16yp[github.com] for the Unity request texture downloader used to load flag textures
16 Comments
MianReplicate  [author] 11 Jun @ 10:44pm 
Toggle file extensions in Windows and confirm if they are PNGs on your File Explorer.
PhantomBravo 11 Jun @ 4:22pm 
They are all PNGs I think. I am taking the textures from the V+ Bannerlord mod. You can check them yourself.
MianReplicate  [author] 10 Jun @ 11:16pm 
@PhantomBravo What are the extensions of your custom images? They should be JPG or PNG.
PhantomBravo 10 Jun @ 1:47pm 
I’ve got the Local Flags folder extracted in the Bepinex plug-ins folder, but for some reason any custom images I add to the Custom Flags or Optimize Flags folder do not get processed and are not available in the game.
MianReplicate  [author] 3 May @ 6:36pm 
@Ivan Fixed! Thanks for the bug report :)
https://github.com/MianReplicate/Local-Flags/releases/tag/2.1.2
Ivan 3 May @ 1:06am 
I want to change the team colors in the "CustomFlagToTeamColors" folder but it keeps replacing the new colors i add
witherherobrine 28 Mar @ 6:46pm 
gigachad mod. actual W.
MianReplicate  [author] 8 Mar @ 11:54am 
New hotfix out which fixes issues relating to optimizing flags (and also converts formats that are not PNG/JPG)
https://github.com/MianReplicate/Local-Flags/releases/tag/2.1.1
MianReplicate  [author] 7 Mar @ 5:22pm 
New hotfix out that fixes bugs related to time and pausing!

https://github.com/MianReplicate/Local-Flags/releases/tag/2.1.0
MianReplicate  [author] 7 Mar @ 12:52pm 
It’s hard to help you without much info on what it is you did exactly on your end. Upload a video of exactly what you did or contact me through the Ravenfield discord. My user is @MianReplicate