DanielWillett / LobbySpawnpoint

Spawn players at a configable point on their first join.
MIT License
1 stars 0 forks source link

Bug Reports #1

Open DanielWillett opened 3 years ago

DanielWillett commented 3 years ago

Put bug reports here if any idk seems pretty bug-free to me.

ForeverBluee commented 3 years ago

After the server is restarted for the first time after the plugin has already began logging into .dat:

[12:46:43 ERR][RocketMod] Failed to load LobbySpawnpoint, unloading now... :System.ArgumentException: Reading would over run buffer at System.IO.FileStream.Read (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x0007a] in <eae584ce26bc 40229c1b1aa476bfa589>:0 at LobbySpawnpoint.PlayerSaver.Read () [0x00038] in <56783711dc084468b003dd0abe415aa8>:0 at LobbySpawnpoint.LobbySpawnpoint.Load () [0x0003e] in <56783711dc084468b003dd0abe415aa8>:0 at Rocket.Core.Plugins.RocketPlugin.LoadPlugin () [0x00033] in :0 [12:46:43 INF][RocketMod] [unloading] LobbySpawnpoint

Issue would be fixed by wiping the config and .dat and then loading the plugin again

DanielWillett commented 3 years ago

After the server is restarted for the first time after the plugin has already began logging into .dat:

[12:46:43 ERR][RocketMod] Failed to load LobbySpawnpoint, unloading now... :System.ArgumentException: Reading would over run buffer at System.IO.FileStream.Read (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x0007a] in <eae584ce26bc 40229c1b1aa476bfa589>:0 at LobbySpawnpoint.PlayerSaver.Read () [0x00038] in <56783711dc084468b003dd0abe415aa8>:0 at LobbySpawnpoint.LobbySpawnpoint.Load () [0x0003e] in <56783711dc084468b003dd0abe415aa8>:0 at Rocket.Core.Plugins.RocketPlugin.LoadPlugin () [0x00033] in :0 [12:46:43 INF][RocketMod] [unloading] LobbySpawnpoint

Issue would be fixed by wiping the config and .dat and then loading the plugin again

I think it should be fixed now, no way to test it though: LobbySpawnpoint 1.1

newlogan commented 3 years ago

Plugin announces the usage of /lobbytp (and probably /lobbyset) to the entire server, rather than only to the player running the command.

DanielWillett commented 3 years ago

Plugin announces the usage of /lobbytp (and probably /lobbyset) to the entire server, rather than only to the player running the command.

Fixed: LobbySpawnpoint 1.2

ForeverBluee commented 3 years ago

With 1.2, online_players.dat fails to generate upon first load, and plugin drops this error:

[00:05:07 ERR][RocketMod] Failed to load LobbySpawnpoint, unloading now... :System.IO.FileNotFoundException: Could not f ind file "Servers\server\Rocket\Plugins\LobbySpawnpoint\online_players.dat" File name: 'Servers\server\Rocket\Plugins\LobbySpawnpoint\online_players.dat' at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.Fil eShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <eae584ce26 bc40229c1b1aa476bfa589>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.Fil eShare share) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,Syst em.IO.FileShare) at System.IO.File.OpenRead (System.String path) [0x00000] in :0 at System.IO.File.ReadAllBytes (System.String path) [0x00000] in :0 at LobbySpawnpoint.PlayerSaver.Read () [0x00001] in <6235dcea4e434408a5b5d5b6782b9995>:0 at LobbySpawnpoint.LobbySpawnpoint.Load () [0x0003e] in <6235dcea4e434408a5b5d5b6782b9995>:0 at Rocket.Core.Plugins.RocketPlugin.LoadPlugin () [0x00033] in :0 [00:05:07 INF][RocketMod] [unloading] LobbySpawnpoint [00:05:07 INF][RocketMod] LobbySpawnpoint >> LobbySpawnpoint Unloaded.

DanielWillett commented 3 years ago

With 1.2, online_players.dat fails to generate upon first load, and plugin drops this error:

[00:05:07 ERR][RocketMod] Failed to load LobbySpawnpoint, unloading now... :System.IO.FileNotFoundException: Could not f

ind file "Servers\server\Rocket\Plugins\LobbySpawnpoint\online_players.dat"

File name: 'Servers\server\Rocket\Plugins\LobbySpawnpoint\online_players.dat'

at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.Fil

eShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <eae584ce26

bc40229c1b1aa476bfa589>:0

at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.Fil

eShare share) [0x00000] in :0

at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,Syst

em.IO.FileShare)

at System.IO.File.OpenRead (System.String path) [0x00000] in :0

at System.IO.File.ReadAllBytes (System.String path) [0x00000] in :0

at LobbySpawnpoint.PlayerSaver.Read () [0x00001] in <6235dcea4e434408a5b5d5b6782b9995>:0

at LobbySpawnpoint.LobbySpawnpoint.Load () [0x0003e] in <6235dcea4e434408a5b5d5b6782b9995>:0

at Rocket.Core.Plugins.RocketPlugin.LoadPlugin () [0x00033] in :0

[00:05:07 INF][RocketMod]

[unloading] LobbySpawnpoint

[00:05:07 INF][RocketMod] LobbySpawnpoint >> LobbySpawnpoint Unloaded.

I'll fix it tonight but for now you can create an empty online_players.dat and it will work.

DanielWillett commented 3 years ago

With 1.2, online_players.dat fails to generate upon first load, and plugin drops this error:

[00:05:07 ERR][RocketMod] Failed to load LobbySpawnpoint, unloading now... :System.IO.FileNotFoundException: Could not f ind file "Servers\server\Rocket\Plugins\LobbySpawnpoint\online_players.dat" File name: 'Servers\server\Rocket\Plugins\LobbySpawnpoint\online_players.dat' at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.Fil eShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in :0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.Fil eShare share) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,Syst em.IO.FileShare) at System.IO.File.OpenRead (System.String path) [0x00000] in :0 at System.IO.File.ReadAllBytes (System.String path) [0x00000] in :0 at LobbySpawnpoint.PlayerSaver.Read () [0x00001] in <6235dcea4e434408a5b5d5b6782b9995>:0 at LobbySpawnpoint.LobbySpawnpoint.Load () [0x0003e] in <6235dcea4e434408a5b5d5b6782b9995>:0 at Rocket.Core.Plugins.RocketPlugin.LoadPlugin () [0x00033] in :0 [00:05:07 INF][RocketMod] [unloading] LobbySpawnpoint [00:05:07 INF][RocketMod] LobbySpawnpoint >> LobbySpawnpoint Unloaded.

Fixed: LobbySpawnpoint 1.3.

newlogan commented 3 years ago

Plugin still fails to load the online_players.dat, leading to the plugin not loading until it is wiped. (with version 1.3) 09:05:38 INF][RocketMod] Loading LobbySpawnpoint [09:05:38 INF][RocketMod] [loading] LobbySpawnpoint [09:05:38 INF][RocketMod] [registered] /lobbytp (LobbySpawnpoint.GoToLobbyCommand/lobbytp) [09:05:38 INF][RocketMod] [registered] /lobbyset (LobbySpawnpoint.LobbySetCommand/lobbyset) [09:05:38 ERR][RocketMod] Failed to load LobbySpawnpoint, unloading now... :System.ArgumentOutOfRangeException: Index wa s out of range. Must be non-negative and less than the size of the collection. Parameter name: startIndex at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource re source) [0x00029] in :0 at System.BitConverter.ToUInt64 (System.Byte[] value, System.Int32 startIndex) [0x00012] in <eae584ce26bc40229c1b1aa47 6bfa589>:0 at LobbySpawnpoint.PlayerSaver.Read () [0x00081] in <1d7d3809d58e46af90bdcbb9c83d5750>:0 at LobbySpawnpoint.LobbySpawnpoint.Load () [0x0003e] in <1d7d3809d58e46af90bdcbb9c83d5750>:0 at Rocket.Core.Plugins.RocketPlugin.LoadPlugin () [0x00033] in :0 [09:05:38 INF][RocketMod] [unloading] LobbySpawnpoint [09:05:38 INF][RocketMod] LobbySpawnpoint >> LobbySpawnpoint Unloaded.

rube200 commented 6 months ago

Missing OnPlayerConnected -=