Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
If you got a dedicated server, here is the must-have :
Get the prophunters addon FOLDER and not .gma
How to do that ? Ask google, or me but I'll post that tomorrow k ?
Then, let's say you installed the prophunters addon on your dedicated server in its /addons folder. In the prophunters folder, go to \gamemodes\prophunters\gamemode
In here you should find at the bottom a file named sv_teams.lua
Open it with Notepad ++ (or default text editor if you dare do) and search for the SwapTeams function at the bottom of the file.
The start should look like :
function GM:SwapTeams()
From that line, delete everything from "function GM:SwapTeams()" to the bottom, and copy-paste this :
function GM:SwapTeams()
for k, ply in pairs(player.GetAll()) do
if ply:Team() == 2 then
ply:SetTeam(3)
end
end
print(#team.GetPlayers(2))
local ct = ChatText()
local maxhunters = 2 -- HuntersMax = Nombre + 1
local hunters = #team.GetPlayers(2)
-- The variable nbmaxhunters define how much hunters you want
-- If yo want only 1 hunter, set it to 0 (trust me, it's because of my bad code)
-- If you want 2 hunters, set it to 1. If you want 3 hunters, set it to 2...
-- Use this mathematic formula if you're not sure
-- HowMuchHuntersYouWant - 1 = nbmaxhunters
local nbmaxhunters = 0
if hunters != maxhunters then -- Bug fixed, weird use of repeat loop
print("[PropHunters] Pas assez de Hunters ! ")
for h=0, nbmaxhunters do
local randomprop = table.Random(team.GetPlayers(3))
local randomprop_str = tostring(randomprop)
randomprop:SetTeam(2)
randomprop:Spawn()
local h = h + 1
print("Nouveau hunter : " .. randomprop_str )
print(h)
end
print("")
print("[PropHunters] Nouveau nombre de hunters = " .. #team.GetPlayers(2))
end
end
Save the file, and you should be good to go.
In case your whole server exploded because of me, add me on Steam and I'll help you. I may not be here at anytime, i'm still a student lmao.
good night guys
I've read we needed to edit the sv_teams.lua file, thank you for the code.
Unfortunately I don't have any prophunt folder in my garrysmod\gamemodes folder. I read I needed to download this mod through github and copy/paste the folder but it didn't work. The gamemode doesn't appear in the game...
Also, I don't have a dedicated server, I just want to create a lobby with my friends. Would your fixe still work ?
Quest Acquired : Create a dedicated server for you and your friends
Because 18minutes for 5 players is a little bit much.
If I have to give a value I would say 5minutes.
Can you help me ?
Actually, the round time is calculated with the number of props, of hunters and of "disguisable" props. I'll search the line to modify and i'll tell you here
(->Garry's mod wouldn't find the gamemode)
self.RoundSettings.RoundTime = 300
Remember to do a proper indenting with the other lines
If it still doesn't work, try to reinstall the addon and do it again
I have the prophunters-master folder downloaded...
Hey, there's a plenty of tutorials out there to learn how to make your own server, and installing custom gamemodes, I can't help you on something like that.
However if you find yourself having any difficulties with port-forwarding, I'd be happy to help !
It's the most hardest task in setting up a dedicated server.
_________________
Client loaded taunts file default.lua
Error: Material "debug/debuglightmap" uses unknown shader "LightmappedGeneric_dx8"
Error: Material "models/humans/female/pupil_r" uses unknown shader "Eyeball"
Error: Material "models/humans/female/pupil_l" uses unknown shader "Eyeball"
Requesting texture value from var "$basetexture" which is not a texture value (material: dev/bloomadd)
Requesting texture value from var "$basetexture" which is not a texture value (material: dev/no_pixel_write)
Requesting texture value from var "$basetexture" which is not a texture value (material: dev/lumcompare)
Reinitialized 0 predictable entities
Redownloading all lightmaps
Failed to load sound "ambient/tones/roomtone1.wav", file probably missing from disk/repository
Failed to load sound "ambient/nature/woodland_ambient_1.wav", file probably missing from disk/repository
Failed to load sound "crash/crash_music.mp3", file probably missing from disk/repository
___________________
Could you please explain to me what the problem is and how I can fix it? If you are unable to find a fix for this, please let me know as well.
*Note: I am running the x86-64 Chromium version of the game
Thanks!
I'm afraid I can't help you on that one, but from what I can see you should be able to ignore those errors
For the missing sound, my guess is either the files aren't there, or they're in the wrong frequency (44100 Hz)
Can't help you further than that, I don't know anything about the specifics of the Chromium version.