Compare commits
6 commits
6dd459582f
...
bdc26f2528
| Author | SHA1 | Date | |
|---|---|---|---|
| bdc26f2528 | |||
| 89fcf1ed7b | |||
| 5c6a96b800 | |||
| abe74e4ea5 | |||
| 4a5c665667 | |||
| 3258fcc4f5 |
6 changed files with 37 additions and 8 deletions
23
.vscode/settings.json
vendored
Normal file
23
.vscode/settings.json
vendored
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -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));
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue