Skip to content

Commit 03d1aa4

Browse files
committed
fix custom folder not mounting.
1 parent 79950f7 commit 03d1aa4

File tree

10 files changed

+131
-10
lines changed

10 files changed

+131
-10
lines changed

game/mod_hl2mp/custom/readme.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
This folder is automatically scanned when the game boots for VPK files or
2+
subfolders. Each subfolder or VPK is added as a search custom, so the files
3+
inside those VPK's or subfolders will overide the default game files.
4+
5+
See gameinfo.txt for more details.
6+
7+
For example, you might have the following file structure:
8+
9+
mod_hl2mp/custom/my_custom_stuff/ <<< This subfolder will be added as a search custom
10+
mod_hl2mp/custom/my_custom_stuff/models/custom_model.mdl
11+
mod_hl2mp/custom/my_custom_stuff/materials/custom_material.vmt
12+
mod_hl2mp/custom/my_custom_stuff/materials/vgui/custom_ui_thing.res
13+
mod_hl2mp/custom/some_mod.vpk <<< This VPK will be added as a search custom
14+
mod_hl2mp/custom/another_mod.vpk <<< This VPK will be added as a search custom
15+
16+
17+
Mounting a VPK to the filesystem is more efficient that adding a subfolder,
18+
because each time the engine neds to open a file, it will need to make a call to the
19+
operating system call to search the folder. VPKs can be searched by the engine much
20+
more efficiently. Each subfolder is a new search custom that must be checked each
21+
time the engine tries to open a file. So for optimal load times, always use VPK files
22+
and don't make any subfolders in this folder!
23+
24+
25+
Note that the following directory structure is NOT correct:
26+
27+
mod_hl2mp/custom/models/my_model.mdl
28+
29+
That will add the directory "hl2mp/custom/models" as a search path, in which case the
30+
file my_model.mdl actually exists at the root of the game's virtual filesystem.

game/mod_hl2mp/gameinfo.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
// folder.
4343
//
4444
// Note that this folder is scanned only when the game is booted.
45-
game+mod mod_hl2mp/custom/*
45+
game+mod |gameinfo_path|custom/*
4646

4747
// Now search loose files. We'll set the directory containing the gameinfo.txt file
4848
// as the first "mod" search path (after any user customizations). This is also the one
@@ -89,7 +89,7 @@
8989
// packed up in the .bsp file so that it will be mounted as a map search pack.
9090
// The map search pack is mounted at the top of the search path list,
9191
// but only while you are connected that server and on that map.
92-
game+download mod_hl2mp/download
92+
game+download |gameinfo_path|download
9393
}
9494
}
9595
}

game/mod_tf/custom/readme.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
This folder is automatically scanned when the game boots for VPK files or
2+
subfolders. Each subfolder or VPK is added as a search custom, so the files
3+
inside those VPK's or subfolders will overide the default game files.
4+
5+
See gameinfo.txt for more details.
6+
7+
For example, you might have the following file structure:
8+
9+
mod_tf/custom/my_custom_stuff/ <<< This subfolder will be added as a search custom
10+
mod_tf/custom/my_custom_stuff/models/custom_model.mdl
11+
mod_tf/custom/my_custom_stuff/materials/custom_material.vmt
12+
mod_tf/custom/my_custom_stuff/materials/vgui/custom_ui_thing.res
13+
mod_tf/custom/some_mod.vpk <<< This VPK will be added as a search custom
14+
mod_tf/custom/another_mod.vpk <<< This VPK will be added as a search custom
15+
16+
17+
Mounting a VPK to the filesystem is more efficient that adding a subfolder,
18+
because each time the engine neds to open a file, it will need to make a call to the
19+
operating system call to search the folder. VPKs can be searched by the engine much
20+
more efficiently. Each subfolder is a new search custom that must be checked each
21+
time the engine tries to open a file. So for optimal load times, always use VPK files
22+
and don't make any subfolders in this folder!
23+
24+
25+
Note that the following directory structure is NOT correct:
26+
27+
mod_tf/custom/models/my_model.mdl
28+
29+
That will add the directory "hl2mp/custom/models" as a search path, in which case the
30+
file my_model.mdl actually exists at the root of the game's virtual filesystem.

game/mod_tf/gameinfo.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
// folder.
3434
//
3535
// Note that this folder is scanned only when the game is booted.
36-
game+mod+custom_mod mod_tf/custom/*
36+
game+mod+custom_mod |gameinfo_path|custom/*
3737
// Enable this if you want to load your TF custom content.
3838
//game+mod+custom_mod |appid_440|tf/custom/*
3939

@@ -77,7 +77,7 @@
7777
// packed up in the .bsp file so that it will be mounted as a map search pack.
7878
// The map search pack is mounted at the top of the search path list,
7979
// but only while you are connected that server and on that map.
80-
game+download mod_tf/download
80+
game+download |gameinfo_path|download
8181
}
8282
}
8383
}

game/quiver/custom/readme.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
This folder is automatically scanned when the game boots for VPK files or
2+
subfolders. Each subfolder or VPK is added as a search custom, so the files
3+
inside those VPK's or subfolders will overide the default game files.
4+
5+
See gameinfo.txt for more details.
6+
7+
For example, you might have the following file structure:
8+
9+
quiver/custom/my_custom_stuff/ <<< This subfolder will be added as a search custom
10+
quiver/custom/my_custom_stuff/models/custom_model.mdl
11+
quiver/custom/my_custom_stuff/materials/custom_material.vmt
12+
quiver/custom/my_custom_stuff/materials/vgui/custom_ui_thing.res
13+
quiver/custom/some_mod.vpk <<< This VPK will be added as a search custom
14+
quiver/custom/another_mod.vpk <<< This VPK will be added as a search custom
15+
16+
17+
Mounting a VPK to the filesystem is more efficient that adding a subfolder,
18+
because each time the engine neds to open a file, it will need to make a call to the
19+
operating system call to search the folder. VPKs can be searched by the engine much
20+
more efficiently. Each subfolder is a new search custom that must be checked each
21+
time the engine tries to open a file. So for optimal load times, always use VPK files
22+
and don't make any subfolders in this folder!
23+
24+
25+
Note that the following directory structure is NOT correct:
26+
27+
quiver/custom/models/my_model.mdl
28+
29+
That will add the directory "hl2mp/custom/models" as a search path, in which case the
30+
file my_model.mdl actually exists at the root of the game's virtual filesystem.

game/quiver/gameinfo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
// folder.
3636
//
3737
// Note that this folder is scanned only when the game is booted.
38-
game+mod+custom_mod quiver/custom/*
38+
game+mod+custom_mod |gameinfo_path|custom/*
3939
// Enable this if you want to load your TF custom content.
4040
//game+mod+custom_mod |appid_440|tf/custom/*
4141

game/quiver/info_changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Quiver Private Alpha 1.1.0 (WIP):
3434
- Minigun/Sniper rifle aiming now considers movespeed when calculating the aiming move speed.
3535
- Added 4 seconds of spawn protection in TDM mode.
3636
- Fixed another bug where the TDM HUD is overlayed over other gamemode's HUD elements.
37+
- The Sword no longer pierces through armor, in favor of it having a 30% damage bonus against armor.
3738
- Added the following Source SDK Pull Requests:
3839
- #1437: MvM: Fix Explosive Headshot working on invulnerable target
3940

game/quiver/scripts/items/items_custom.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@
171171
}
172172
"attributes"
173173
{
174-
"dmg pierces armor"
174+
"armor damage increased on target"
175175
{
176-
"attribute_class" "mod_pierce_armor"
177-
"value" "1"
176+
"attribute_class" "mult_armor_onhit"
177+
"value" "1.30"
178178
}
179179
"is_a_sword"
180180
{

game/survivor2/custom/readme.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
This folder is automatically scanned when the game boots for VPK files or
2+
subfolders. Each subfolder or VPK is added as a search custom, so the files
3+
inside those VPK's or subfolders will overide the default game files.
4+
5+
See gameinfo.txt for more details.
6+
7+
For example, you might have the following file structure:
8+
9+
survivor2/custom/my_custom_stuff/ <<< This subfolder will be added as a search custom
10+
survivor2/custom/my_custom_stuff/models/custom_model.mdl
11+
survivor2/custom/my_custom_stuff/materials/custom_material.vmt
12+
survivor2/custom/my_custom_stuff/materials/vgui/custom_ui_thing.res
13+
survivor2/custom/some_mod.vpk <<< This VPK will be added as a search custom
14+
survivor2/custom/another_mod.vpk <<< This VPK will be added as a search custom
15+
16+
17+
Mounting a VPK to the filesystem is more efficient that adding a subfolder,
18+
because each time the engine neds to open a file, it will need to make a call to the
19+
operating system call to search the folder. VPKs can be searched by the engine much
20+
more efficiently. Each subfolder is a new search custom that must be checked each
21+
time the engine tries to open a file. So for optimal load times, always use VPK files
22+
and don't make any subfolders in this folder!
23+
24+
25+
Note that the following directory structure is NOT correct:
26+
27+
survivor2/custom/models/my_model.mdl
28+
29+
That will add the directory "hl2mp/custom/models" as a search path, in which case the
30+
file my_model.mdl actually exists at the root of the game's virtual filesystem.

game/survivor2/gameinfo.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
// folder.
4444
//
4545
// Note that this folder is scanned only when the game is booted.
46-
game+mod mod_hl2mp/custom/*
46+
game+mod |gameinfo_path|custom/*
4747

4848
// Now search loose files. We'll set the directory containing the gameinfo.txt file
4949
// as the first "mod" search path (after any user customizations). This is also the one
@@ -90,7 +90,7 @@
9090
// packed up in the .bsp file so that it will be mounted as a map search pack.
9191
// The map search pack is mounted at the top of the search path list,
9292
// but only while you are connected that server and on that map.
93-
game+download mod_hl2mp/download
93+
game+download |gameinfo_path|download
9494
}
9595
}
9696
}

0 commit comments

Comments
 (0)