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 7mo
Stats
  • Addition Added DLC modding support.
Revision 1 7mo
Stats
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}"

Posts

  • AoM avatar
    AoM username pic Joined 12y ago
    Ripe Supporter AC:NL Manager UT2k4 Manager SN Manager Admin
    Likely Asleep
    38,731 points Ranked 104th
    40 medals 5 legendary 9 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
    7mo
    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.
  • AoM avatar
    AoM username pic Joined 12y ago
    Ripe Supporter AC:NL Manager UT2k4 Manager SN Manager Admin
    Likely Asleep
    38,731 points Ranked 104th
    40 medals 5 legendary 9 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
    7mo
    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.

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,358 points Ranked 3884th
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 3y ago
PROBABLY DEAD
US Games Flag Affiliation: US Games
1,358 points Ranked 3884th
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

  • 552 Views
  • 4 Posts
  • 7mo Submitted
  • 5mo Modified
  • 7mo Updated

Scores

  • Not yet rated
Sign up to access this!

More from Submitter

WiPs by Submitter

More Game Configs Scripts

bcp.crwdcntrl.net tracking pixel