joker-119 / CustomRoles

4 stars 4 forks source link

Config file ignored #23

Open Remi321 opened 2 years ago

Remi321 commented 2 years ago

Describe the bug I have fully disabled the medic class in every way possible but it still keeps spawning.

To Reproduce Steps to reproduce the behavior:

  1. edit config file to disable medic
  2. start your server
  3. wait for NTF respawn
  4. See that the medic class still spawned

Expected behavior Medic class should not be spawning

Server logs Nothing interesting to see here. Because it does not give me an error.

EXILED Version ("latest" is not a version): 5.2.1

Results of show plugins command in console: Exiled.Events:

Additional context Add any other context about the problem here. 66DEGuQIbw

Remi321 commented 2 years ago

Just saw this after making the github post:

[2022-05-16 18:06:26.384Z] [ERROR] [Exiled.Events] Method "OnGeneratorActivated" of the class "DiscordIntegration.Events.MapHandler" caused an exception when handling the event "Exiled.Events.Events+CustomEventHandler1[[Exiled.Events.EventArgs.GeneratorActivatedEventArgs, Exiled.Events, Version=5.2.1.0, Culture=neutral, PublicKeyToken=null]]" [2022-05-16 18:06:26.396Z] [ERROR] [Exiled.Events] System.MissingMethodException: MapGeneration.Distributors.Scp079Generator Exiled.Events.EventArgs.GeneratorActivatedEventArgs.get_Generator() at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in <9577ac7a62ef43179789031239ba8798>:0 at DiscordIntegration.Events.MapHandler.OnGeneratorActivated (Exiled.Events.EventArgs.GeneratorActivatedEventArgs ev) [0x0001c] in <01af386df96d4fd79131ea482f9df7f7>:0 at Exiled.Events.Extensions.Event.InvokeSafely[T] (Exiled.Events.Events+CustomEventHandler1[TEventArgs] ev, T arg) [0x00024] in <32fb445e6d8b424c811af67d9fed00df>:0 [2022-05-16 18:07:00.765Z] [DEBUG] [CustomRoles] OnRespawningTeam: Spawning NTF Special [2022-05-16 18:07:00.777Z] [DEBUG] [CustomRoles] OnRespawningTeam: Spawning medic! [2022-05-16 18:08:24.497Z] [ERROR] [Exiled.Events] Method "OnGeneratorActivated" of the class "DiscordIntegration.Events.MapHandler" caused an exception when handling the event "Exiled.Events.Events+CustomEventHandler1[[Exiled.Events.EventArgs.GeneratorActivatedEventArgs, Exiled.Events, Version=5.2.1.0, Culture=neutral, PublicKeyToken=null]]" [2022-05-16 18:08:24.509Z] [ERROR] [Exiled.Events] System.MissingMethodException: MapGeneration.Distributors.Scp079Generator Exiled.Events.EventArgs.GeneratorActivatedEventArgs.get_Generator() at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in <9577ac7a62ef43179789031239ba8798>:0 at DiscordIntegration.Events.MapHandler.OnGeneratorActivated (Exiled.Events.EventArgs.GeneratorActivatedEventArgs ev) [0x0001c] in <01af386df96d4fd79131ea482f9df7f7>:0 at Exiled.Events.Extensions.Event.InvokeSafely[T] (Exiled.Events.Events+CustomEventHandler1[TEventArgs] ev, T arg) [0x00024] in <32fb445e6d8b424c811af67d9fed00df>:0 [2022-05-16 18:09:08.377Z] [ERROR] [Exiled.Events] Method "OnGeneratorActivated" of the class "DiscordIntegration.Events.MapHandler" caused an exception when handling the event "Exiled.Events.Events+CustomEventHandler1[[Exiled.Events.EventArgs.GeneratorActivatedEventArgs, Exiled.Events, Version=5.2.1.0, Culture=neutral, PublicKeyToken=null]]" [2022-05-16 18:09:08.388Z] [ERROR] [Exiled.Events] System.MissingMethodException: MapGeneration.Distributors.Scp079Generator Exiled.Events.EventArgs.GeneratorActivatedEventArgs.get_Generator() at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in <9577ac7a62ef43179789031239ba8798>:0 at DiscordIntegration.Events.MapHandler.OnGeneratorActivated (Exiled.Events.EventArgs.GeneratorActivatedEventArgs ev) [0x0001c] in <01af386df96d4fd79131ea482f9df7f7>:0 at Exiled.Events.Extensions.Event.InvokeSafely[T] (Exiled.Events.Events+CustomEventHandler1[TEventArgs] ev, T arg) [0x00024] in <32fb445e6d8b424c811af67d9fed00df>:0 [2022-05-16 18:09:08.400Z] [ERROR] [Exiled.Events] Method "OnGeneratorActivated" of the class "DiscordIntegration.Events.MapHandler" caused an exception when handling the event "Exiled.Events.Events+CustomEventHandler1[[Exiled.Events.EventArgs.GeneratorActivatedEventArgs, Exiled.Events, Version=5.2.1.0, Culture=neutral, PublicKeyToken=null]]" [2022-05-16 18:09:08.412Z] [ERROR] [Exiled.Events] System.MissingMethodException: MapGeneration.Distributors.Scp079Generator Exiled.Events.EventArgs.GeneratorActivatedEventArgs.get_Generator() at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in <9577ac7a62ef43179789031239ba8798>:0 at DiscordIntegration.Events.MapHandler.OnGeneratorActivated (Exiled.Events.EventArgs.GeneratorActivatedEventArgs ev) [0x0001c] in <01af386df96d4fd79131ea482f9df7f7>:0 at Exiled.Events.Extensions.Event.InvokeSafely[T] (Exiled.Events.Events+CustomEventHandler1[TEventArgs] ev, T arg) [0x00024] in <32fb445e6d8b424c811af67d9fed00df>:0 [2022-05-16 18:09:08.425Z] [ERROR] [Exiled.Events] Method "OnGeneratorActivated" of the class "DiscordIntegration.Events.MapHandler" caused an exception when handling the event "Exiled.Events.Events+CustomEventHandler1[[Exiled.Events.EventArgs.GeneratorActivatedEventArgs, Exiled.Events, Version=5.2.1.0, Culture=neutral, PublicKeyToken=null]]" [2022-05-16 18:09:08.437Z] [ERROR] [Exiled.Events] System.MissingMethodException: MapGeneration.Distributors.Scp079Generator Exiled.Events.EventArgs.GeneratorActivatedEventArgs.get_Generator() at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in <9577ac7a62ef43179789031239ba8798>:0 at DiscordIntegration.Events.MapHandler.OnGeneratorActivated (Exiled.Events.EventArgs.GeneratorActivatedEventArgs ev) [0x0001c] in <01af386df96d4fd79131ea482f9df7f7>:0 at Exiled.Events.Extensions.Event.InvokeSafely[T] (Exiled.Events.Events+CustomEventHandler1[TEventArgs] ev, T arg) [0x00024] in <32fb445e6d8b424c811af67d9fed00df>:0

joker-119 commented 2 years ago

These errors are not related to custom roles. Update your DI plugin.

I'll look into the config issue, though typically when the config file changes aren't respected by a plugin, it means you broke the config file and are ignoring the giant block of error text during server startup.

DoctorNicko commented 2 years ago

I'm having the same issue however all I have changed in the config file are the cooldowns for abilities, but the plugin does not take this into effect.