- extract depot.tar.xz somewhere
- convert \x0D\x0D\x0A in text files to \x0A

I used this bash/sed script to make sure it only touches text files, otherwise it'll break a bunch of libs/dlls
(install git bash if you don't have bash already)

find . -type f -exec sh -c '
  for f do
    case "$(file -b --mime-type "$f")" in
      text/*) sed -i "s/\r//g" "$f" ;;
    esac
  done
' sh {} +

Copy/paste it into bash and run it in each folder
(this takes ages to run, recommend using 5+ bash windows at once, go to /bp in one and run the script, go to /mgs2x in another and run it, etc, maybe even use seperate ones for folders in /mgs2x)
You can ask chatgpt/claude to check if that cmd is safe or not

- once converted, extract GameData.tar.xz next to depot.tar.xz (you should have \bp, \mgs2x, \package, \GameData, \GameData\bp_cook_all.bat...)
- in GameData\, convert \x0D\x0D\x0A in text files to \x0A
 you can use quicker way for these, just convert .txt files to fix all the bp_assets.txt:
  find . -name "*.txt" -exec sed -i 's/\r\r\n/\n/g' {} +
 also do .cpp/.xml/.bat too

- once files converted, apply 1-vs2026-initial.patch (ask chatgpt how to apply .patch files)
- nuke bp\Source\ExtLibraries\Boost\ folder
- download boost_1_91_0.zip
- extract boost_1_91_0\boost\ from zip into bp\Source\ExtLibraries\Boost\include\ (so a "boost" folder is inside there)
- extract boost_1_91_0\libs\regex\ from zip into bp\Source\ExtLibraries\Boost\lib\
- apply 2-vs2026-fixups.patch
- at this point you can open cp4_devenv.bat, make sure it's set to Debug/Win32, and build -> build solution, should build without errors
- in solution explorer, right click main -> set as startup project, then press play button at top to launch+debug
- if you don't have assets from vita/MC, follow the assettool part below

if you want to build assettool etc:
- download vs2019 build tools from aka.ms/vs/16/release/vs_buildtools.exe, individual components, select .net framework 4 targeting pack
- apply 3-bptool-fixups.patch
- run cp4_bpdevenv.bat
- right click AssetTool in solution explorer -> build
- replace bp_cook_all.bat in GameData/ folder with one from this pack
- run bp_cook_all.bat

Hopefully once they're cooked you can start game:
- you'll likely run into assert that'll break debugger, 4-remove-asserts.patch removes some of them
(not sure why cdc_face.c is asserting, it has "ASSERT(rect->head.id == SP_BOX)", but head.id is SP_BOX_F for some reason, think this is breaking radio calls..)
- now fix the rest of the game, add win32 audio support/4k/etc
