Common-Utils
Common-Utils copied to clipboard
OnScp914UpgradingPlayer error for Teleport
Describe the bug Basically going in 914 with setting set on Rough gives errors in console and doesn't teleport the player as intended in the config file.
[2023-05-14 23:58:13.299 +02:00] [ERROR] [Exiled.API] Method "OnScp914UpgradingPlayer" of the class "Common_Utilities.EventHandlers.MapHandlers" caused an exception when handling the event "Exiled.Events.Events+CustomEventHandler1[[Exiled.Events.EventArgs.Scp914.UpgradingPlayerEventArgs, Exiled.Events, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null]]"
[2023-05-14 23:58:13.311 +02:00] [ERROR] [Exiled.Events] System.NullReferenceException: Object reference not set to an instance of an object
at Exiled.API.Features.Player.EnableEffect (CustomPlayerEffects.StatusEffectBase statusEffect, System.Single duration, System.Boolean addDurationIfActive) [0x00013] in <2aa530e681df41e6a595d61a623d7a14>:0
at Exiled.API.Features.Player.EnableEffect (Exiled.API.Enums.EffectType type, System.Single duration, System.Boolean addDurationIfActive) [0x0000b] in <2aa530e681df41e6a595d61a623d7a14>:0
at Common_Utilities.EventHandlers.MapHandlers.OnScp914UpgradingPlayer (Exiled.Events.EventArgs.Scp914.UpgradingPlayerEventArgs ev) [0x00391] in <483b89990c7c42eda48f2e46de5474ce>:0
at Exiled.Events.Extensions.Event.InvokeSafely[T] (Exiled.Events.Events+CustomEventHandler1[TInterface] ev, T arg) [0x00021] in <b38b71f059ac420c8cc4d863c480a890>:0
[2023-05-14 23:58:13.324 +02:00] [ERROR] [Exiled.API] Method "OnScp914UpgradingPlayer" of the class "Common_Utilities.EventHandlers.MapHandlers" caused an exception when handling the event "Exiled.Events.Events+CustomEventHandler1[[Exiled.Events.EventArgs.Scp914.UpgradingPlayerEventArgs, Exiled.Events, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null]]"
[2023-05-14 23:58:13.336 +02:00] [ERROR] [Exiled.Events] System.NullReferenceException: Object reference not set to an instance of an object
at Exiled.API.Features.Player.EnableEffect (CustomPlayerEffects.StatusEffectBase statusEffect, System.Single duration, System.Boolean addDurationIfActive) [0x00013] in <2aa530e681df41e6a595d61a623d7a14>:0
at Exiled.API.Features.Player.EnableEffect (Exiled.API.Enums.EffectType type, System.Single duration, System.Boolean addDurationIfActive) [0x0000b] in <2aa530e681df41e6a595d61a623d7a14>:0
at Common_Utilities.EventHandlers.MapHandlers.OnScp914UpgradingPlayer (Exiled.Events.EventArgs.Scp914.UpgradingPlayerEventArgs ev) [0x00391] in <483b89990c7c42eda48f2e46de5474ce>:0
at Exiled.Events.Extensions.Event.InvokeSafely[T] (Exiled.Events.Events+CustomEventHandler1[TInterface] ev, T arg) [0x00021] in <b38b71f059ac420c8cc4d863c480a890>:0
To Reproduce Steps to reproduce the behavior:
- Go inside 914
- Set setting to Rough
- Check console for error messages
Expected behavior Player that enters 914 on Rough to be teleported.
Server logs https://pastebin.com/pSnzSErZ
Copy of current CU config section
# The list of custom 914 recipies for roles. Original is the role to be changed, New is the new role to assign, Chance is the % chance of the upgrade occuring.
scp914_class_changes:
Rough:
- original: ClassD
new: Spectator
chance: 25
keep_inventory: true
# The list of 914 teleport settings. Note that if you set "zone" to anything other than Unspecified, it will always select a random room from that zone, instead of the room type defined.
scp914_teleport_chances:
Rough:
- zone: Unspecified
room: LczClassDSpawn
offset:
x: 0
y: 0
z: 0
chance: 100
damage: 50
# A dictionary of random effects to apply to players when going through 914 on certain settings.
scp914_effect_chances:
Rough:
- effect: AmnesiaVision
chance: 100
duration: 10
EXILED Version ("latest" is not a version): 7.0.0-rc.2
Results of show plugins command in console:
[2023-05-15 00:26:04.014 +02:00] >>> show plugins
[2023-05-15 00:26:05.055 +02:00] Total number of plugins: 41
Enabled plugins: 38
Disabled plugins: 3
Exiled.Events:
- Author: Exiled Team
- Version: 7.0.0.0
- Required Exiled Version: 7.0.0.0
- Prefix: exiled_events
- Priority: Highest
ScriptedEvents:
- Author: Thunder + Johnodon
- Version: 2.2.0
- Required Exiled Version: 6.0.0
- Prefix: scripted_events
- Priority: High
Scanner:
- Author: Thunder
- Version: 1.2.2
- Required Exiled Version: 6.0.0
- Prefix: scanner
- Priority: High
Scp008:
- Author: Caty Foxt
- Version: 1.0.0.0
- Required Exiled Version: 7.0.0.0
- Prefix: scp008
- Priority: High
TeslaGateDisabled:
- Author: Inzi
- Version: 1.0.0
- Required Exiled Version: 6.0.0
- Prefix: TeslaGateDisabled
- Priority: High
Exiled.CustomItems:
- Author: Exiled Team
- Version: 7.0.0.0
- Required Exiled Version: 7.0.0.0
- Prefix: exiled_custom_items
- Priority: Medium
CedMod:
- Author: ced777ric#8321
- Version: 3.4.7
- Required Exiled Version: 6.0.0
- Prefix: cm
- Priority: Medium
Scp035:
- Author: Joker119
- Version: 5.0.1.0
- Required Exiled Version: 6.0.0
- Prefix: Scp035
- Priority: Medium
Badges:
- Disabled
- Author: VersLugia
- Version: 1.0.0.0
- Required Exiled Version: 7.0.0.0
- Prefix: badges
- Priority: Medium
CISpies:
- Author: frankos6
- Version: 1.3.1.0
- Required Exiled Version: 7.0.0.0
- Prefix: c_i_spies
- Priority: Medium
RainbowTags:
- Author: xNexusACS (Ported From Build)
- Version: 4.1.0
- Required Exiled Version: 7.0.0
- Prefix: RainbowTags
- Priority: Medium
SpectatorList:
- Author: TTypiarz and Jesus-QC
- Version: 2.0.0
- Required Exiled Version: 6.0.0
- Prefix: spectator_list
- Priority: Medium
ScpDeconnexion:
- Author: sky
- Version: 1.0.0
- Required Exiled Version: 5.3.0
- Prefix: AntiScpD
- Priority: Medium
ScpSwap:
- Author: DentyTxR
- Version: 1.1.3
- Required Exiled Version: 6.0.0
- Prefix: ScpSwap
- Priority: Medium
Funny Pills:
- Author: Jonathan Moore
- Version: 1.0.0
- Required Exiled Version: 7.0.0.0
- Prefix: funny_pills
- Priority: Medium
DiscordIntegration:
- Author: DiscordIntegration
- Version: 7.0.1.0
- Required Exiled Version: 6.0.0
- Prefix: discord_integration
- Priority: Medium
BadgeGiver:
- Author: NOTIF#!506
- Version: 1.0.0.0
- Required Exiled Version: 7.0.0.0
- Prefix: badge_giver
- Priority: Medium
Serpents Hand:
- Author: Caty Foxt
- Version: 1.0.0.0
- Required Exiled Version: 7.0.0.0
- Prefix: serpents_hand
- Priority: Medium
Exiled.CreditTags:
- Author: Babyboucher20 & iRebbok & Exiled Team
- Version: 7.0.0.0
- Required Exiled Version: 7.0.0.0
- Prefix: exiled_credits
- Priority: Medium
ScpSurfaceRework:
- Author: Miki_hero
- Version: 1.0.3
- Required Exiled Version: 6.0.0.0
- Prefix: scp_surface_rework
- Priority: Medium
KillBroadcast:
- Author: NotIntense
- Version: 1.0.0
- Required Exiled Version: 7.0.0
- Prefix: Kill Broadcast
- Priority: Medium
Exiled.Permissions:
- Author: Exiled Team
- Version: 7.0.0.0
- Required Exiled Version: 7.0.0.0
- Prefix: exiled_permissions
- Priority: Medium
ScpChatExtensions:
- Author: warden161 (original by Jesus-QC)
- Version: 1.1.0
- Required Exiled Version: 7.0.0
- Prefix: scp_chat_extensions
- Priority: Medium
UIURescueSquad:
- Author: JesusQC, Michal78900, maintained by Marco15453
- Version: 4.1.2
- Required Exiled Version: 6.1.0
- Prefix: UIURescueSquad
- Priority: Medium
Admin Tools:
- Author: Originally by Joker119. Modifications by KoukoCocoa & Thomasjosif
- Version: 6.0.0.0
- Required Exiled Version: 6.0.0
- Prefix: AT
- Priority: Medium
PinkCandy:
- Author: frankos6
- Version: 1.2.0
- Required Exiled Version: 6.0.0.0
- Prefix: pink_candy
- Priority: Medium
Exiled.Updater:
- Disabled
- Author: Exiled.Updater
- Version: 3.1.2.0
- Required Exiled Version: 7.0.0.0
- Prefix: exiled_updater
- Priority: Medium
Common Utilities:
- Author: Joker119
- Version: 7.0.3.0
- Required Exiled Version: 6.0.0
- Prefix: CommonUtilities
- Priority: Medium
RealisticSizes:
- Disabled
- Author: JesusQC-Remastered-NOTIF#1506
- Version: 2.0.0.0
- Required Exiled Version: 7.0.0.0
- Prefix: RealisticSizes
- Priority: Medium
Exiled.CustomRoles:
- Author: Exiled Team
- Version: 7.0.0.0
- Required Exiled Version: 7.0.0.0
- Prefix: exiled_custom_roles
- Priority: Medium
HitMarkers:
- Author: Denty
- Version: 1.1.0
- Required Exiled Version: 6.0.0
- Prefix: HitMarkers
- Priority: Medium
SCP1162:
- Author: xRoier
- Version: 6.0.0
- Required Exiled Version: 6.0.0
- Prefix: scp1162
- Priority: Medium
JoinMidRound:
- Author: frankos6
- Version: 1.3.2.0
- Required Exiled Version: 7.0.0.0
- Prefix: join_mid_round
- Priority: Medium
Mvp:
- Author: Monald
- Version: 1.0.0.0
- Required Exiled Version: 6.1.0
- Prefix: mvp
- Priority: Medium
XPSystem:
- Author: mike ock#4861
- Version: 1.2.1
- Required Exiled Version: 5.0.0
- Prefix: x_p_system
- Priority: Medium
ScpsInfoDisplay:
- Author: bladuk.
- Version: 2.0.1
- Required Exiled Version: 6.0.0
- Prefix: scpsinfodisplay
- Priority: Medium
NotifySCP096Targets:
- Author: frankos6
- Version: 1.2.0
- Required Exiled Version: 6.0.0.0
- Prefix: notify_s_c_p096_targets
- Priority: Medium
MapEditorReborn:
- Author: Michal78900
- Version: 3.0.0
- Required Exiled Version: 7.0.0
- Prefix: map_editor_reborn
- Priority: Medium
RemoteKeycard:
- Author: Beryl (Maintained by Parkeymon)
- Version: 3.1.5
- Required Exiled Version: 6.0.0.18
- Prefix: remotekeycard
- Priority: Medium
BetterCoinflips:
- Author: Miki_hero
- Version: 3.0.0
- Required Exiled Version: 7.0.0.0
- Prefix: better_cf
- Priority: Medium
RespawnTimer:
- Author: Michal78900
- Version: 4.0.1
- Required Exiled Version: 7.0.0
- Prefix: respawn_timer
- Priority: Lowest
Additional context N/A