Posted: . At: 7:46 PM. This was 4 years ago. Post ID: 14269
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



How to compile the leaked CS:GO source code leak. This apparently works.


1. Install Visual Studio Community 2015 on Windows 10 64 bit

2. Create the solution with CreateSolution.bat

3. Replace any #include "../../src/public/vgui_controls/Controls.h" with #include "../../public/vgui_controls/Controls.h"

4a. Copy cryptlib.lib from hl2_src\lib\common\win32\2015\release\cryptlib.lib to cstrike15_src\lib\win32\2015\release\ (create the folders as neccessary)

4b. copy hl2_src\lib\public\libcef.lib into cstrike15_src\lib\win32\release\libcef.lib

Apply the fixes: `git am < basic_fixes.patch`

basic_fixes.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From 6f22ce66fd030e6edeff3f29e8286958d669fbc5 Mon Sep 17 00:00:00 2001
From: Anon302 <anongitlab302@protonmail.com>
Date: Sat, 25 Apr 2020 03:40:09 +0200
Subject: [PATCH] Fixes
 
---
 dx9sdk/include/ks.h                       | 2 +-
 game/shared/baseachievement.cpp           | 2 +-
 game/shared/cstrike15/achievements_cs.cpp | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
 
diff --git a/dx9sdk/include/ks.h b/dx9sdk/include/ks.h
index 4f766b9..740c8ac 100644
--- a/dx9sdk/include/ks.h
+++ b/dx9sdk/include/ks.h
@@ -35,7 +35,7 @@ Abstract:
 #endif // !defined(SIZEOF_ARRAY)
 
 #if defined(__cplusplus) && _MSC_VER >= 1100
-#define DEFINE_GUIDSTRUCT(g, n) struct __declspec(uuid(g)) n
+#define DEFINE_GUIDSTRUCT(g, n)
 #define DEFINE_GUIDNAMED(n) __uuidof(struct n)
 #else // !defined(__cplusplus)
 #define DEFINE_GUIDSTRUCT(g, n) DEFINE_GUIDEX(n)
diff --git a/game/shared/baseachievement.cpp b/game/shared/baseachievement.cpp
index 1b0abf7..50a7af5 100644
--- a/game/shared/baseachievement.cpp
+++ b/game/shared/baseachievement.cpp
@@ -17,7 +17,7 @@
 #endif // CLIENT_DLL
 
 #include <vgui/ISystem.h>
-#include "../../src/public/vgui_controls/Controls.h"
+#include "../../public/vgui_controls/Controls.h"
 
 // NOTE: This has to be the last file included!
 #include "tier0/memdbgon.h"
diff --git a/game/shared/cstrike15/achievements_cs.cpp b/game/shared/cstrike15/achievements_cs.cpp
index 45c69c7..6ddf0cc 100644
--- a/game/shared/cstrike15/achievements_cs.cpp
+++ b/game/shared/cstrike15/achievements_cs.cpp
@@ -39,7 +39,7 @@ IAchievementMgr * CAchievementMgr::GetInstanceInterface()
 
 // [dwenger] Necessary for sorting achievements by award time
 #include <vgui/ISystem.h>
-#include "../../src/public/vgui_controls/Controls.h"
+#include "../../public/vgui_controls/Controls.h"
 
 #endif // CLIENT_DLL
 
-- 
2.21.0.windows.1

5. Build Solution in Visual Studio

6. Download Depots with https://github.com/SteamRE/DepotDownloaderhttps://github.com/SteamRE/DepotDownloader.

dotnet %~dp0DepotDownloader.dll %* -app 730 -depot 731 -manifest 7043469183016184477 -username STEAMUSERNAME -password PASSWORD
dotnet %~dp0DepotDownloader.dll %* -app 730 -depot 732 -manifest 4047004309608881181 -username STEAMUSERNAME -password PASSWORD

7. Copy the depot contents into the game folder (one folder up from cstrike15_src). Replace all files.

8. Steam needs to be open with a CS:GO account, then just double click csgo.exe and it should launch in insecure mode.

There appear to be a lot of weapon code in game\shared\cstrike15\weapon_cbase.cpp and \game\shared\cstrike15\cs_weapon_parse.cpp

If you search all files for “recoil” you’ll find quite a lot, so at least parts of the code are there. My current (very early) theory is that there are some files missing containing the recoil information for the weapons. If that is the case, those would only need to be added by downloading more depots or from a CS:GO install directory. That’s very much a theory and might be completely wrong though.


9 thoughts on “How to compile the leaked CS:GO source code leak. This apparently works.”

  1. Hello, I want to say thanks for your guide.

    Answering the question why there is no recoil for the weapons, I can say that the code has been removed for the partner depot.

    I found one Linux community fork, which supports “cstrike15_src” and they were able to add recoil code back with the help of reverse-engineering tools (IDA e.g.), https://github.com/SwagSoftware/Kisak-Strike

    btw I got myself settings up GitHub Actions CI for “cstrike15_src”, it took me a few days, that means DLLs can be built automatically with new code changes, if you are interested you can take a look at my fork: https://github.com/SmileyAG/cstrike15_src-CI/commits/fixes-from-kisak-strike

    Reply
  2. Hello
    I’ve just compiled all the files… but got error msg:
    —————————
    Engine Error
    —————————
    Unable to load version from steam.inf
    —————————
    OK
    —————————
    How to deal with this??
    Thanks

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.