FTBTeam / FTB-Modpack-Issues

Any and all FTB Modpack issues are here! Please create a new issue, add to an existing one or maybe even suggest a feature in the discussions
https://feed-the-beast.com/modpack
43 stars 13 forks source link

[Bug]: kubejs's errors in StoneBlock3 #1729

Closed KuroPeach closed 1 year ago

KuroPeach commented 2 years ago

Modpack

FTB StoneBlock3

Modpack version

1.1.0

Log Files

[13:06:18] [ERR ] Error occurred while handling scheduled event callback: Wrapped java.lang.NullPointerException: Cannot invoke "dev.latvian.mods.rhino.SharedContextData.getExtraProperty(String)" because "cx.sharedContextData" is null (server_scripts:_core/inworldevent/utils.js#36) [17:17:44] [ERR ] Error occurred while handling scheduled event callback: Wrapped java.lang.NullPointerException: Cannot invoke "dev.latvian.mods.rhino.SharedContextData.getExtraProperty(String)" because "cx.sharedContextData" is null (server_scripts:_core/inworldevent/utils.js#36)

Describe the bug

kubejs's errors Appears when the player joins the server again. Also, the js that strengthens dungeon monsters does not take effect(kubejs/server_scripts/_core/harderdungeons.js), but when the champions-ranks.toml is modified, it will take effect, but it has to be modified every time the server is started.

Steps to reproduce

  1. joins the server
  2. leave the server
  3. joins the server again, Sometimes it will appear, but it will be recorded in the diary when the server starts.

Expected behaviour

don't be rude please

Screenshots

No response

Additional information

No response

KuroPeach commented 2 years ago

I hollowed out the dungeon, and I can observe the moment when the elite monsters are refreshed and then disappeared. The end of this script may be cancelling the generation of elites, not the original monsters image

Sunekaer commented 2 years ago

Hmm something seems to not have started correctly, does this still happen after a server restart?

KuroPeach commented 2 years ago

yep, it usually happens when the player login the server again

Sunekaer commented 2 years ago

full log?

KuroPeach commented 2 years ago

This is the record after I use reload. You can see the error at the end, but there is no error in the game chat bar. server.txt latest.log里还没有触发,我在11.02日的记录里找到了,line1629 2022-11-02-2.log

Sunekaer commented 2 years ago

I can see you have modified the pack, please test if this happens with the full default version of the pack.

ukmcplyr commented 2 years ago

FWIW I'm also seeing this on an unmodified 1.0.2 server.

KuroPeach commented 2 years ago

This can't be done because the server has been running for a long time, and we just replaced rei with jei and added the rei server version, which shouldn't be a problem, And the above UKMCPLYR has not been modified and this problem has also occurred. : )

KuroPeach commented 2 years ago

I guess the line 39 40, block should not be abbreviated as b image

Xplodin commented 2 years ago

just got this error randomly with 1.2.0

Saereth commented 2 years ago

I hollowed out the dungeon, and I can observe the moment when the elite monsters are refreshed and then disappeared. The end of this script may be cancelling the generation of elites, not the original monsters image

this script first rolls a d100, if it rolls higher than the chance for the spawning entity to become a champion, it returns and spawning happens normally. If the makes the check, it makes a champion mob and then cancels the original spawn event

This is not even anywhere remotely where the error is pointing to either (server_scripts:_core/inworldevent/utils.js#36), did you have some other error log pointing to this code? @KuroPeach

KuroPeach commented 2 years ago

I hollowed out the dungeon, and I can observe the moment when the elite monsters are refreshed and then disappeared. The end of this script may be cancelling the generation of elites, not the original monsters image

this script first rolls a d100, if it rolls higher than the chance for the spawning entity to become a champion, it returns and spawning happens normally. If the makes the check, it makes a champion mob and then cancels the original spawn event

This is not even anywhere remotely where the error is pointing to either (server_scripts:_core/inworldevent/utils.js#36), did you have some other error log pointing to this code? @KuroPeach

These are two questions, unrelated. For some reason, the elite monster disappears after being refreshed, which makes them very rare. According to the script, there should be 15%~25%, but they are basically invisible. image But after I give them a random chance of 1%, the 15%~25% set by the script can take effect.

KuroPeach commented 2 years ago

And the slimes and its various variants that need to be blacklisted, they will split large into medium, and then medium has a chance to split into large (elite),endless :)@Saereth

Raidobw2 commented 2 years ago

Sunekaer ^ the way the scripts spawn them via /summon makes this a problem for slimes & magma cubes.

KuroPeach I have not been able to reproduce this in a test instance... For me, monsters inside the boundary of the stone dungeon for example, will convert 15% of the time into champions (blue particles). Mobs from spawners also work for this.

Does this happen in singleplayer as well, with a fresh non modified instance from the FTB App?

Sunekaer commented 2 years ago

Lat is working on fixing the sharedContextData issue, until thats fixed we cant see if there is a real issue with the boss script which there shouldnt be

Sunekaer commented 1 year ago

Closing issue as mod hasn't been updated to fix this, we will add this issue to a list of known mod issues