Just Cause 2

A Config Script for GameBanana

Updates

ScriptParentSubmitterStats
  • Optimization Changed all '{MATCHED_FILE_PATH}/{FILE}' to just '{MATCHED_FILE_PATH}' as they function identically.
Revision 2 10mo
  • Addition Added DLC modding support.
Revision 1 10mo
53 lines | 2 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
---
# YAML Just Cause 2 Config
Constants
:
 "{GAME_NAME}"
: "Just Cause 2"
Setup
:
# Game install
- Command
: Prompt
  Parameters
:
   Type
: Dir
   AliasName
: "{JUSTCAUSE2_PATH}"
   DisplayName
: "Where is your {JUSTCAUSE2_NAME} folder?"
   DefaultPaths
:
- Program Files (x86)/Steam/steamapps/common/Just Cause 2
   - Program Files/Steam/steamapps/common/Just Cause 2
  ErrorMessage
: "The {GAME_NAME} folder you specified could not be accessed"
- Command
: CheckExists
  Parameters
:
   Path
: "{JUSTCAUSE2_PATH}/JustCause2.exe"
  ErrorMessage
: "The {GAME_NAME} folder you specified is invalid"
- Command
: ChangeDir
  Parameters
:
   Path
: "{JUSTCAUSE2_PATH}"
  ErrorMessage
: "Access was denied to your {GAME_NAME} folder"
FileRules
:
 Game files
:
 - DenyExtension
: "/^exe$/i"
 - DenyExtension
: "/^txt$/i"
# Find mods that already follow the valid structure for 'archives_win32' mods.
 - AcceptFilePath
: "/archives_win32\\/.+\\.(arc|tab|bin|blz|eez|dds|rbm)$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
# Find mods that already follow the valid structure for 'dropzone' mods.
 - AcceptFilePath
: "/dropzone\\/.+\\.(arc|tab|bin|blz|eez|dds|rbm)$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
# Find mods that already follow the valid structure for 'DLC' mods.
 - AcceptFilePath
: "/DLC\\/.+\\.(arc|tab|bin|blz|eez|dds|rbm)$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
# If no specific directory is listed, it's most likely for dropzone.
 - AcceptExtension
: "/^(arc|tab|bin|blz|eez|dds|rbm)$/i"
   DestinationFile
: "dropzone/{MATCHED_FILE_PATH}"
 Skins
:
 - DenyExtension
: "/^exe$/i"
 - DenyExtension
: "/^txt$/i"
# Find mods that already follow the valid structure for 'archives_win32' mods.
 - AcceptFilePath
: "/archives_win32\\/.+\\.(arc|tab|bin|blz|eez|dds|rbm)$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
# Find mods that already follow the valid structure for 'dropzone' mods.
 - AcceptFilePath
: "/dropzone\\/.+\\.(arc|tab|bin|blz|eez|dds|rbm)$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
# Find mods that already follow the valid structure for 'DLC' mods.
 - AcceptFilePath
: "/DLC\\/.+\\.(arc|tab|bin|blz|eez|dds|rbm)$/i"
# If no specific directory is listed, it's most likely for dropzone.
 - AcceptExtension
: "/^(arc|tab|bin|blz|eez|dds|rbm)$/i"
   DestinationFile
: "dropzone/{MATCHED_FILE_PATH}"
Sign up to access this!
  • AoM avatar
    AoM username pic Joined 12y ago
    Ripe Supporter AC:NL Manager UT2k4 Manager SN Manager Admin
    Likely Asleep
    44,186 points Ranked 93rd
    43 medals 5 legendary 10 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
    10mo
    You shouldn't need to do {MATCHED_FILE_PATH}/{FILE}
    {MATCHED_FILE_PATH} already includes the file name.
    Thar be snow. avatar
    Mantra
    Thar be snow.
    URL to post:
  • AoM avatar
    AoM username pic Joined 12y ago
    Ripe Supporter AC:NL Manager UT2k4 Manager SN Manager Admin
    Likely Asleep
    44,186 points Ranked 93rd
    43 medals 5 legendary 10 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
    10mo
    I don't know that the userprofile part of the config is going to work as intended. Also, you do multiple directory changes, which I'd have to double check.
    Thar be snow. avatar
    Mantra
    Thar be snow.
    URL to post:

Embed

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

Credits

Key Authors
Northern3D avatar
Northern3D username pic Joined 4y ago
hl2-reloaded Flag Affiliation: hl2-reloaded
1,705 points Ranked 3144th
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

Submitter

Northern3D avatar
Northern3D username pic Joined 4y ago
SURFIN' THE WEB
Home > Studios > hl2-reloaded
hl2-reloaded Flag Affiliation: hl2-reloaded
1,705 points Ranked 3144th
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+
  • 655 Views
  • 4 Posts
  • 10moSubmitted
  • 2moModified
  • 10moUpdated

Scores

  • Not yet rated
Sign up to access this!

More from Submitter

WiPs by Submitter

More Game Configs Scripts

bcp.crwdcntrl.net tracking pixel