1
0
mirror of synced 2024-11-27 23:50:47 +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,6 +2259,8 @@ class IIDXCannonBallers(IIDXCourse, IIDXBase):
newprofile.replace_dict("machine_judge_adjust", judge_dict)
# Secret flags saving
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")

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,6 +2138,8 @@ class IIDXCopula(IIDXCourse, IIDXBase):
newprofile.replace_dict("machine_judge_adjust", judge_dict)
# Secret flags saving
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")

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,6 +2113,8 @@ class IIDXPendual(IIDXCourse, IIDXBase):
newprofile.replace_dict("machine_judge_adjust", judge_dict)
# Secret flags saving
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")

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,6 +2001,8 @@ class IIDXRootage(IIDXCourse, IIDXBase):
newprofile.replace_dict("machine_judge_adjust", judge_dict)
# Secret flags saving
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")

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,6 +2193,8 @@ class IIDXSinobuz(IIDXCourse, IIDXBase):
newprofile.replace_dict("machine_judge_adjust", judge_dict)
# Secret flags saving
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")

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,6 +1707,8 @@ class IIDXSpada(IIDXBase):
newprofile.replace_dict("machine_judge_adjust", judge_dict)
# Secret flags saving
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")