Skip to content

Commit 7753a2b

Browse files
committed
Fixed workshop lol
1 parent 94e4fb1 commit 7753a2b

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

Program.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ public class Compiler
2323
{
2424
public static void RunFileCheck()
2525
{
26-
Console.WriteLine("Running quick check for some PPG folders...");
27-
bool found = (Directory.Exists(pathlol + "People Playground_Data") || Directory.Exists(pathlol + "CompiledModAssemblies"));
26+
Console.WriteLine("Running quick check for some folders...");
27+
bool found = (Directory.Exists(pathlol + "workshop") || Directory.Exists(pathlol + "common"));
2828
while(!found)
2929
{
30-
Console.WriteLine("Couldn't find the 'People Playground_Data' folder or the 'CompiledModAssemblies' folder at this path! Try entering another path, or press CTRL+C to quit!");
30+
Console.WriteLine("Couldn't find the 'workshop' folder or the 'common' folder for THE STEAM PATH! Try entering another path, or press CTRL+C to quit!");
3131
Console.Write("Path: ");
3232
pathlol = Console.ReadLine();
33-
found = (Directory.Exists(pathlol + "People Playground_Data") || Directory.Exists(pathlol + "CompiledModAssemblies"));
33+
found = (Directory.Exists(pathlol + "workshop") || Directory.Exists(pathlol + "common"));
3434
}
3535
StreamWriter lp = File.CreateText("last_path");
3636
lp.Write(pathlol);
@@ -51,7 +51,7 @@ public static int Main(string[] args)
5151
} else
5252
{
5353
Console.WriteLine("last_path not found.");
54-
Console.Write("Enter (or paste) the path to the People Playground folder (with trailing slash!): ");
54+
Console.Write("Enter (or paste) the path to the Steam folder (with trailing slash!): ");
5555
pathlol = Console.ReadLine();
5656

5757
RunFileCheck();
@@ -179,7 +179,7 @@ private static void ProcessMessage(byte[] data, string remote)
179179
else
180180
{
181181
//string mytext = "C:\\Program Files (x86)\\Steam\\steamapps\\common\\People Playground\\People Playground_Data\\hello.txt";
182-
text = text.Replace("C:\\\\Program Files (x86)\\\\Steam\\\\steamapps\\\\common\\\\People Playground\\\\", pathlol).Replace("\\\\", "/");
182+
text = text.Replace("C:\\\\Program Files (x86)\\\\Steam\\\\steamapps\\\\workshop", pathlol+"workshop").Replace("C:\\\\Program Files (x86)\\\\Steam\\\\steamapps\\\\common\\\\People Playground\\\\", pathlol+"common/People Playground/").Replace("\\\\", "/");
183183
Console.WriteLine("Received text: {0}", text);
184184
CompileMod(JsonConvert.DeserializeObject<ModCompileInstructions>(text), remote);
185185
}

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# PPGModCompiler
22
An open-sourced version of the People Playground Mod Compiler ("PPGMC" or "PPGModCompiler").
33
**People Playground (PPG) and PPGMC was made by Studio Minus (https://studiominus.nl)**
4+
45
# How to Use
56
* Download [Visual Studio][vs] and [.NET 5.0][net50].
67
* Grab the [source code for this repository][source] in a .ZIP file, or use git (`git clone https://github.com/StupidRepo/PPGModCompiler`).
78
* Open project in Visual Studio, and then find the `Build -> Publish to FolderProfile - FileSystem` button.
89
* Next, find the executable by looking in `bin/out/`, and run it.
9-
* It will ask you where your People Playground folder is.
10-
- To find the folder, see "[Finding your PPG Folder](#finding-your-ppg-folder)".
10+
* It will ask you where your Steam folder is.
11+
- To find the folder, see "[Finding your Steam folder](#finding-your-steam-folder)".
1112
* Open People Playground, and PPG should start compiling mods via the custom server. The first mod may fail to compile with the "asyncronous timeout" message. This is normal, and you can fix it by finding the mod that failed in the mod list, and pressing Recompile.
13+
1214
# Issues
1315
If it doesn't work, and you only see this with NOTHING ELSE...:
1416
```
@@ -24,6 +26,7 @@ Sent Error: Assembly referencing error: Could not find a part of the path '[path
2426
Then you may need to restart the server, and check that the path you provided was correct (don't forget that your path needs to have a space at the end!)
2527

2628
If you're still having errors occur (either whilst building or running), [make a new issue][newi] and I'll respond ASAP.
29+
2730
# Contribution
2831
Contribution is allowed and I recommend you do contribute. I'll accept PRs that:
2932
- Patch security issues/fix vulnerable code
@@ -34,13 +37,16 @@ I'll ignore PRs that are:
3437
- AI generated
3538
- Adding unwanted or generally uneeded code
3639
- Unoriginal and not creative
37-
# Finding your PPG Folder
40+
41+
# Finding your Steam Folder
3842
1. Go to Steam, and find People Playground in your Library.
3943
2. Right-click it, and press/hover over "Manage".
4044
3. Press "Browse local files", and then somehow copy the path.
4145
4. Make sure the path is something like this:
4246
- `C:/[program files thingy]/[steam dir with steamapps]/People Playground/`
43-
5. MAKE SURE THE PATH HAS A SLASH AT THE END! THIS IS SO IMPORTANT!
47+
5. Make sure you only copy the `Steam/steamapps` part
48+
- e.g. `C:/Program Files (x86)/Steam/steamapps/`
49+
6. MAKE SURE THE PATH HAS A SLASH AT THE END! THIS IS SO IMPORTANT!
4450

4551
# Sources
4652
* 95% code from dnSpy (on PPGModCompiler.dll from game)

0 commit comments

Comments
 (0)