-
Notifications
You must be signed in to change notification settings - Fork 102
Description
Describe the bug
CustomKeycard implementation in EXILED fails to process correctly during SCP-914 upgrades despite using identical OnUpgrading(UpgradingEventArgs ev) code as CustomItem Radio. Radio works as expected by spawning custom items on the output side, but CustomKeycard remains stuck in INTAKE with no processing, suggesting it's not recognized as a CustomItem.
To Reproduce
Steps to reproduce the behavior:
- Start server and load the target plugin
- Obtain both CustomItem Radio and CustomKeycard instances
- Place one of each into SCP-914's INTAKE chamber
- Set knob to OneToOne / Fine / VeryFine and activate
- Observe Radio successfully spawns new CustomItem on output side while CustomKeycard stays in INTAKE (no destruction, no spawning occurs)
Expected behavior
CustomKeycard should behave identically to Radio: OnUpgrading should fire, spawn the appropriate CustomItem at ev.OutputPosition based on KnobSetting, destroy the original item, and complete the upgrade process.
Server logs
(Pastebin of localadmin log file (or MA_log and SCP_log if using MultiAdmin) from the time the bug occurred)
EXILED Version ("latest" is not a version):
Latest version
Results of pluginmanager show command in console:
(Paste output of pluginmanager show command here)
Additional context
Both Radio (standard CustomItem) and CustomKeycard use this identical implementation:
protected override void OnUpgrading(UpgradingEventArgs ev)
{
if (ev.KnobSetting == Scp914KnobSetting.OneToOne)
{
CustomItem.TrySpawn(2012, ev.OutputPosition, out _);
}
else if (ev.KnobSetting == Scp914KnobSetting.Fine)
{
CustomItem.TrySpawn(2013, ev.OutputPosition, out _);
}
else if (ev.KnobSetting == Scp914KnobSetting.VeryFine)
{
CustomItem.TrySpawn(2014, ev.OutputPosition, out _);
}
ev.IsAllowed = false;
ev.Item.DestroySelf();
base.OnUpgrading(ev);
}
Video: https://www.youtube.com/watch?v=9twtk5jBrfs
- Radio-based CustomItem works perfectly with this code, spawning upgraded CustomItems via SCP-914
- Keycard-based CustomItem fails completely with identical code - OnUpgrading appears not to fire or CustomItem detection fails specifically for keycards
- Suspect base item type handling or keycard-specific logic prevents proper CustomItem recognition in SCP-914 upgrade pipeline
- Request confirmation that CustomKeycard properly hooks into SCP-914 events and shares identical CustomItem detection logic as standard items
I'm Japanese and using AI assistance to write this in English, so I apologize if any part is unclear or confusing. Please let me know if you need clarification on anything.