1
0
mirror of synced 2024-11-23 22:10:59 +01:00

Add force unlock songs support to the rest of IIDX.

This commit is contained in:
Jennifer Taylor 2024-01-02 02:45:07 +00:00
parent 24be2041f2
commit d3413715f3
6 changed files with 186 additions and 60 deletions

View File

@ -176,6 +176,12 @@ class IIDXCannonBallers(IIDXCourse, IIDXBase):
"category": "game_config",
"setting": "omnimix_events_enabled",
},
{
"name": "Force Song Unlock",
"tip": "Force unlock all songs.",
"category": "game_config",
"setting": "force_unlock_songs",
},
],
"ints": [
{
@ -1665,9 +1671,22 @@ class IIDXCannonBallers(IIDXCourse, IIDXBase):
secret_dict = profile.get_dict("secret")
secret = Node.void("secret")
root.add_child(secret)
secret.add_child(Node.s64_array("flg1", secret_dict.get_int_array("flg1", 3)))
secret.add_child(Node.s64_array("flg2", secret_dict.get_int_array("flg2", 3)))
secret.add_child(Node.s64_array("flg3", secret_dict.get_int_array("flg3", 3)))
game_config = self.get_game_config()
if game_config.get_bool("force_unlock_songs"):
secret.add_child(Node.s64_array("flg1", [-1, -1, -1]))
secret.add_child(Node.s64_array("flg2", [-1, -1, -1]))
secret.add_child(Node.s64_array("flg3", [-1, -1, -1]))
else:
secret.add_child(
Node.s64_array("flg1", secret_dict.get_int_array("flg1", 3))
)
secret.add_child(
Node.s64_array("flg2", secret_dict.get_int_array("flg2", 3))
)
secret.add_child(
Node.s64_array("flg3", secret_dict.get_int_array("flg3", 3))
)
# Favorites
for folder in ["favorite1", "favorite2", "favorite3"]:
@ -2240,13 +2259,15 @@ class IIDXCannonBallers(IIDXCourse, IIDXBase):
newprofile.replace_dict("machine_judge_adjust", judge_dict)
# Secret flags saving
secret = request.child("secret")
if secret is not None:
secret_dict = newprofile.get_dict("secret")
secret_dict.replace_int_array("flg1", 3, secret.child_value("flg1"))
secret_dict.replace_int_array("flg2", 3, secret.child_value("flg2"))
secret_dict.replace_int_array("flg3", 3, secret.child_value("flg3"))
newprofile.replace_dict("secret", secret_dict)
game_config = self.get_game_config()
if not game_config.get_bool("force_unlock_songs"):
secret = request.child("secret")
if secret is not None:
secret_dict = newprofile.get_dict("secret")
secret_dict.replace_int_array("flg1", 3, secret.child_value("flg1"))
secret_dict.replace_int_array("flg2", 3, secret.child_value("flg2"))
secret_dict.replace_int_array("flg3", 3, secret.child_value("flg3"))
newprofile.replace_dict("secret", secret_dict)
# Basic achievements
achievements = request.child("achievements")

View File

@ -173,6 +173,12 @@ class IIDXCopula(IIDXCourse, IIDXBase):
"category": "game_config",
"setting": "omnimix_events_enabled",
},
{
"name": "Force Song Unlock",
"tip": "Force unlock all songs.",
"category": "game_config",
"setting": "force_unlock_songs",
},
],
"ints": [
{
@ -1596,9 +1602,22 @@ class IIDXCopula(IIDXCourse, IIDXBase):
secret_dict = profile.get_dict("secret")
secret = Node.void("secret")
root.add_child(secret)
secret.add_child(Node.s64_array("flg1", secret_dict.get_int_array("flg1", 4)))
secret.add_child(Node.s64_array("flg2", secret_dict.get_int_array("flg2", 4)))
secret.add_child(Node.s64_array("flg3", secret_dict.get_int_array("flg3", 4)))
game_config = self.get_game_config()
if game_config.get_bool("force_unlock_songs"):
secret.add_child(Node.s64_array("flg1", [-1, -1, -1, -1]))
secret.add_child(Node.s64_array("flg2", [-1, -1, -1, -1]))
secret.add_child(Node.s64_array("flg3", [-1, -1, -1, -1]))
else:
secret.add_child(
Node.s64_array("flg1", secret_dict.get_int_array("flg1", 4))
)
secret.add_child(
Node.s64_array("flg2", secret_dict.get_int_array("flg2", 4))
)
secret.add_child(
Node.s64_array("flg3", secret_dict.get_int_array("flg3", 4))
)
# Favorites
for folder in ["favorite1", "favorite2", "favorite3"]:
@ -2119,13 +2138,15 @@ class IIDXCopula(IIDXCourse, IIDXBase):
newprofile.replace_dict("machine_judge_adjust", judge_dict)
# Secret flags saving
secret = request.child("secret")
if secret is not None:
secret_dict = newprofile.get_dict("secret")
secret_dict.replace_int_array("flg1", 4, secret.child_value("flg1"))
secret_dict.replace_int_array("flg2", 4, secret.child_value("flg2"))
secret_dict.replace_int_array("flg3", 4, secret.child_value("flg3"))
newprofile.replace_dict("secret", secret_dict)
game_config = self.get_game_config()
if not game_config.get_bool("force_unlock_songs"):
secret = request.child("secret")
if secret is not None:
secret_dict = newprofile.get_dict("secret")
secret_dict.replace_int_array("flg1", 4, secret.child_value("flg1"))
secret_dict.replace_int_array("flg2", 4, secret.child_value("flg2"))
secret_dict.replace_int_array("flg3", 4, secret.child_value("flg3"))
newprofile.replace_dict("secret", secret_dict)
# Basic achievements
achievements = request.child("achievements")

View File

@ -176,6 +176,12 @@ class IIDXPendual(IIDXCourse, IIDXBase):
"category": "game_config",
"setting": "omnimix_events_enabled",
},
{
"name": "Force Song Unlock",
"tip": "Force unlock all songs.",
"category": "game_config",
"setting": "force_unlock_songs",
},
],
"ints": [
{
@ -1598,9 +1604,22 @@ class IIDXPendual(IIDXCourse, IIDXBase):
secret_dict = profile.get_dict("secret")
secret = Node.void("secret")
root.add_child(secret)
secret.add_child(Node.s64_array("flg1", secret_dict.get_int_array("flg1", 3)))
secret.add_child(Node.s64_array("flg2", secret_dict.get_int_array("flg2", 3)))
secret.add_child(Node.s64_array("flg3", secret_dict.get_int_array("flg3", 3)))
game_config = self.get_game_config()
if game_config.get_bool("force_unlock_songs"):
secret.add_child(Node.s64_array("flg1", [-1, -1, -1]))
secret.add_child(Node.s64_array("flg2", [-1, -1, -1]))
secret.add_child(Node.s64_array("flg3", [-1, -1, -1]))
else:
secret.add_child(
Node.s64_array("flg1", secret_dict.get_int_array("flg1", 3))
)
secret.add_child(
Node.s64_array("flg2", secret_dict.get_int_array("flg2", 3))
)
secret.add_child(
Node.s64_array("flg3", secret_dict.get_int_array("flg3", 3))
)
# Tran medals and shit
achievements = Node.void("achievements")
@ -2094,13 +2113,15 @@ class IIDXPendual(IIDXCourse, IIDXBase):
newprofile.replace_dict("machine_judge_adjust", judge_dict)
# Secret flags saving
secret = request.child("secret")
if secret is not None:
secret_dict = newprofile.get_dict("secret")
secret_dict.replace_int_array("flg1", 3, secret.child_value("flg1"))
secret_dict.replace_int_array("flg2", 3, secret.child_value("flg2"))
secret_dict.replace_int_array("flg3", 3, secret.child_value("flg3"))
newprofile.replace_dict("secret", secret_dict)
game_config = self.get_game_config()
if not game_config.get_bool("force_unlock_songs"):
secret = request.child("secret")
if secret is not None:
secret_dict = newprofile.get_dict("secret")
secret_dict.replace_int_array("flg1", 3, secret.child_value("flg1"))
secret_dict.replace_int_array("flg2", 3, secret.child_value("flg2"))
secret_dict.replace_int_array("flg3", 3, secret.child_value("flg3"))
newprofile.replace_dict("secret", secret_dict)
# Basic achievements
achievements = request.child("achievements")

View File

@ -176,6 +176,12 @@ class IIDXRootage(IIDXCourse, IIDXBase):
"category": "game_config",
"setting": "omnimix_events_enabled",
},
{
"name": "Force Song Unlock",
"tip": "Force unlock all songs.",
"category": "game_config",
"setting": "force_unlock_songs",
},
],
"ints": [
{
@ -1350,9 +1356,22 @@ class IIDXRootage(IIDXCourse, IIDXBase):
secret_dict = profile.get_dict("secret")
secret = Node.void("secret")
root.add_child(secret)
secret.add_child(Node.s64_array("flg1", secret_dict.get_int_array("flg1", 3)))
secret.add_child(Node.s64_array("flg2", secret_dict.get_int_array("flg2", 3)))
secret.add_child(Node.s64_array("flg3", secret_dict.get_int_array("flg3", 3)))
game_config = self.get_game_config()
if game_config.get_bool("force_unlock_songs"):
secret.add_child(Node.s64_array("flg1", [-1, -1, -1]))
secret.add_child(Node.s64_array("flg2", [-1, -1, -1]))
secret.add_child(Node.s64_array("flg3", [-1, -1, -1]))
else:
secret.add_child(
Node.s64_array("flg1", secret_dict.get_int_array("flg1", 3))
)
secret.add_child(
Node.s64_array("flg2", secret_dict.get_int_array("flg2", 3))
)
secret.add_child(
Node.s64_array("flg3", secret_dict.get_int_array("flg3", 3))
)
# Favorites
for folder in ["favorite1", "favorite2", "favorite3"]:
@ -1982,13 +2001,15 @@ class IIDXRootage(IIDXCourse, IIDXBase):
newprofile.replace_dict("machine_judge_adjust", judge_dict)
# Secret flags saving
secret = request.child("secret")
if secret is not None:
secret_dict = newprofile.get_dict("secret")
secret_dict.replace_int_array("flg1", 3, secret.child_value("flg1"))
secret_dict.replace_int_array("flg2", 3, secret.child_value("flg2"))
secret_dict.replace_int_array("flg3", 3, secret.child_value("flg3"))
newprofile.replace_dict("secret", secret_dict)
game_config = self.get_game_config()
if not game_config.get_bool("force_unlock_songs"):
secret = request.child("secret")
if secret is not None:
secret_dict = newprofile.get_dict("secret")
secret_dict.replace_int_array("flg1", 3, secret.child_value("flg1"))
secret_dict.replace_int_array("flg2", 3, secret.child_value("flg2"))
secret_dict.replace_int_array("flg3", 3, secret.child_value("flg3"))
newprofile.replace_dict("secret", secret_dict)
# Basic achievements
achievements = request.child("achievements")

View File

@ -174,6 +174,12 @@ class IIDXSinobuz(IIDXCourse, IIDXBase):
"category": "game_config",
"setting": "omnimix_events_enabled",
},
{
"name": "Force Song Unlock",
"tip": "Force unlock all songs.",
"category": "game_config",
"setting": "force_unlock_songs",
},
],
"ints": [
{
@ -1609,9 +1615,22 @@ class IIDXSinobuz(IIDXCourse, IIDXBase):
secret_dict = profile.get_dict("secret")
secret = Node.void("secret")
root.add_child(secret)
secret.add_child(Node.s64_array("flg1", secret_dict.get_int_array("flg1", 3)))
secret.add_child(Node.s64_array("flg2", secret_dict.get_int_array("flg2", 3)))
secret.add_child(Node.s64_array("flg3", secret_dict.get_int_array("flg3", 3)))
game_config = self.get_game_config()
if game_config.get_bool("force_unlock_songs"):
secret.add_child(Node.s64_array("flg1", [-1, -1, -1]))
secret.add_child(Node.s64_array("flg2", [-1, -1, -1]))
secret.add_child(Node.s64_array("flg3", [-1, -1, -1]))
else:
secret.add_child(
Node.s64_array("flg1", secret_dict.get_int_array("flg1", 3))
)
secret.add_child(
Node.s64_array("flg2", secret_dict.get_int_array("flg2", 3))
)
secret.add_child(
Node.s64_array("flg3", secret_dict.get_int_array("flg3", 3))
)
# Favorites
for folder in ["favorite1", "favorite2", "favorite3"]:
@ -2174,13 +2193,15 @@ class IIDXSinobuz(IIDXCourse, IIDXBase):
newprofile.replace_dict("machine_judge_adjust", judge_dict)
# Secret flags saving
secret = request.child("secret")
if secret is not None:
secret_dict = newprofile.get_dict("secret")
secret_dict.replace_int_array("flg1", 3, secret.child_value("flg1"))
secret_dict.replace_int_array("flg2", 3, secret.child_value("flg2"))
secret_dict.replace_int_array("flg3", 3, secret.child_value("flg3"))
newprofile.replace_dict("secret", secret_dict)
game_config = self.get_game_config()
if not game_config.get_bool("force_unlock_songs"):
secret = request.child("secret")
if secret is not None:
secret_dict = newprofile.get_dict("secret")
secret_dict.replace_int_array("flg1", 3, secret.child_value("flg1"))
secret_dict.replace_int_array("flg2", 3, secret.child_value("flg2"))
secret_dict.replace_int_array("flg3", 3, secret.child_value("flg3"))
newprofile.replace_dict("secret", secret_dict)
# Basic achievements
achievements = request.child("achievements")

View File

@ -169,6 +169,12 @@ class IIDXSpada(IIDXBase):
"category": "game_config",
"setting": "omnimix_events_enabled",
},
{
"name": "Force Song Unlock",
"tip": "Force unlock all songs.",
"category": "game_config",
"setting": "force_unlock_songs",
},
],
"ints": [
{
@ -1255,9 +1261,22 @@ class IIDXSpada(IIDXBase):
secret_dict = profile.get_dict("secret")
secret = Node.void("secret")
root.add_child(secret)
secret.add_child(Node.s64_array("flg1", secret_dict.get_int_array("flg1", 2)))
secret.add_child(Node.s64_array("flg2", secret_dict.get_int_array("flg2", 2)))
secret.add_child(Node.s64_array("flg3", secret_dict.get_int_array("flg3", 2)))
game_config = self.get_game_config()
if game_config.get_bool("force_unlock_songs"):
secret.add_child(Node.s64_array("flg1", [-1, -1]))
secret.add_child(Node.s64_array("flg2", [-1, -1]))
secret.add_child(Node.s64_array("flg3", [-1, -1]))
else:
secret.add_child(
Node.s64_array("flg1", secret_dict.get_int_array("flg1", 2))
)
secret.add_child(
Node.s64_array("flg2", secret_dict.get_int_array("flg2", 2))
)
secret.add_child(
Node.s64_array("flg3", secret_dict.get_int_array("flg3", 2))
)
# Tran medals and shit
achievements = Node.void("achievements")
@ -1688,13 +1707,15 @@ class IIDXSpada(IIDXBase):
newprofile.replace_dict("machine_judge_adjust", judge_dict)
# Secret flags saving
secret = request.child("secret")
if secret is not None:
secret_dict = newprofile.get_dict("secret")
secret_dict.replace_int_array("flg1", 2, secret.child_value("flg1"))
secret_dict.replace_int_array("flg2", 2, secret.child_value("flg2"))
secret_dict.replace_int_array("flg3", 2, secret.child_value("flg3"))
newprofile.replace_dict("secret", secret_dict)
game_config = self.get_game_config()
if not game_config.get_bool("force_unlock_songs"):
secret = request.child("secret")
if secret is not None:
secret_dict = newprofile.get_dict("secret")
secret_dict.replace_int_array("flg1", 2, secret.child_value("flg1"))
secret_dict.replace_int_array("flg2", 2, secret.child_value("flg2"))
secret_dict.replace_int_array("flg3", 2, secret.child_value("flg3"))
newprofile.replace_dict("secret", secret_dict)
# Basic achievements
achievements = request.child("achievements")