Skip to content

Commit 3bd2d23

Browse files
Reimplement character icon pack, add speedup, memory block, gentle dice throw, and 98-stock exploit fixes to CSTP and CSWT, and rework how the pack was implemented to remove redundancy
1 parent ddd7323 commit 3bd2d23

File tree

104 files changed

+299
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+299
-47
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
+cswtpycsmm
1+
+better_battery_indicator
2+
+cswt
23
+ChangeCurtain
34
+NewTitleScreen
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
+cstppycsmm
1+
+better_battery_indicator
2+
+cstp
23
+ChangeCurtain
34
+NewTitleScreen
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
+cswtpycsmm
1+
+better_battery_indicator
2+
+cswt
23
+ChangeCurtain
34
+NewTitleScreen
Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
[
2-
{
3-
"from": "common/common_curtain.cmpres",
4-
"to": "files/common/common_curtain.cmpres"
5-
},
6-
{
7-
"from": "common_langDE/common_curtain_DE.cmpres",
8-
"to": "files/common/langDE/common_curtain_DE.cmpres"
9-
},
10-
{
11-
"from": "common_langEN/common_curtain_EN.cmpres",
12-
"to": "files/common/langEN/common_curtain_EN.cmpres"
13-
},
14-
{
15-
"from": "common_langES/common_curtain_ES.cmpres",
16-
"to": "files/common/langES/common_curtain_ES.cmpres"
17-
},
18-
{
19-
"from": "common_langFR/common_curtain_FR.cmpres",
20-
"to": "files/common/langFR/common_curtain_FR.cmpres"
21-
},
22-
{
23-
"from": "common_langIT/common_curtain_IT.cmpres",
24-
"to": "files/common/langIT/common_curtain_IT.cmpres"
25-
},
26-
{
27-
"from": "common_langUK/common_curtain_UK.cmpres",
28-
"to": "files/common/langUK/common_curtain_UK.cmpres"
29-
},
30-
{
31-
"from": "game/game_result.brres",
32-
"to": "files/game/game_result.brres"
33-
}
34-
]
2+
{
3+
"from": "common/common_curtain.cmpres",
4+
"to": "files/common/common_curtain.cmpres"
5+
},
6+
{
7+
"from": "common/langDE/common_curtain_DE.cmpres",
8+
"to": "files/common/langDE/common_curtain_DE.cmpres"
9+
},
10+
{
11+
"from": "common/langEN/common_curtain_EN.cmpres",
12+
"to": "files/common/langEN/common_curtain_EN.cmpres"
13+
},
14+
{
15+
"from": "common/langES/common_curtain_ES.cmpres",
16+
"to": "files/common/langES/common_curtain_ES.cmpres"
17+
},
18+
{
19+
"from": "common/langFR/common_curtain_FR.cmpres",
20+
"to": "files/common/langFR/common_curtain_FR.cmpres"
21+
},
22+
{
23+
"from": "common/langIT/common_curtain_IT.cmpres",
24+
"to": "files/common/langIT/common_curtain_IT.cmpres"
25+
},
26+
{
27+
"from": "common/langUK/common_curtain_UK.cmpres",
28+
"to": "files/common/langUK/common_curtain_UK.cmpres"
29+
},
30+
{
31+
"from": "game/game_result.brres",
32+
"to": "files/game/game_result.brres"
33+
}
34+
]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[
2+
{
3+
"from": "common/common_dialog.cmparc",
4+
"to": "files/common"
5+
},
6+
{
7+
"from": "common/common_dialog.cmparc",
8+
"to": "files/common/langDE"
9+
},
10+
{
11+
"from": "common/common_dialog.cmparc",
12+
"to": "files/common/langEN"
13+
},
14+
{
15+
"from": "common/common_dialog.cmparc",
16+
"to": "files/common/langES"
17+
},
18+
{
19+
"from": "common/common_dialog.cmparc",
20+
"to": "files/common/langFR"
21+
},
22+
{
23+
"from": "common/common_dialog.cmparc",
24+
"to": "files/common/langIT"
25+
},
26+
{
27+
"from": "common/common_dialog.cmparc",
28+
"to": "files/common/langUK"
29+
}
30+
]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import pycsmm
2+
import os
3+
import json
4+
import shutil
5+
6+
MODID = __name__
7+
8+
class Mod(pycsmm.CSMMMod, pycsmm.GeneralInterface):
9+
def __init__(self):
10+
pycsmm.CSMMMod.__init__(self)
11+
pycsmm.GeneralInterface.__init__(self)
12+
def modId(self):
13+
return MODID
14+
def saveFiles(self, root, gameInstance, modList):
15+
modpack_dir = self.modpackDir()
16+
with open(os.path.join(modpack_dir, f'{MODID}.json'), 'rb') as config_file:
17+
config = json.load(config_file)
18+
for command in config:
19+
copy_from = os.path.join(modpack_dir, command["from"])
20+
copy_to = os.path.join(root, command["to"])
21+
if os.path.isdir(copy_from):
22+
shutil.copytree(copy_from, copy_to, dirs_exist_ok=True)
23+
else:
24+
shutil.copy(copy_from, copy_to)
25+
26+
mod = Mod()
841 KB
Binary file not shown.
-80.6 KB
Binary file not shown.
-81 KB
Binary file not shown.
-77.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)