Portal 2

A Config Script for GameBanana

96 lines | 4 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
---
# YAML Portal 2 Config
Constants
:
 "{GAME_NAME}"
: "Portal 2"
Setup
:
- Command
: Prompt
  Parameters
:
   Type
: Dir
   AliasName
: "{PORTAL2_PATH}"
   DisplayName
: "Where is your {GAME_NAME} folder?"
   DefaultPaths
:
  - Program Files (x86)/Steam/steamapps/common/Portal 2/portal2
   - Program Files/Steam/steamapps/common/Portal 2/portal2
  ErrorMessage
: "The {GAME_NAME} folder you specified could not be accessed"
- Command
: CheckExists
  Parameters
:
   Path
: "{PORTAL2_PATH}/pak01_000.vpk"
  ErrorMessage
: "The {GAME_NAME} folder you specified is invalid"
- Command
: ChangeDir
  Parameters
:
   Path
: "{PORTAL2_PATH}"
  ErrorMessage
: "Access was denied to your {GAME_NAME} folder"
FileRules
:
 Maps
:
 - DenyExtension
: "/^jpg$/i"
 - DenyExtension
: "/^cache$/i"
 - DenyExtension
: "/^rtf$/i"
 - DenyExtension
: "/^doc$/i"
 - DenyExtension
: "/^docx$/i"
 - DenyExtension
: "/^exe$/i"
 - DenyFile
: "/^read ?me.+/i"
 - DenyFile
: "/^credits?/i"
 - DenyFile
: "/^credits?\\.txt/i"
 - DenyFile
: "/^installation/i"
 - DenyFile
: "/^installation.+\\.txt/i"
 - DenyFile
: "/^changelog/i"
 - DenyFile
: "/^changelog.+\\.txt/i"
 - DenyFile
: "/^thumbs\\.db/i"
 # try to match files already in the correct structure
 - AcceptFilePath
: "/scripts\\/soundscapes\\_.+\\.txt$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
 - AcceptFilePath
: "/resource\\/overviews\\/.+\\.txt$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
 - AcceptFilePath
: "/resource\\/overviews\\/.+\\_radar\\.txt$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
 - AcceptFilePath
: "/resource\\/overviews\\/.+\\_radar\\_spectate\\.txt$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
 - AcceptFilePath
: "/materials\\/.+\\.(vmt|vtf|tga)$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
 - AcceptFilePath
: "/models\\/.+\\.(vtx|mdl|phy|phz|vvd)$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
 - AcceptFilePath
: "/maps\\/.+\\.(bsp|nav|res|txt)$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
 - AcceptFilePath
: "/sound\\/.+\\.(wav|mp3)$/i"
   DestinationFile
: "{MATCHED_FILE_PATH}"
 # any files left over or mods with no directory structure - guess where to put them
 - AcceptFile
: "/^soundscapes\\_.+\\.txt$/i"
   DestinationFile
: "scripts/{FILE}"
 - AcceptFile
: "/\\_radar\\.txt$/i"
   DestinationFile
: "resource/overviews/{FILE}"
 - AcceptFile
: "/\\_radar\\_spectate\\.txt$/i"
   DestinationFile
: "resource/overviews/{FILE}"
 - AcceptExtension
: "/^(vmt|vtf|tga)$/i"
   DestinationFile
: "materials/{FILE}"
 - AcceptExtension
: "/^(vtx|mdl|phy|phz|vvd)$/i"
   DestinationFile
: "models/{FILE}"
 - AcceptExtension
: "/^(bsp|nav|res|txt)$/i"
   DestinationFile
: "maps/{FILE}"
 - AcceptExtension
: "/^vpk$/i"
   DestinationFile
: "custom/{FILE}"
 - AcceptExtension
: "/^(wav|mp3)$/i"
   DestinationFile
: "sound/{FILE}"
 Skins
:
 - DenyExtension
: "/^jpg$/i"
 - DenyFile
: "/^readme.+/i"
 - AcceptExtension
: "/^vpk$/i"
   DestinationFile
: "custom/{FILE}"
 - AcceptFilePath
: "/materials\\/.+\\.(vmt|vtf)$/i"
   DestinationFile
: "custom/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
 - AcceptFilePath
: "/models\\/.+\\.(vtx|mdl|vvd|phy)$/i"
   DestinationFile
: "custom/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
 - AcceptFilePath
: "/sound\\/.+\\.(wav|mp3)$/i"
   DestinationFile
: "custom/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
 - AcceptFilePath
: "/scripts\\/.+\\.txt$/i"
   DestinationFile
: "custom/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
 Sounds
:
 - DenyExtension
: "/^txt$/i"
 - DenyFile
: "/^readme.+/i"
 - AcceptExtension
: "/^vpk$/i"
   DestinationFile
: "custom/{FILE}"
 - AcceptFilePath
: "/sound\\/sound.cache$/i"
   DestinationFile
: "custom/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
 - AcceptFilePath
: "/sound\\/.+\\.(wav|mp3)$/i"
   DestinationFile
: "custom/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
 - AcceptFilePath
: "/scripts\\/.+\\.txt$/i"
   DestinationFile
: "custom/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
Sign up to access this!

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,774 points Ranked 2983rd
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
Mini avatar
Mini username pic Joined 11y ago
CivVI Manager Admin
Online
?
13,552 points Ranked 351st
48 medals 7 legendary 10 rare
  • 1st Place - Winter Sprays Contest Medal icon
  • Guardian of the Acid Milk Medal icon
  • Achieved Admin clearance Medal icon
  • Returned 5000 times Medal icon
  • 10 years a member Medal icon
  • 2017 Top Contributor Medal icon
Original Config
AoM avatar
AoM username pic Joined 12y ago
Ripe Supporter AC:NL Manager UT2k4 Manager SN Manager Admin
Offline
42,216 points Ranked 96th
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
Unpacked Sounds & Skins™

Submitter

Northern3D avatar
Northern3D username pic Joined 3y ago
PROBABLY DEAD
US Games Flag Affiliation: US Games
1,774 points Ranked 2983rd
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+
  • 511 Views
  • 9moSubmitted
  • 1moModified

Scores

  • Not yet rated
Sign up to access this!

More from Submitter

WiPs by Submitter

More Game Configs Scripts

bcp.crwdcntrl.net tracking pixel