This project is aimed to port P2ASW to the leaked CSGO engine to no longer worry about Alien Swarm's limitations.
Partially used code from https://github.com/tupoy-ya/Kisak-Strike and my other project, https://github.com/EpicSentry/HL2-CSGO
What is P2ASW? Check it out here: https://github.com/EpicSentry/P2ASW/
This repository uses Git LFS for libraries and the platform folder.
Features:
- Removed Scaleform.
- Portal 2 GameUI (almost) fully functional.
- CSGO Usermessage system, everything now makes use of the CUsrMsg class.
- VPhysics DLL code included.
- Mostly working save/restore.
- Valve Bink video DLL compiling from source.
Differences/stuff removed in P2GO:
- SourceTV/GOTV removed (Not important for Portal 2)
- Do a search for "TODO!", these are things that are important that I couldn't get working or that cause crashes.
- Portal renderer is commented out because of crashes. (see viewrender.cpp)
Using and building P2GO:
- Generate the project using CreateSolution.bat and build with VS2015 (2022 with 2015 build tools will work).
- VS 2022 users: Do NOT upgrade the solution if prompted to! Hit cancel on the upgrade dialog box.
- Copy over all of your Portal 2 folder to the Game folder, excluding
platform
and anybin
folders. - Copy everything from
copy these to portal2
into your newly copied overportal2
folder, overwriting if necessary. - Now you can play the game!
Having problems building the project? Make sure you have the following:
For VS 2022 users:
- Windows 8.1 SDK: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/
- MSVC 140 (2015 Build tools): Available under the "Individual Components" section of the Visual Studio Installer.
- If VPC complains about a regkey for .vcxproj files in solutions, please run .reg file included in this repository and run VPC again.
VS 2015 should work out of the box with no additional changes necessary.
- Set launcher_main as the startup project (if it isn't already) by right clicking it and pressing "Set as Startup Project".
- Right click launcher_main, go to properties and click on the debugging section. Set "Command" to point to your compiled portal2.exe (in the game folder).
- Set "Command Arguments" to "-game "portal2" -insecure -sw" (feel free to add more such as +sv_cheats 1).
- Press "Local Windows Debugger" at the top of Visual Studio to then launch the game and debug it.
Above is an example of a correctly set up debugger.