Mikusch / ChaosModTF2

Chaos Mod for Team Fortress 2, powered by SourceMod and VScript
GNU General Public License v3.0
15 stars 5 forks source link

Plugin fails to initialize effects using vscript functions on server start #17

Closed Mikusch closed 10 months ago

Mikusch commented 10 months ago

L 12/17/2023 - 12:03:34: [SM] Exception reported: Invalid Handle 0 (error: 4) L 12/17/2023 - 12:03:34: [SM] Blaming: vscript.smx L 12/17/2023 - 12:03:34: [SM] Call stack trace: L 12/17/2023 - 12:03:34: [SM] [0] ArrayList.Length.get L 12/17/2023 - 12:03:34: [SM] [1] Line 107, vscript/list.sp::List_GetClass L 12/17/2023 - 12:03:34: [SM] [2] Line 811, vscript.sp::Native_GetClassFunction L 12/17/2023 - 12:03:34: [SM] [4] VScript_GetClassFunction L 12/17/2023 - 12:03:34: [SM] [5] Line 18, chaos\effects\randomizeweaponorder.sp::RandomizeWeaponOrder_Initialize L 12/17/2023 - 12:03:34: [SM] [7] Call_Finish L 12/17/2023 - 12:03:34: [SM] [8] Line 185, chaos\data.sp::Data_Initialize L 12/17/2023 - 12:03:34: [SM] [9] Line 133, C:\Development\repos\Mikusch\ChaosModTF2\addons\sourcemod\scripting\chaos.sp::OnPluginStart L 12/17/2023 - 12:03:34: [chaos.smx] Failed to add effect 'Randomize Weapon Order' (147) to effects list

Presumably because the VM is not ready at this point yet.