I think the default setup for VMFCopyGun and VMFLoader is perfectly horrible unless you're watching your server
every waking moment, since it's so easy to flood out other users and spam props.
This tutorial will help you make two folders for VMF patterns: One that everyone can see, and one that only admins can see. You will be able to freely move props between these folders, add more, remove, etc.So, here's a better alternative that I personally use.
Step 1: PreparationObviously, make sure you have VMFCopyGun installed and running properly... In these instructions, I was using VMFLoader v0.15 and VMFCopyGun v1.2 Final. I make no guarantees this will work with other versions.
Some lua programmer decided it would be a good idea to have a "virtual lua filesystem", which can contain entire directories in one file. This is all well and good unless you need to modify or move these files, which is exactly what we will be doing.
So,
delete all files in lua/vmfloader/packs. You'll also need to
delete the "contraptions" folder in the gmod9 root. Don't worry, you'll get the patterns that these files hold back in a moment.
For anyone who's interested, here's the code to extract from these "virtual filesystems". Simply set path to the folder containing the files to extract.
local path = "lua/vmfloader/packs"
local files = _file.Find( path .. "/*.vpk" );
for _, file in files do
obj = LuaVFS:new( path .. "/" .. file );
obj:extractFiles( path .. "/" .. string.sub( file, 1, -5 ) )
end
Step 2: InstallationGrab the file
http://ulyssesmod.net/betterVmfOrganization.zip and
extract it to the gmod9 folder. You'll notice it contains the folder "admin contraptions" and "public contraptions". These folders represent their functionality just as you would expect.
Now, we need to configure VMFCopyGun and VMFLoader to recognize these new folders.
Step 3: ConfigurationGo to lua/vmfloader/config.lua and find this line in it:
Folder:Add( "contraptions", "Contraptions", "" );
Replace that line with these:
Folder:Add( "public contraptions", "Public Contraptions", "" );
Folder:Add( "admin contraptions", "Admin Contraptions", "h" );
The "h" from the admin contraptions line tells VMFLoader that the user must have access "h" to access these VMFs, change it to whatever you'd like.
Step 4: TestingGo into your server and try the VMFCopyGun menu. If all is successful, you'll notice that if you're an admin, you see the admin and public patterns in the same section of the menu, but the admin patterns are a lighter shade of blue than the public ones.
Congrats! You're done!
Step 5: FiddlingSince you don't have those awful virtual filesystems anymore, you can freely move things between the admin and public folder.
One thing you'll quickly notice,
don't have a folder by the same name in both the public and admin folders, because it will have the same name in the menu as well and confuse you, the admin.
Have fun, and let me know if there's something missing from the tutorial!