From ecfbc13b063aa90fb0622e550383a9c75938d880 Mon Sep 17 00:00:00 2001 From: "Daniel S. Billing" Date: Sun, 24 Jan 2021 18:38:05 +0100 Subject: [PATCH 1/3] Let's make it easier to edit the classified values --- P3D/Core/Classified.vb | 6 ++++++ P3D/Network/GameJolt/APICall.vb | 4 ++-- P3D/Network/GameJolt/LogInScreen.vb | 8 ++++---- P3D/Network/Profiles/Emblem.vb | 2 +- P3D/P3D.vbproj | 1 + 5 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 P3D/Core/Classified.vb diff --git a/P3D/Core/Classified.vb b/P3D/Core/Classified.vb new file mode 100644 index 000000000..91ddbe239 --- /dev/null +++ b/P3D/Core/Classified.vb @@ -0,0 +1,6 @@ +Public Class Classified + Public Shared Remote_Texture_URL As String = "" ' CLASSIFIED + Public Const GameJolt_Game_ID As String = "" ' CLASSIFIED + Public Const GameJolt_Game_Key As String = "" ' CLASSIFIED + Public Shared Encryption_Password As String = "" ' CLASSIFIED +End Class diff --git a/P3D/Network/GameJolt/APICall.vb b/P3D/Network/GameJolt/APICall.vb index 15cb3a8ec..8ba7bfdeb 100644 --- a/P3D/Network/GameJolt/APICall.vb +++ b/P3D/Network/GameJolt/APICall.vb @@ -70,8 +70,8 @@ Namespace GameJolt Dim loggedIn As Boolean - Const CONST_GAMEID As String = "" ' CLASSIFIED - Const CONST_GAMEKEY As String = "" ' CLASSIFIED + Const CONST_GAMEID As String = Classified.GameJolt_Game_ID + Const CONST_GAMEKEY As String = Classified.GameJolt_Game_Key Const HOST As String = "http://api.gamejolt.com/api/game/" Dim Exception As System.Exception = Nothing diff --git a/P3D/Network/GameJolt/LogInScreen.vb b/P3D/Network/GameJolt/LogInScreen.vb index c09147e8a..4365d61cf 100644 --- a/P3D/Network/GameJolt/LogInScreen.vb +++ b/P3D/Network/GameJolt/LogInScreen.vb @@ -83,8 +83,8 @@ Namespace GameJolt Private Sub SaveSettings() If API.LoggedIn = True Then - Dim cUsername As String = Encryption.EncryptString(UserName.Text, "") 'CLASSIFIED - Dim cToken As String = Encryption.EncryptString(Token.Text, "") 'CLASSIFIED + Dim cUsername As String = Encryption.EncryptString(UserName.Text, Classified.Encryption_Password) + Dim cToken As String = Encryption.EncryptString(Token.Text, Classified.Encryption_Password) System.IO.File.WriteAllText(GameController.GamePath & "\Save\gamejoltAcc.dat", cUsername & Environment.NewLine & cToken) End If @@ -96,8 +96,8 @@ Namespace GameJolt If content.Length >= 2 Then Try - Me.UserName.Text = Encryption.DecryptString(content(0), "") 'CLASSIFIED - Me.Token.Text = Encryption.DecryptString(content(1), "") ' CLASSIFIED + Me.UserName.Text = Encryption.DecryptString(content(0), Classified.Encryption_Password) + Me.Token.Text = Encryption.DecryptString(content(1), Classified.Encryption_Password) Deactivate() Me.LogInButton.IsActive = True diff --git a/P3D/Network/Profiles/Emblem.vb b/P3D/Network/Profiles/Emblem.vb index 39438ddff..2c598c321 100644 --- a/P3D/Network/Profiles/Emblem.vb +++ b/P3D/Network/Profiles/Emblem.vb @@ -322,7 +322,7 @@ Return tempT End If - Dim t As Texture2D = DownloadTexture2D.n_Remote_Texture2D(Core.GraphicsDevice, "" & GameJoltID & ".png", False) ' CLASSIFIED + Dim t As Texture2D = DownloadTexture2D.n_Remote_Texture2D(Core.GraphicsDevice, $"{Classified.Remote_Texture_URL}{GameJoltID}.png", False) If TempDownloadedSprites.ContainsKey(GameJoltID) = False Then TempDownloadedSprites.Add(GameJoltID, t) diff --git a/P3D/P3D.vbproj b/P3D/P3D.vbproj index 3c28e5055..46401fc71 100644 --- a/P3D/P3D.vbproj +++ b/P3D/P3D.vbproj @@ -27413,6 +27413,7 @@ PreserveNewest + From 936f8fd2b84a4199596c30683bb7e0a0942ae78b Mon Sep 17 00:00:00 2001 From: "Daniel S. Billing" Date: Sun, 24 Jan 2021 18:46:50 +0100 Subject: [PATCH 2/3] Update README.md with classified info --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d6d985d8d..0c823d94e 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ In order to run the game, you will need the following: The game was configured to connect to several servers and internet APIs using private keys. To keep the private keys private, they have been redacted from the source code, along with a few URLs. -If you want to you can add your own private keys/URLs back into the game to enable certain online features. To find these places search for these comments in the source code: +If you want to you can add your own private keys/URLs back into the game to enable certain online features. To find these places search for these comments in the source code or open __Core/Classified.vb__: ' CLASSIFIED From 404b60b3ece3bbe037920173e7e820a1ae9c21f1 Mon Sep 17 00:00:00 2001 From: "Daniel S. Billing" Date: Mon, 25 Jan 2021 08:26:23 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0c823d94e..52a126cef 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,28 @@ +# P3D-Legacy + +

+License +Total Downloads +Contributors +Version +Release +Discord +

+ The game is not in active development by [nilllzz](https://github.com/nilllzz) anymore, but few people from the community are maintaining the game and porting it to MonoGame platform. You are free to fork and redistribute the code under the [GNU GPLv3 license](http://choosealicense.com/licenses/gpl-3.0/). -# Build instructions (game) +# Downloading the game + +You will find the latest release **[here](https://github.com/P3D-Legacy/P3D-Legacy/releases)**. + +# Requirements for the game + +In order to run the game, you will need the following: +* [OpenAL](https://www.openal.org/downloads/oalinst.zip) + +# Build instructions for the game The game is written in Visual Basic and was compiled targeting the .NET Framework 4.6 @@ -17,19 +37,12 @@ To run the game after a successful build, you also need an applicable graphics c The first build of the game will take a little longer due to the MonoGame Content Pipeline building all assets for the first time. -# Running the game - -In order to run the game, you will need the following: -* [OpenAL](https://www.openal.org/downloads/oalinst.zip) - # Classified information The game was configured to connect to several servers and internet APIs using private keys. To keep the private keys private, they have been redacted from the source code, along with a few URLs. -If you want to you can add your own private keys/URLs back into the game to enable certain online features. To find these places search for these comments in the source code or open __Core/Classified.vb__: - - ' CLASSIFIED +If you want to you can add your own private keys/URLs back into the game to enable certain online features. To find these places search for these comments in the source code; `' CLASSIFIED` or you can open __Core/Classified.vb__. Every line that has the "CLASSIFIED" comment at the end of it had some kind of string removed from it.