The Game Modding Community - Since 2001

Garry's Mod

A Config Script for GameBanana

Garry's Mod add-on script

146 lines | 6 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
---
# YAML Garry's Mod Config
Constants:
 "{GAME_NAME}": GMod
Setup:
- Command: Prompt
  Parameters:
   Type: Dir
   AliasName: "{GMOD_PATH}"
   DisplayName: Where is your {GAME_NAME} folder?
   DefaultPaths:
   - Program Files/steam/steamapps/common/garrysmod/garrysmod
   - Program Files (x86)/steam/steamapps/common/garrysmod/garrysmod
   - steam/steamapps/common/garrysmod/garrysmod
  ErrorMessage: "The {GAME_NAME} folder you specified is invalid"
- Command: CheckExists
  Parameters:
   Path: "{GMOD_PATH}/garrysmod_dir.vpk"
  ErrorMessage: "The {GAME_NAME} folder you specified is invalid"
- Command: ChangeDir
  Parameters:
   Path: "{GMOD_PATH}"
  ErrorMessage: "Access was denied to your {GAME_NAME} folder"
FileRules:
 # GameFiles:
 # - AcceptExtension: "/^(bsp|nav|res|txt)$/i"
   # DestinationFile: "maps/{FILE}"
 # - AcceptExtension: "/^(dupe)$/i"
   # DestinationFile: "dupes/{FILE}"
 # - AcceptExtension: "/^(saves)$/i"
   # DestinationFile: "saves/{FILE}"
 # - AcceptExtension: "/^(demo)$/i"
   # DestinationFile: "demos/{FILE}"
 # Textures:
 # - AcceptFilePath: "/materials\\/.+\\.(vmt|vtf|raw|txt)$/i"
   # DestinationFile: "{MATCHED_FILE_PATH}"
 # - AcceptExtension: "/^(bsp|nav|res|txt)$/i"
   # DestinationFile: "maps/{FILE}"
 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"
 - DenyFile: "/^desktop\\.ini/i"
 - DenyFile: "/^info?\\.txt/i"
 - DenyFile: "/^addon?\\.txt/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: "/maps\\graphs\\.(ain)$/i"
   DestinationFile: "{MATCHED_FILE_PATH}"
 - AcceptFilePath: "/sound\\/.+\\.(ogg|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: "addons/{FILE}"
 - AcceptExtension: "/^(ogg|wav|mp3)$/i"
   DestinationFile: "sound/{FILE}"
 Skins:
 - DenyExtension: "/^jpg$/i"
 - DenyExtension: "/^cache$/i"
 - DenyExtension: "/^rtf$/i"
 - DenyExtension: "/^doc$/i"
 - DenyExtension: "/^docx$/i"
 - DenyExtension: "/^exe$/i"
 - DenyExtension: "/^vpk$/i"
 - DenyFile: "/^read ?me.+/i"
 - DenyFile: "/^credits?/i"
 - DenyFile: "/^credits?\\.txt/i"
 - DenyFile: "/^info?\\.txt/i"
 - DenyFile: "/^addon?\\.txt/i"
 - DenyFile: "/^installation/i"
 - DenyFile: "/^installation.+\\.txt/i"
 - DenyFile: "/^changelog/i"
 - DenyFile: "/^changelog.+\\.txt/i"
 - DenyFile: "/^thumbs\\.db/i"
 - DenyFile: "/^desktop\\.ini/i"
   DestinationFile: "addons/{FILE}"
 - AcceptFilePath: "/materials\\/.+\\.(vmt|vtf)$/i"
   DestinationFile: "addons/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
 - AcceptFilePath: "/models\\/.+\\.(vtx|mdl|vvd|phy)$/i"
   DestinationFile: "addons/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
 - AcceptFilePath: "/sound\\/.+\\.(wav|mp3)$/i"
   DestinationFile: "addons/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
 - AcceptFilePath: "/scripts\\/.+\\.txt$/i"
   DestinationFile: "addons/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
 Sounds:
 - DenyExtension: "/^jpg$/i"
 - DenyExtension: "/^cache$/i"
 - DenyExtension: "/^rtf$/i"
 - DenyExtension: "/^doc$/i"
 - DenyExtension: "/^docx$/i"
 - DenyExtension: "/^exe$/i"
 - DenyFile: "/^info?\\.txt/i"
 - DenyFile: "/^addon?\\.txt/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"
 - DenyFile: "/^desktop\\.ini/i"
 - AcceptExtension: "/^vpk$/i"
   DestinationFile: "addons/{FILE}"
 - AcceptFilePath: "/sound\\/sound.cache$/i"
   DestinationFile: "addons/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
 - AcceptFilePath: "/sound\\/.+\\.(ogg|wav|mp3)$/i"
   DestinationFile: "addons/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
 - AcceptFilePath: "/scripts\\/.+\\.txt$/i"
   DestinationFile: "addons/{ARCHIVE_FILE_NAME}/{MATCHED_FILE_PATH}"
A test script for Garry's Mod. Support for "Game Files" is not officially added, and therefore that category is not available yet.

Game Hub Link: https://gamebanana.com/games/73

Posts

Embed

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

Credits

Key Authors
Reverend V92 avatar
Reverend V92 username pic Joined 8y ago
Offline
2,678 points Ranked 1839th
22 medals 3 rare
  • 2nd Place - A Bananite's Guide to... Contest Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon
  • Building Bridges Entrant Medal icon
  • Became a Studio Leader Medal icon
  • Reached 1,000 Points Medal icon
GMod config scripter
tom avatar
tom username pic Joined 17y ago
Ripe Supporter TBS2 Manager Super Admin
43,986 points Ranked 91st
55 medals 12 legendary 10 rare
  • Achieved Super Admin clearance Medal icon
  • 10 years a member Medal icon
  • Thanked 500 submitters Medal icon
  • Submitted 200 Blogs Medal icon
  • Submitted 200 Threads Medal icon
  • Submitted 60 Polls Medal icon
Original CS:S config
AoM avatar
AoM username pic Joined 12y ago
Ripe Supporter AC:NL Manager UT2k4 Manager SN Manager Admin
29,907 points Ranked 140th
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
Editing support

Submitter

Reverend V92 avatar
Reverend V92 username pic Joined 8y ago
Away
2,678 points Ranked 1839th
22 medals 3 rare
  • 2nd Place - A Bananite's Guide to... Contest Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon
  • Building Bridges Entrant Medal icon
  • Became a Studio Leader Medal icon
  • Reached 1,000 Points Medal icon

Reverend V92 avatar
Reverend V92

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

Category

Sub-category
Game Configs
Super-category
Modboy

Attributes

Language
CFG/Config

Share

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

Stats

  • 333 Views
  • 1 Posts
  • 2mo Submitted
  • 2mo Modified

Scores

  • Not yet rated
Sign up to access this!

Yo, buddy. Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Resistance is futile... Sign up now!

Already a Bananite? Login

WiPs by Submitter

bcp.crwdcntrl.net tracking pixel