Skip to content

Commit

Permalink
Fix CutSceneBeginNotify (#6)
Browse files Browse the repository at this point in the history
* Fix 114514

Fix ServerGlobalValueChangeNotify

* Delete excess files

* 修复过场动画

Fix CutSceneBeginNotify

* Update ScriptLib.java
  • Loading branch information
Ylsaoe authored May 3, 2024
1 parent a668778 commit 7e3785a
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 52 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main/java/emu/grasscutter/data/ResourceLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ private static void loadQuests() {

try {
val questEncryptionMap = GameData.getMainQuestEncryptionMap();
var path = "QuestEncryptionKeys.json";
var path = "Server/QuestEncryptionKeys.json";
try {
JsonUtils.loadToList(getResourcePath(path), QuestEncryptionKey.class)
.forEach(key -> questEncryptionMap.put(key.getMainQuestId(), key));
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/emu/grasscutter/net/packet/PacketOpcodes.java
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,6 @@ public final class PacketOpcodes {
public static final int LHNDPKAGMDE = 26691;
public static final int PGHAEAPFAOC = 24797;
public static final int PDFKFEDNBHI = 1839;
public static final int KHBDFFFPFCB = 6864;
public static final int HPIHCDJCHIK = 4774;
public static final int FCMLONODIOP = 27769;
public static final int KKBLELBHAFE = 28846;
Expand Down Expand Up @@ -3251,7 +3250,7 @@ public final class PacketOpcodes {
public static final int CustomDungeonOfficialNotify = 1;
public static final int CustomDungeonRecoverNotify = 1;
public static final int CustomDungeonUpdateNotify = 1;
public static final int CutSceneBeginNotify = 1;
public static final int CutSceneBeginNotify = 6864;
public static final int CutSceneEndNotify = 1;
public static final int CutSceneFinishNotify = 1;
public static final int DAILBGKEPIG = 1;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/emu/grasscutter/scripts/ScriptLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ public int SetBlossomScheduleStateByGroupId(int groupId, int scene) {
// TODO: SetDarkPressureLevel

public int SetEntityServerGlobalValueByConfigId(int cfgId, String sgvName, int value) {
logger.info("[LUA] Call SetEntityServerGlobalValueByConfigId with {}, {}, {}", cfgId, sgvName, value);
logger.debug("[LUA] Call SetEntityServerGlobalValueByConfigId with {}, {}, {}", cfgId, sgvName, value);
var scriptManager = this.getSceneScriptManager();
if (scriptManager == null) return 1;
var scene = scriptManager.getScene();
Expand All @@ -1373,7 +1373,7 @@ public int SetEntityServerGlobalValueByConfigId(int cfgId, String sgvName, int v
}

public int SetEntityServerGlobalValueByEntityId(int entityId, String sgvName, int value) {
logger.info("[LUA] Call SetEntityServerGlobalValueByEntityId with {}, {}, {}", entityId, sgvName, value);
logger.debug("[LUA] Call SetEntityServerGlobalValueByEntityId with {}, {}, {}", entityId, sgvName, value);
var scriptManager = this.getSceneScriptManager();
if (scriptManager == null) return 1;
var scene = scriptManager.getScene();
Expand Down

0 comments on commit 7e3785a

Please sign in to comment.