You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix for NRE on Essentials unload & Removed bad client join tweaks code (#191)
* Fixed essentials NRE on unloading when server didnt fully load.
* Removed client join tweaks, and added stuff to remove junk sandbox data to target client
Co-authored-by: Bob Da Ross <52760019+BobDaRoss@users.noreply.github.com>
[Display(Name="Pack Respawn",GroupName="Client Join Tweaks",Order=1,Description="Packs ships which the client could respawn at into the initial world send. Will significantly decrease time waiting for ships to sync from the respawn menu, at the cost of slightly increased server load during client join.")]
103
-
publicboolPackRespawn
104
-
{
105
-
get=>_packRespawn;
106
-
set=>SetValue(ref_packRespawn,value);
107
-
}
108
-
109
-
privateint_maxRespawnSize;
110
-
[Display(Name="Max Packed Respawn Size",GroupName="Client Join Tweaks",Order=2,Description="Maximum size, in total block count, of ships that can be packed into the world send. Useful if your players often have very large grids. Will slightly lower performance impact of Pack Respawn option, by forcing clients to wait for very large grids the old way.")]
111
-
publicintMaxPackedRespawnSize
112
-
{
113
-
get=>_maxRespawnSize;
114
-
set=>SetValue(ref_maxRespawnSize,value);
115
-
}
116
-
117
-
privatestring_loadingText;
118
-
[Display(Name="Loading Text",GroupName="Client Join Tweaks",Order=3,Description="Text displayed on the loading screen while the client is joining.")]
[Display(Name="Enable",GroupName="Client Join Tweaks",Order=0,Description="Enables the client join tweak system. None of the options in this section will work if this is unchecked.")]
128
-
publicboolEnableClientTweaks
129
-
{
130
-
get=>_enableClientTweaks;
131
-
set=>SetValue(ref_enableClientTweaks,value);
132
-
}
133
-
134
-
privatebool_enableToolbarOverride;
135
-
[Display(Name="Override Default Toolbar",GroupName="Client Join Tweaks",Order=4,Description="Allows you to set a default toolbar for new players on the server. You can set the toolbar ingame with the !admin set toolbar command. This will make your current toolbar the new default.")]
[Display(Name="Compression Level",GroupName="Client Join Tweaks",Order=5,Description="Sets the level of compression applied to client data. Higher compression takes more CPU, but less network bandwidth. Recommended to leave this at 'Optimal'")]
144
-
publicCompressionLevelCompressionLevel
145
-
{
146
-
get=>_compression;
147
-
set=>SetValue(ref_compression,value);
148
-
}
149
-
150
-
privatebool_asyncJoin;
151
-
[Display(Name="Async Join",GroupName="Client Join Tweaks",Order=6,Description="Speeds up client joining by moving almost all of the logic out of the game thread. Disable this if you get 'CollectionModifiedException'")]
152
-
publicboolAsyncJoin
153
-
{
154
-
get=>_asyncJoin;
155
-
set=>SetValue(ref_asyncJoin,value);
156
-
}
157
-
158
-
privatebool_packPlanets;
159
-
[Display(Name="Pack Planets",GroupName="Client Join Tweaks",Order=7,Description="Packs planet data into initial world download. Can speed up spawning in some cases. CAUTION: Planet data is very large! You should use Compression Level 'Optimal' and the Async Join option!")]
160
-
publicboolPackPlanets
161
-
{
162
-
get=>_packPlanets;
163
-
set=>SetValue(ref_packPlanets,value);
164
-
}
165
-
166
101
privatebool_cutGameTags;
167
102
[Display(Name="Cut Game Tags",GroupName="Client Join Tweaks",Order=8,Description="Cuts mods and blocks limits from matchmaking server info. Prevents from 'error downloading session settings'.")]
0 commit comments