Compare commits

...

6 commits

Author SHA1 Message Date
bdc26f2528 1.0.2 2025-03-15 22:21:27 +01:00
89fcf1ed7b refactor: bump severity from info to warning 2025-03-15 22:20:33 +01:00
5c6a96b800 refactor: remove unused import 2025-03-15 22:19:21 +01:00
abe74e4ea5 style: fix spelling mistakes
Add .vscode/settings.json for VSCode/VSCodium users using cspell
2025-03-15 22:19:03 +01:00
4a5c665667 style: remove trailing dot 2025-03-15 22:15:24 +01:00
3258fcc4f5 docs: added contact info for community feedback 2025-03-15 22:14:51 +01:00
6 changed files with 37 additions and 8 deletions

23
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,23 @@
{
"cSpell.words": [
"allmaps",
"Behaviour",
"currentmap",
"Dont",
"gamemode",
"GBSU",
"gmenu",
"hlapi",
"netstandard",
"protontricks",
"rotationconfig",
"serverip",
"serverpassword",
"serverport",
"vsync",
"winecfg",
"WINEDLLOVERRIDES",
"winhttp",
"ZeroTier"
]
}

View file

@ -4,7 +4,6 @@ using GB.Config;
using GB.Core; using GB.Core;
using GB.Game; using GB.Game;
using GB.Platform.Lobby; using GB.Platform.Lobby;
using HarmonyLib;
using UnityEngine; using UnityEngine;
#pragma warning disable IDE0051 // Private member is unused #pragma warning disable IDE0051 // Private member is unused
@ -92,7 +91,7 @@ Set CLI arguments: -ip, -port, -servername, -serverpassword
Plugin.AddServerComp(); // add custom GBSU server component Plugin.AddServerComp(); // add custom GBSU server component
RotationConfig gameConfig = GBConfigLoader.LoadRotationConfig("config.json", true); // load rotation config from Config/Rotation/config.json RotationConfig gameConfig = GBConfigLoader.LoadRotationConfig("config.json", true); // load rotation config from Config/Rotation/config.json
ServerConfig serverConfig = NetConfigLoader.LoadServerConfig(); // load default server config, becauuse it can be overrided by args like -ip and -port ServerConfig serverConfig = NetConfigLoader.LoadServerConfig(); // load default server config, because it can be overridden by args like -ip and -port
MonoSingleton<Global>.Instance.UNetManager.LaunchServer(serverConfig); // launch the server with the server config MonoSingleton<Global>.Instance.UNetManager.LaunchServer(serverConfig); // launch the server with the server config
MonoSingleton<Global>.Instance.UNetManager.GetComponent<GameManagerNew>().ChangeRotationConfig(gameConfig, 0); // set server's rotationconfig MonoSingleton<Global>.Instance.UNetManager.GetComponent<GameManagerNew>().ChangeRotationConfig(gameConfig, 0); // set server's rotationconfig
} }
@ -139,14 +138,14 @@ Set CLI arguments: -ip, -port, -servername, -serverpassword
Current map: {currentmap} Current map: {currentmap}
Lobby State: {LobbyManager.Instance.LobbyStates.SelfState} Lobby State: {LobbyManager.Instance.LobbyStates.SelfState}
Vsync: {QualitySettings.vSyncCount} VSync: {QualitySettings.vSyncCount}
Target FPS: {Application.targetFrameRate} Target FPS: {Application.targetFrameRate}
{UpdateScoreDisplay()} {UpdateScoreDisplay()}
Made with <3 by anavoi at Gaboule Community Made with <3 by anavoi at Gaboule Community
Free and open-source software under GPLv3. Free and open-source software under GPLv3.
Our source code is availaible at git.gaboule.com/Gaboule/GBSU Our source code is available at git.gaboule.com/Gaboule/GBSU
Please refer to the documentation for more information."); Please refer to the documentation for more information.");
GUI.DragWindow(new Rect(0, 0, 10000, 10000)); GUI.DragWindow(new Rect(0, 0, 10000, 10000));

View file

@ -14,7 +14,7 @@ public class Helper
} }
catch (Exception e) catch (Exception e)
{ {
Plugin.Log.LogInfo("Failed to disable analytics: " + e.Message); Plugin.Log.LogWarning("Failed to disable analytics: " + e.Message);
} }
} }
} }

View file

@ -4,7 +4,7 @@
<TargetFramework>netstandard2.0</TargetFramework> <TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>GBSU</AssemblyName> <AssemblyName>GBSU</AssemblyName>
<Product>Gang Beasts Server Utility</Product> <Product>Gang Beasts Server Utility</Product>
<Version>1.0.1</Version> <Version>1.0.2</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
<RestoreAdditionalProjectSources> <RestoreAdditionalProjectSources>

View file

@ -67,5 +67,5 @@ public class Plugin : BaseUnityPlugin
public const string PluginGUID = "com.gaboule.plugins.gbsu"; public const string PluginGUID = "com.gaboule.plugins.gbsu";
public const string PluginName = "Gang Beasts Server Utility"; public const string PluginName = "Gang Beasts Server Utility";
public const string PluginVersion = "1.0.1"; public const string PluginVersion = "1.0.2";
} }

View file

@ -4,7 +4,7 @@ This mod allows you to connect to a Gang Beasts server in recent versions (throu
**NOTICE: This is not a "Cement" mod, and we don't want to be affiliated with their developers. This mod is standalone, and will work best on its own!** **NOTICE: This is not a "Cement" mod, and we don't want to be affiliated with their developers. This mod is standalone, and will work best on its own!**
# Features # Features
- LAN (ethernet switches at LAN parties) and Online (port forwarding, Zerotier, Wireguard) multiplayer - LAN (ethernet switches at LAN parties) and Online (port forwarding, ZeroTier, Wireguard) multiplayer
- Custom score handling made by the server (we don't want to use the game's score handler) - Custom score handling made by the server (we don't want to use the game's score handler)
# Installation # Installation
@ -62,6 +62,13 @@ On Steam, simply put `WINEDLLOVERRIDES="winhttp.dll=n,b" %command%` in your laun
If it's still not working, try using `winecfg` for your prefix or `protontricks` and go to the libraries tab in Wine Configuration. Simply add `winhttp` as an override and check if it's correctly set as "native, then builtin" (or "n,b"). If it's still not working, try using `winecfg` for your prefix or `protontricks` and go to the libraries tab in Wine Configuration. Simply add `winhttp` as an override and check if it's correctly set as "native, then builtin" (or "n,b").
# Contact us
## Need help?
Ask us on [Matrix](https://matrix.to/#/#gbsu:gaboule.com).
## Feature requests or bug reports
Want a new feature? Found a bug? [Open an issue!](https://git.gaboule.com/Gaboule/GBSU/issues) Please note that a Gaboule account is currently required. This will change once Forgejo supports federation. Alternatively, feel free to reach out to us for general feedback or questions.
# Developer information # Developer information
- The mod is made for BepInEx 5 - The mod is made for BepInEx 5
- The targeted Unity version is `2020.3.5f1` - The targeted Unity version is `2020.3.5f1`