Ravenfield

Ravenfield

113 ratings
Custom Flags Framework
4
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.529 MB
15 Dec, 2024 @ 4:06pm
6 Sep @ 10:56pm
33 Change Notes ( view )

Subscribe to download
Custom Flags Framework

In 2 collections by MianReplicate
Custom Flags
54 items
Mian's Addons
6 items
Description
Introduction
Hello! if you popped here, chances are, you want to create your own custom flags or another flag mutator you are using depends on this! If not, then wtf are you doing here, otherwise, carry on!

This is a heavily modified version of the custom flag framework by Red for creating custom flags in Ravenfield. Heavy thanks to them for making the original :)

Customization
  • If you want to mix & match flag materials from other mutators that use this framework, you can do that!
  • Customize the color of a flag texture.
  • Automatically change a team's name to the name of its specified flag material.
  • Automatically change the color of the team depending on the selected flag.
  • Use commands to customize flags, accessories and teams! Wanna override the team name or color for a flag? Wanna randomize which flags get placed into each team? You can do that :)
  • You can assign multiple flags to a team, which in turn assigns bots their own flag. When a bot starts capturing a point, the texture on the flag will be changed to represent the bot's assigned flag. This allows for historical scenarios if you wanted to recreate allies within WW2 for example.
  • You can let bots feel prideful of the flag they were assigned by installing and using accessory packs! Here's one I created. If you are interested, feel free to create your own accessory packs within the tutorial in the FAQ. This is super helpful if you wanna know what flag a bot has been assigned.
  • Custom vehicles with materials named "FLAG" get textured automatically with the flag assigned to the bot that is driving!

Modifications from the Original
  • This by itself does not come with any flags. Only the options to change flag colors for both vanilla & other flag mutators. You need to install this + a flag mutator which utilizes this framework. One flag mutator is Political Flags .
  • When making your custom flag mutators using this framework, they will have to depend on this framework. This makes it easier to mass fix bugs across all flag mutators and allows for seamless compatibility
  • Much more performance friendly than the original and other flag mutators (100-200 FPS average compared to usual 200-250 FPS average on my computer)
  • Custom flags now show during capture

How to add flags/accessories to teams

- Find more information here on the SYNTAX INFO [github.com]

FAQ
Can I replace textures on my vehicles with flags?
- Yes! If you rename any materials on your custom vehicle to "CFF_FLAG", any bot with a flag assigned to them that drives that vehicle will automatically replace the vehicle's FLAG material textures to the flag texture!

How do bots get assigned flags?
- When bots spawned, they are usually assigned the flag that the capture point represents. Sometimes however, this is not the case and they are assigned a different flag belonging to the team. If this happens, that bot then encourages bots after it to spawn as that bot's flag. This encourages bots to spawn in groups of assigned flags rather than every single bot having a different flag. Though it does still have a chance of randomizing again which allows for more diversity!

I found a bug/I wanna suggest a new idea!

- First, make sure you are running on the Beta branch. If not, please try that first and see if the bug still happens. If it does, report it here [github.com]!

How to create my own flag/accessory packs?

- There are two methods you can use to create your own flag packs (Only one for accessory packs).
- Simple, slightly less memory efficient, and not publishable to workshop: Local Flags [github.com]
- Advanced, more memory efficient, ability to publish to workshop, and allows for accessory packs as well: TEMPLATE INFO [github.com]

Source?

Check it out here! [github.com] Feel free to make PRs if you want to help contribute :)

Credits

Special thanks to Wingnut for letting me use their WIP vehicles for testing out the new Pride Update involving extending flag textures to vehicles.
127 Comments
MianReplicate  [author] 10 hours ago 
@fourgrass okay idk what happened but reexporting it fixed the issue. There are no more bugs :)
MianReplicate  [author] 10 hours ago 
The map disables the framework for some reason when you load into it.

I am not aware of why this happens nor do I know how to fix it.
fourgrass 11 hours ago 
emm.....I enabled this framework and flagpacks,but flagviewer still say "dumbass",and no flagpack was shown in viewer.this problem does not exist in ea31
MianReplicate  [author] 5 Sep @ 11:25pm 
Unfortunately for now, you'd have to get it by the developer of the flag pack. Most flag packs do put the names of their flags in their descriptions, so if you are lucky enough, you'll be able to get it there.

You could also use "{ALL:{ALLMUTATORS:Flags}}" for one team, and grab the flag names in the console when you load a map with your flag packs enabled as the framework prints out the name of each flag it uses for each team.
FactuObj 5 Sep @ 8:31pm 
So how do we get the names of the flags?
MianReplicate  [author] 5 Sep @ 5:31pm 
So the mod works fine from my understanding, but the map is for some reason not working 🤔
MianReplicate  [author] 5 Sep @ 5:19pm 
I'll look into fixing the major problems it has for the latest version of Ravenfield.

I can't fix the glowing soldier bug for now as I don't know the direct issue for that.
Omen 5 Sep @ 10:44am 
unfortunate that it's broken, aside from that it's quite simple & easy to use in previous versions!
MianReplicate  [author] 9 Aug @ 11:49am 
Unfortunately, I do not think I will be able to fix it for a while. My summer break is over and so school has started for me again.

However, if a scripter/coder is willing to submit a PR request (aka help fix my bug for me) then I'd be willing to accept it and put it into the addon. The source code is public on GitHub and is the link is in the description.
PhantomBravo 8 Aug @ 8:48pm 
Any luck fixing the glowing soldier bug?