Giter Site home page Giter Site logo

sanyasho / p2go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcikaa78/p2go

1.0 0.0 1.0 775.55 MB

Portal 2 (ASW) in the CSGO engine branch

License: Other

Shell 0.23% JavaScript 0.01% C++ 88.72% Python 0.02% Perl 0.26% C 9.91% PHP 0.01% Lua 0.01% C# 0.33% Assembly 0.03% CSS 0.01% Squirrel 0.02% TeX 0.01% Pawn 0.01% Objective-C++ 0.11% Makefile 0.08% HTML 0.22% GLSL 0.03% PLSQL 0.01% Batchfile 0.02%

p2go's Introduction

Portal 2 (ASW) in CSGO

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, my other project https://github.com/EpicSentry/HL2-CSGO and https://gitlab.com/mikkokko/csgo_src (P2P fixes)
Physics/IVP are a mix of Kisak-Strike and https://github.com/nillerusr/source-physics

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.
  • Matchmaking DLL fixed from Swarm.
  • Working P2P networking. (see credits)

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.
  • Multiplayer is really buggy, often crashing your game while loading the coop lobby.

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 any bin folders.
  • Copy everything from copy these to portal2 into your newly copied over portal2 folder, overwriting if necessary.
  • Now you can play the game!

Troubleshooting compiling

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.

Debugging the engine

  • 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. image
    Above is an example of a correctly set up debugger.

p2go's People

Contributors

epicsentry avatar

Stargazers

 avatar

Forkers

nothuza

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.