Super Smash Bros. Crusade

A Config Script for GameBanana

Updates

ScriptParentSubmitterStats
  • Overhaul Fixed RegEx

Additional Notes
Revision 2 5mo
Stats
  • Addition Added Stage Specific Music modding support.
Revision 1 5mo
Stats
126 lines | 5 kb | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
---
# YAML Super Smash Bros. Crusade Config
Constants
:
 "{GAME_NAME}"
: Super Smash Bros. Crusade
Setup
:
- Command
: Prompt
  Parameters
:
   Type
: Dir
   AliasName
: "{SSBC_PATH}"
   DisplayName
: Where is your {GAME_NAME} folder?
- Command
: CheckExists
  Parameters
:
   Path
: "{SSBC_PATH}/ssbc.exe"
  ErrorMessage
: "The {GAME_NAME} folder you specified is invalid"
- Command
: ChangeDir
  Parameters
:
   Path
: "{SSBC_PATH}"
  ErrorMessage
: "Access was denied to your {GAME_NAME} folder"
FileRules
:
 GUIs
:
 - AcceptFilePath
: "/gfx\\/.+\\.png$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
 - AcceptFilePath
: "/(abust|bust|cbust|challenger|classic|common|css|mbg|menu|mugs|online|results|seriesicon|sss|stgicons|stgprevs|stock|title)\\/.+\\.png$/i"
   DestinationFile
: "gfx/{MATCHED_FILE_PATH}"
# Busts
 - AcceptExtension
: "/^png$/i"
   DestinationFile
: "gfx/bust/{FILE}"
 Skins
:
 - DenyExtension
: "/^jpg$/i"
 - DenyFile
: "/^readme.+/i"
 - DenyFile
: "/^thumbs.db/i"
# ew
 - AcceptFilePath
: "/(ashley|bomber|bowser|chunli|climbers|clink|crash|dhd|dk|drmario|evil|falco|falcon|fox|ganon|geno|goku|gooey|hand|kirby|klonoa|knux|krystal|link|lucario|lucas|luigi|mac|mach|mario|marth|mega|metaknight|mew2|mrgw|nega|ness|olimar|pacman|peach|petey|pichu|pika|porky|purin|rayman|ridley|ristar|rob|ryu|saki|samus|shadow|shantae|snake|snivy|sonic|tails|tingle|toad|waluigi|wario|weegee|wright|yoshi|zsamus)\\/.+\\.png$/i"
   DestinationFile
: "fighter/{MATCHED_FILE_PATH}"
 - AcceptExtension
: "/^bin$/i"
   DestinationFile
: "fighter/{FILE}"
# Busts
 - AcceptFile
: "/(abust|bust|cbust|stock|mugs|seriesicon)\\/.+\\.png$/i"
   DestinationFile
: "gfx/{FILE}"
# Recolors?
 - AcceptExtension
: "/^dat$/i"
   DestinationFile
: "data/{FILE}"
# Items
 - AcceptFilePath
: "/item\\/.+\\.(png|txt)$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
 - AcceptFile
: "/list\\.png$/i"
   DestinationFile
: "item/{FILE}"
# Assists
 - AcceptFilePath
: "/assist\\/.+\\.(png|txt|wav)$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
   # Yes, these folders start with underscores.
 - AcceptFilePath
: "/(_cloyster|_espeon|_gengar|_mew|_porygon2|_psyduck|_shaymin|_snivy|_snorlax|_staryu|_steelix|_unown)\\/.+\\.(png|txt|wav)$/i"
   DestinationFile
: "assist/{MATCHED_FILE_PATH}"
# A lot of mods are just the pallate files in root. It's impossible to organise them, so they're incompatible.
 Sounds
:
 - DenyExtension
: "/^txt$/i"
 - DenyFile
: "/^readme.+/i"
# SFX
 - AcceptFilePath
: "/sfx\\/.+\\.wav$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
# Combo
 - AcceptFile
: "/(0|1|2).*\\.wav$/i"
   DestinationFile
: "sfx/announcer/combo/{FILE}"
# Fighter names
 - AcceptFilePath
: "/fighter\\/.+\\.wav$/i"
   DestinationFile
: "sfx/{MATCHED_FILE_PATH}"
# Narration
 - AcceptFile
: "/nar.*\\.wav$/i"
   DestinationFile
: "sfx/announcer/{FILE}"
# Crowd Reactions
 - AcceptFile
: "/(clap|disappointment|joy|suprise).*\\.wav$/i"
   DestinationFile
: "sfx/crowd/{FILE}"
# Menu
 - AcceptFile
: "/(back|char|deselectchar|disabled|ok|ready4nextmatch|selectchar|swap).*\\.wav$/i"
   DestinationFile
: "sfx/menu/{FILE}"
# Peach has her own folder for some reason
 - AcceptFilePath
: "/peach\\/.+\\.wav$/i"
   DestinationFile
: "sfx/{MATCHED_FILE_PATH}"
# As does Ryu
 - AcceptFilePath
: "/ryu\\/.+\\.wav$/i"
   DestinationFile
: "sfx/{MATCHED_FILE_PATH}"
# Aaaaand Snake.
 - AcceptFilePath
: "/snake\\/.+\\.wav$/i"
   DestinationFile
: "sfx/{MATCHED_FILE_PATH}"
# The rest are normal SFX
 - AcceptExtension
: "/^wav$/i"
   DestinationFile
: "sfx/{FILE}"
# GENERIC MUSIC
 - AcceptFilePath
: "/music\\/.+\\.ogg$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
 - AcceptFile
: "/Michael.*Bonus Stage.*\\.ogg$/i"
   DestinationFile
: "music/bonus/{FILE}"
 - AcceptFile
: "/Michael.*Game Clear.*\\.ogg$/i"
   DestinationFile
: "music/classicclear/{FILE}"
 - AcceptFile
: "/Super.*Master Hand.*\\.ogg$/i"
   DestinationFile
: "music/masterhand/{FILE}"
 - AcceptFile
: "/SSBC.*Main Theme.*\\.ogg$/i"
   DestinationFile
: "music/menu/{FILE}"
 - AcceptFile
: "/Super.*Metal Battle.*\\.ogg$/i"
   DestinationFile
: "music/metal/{FILE}"
 - AcceptFile
: "/Nyx.*Fighting Polygon Team.*\\.ogg$/i"
   DestinationFile
: "music/multiman/{FILE}"
 - AcceptFile
: "/SSBC.*No Contest.*\\.ogg$/i"
   DestinationFile
: "music/nocontest/{FILE}"
 - AcceptFile
: "/Disco Train.*\\.ogg$/i"
   DestinationFile
: "music/online/{FILE}"
 - AcceptFile
: "/SSBC.*Online Menu.*\\.ogg$/i"
   DestinationFile
: "music/online/{FILE}"
# STAGE SPECIFIC MUSIC
 - AcceptFilePath
: "/(asteroids|balloon|battlefield|BC|burned|casinon|cutman|distortion|district|excitebike|fieldofglory|final|flatzone3|ghz|hcastle64|hyperbolic|icecap|kongo|mansion|metacrystal|mushroom|pac|pilotwings|qbert|saffron64|sectorz|suzaku|tetris)\\/.+\\.ogg$/i"
   DestinationFile
: "music/stage/{MATCHED_FILE_PATH}"
# Other
 - AcceptFile
: "/(challenger|classic|unlock).*\\.ogg$/i"
   DestinationFile
: "music/other/{FILE}"
#
 - AcceptFile
: "/SSBC.*Results.*\\.ogg$/i"
   DestinationFile
: "music/results/{FILE}"
# Stage
 - AcceptFilePath
: "/stage\\/.+\\.ogg$/i"
   DestinationFile
: "music/{MATCHED_FILE_PATH}"
#  
 - AcceptFilePath
: "/versus\\/.+\\.ogg$/i"
   DestinationFile
: "music/{MATCHED_FILE_PATH}"
# Victory
 - AcceptFilePath
: "/victory\\/.+\\.ogg$/i"
   DestinationFile
: "music/victory/{MATCHED_FILE_PATH}"

Posts

  • AoM avatar
    AoM username pic Joined 12y ago
    Ripe Supporter AC:NL Manager UT2k4 Manager SN Manager Admin
    Likely Asleep
    35,552 points Ranked 115th
    39 medals 5 legendary 8 rare
    • 10 years a member Medal icon
    • Created a Mod Installer Medal icon
    • Achieved Admin clearance Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2017 Medal icon
    • Became a Ripe Supporter Medal icon
    • 6 years a member Medal icon
    AoM avatar
    AoM
    Modboy Dev
    5mo 5mo
    I've cleaned it up a bit more for you.

    I've also added a segment to cover situations where the person uploading includes the fighter directory. (It makes sure there's a folder in-between the fighter folder and the actual images). I've duplicated the Regex you had for fighter sounds into the skin section for the situation where people include the fighter sounds with the skin.

    Are the bin files in the fighter directory not particular to characters?

    Is there an example of assist skins you could link me to or a screenshot of one of their folders you could show me? It just seems odd that they would all have an underscore at the beginning, but that may be correct.

    There are a few places where you had .* that I'm not sure if you meant to put \\. instead. If you could check over the diff here and see if you meant to make that AcceptFilePath rather than AcceptExtension, that would be appreciated.
    Thar be snow. avatar
    Mantra
    Thar be snow.
  • AoM avatar
    AoM username pic Joined 12y ago
    Ripe Supporter AC:NL Manager UT2k4 Manager SN Manager Admin
    Likely Asleep
    35,552 points Ranked 115th
    39 medals 5 legendary 8 rare
    • 10 years a member Medal icon
    • Created a Mod Installer Medal icon
    • Achieved Admin clearance Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2017 Medal icon
    • Became a Ripe Supporter Medal icon
    • 6 years a member Medal icon
    AoM avatar
    AoM
    Modboy Dev
    5mo
    A couple things:

    • I think you need to do a bit more reading on Regex. You have a bunch of unnecessary stuff in there, like parenthesizing something when you only have one possible value.
    • I'm not sure what your trying to match with things like "/SSBC^Main Theme^ogg$/i", but I can tell you that you're not really going to match anything, since you have two ^'s and neither is at the beginning of the string. They're intended to be used to say your path begins with that.

    You have to get these right, because I won't be adding configs that I think will cause issues.
    Thar be snow. avatar
    Mantra
    Thar be snow.

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Credits

Key Authors
Northern3D avatar
Northern3D username pic Joined 3y ago
Offline
US Games Flag Affiliation: US Games
1,061 points Ranked 4900th
19 medals 2 rare
  • 10 submissions featured Medal icon
  • Returned 1000 times Medal icon
  • Became a Club Leader Medal icon
  • One month a member Medal icon
  • 6 months a member Medal icon
  • 1 year a member Medal icon
AoM avatar
AoM username pic Joined 12y ago
Ripe Supporter AC:NL Manager UT2k4 Manager SN Manager Admin
Offline
35,552 points Ranked 115th
39 medals 5 legendary 8 rare
  • 10 years a member Medal icon
  • Created a Mod Installer Medal icon
  • Achieved Admin clearance Medal icon
  • 15+ Entries! GameBanana’s Christmas Giveaway 2017 Medal icon
  • Became a Ripe Supporter Medal icon
  • 6 years a member Medal icon
Feedback and adjustments

Submitter

Northern3D avatar
Northern3D username pic Joined 3y ago
PROBABLY DEAD
US Games Flag Affiliation: US Games
1,061 points Ranked 4900th
19 medals 2 rare
  • 10 submissions featured Medal icon
  • Returned 1000 times Medal icon
  • Became a Club Leader Medal icon
  • One month a member Medal icon
  • 6 months a member Medal icon
  • 1 year a member Medal icon

Northern3D avatar
Northern3D

Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Sub-category
Game Configs
Super-category
Modboy

License

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 901 Views
  • 3 Posts
  • 5mo Submitted
  • 4mo Modified
  • 5mo Updated

Scores

  • Not yet rated
Sign up to access this!

More from Submitter

WiPs by Submitter

bcp.crwdcntrl.net tracking pixel