ChargingTurnip / Fortress_Obscura

If you know it, you know it.
38 stars 8 forks source link

Add gitignore #3

Closed treacherousfiend closed 1 year ago

treacherousfiend commented 1 year ago

Add .gitignore file which to ignore various files that are auto-generated and/or user related. Partially to prevent weird accidental changes by devs, and also to make it easier for users not super familiar with github desktop to update, as it could be weird and confusing to see all those wacky edited files on the sidebar. These files have no reason to be on the repository.

I might've missed some, but here's my reasoning for each file config.cfg - auto-generated based on config_default.cfg, holds user settings banned_ip.cfg - server file which stores IPs which are banned server_blacklist - user file which gets updated when you tell the game you don't want to see a server ever again user.scr - auto-generated file based on user_default.scr, holds the user settings from the advanced mutliplayer menu settings.scr - auto-generated file based on settings_default.scr, holds some of the server settings from the "create server" ui (maxplayers, server name, etc.) demoheader.tmp - tbh not super how this works, but it seems to get generated on launch and demo record start, game seems to automatically generate it on launch. GameState.txt - once again not sure what this does, but the game automatically generates it ServerConfig.vdf - Stores the default map when you go to create a server. If you remove it, the menu defaults to "random map", I guess you could keep the file itself instead of removing it like I did since it just points to dom_towtown rn, but it probably should still be in the gitignore voice_ban.dt - User file that stores players who have been locally muted tf2_playerstats.dmx - stores various player stats like kills and points per class, the one on the repo already has some data in it, which it definitely shouldn't. also auto-generated viewed.res - Stores how many times the various map MOTDs have been watched. auto-generates, and the current one in the repo has data so in the future if things like videos are added to the maps they might be skipped because the game believes they have already been watched .cache - sound cache files, auto-generate on launch download/user_custom/ - unsure, maybe VTFs of profile pictures on the scoreboard? materials/temp/ - downloaded sprays from other users materials/vgui/logos/ - local player's spray. I intentionally did not delete any files from this folder because it also stores the default spray. custom/* - to be honest, I don't even know if sourcemods support the custom folder. I assume they do though.

treacherousfiend commented 1 year ago

better gitignore got made by one of the devs at some point