개인 자료란 (JE)

  서버 커뮤니티

Profile 밀크강 대표칭호 없음
Profile

질문하기 스크립트

스크립트 on load 이벤트에서 배열변수에 다량 저장시 치명적인 콘솔 에러

2024.01.14 조회 수 166 추천 수 0
이해도 중급자 
게임버전 (JE) 1.20.1 
게임버전 (BE) 관련없음 
스크립트 버전 2.7.3 
스크립트 애드온

latest.log 

options:

    @ : &f[&b강화&f]

on script load:

    delete {강화레이아웃::*}

    add 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 11 and 12 and 14 and 15 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 to {강화레이아웃::*}

    clear {enchantmenttypes::*}

    

    clear {enchantmaxis5::*}

    clear {enchantmaxis4::*}

    clear {enchantmaxis3::*}

    clear {enchantmaxis2::*}

    clear {enchantmaxis1::*}

    loop 26 times:

        set {enchantmenttypes::loop-time} to 0

    add sharpness to {enchantmenttypes::*}

    add smite to {enchantmenttypes::*}

    add bane of arthropods to {enchantmenttypes::*}

    add knockback to {enchantmenttypes::*}

    add fire aspect to {enchantmenttypes::*}

    add looting to {enchantmenttypes::*}

    add power to {enchantmenttypes::*}

    add punch to {enchantmenttypes::*}

    add flame to {enchantmenttypes::*}

    add infinity to {enchantmenttypes::*}

    add protection to {enchantmenttypes::*}

    add projectile protection to {enchantmenttypes::*}

    add blast protection to {enchantmenttypes::*}

    add fire protection to {enchantmenttypes::*}

    add feather falling to {enchantmenttypes::*}

    add respiration to {enchantmenttypes::*}

    add aqua affinity to {enchantmenttypes::*}

    add thorns to {enchantmenttypes::*}

    add depth strider to {enchantmenttypes::*}

    add efficiency to {enchantmenttypes::*}

    add silk touch to {enchantmenttypes::*}

    add unbreaking to {enchantmenttypes::*}

    add fortune to {enchantmenttypes::*}

    add luck of the sea to {enchantmenttypes::*}

    add lure to {enchantmenttypes::*}

    add frost walker to {enchantmenttypes::*}

    add mending to {enchantmenttypes::*}

    wait 1 tick

    add sharpness to {enchantmaxis5::*}

    add smite to {enchantmaxis5::*}

    add bane of arthropods to {enchantmaxis5::*}

    add knockback to {enchantmaxis2::*}

    add fire aspect to {enchantmaxis2::*}

    add looting to {enchantmaxis3::*}

    add power to {enchantmaxis5::*}

    add punch to {enchantmaxis2::*}

    add flame to {enchantmaxis1::*}

    add infinity to {enchantmaxis1::*}

    add feather falling to {enchantmaxis4::*}

    add protection to {enchantmaxis4::*}

    add protection to {enchantmaxis4::*}

    add projectile protection to {enchantmaxis4::*}

    add blast protection to {enchantmaxis4::*}

    add fire protection to {enchantmaxis4::*}

    add respiration to {enchantmaxis3::*}

    add aqua affinity to {enchantmaxis1::*}

    add thorns to {enchantmaxis3::*}

    add depth strider to {enchantmaxis3::*}

    add efficiency to {enchantmaxis5::*}

    add silk touch to {enchantmaxis1::*}

    add unbreaking to {enchantmaxis3::*}

    add fortune to {enchantmaxis3::*}

    add luck of the sea to {enchantmaxis3::*}

    add lure to {enchantmaxis3::*}

    add frost walker to {enchantmaxis2::*}

    add mending to {enchantmaxis1::*}


처럼 매우 많은 양의 정보를 on load 이벤트에서 저장하면

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! [Skript] Severe Error:

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! You're running outdated version of Skript! Please try updating it NOW; it might fix this.

[04:28:00 ERROR]: #!#! Run /sk update check to get a download link to latest Skript!

[04:28:00 ERROR]: #!#! You will be given instructions how to report this error if it persists after update.

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! Stack trace:

[04:28:00 ERROR]: #!#! java.io.NotSerializableException: ch.njol.skript.util.visual.VisualEffectType

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.yggdrasil.YggdrasilOutputStream.writeGenericObject(YggdrasilOutputStream.java:174)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.yggdrasil.YggdrasilOutputStream.writeObject(YggdrasilOutputStream.java:249)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.yggdrasil.YggdrasilOutputStream.writeGenericObject(YggdrasilOutputStream.java:199)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.yggdrasil.YggdrasilOutputStream.writeObject(YggdrasilOutputStream.java:249)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.registrations.Classes.serialize(Classes.java:748)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.variables.Variables.serialize(Variables.java:812)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.variables.Variables.serialize(Variables.java:793)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.variables.Variables.saveVariableChange(Variables.java:822)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.variables.Variables.setVariable(Variables.java:543)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.variables.Variables.setVariable(Variables.java:526)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.Variable.setIndex(Variable.java:504)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.Variable.change(Variable.java:620)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.effects.EffChange.execute(EffChange.java:280)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.Effect.run(Effect.java:50)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:62)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:90)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.Trigger.execute(Trigger.java:52)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.events.EvtScript.runTrigger(EvtScript.java:88)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.events.EvtScript.postLoad(EvtScript.java:61)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.ScriptLoader.lambda$loadScripts$9(ScriptLoader.java:589)

[04:28:00 ERROR]: #!#!     at java.base/java.util.ArrayList.removeIf(ArrayList.java:1672)

[04:28:00 ERROR]: #!#!     at java.base/java.util.ArrayList.removeIf(ArrayList.java:1660)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.ScriptLoader.lambda$loadScripts$10(ScriptLoader.java:581)

[04:28:00 ERROR]: #!#!     at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684)

[04:28:00 ERROR]: #!#!     at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662)

[04:28:00 ERROR]: #!#!     at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2168)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:511)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:457)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:190)

[04:28:00 ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)

[04:28:00 ERROR]: #!#!     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155)

[04:28:00 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchCommand(CraftServer.java:987)

[04:28:00 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_20_R1.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64)

[04:28:00 ERROR]: #!#!     at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265)

[04:28:00 ERROR]: #!#!     at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:324)

[04:28:00 ERROR]: #!#!     at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:308)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2354)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.network.PlayerConnection.lambda$handleChatCommand$21(PlayerConnection.java:2314)

[04:28:00 ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandler.b(IAsyncTaskHandler.java:59)

[04:28:00 ERROR]: #!#!     at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.TickTask.run(TickTask.java:18)

[04:28:00 ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153)

[04:28:00 ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1338)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197)

[04:28:00 ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:126)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.bg(MinecraftServer.java:1315)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1308)

[04:28:00 ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandler.c(IAsyncTaskHandler.java:136)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.p_(MinecraftServer.java:1286)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1174)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317)

[04:28:00 ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:833)

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! Version Information:

[04:28:00 ERROR]: #!#!   Skript: 2.7.3 (OUTDATED)

[04:28:00 ERROR]: #!#!     Flavor: skriptlang-github

[04:28:00 ERROR]: #!#!     Date: 15:29:36.833117400

[04:28:00 ERROR]: #!#!   Bukkit: 1.20.1-R0.1-SNAPSHOT

[04:28:00 ERROR]: #!#!   Minecraft: 1.20.1

[04:28:00 ERROR]: #!#!   Java: 17 (OpenJDK 64-Bit Server VM 17+35-2724)

[04:28:00 ERROR]: #!#!   OS: Windows 10 amd64 10.0

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! Server platform: Paper

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! Current node: on script load: (onload.sk, line 4)

[04:28:00 ERROR]: #!#! Current item: null

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! Thread: Server thread

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! Language: english

[04:28:00 ERROR]: #!#! Link parse mode: DISABLED

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! End of Error.

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! [Skript] Severe Error:

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! You're running outdated version of Skript! Please try updating it NOW; it might fix this.

[04:28:00 ERROR]: #!#! Run /sk update check to get a download link to latest Skript!

[04:28:00 ERROR]: #!#! You will be given instructions how to report this error if it persists after update.

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! Stack trace:

[04:28:00 ERROR]: #!#! java.io.NotSerializableException: ch.njol.skript.util.visual.VisualEffectType

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.yggdrasil.YggdrasilOutputStream.writeGenericObject(YggdrasilOutputStream.java:174)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.yggdrasil.YggdrasilOutputStream.writeObject(YggdrasilOutputStream.java:249)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.yggdrasil.YggdrasilOutputStream.writeGenericObject(YggdrasilOutputStream.java:199)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.yggdrasil.YggdrasilOutputStream.writeObject(YggdrasilOutputStream.java:249)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.registrations.Classes.serialize(Classes.java:748)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.variables.Variables.serialize(Variables.java:812)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.variables.Variables.serialize(Variables.java:793)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.variables.Variables.saveVariableChange(Variables.java:822)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.variables.Variables.setVariable(Variables.java:543)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.variables.Variables.setVariable(Variables.java:526)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.Variable.setIndex(Variable.java:504)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.Variable.change(Variable.java:620)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.effects.EffChange.execute(EffChange.java:280)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.Effect.run(Effect.java:50)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:62)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:90)

[04:28:00 ERROR]: #!#!     at Skript.jar//ch.njol.skript.effects.Delay.lambda$walk$0(Delay.java:107)

[04:28:00 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101)

[04:28:00 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1479)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:446)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1393)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1170)

[04:28:00 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317)

[04:28:00 ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:833)

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! Version Information:

[04:28:00 ERROR]: #!#!   Skript: 2.7.3 (OUTDATED)

[04:28:00 ERROR]: #!#!     Flavor: skriptlang-github

[04:28:00 ERROR]: #!#!     Date: 15:29:36.833117400

[04:28:00 ERROR]: #!#!   Bukkit: 1.20.1-R0.1-SNAPSHOT

[04:28:00 ERROR]: #!#!   Minecraft: 1.20.1

[04:28:00 ERROR]: #!#!   Java: 17 (OpenJDK 64-Bit Server VM 17+35-2724)

[04:28:00 ERROR]: #!#!   OS: Windows 10 amd64 10.0

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! Server platform: Paper

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! Current node: null

[04:28:00 ERROR]: #!#! Current item: null

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! Thread: Server thread

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! Language: english

[04:28:00 ERROR]: #!#! Link parse mode: DISABLED

[04:28:00 ERROR]: #!#!

[04:28:00 ERROR]: #!#! End of Error.

[04:28:00 ERROR]: #!#!
라는 경고메시지가 출력됩니다.
어느것이 문제일까요?
제시된 스크립트 외에 다른 내용은 없고 저게 스크립트 전체입니다.

2개의 댓글

밀크강
2024.01.14

확인해보니 on load 이벤트 말고 그냥 한번에 많은양의 데이터를 저장시(저 코드를 실행시) 오류가 납니다

밀크강
2024.01.14

엄... 그냥 제가 좀더 실행해 봤는데 flame 관련한 2개 줄이 오류의 원인인거 같습니다 해당 코드를 제외하니 멀쩡하더군요

add flame to {enchantmaxis1::*}

add flame to {enchantmenttypes::*}

<< 이거요

 

왜이럴까요?