Hello, I would like to request an addition to the in-game Game Options menu. In Sorian's Lobby Enhancement Mod he included an option to filter maps if they have or have not AI markers. I went ahead and did all the necessary changes to the file faforever.faf (code work and UI changes) to make this work and it is functioning. Here are some screenshots:
In current version of FAF (before any of my changes)
Changes showing UI additions and modifications, please note the new filter option and the text in the map preview stating if the map has AI markers. I also cleaned up a little of the filters placement in the UI to make it look good.
Another image showing a sorted list of maps with AI markers.
Here is a link to the modified faforever.faf. Make sure to make a copy of the original before dropping that in the FAF folder.
Here is a zip file with the four files I changed which are:
panel_bmp.dds (/textures/ui/common/scx_menu/game-settings/panel_bmp.dds)
EnhancedLobby.lua (/lua/EnhancedLobby.lua)
mapselect.lua (/lua/ui/dialogs/mapselect.lua)
tooltips.lua (/lua/ui/help/tooltips.lua)
As well as a text file stating where all the changes are.
I tagged the additions and changes with ###New so that they can be found easily.
Most of the code for this addition comes from Sorian's Lobby Enhancement Mod. I just worked the code so that it can function properly with FAF modifications and be presentable in the Game Options menu. Since I play mostly with the AI, locating maps with AI markers saves me alot of time. Since I was working on making it look nice I cleaned up some of the filter spacing in the original image so it looks good.
One thing to note that it takes a bit of time to sort through the maps. This is because it needs to look through each of the maps and see if they have AI markers (specifically land markers). The program may appear to be doing nothing but the duration is dependent on your computer speed and the number of maps.
An idea of duration of a sorting maps with AI markers on my machines, I have just over 1,600 maps;
- Core I7-3630QM @ 2.4 GHz with 16GB RAM with an SSD hard drive: 5 to 6 seconds
- Core 2 Quad Q9650 @ 3.0 GHz with 8GB RAM with a 7200RPM hard drive: 65 seconds
So keep that in mind if it is taking you some time. The default filter setting by the way is "Any", so the delay only occurs if you want or do not want to sort maps with AI markers.
A possible bug is that it may not properly filter maps that have AI markers, but there are no land markers. I have not seen such a map but when I get a bit more time, I will see how to include these as well as any other cases that may come up.
If you want to try this for yourself.
-First make a backup of faforever.faf (default location: C:\ProgramData\FAForever\gamedata)
-Run the FA executable in the FAF folder (default location: C:\ProgramData\FAForever\bin\ForgedAlliance.exe)
FA will start as if you were running the game but all the changes that FAF has would be automatically loaded.
Make sure to copy back your original faforever.faf file (the one you made a backup of) to play as usual through the FAF lobby.
Please let me know if you run into any issues or have any questions.