A server software implementation, ineroperable with a certain anime game client. The code in this repository is fully custom made for edyoucational purposes and future preservation, no copyrighted code is allowed in this repository.
This is because ScriptLibHandler.RefreshGroup isn't sending a EVENT_GROUP_REFRESH.
I reccomend putting a context.getSceneScriptManager().callEvent(new ScriptArgs(groupId, EventType.EVENT_GROUP_REFRESH)); at the end of ScriptLibHandler.RefreshGroup. If you put it deeper into SceneScriptManager.refreshGroup, it'll be triggered by other things like loading the group.
This is what it looks like after adding that code:
This is between groups 201052009 and 201052010 in Scene 1052.
group 201052009 calls a refresh for group 201052010
group 201052010 does it's thing when it sees an EVENT_GROUP_REFRESH
There's other things wrong with this puzzle like it being overly sensitive to failure and failure making it softlock, but let's handle refresh first.
Which branch did you use?
multi_proto
Grasscutter version: 1.4.4-dev-4e8f709e
Lua: JNLua
Describe the bug In scene 1052 (/dungeon 1103) these monuments do not unlock when you interact with the worktop:
https://github.com/Anime-Game-Servers/Grasscutter-Quests/assets/1877986/df8d5981-6ba9-4495-bb7c-0494f012f6f6
This is because ScriptLibHandler.RefreshGroup isn't sending a EVENT_GROUP_REFRESH.
I reccomend putting a
context.getSceneScriptManager().callEvent(new ScriptArgs(groupId, EventType.EVENT_GROUP_REFRESH));
at the end of ScriptLibHandler.RefreshGroup. If you put it deeper into SceneScriptManager.refreshGroup, it'll be triggered by other things like loading the group.This is what it looks like after adding that code:
https://github.com/Anime-Game-Servers/Grasscutter-Quests/assets/1877986/d66fbc80-707c-4cd2-867d-76bcb63bdca0
This is between groups 201052009 and 201052010 in Scene 1052. group 201052009 calls a refresh for group 201052010 group 201052010 does it's thing when it sees an EVENT_GROUP_REFRESH
There's other things wrong with this puzzle like it being overly sensitive to failure and failure making it softlock, but let's handle refresh first.
Which branch did you use? multi_proto Grasscutter version: 1.4.4-dev-4e8f709e Lua: JNLua