SS2 Blue Mod Manager

1 Guest is here.
◀◀Page: 106/106BoardHome
66487dd150ad7
baumerQuote
Marvin
Thank you!
Acknowledged by: Marvin
66487dd150c75
Galeb_G4MQuote
I've given it a try, and it's great! I've downloaded quite a couple mods recently, and since I'm spending more or less all of my days in front of the computer (talking the my family over Skype, working on an investment project in Budapest, playing SS2 or Project Wingman...), I tend to get quite tired and to get lost in folders, subfolders, settings ...
66487dd150eae
ZylonBaneQuote
I just had a thought that it would be nice if the mod manager could somehow also manage bloom settings. Like, have it automatically recognize blablabla.bloom files and copy their values into cam_ext. Currently the only way to mess with bloom is to manually edit a config file, which is a bit much for most users. If bloom presets could be managed like any other mod, that would be pretty slick.

The algorithm wouldn't be too complicated:
- Only apply the highest-priority bloom file.
- On applying a bloom file, if a file named cam_ext.bak does not exist, make a copy of cam_ext.cfg with that name. Just insurance in case cam_ext.cfg somehow gets corrupted.
- Load cam_ext.cfg and split it into lines.
- Remove any previous BMM-applied bloom config:
   Search for a line that starts with "; BMM BLOOM START".
   Search for a line that starts with "; BMM BLOOM END".
   If both found, delete all lines between those two lines, inclusive.
   If only one found, the user has probably been manually mucking around. Best we can do is delete the line that we found.
- Disable any current bloom config:
   Search for any lines that start with with either "postprocess" or "bloom".
   If found, change the lines to be prefixed with a semicolon (i.e., comment them out).
- Add bloom config:
   Append to end "; BMM BLOOM START".
   Append "postprocess 1".
   For each line of the bloom mod file that starts with "bloom", append that line. Ignore lines that start with anything else. We could hard-code all the current bloom config commands, but just keying on "bloom" gives us future-proofing.
   Append "; BMM BLOOM END".
- Write out new cam_ext.cfg.

On disabling a bloom mod, just run the part that scans for and removes the BMM bloom block.
◀◀Page: 106/106BoardHome
Reply

Legal stuff

Privacy Policy & Terms of Service Contact