Ravenfield
144 평점
Custom Flags Framework
4
2
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
파일 크기
게시일
업데이트일
1.529 MB
2024년 12월 15일 오후 4시 06분
2025년 12월 6일 오전 12시 58분
업데이트 노트 36개 (보기)

다운로드 위해 구독하기
Custom Flags Framework

MianReplicate님의 2 모음집
Custom Flags
아이템 56개
Mian's Addons
아이템 7개
설명
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.
댓글 151
MianReplicate  [작성자] 2025년 12월 6일 오전 12시 58분 
[New Release: 2.2.2] Fixed bug relating to caching accessories
MianReplicate  [작성자] 2025년 12월 5일 오후 11시 46분 
[New Release: 2.2.1] Cached all data for faster retrieving and loading
MianReplicate  [작성자] 2025년 12월 4일 오후 10시 45분 
As to why the template was created this way, my best guess is the modder wanted to create something quick and so didn't care too much on the efficiency side of things. I don't blame them since scripting takes a while xD.
MianReplicate  [작성자] 2025년 12월 4일 오후 10시 37분 
@PhantomBravo

Most flag mutators use a pre made template for custom flags. This template is inherently flawed as it replaces the texture of the flags in the game but in an extremely inefficient way, hence why most flag mutators are laggy.

Here's a step by step process on the template does:
1. Loop through all the capture points on a map
2. Loop through all the flag textures
3. If the texture should be applied on that capture point, apply it.

The above steps happen every single frame. Which means, if you have 100 flag textures and 5 capture points, the code is running 500 operations every single frame.

In this framework, flag textures are set only whenever a team captures a point. So the only time you'd reasonably get lag from this mod is when a point is captured, however this operation happens once only as opposed to the 500 operations every frame from other mutators. Otherwise, you just need to have a reasonable amount of ram for the amount of flag textures that are installed.
PhantomBravo 2025년 12월 4일 오후 9시 58분 
In basic terms, what does this mod do differently from other flag mutators that gives it much better performance over its counterparts?
MianReplicate  [작성자] 2025년 11월 1일 오전 11시 39분 
@Scattologie

It shouldn't, I've used it on EA32.
Scattologie 2025년 11월 1일 오전 2시 30분 
Does currently this mutator cause crash on EA32? Recently, the game has been crashing frequently on EA32, and this is one of the mods I've subscribed to.
Pauligon 2025년 10월 21일 오후 6시 05분 
@MianReplicate

That's alright, I can wait like usual. I remediated the issue by just using the base game's team colors instead.
MianReplicate  [작성자] 2025년 10월 21일 오전 9시 08분 
@Pauligon

I’ll look into it when I have time but unfortunately I’m really busy atm with personal stuff
Pauligon 2025년 10월 20일 오전 4시 16분 
I just want to change the color of the default flags, like changing Eagle's blue flag to orange, for example.