Garry's Mod

Garry's Mod

sv_restart (superadmin command)
59 kommentarer
H4PPY 14. apr. kl. 13:26 
sv_restart
H4PPY 14. apr. kl. 13:26 
are you kinda dumb in this addon
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 14. apr. kl. 12:52 
But in the code of which add-on? That's quite the question!
H4PPY 14. apr. kl. 3:15 
well maybe you might HAVE to look in your code since yeah my gmod server aint public or port forwarded used something special
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 13. apr. kl. 10:58 
Well, I don't know what can be going on, since there is no server password set, as you mentioned.
H4PPY 13. apr. kl. 10:54 
no
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 13. apr. kl. 10:48 
And you did not see any message about a hook returning a value?! Maybe there is a hook system replacement somewhere, I do not know.
H4PPY 13. apr. kl. 6:29 
I DID
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 13. apr. kl. 6:17 
If nobody connects to your server, the event you want to monitor with `find_conflicts_hook_sv CheckPassword` will never fire.
H4PPY 10. apr. kl. 5:08 
its a private server i have hosted like i said with pterodactyl
H4PPY 10. apr. kl. 5:08 
why ?
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 9. apr. kl. 14:29 
Come on, bring someone on the server if you want to see something...
H4PPY 9. apr. kl. 13:55 
this ?: since its now fixed i think find_conflicts_hook_sv CheckPassword
Conflict test started for event name "CheckPassword"!
sv_restart
[Vermilion - Server] Saving data...
SoundEmitter: removing map sound overrides [599 to remove, 10 to restore]
Dropped H4PPY from server (Server shutting down)
Unknown command "escape"
H4PPY 9. apr. kl. 13:52 
ok now it started
H4PPY 9. apr. kl. 13:52 
no conflicts find_conflicts_hook_sv CheckPassword
H4PPY 9. apr. kl. 13:43 
where is that conflict finder `?
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 9. apr. kl. 13:19 
You can use my Conflict Finder with the event name "CheckPassword" if you want to find the add-on that is responsible for the rejection. That is, if the message provided to the client is not obvious.
H4PPY 9. apr. kl. 13:13 
no i installed it on pterodactyl aka linux with docker
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 9. apr. kl. 12:57 
Have you installed an add-on to only allow friends, by any chance? The one that I made, in particular. This one uses the password check event to reject incoming players.
H4PPY 9. apr. kl. 12:19 
yes
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 9. apr. kl. 12:12 
So what now? Still not working?
H4PPY 9. apr. kl. 12:11 
heres the config {LINK FJERNET}
H4PPY 9. apr. kl. 12:10 
no i changed the password to nothing
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 9. apr. kl. 12:05 
Check the configuration files and the command line. The password is probably set in these.
H4PPY 9. apr. kl. 11:48 
well i dont put a password
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 9. apr. kl. 11:17 
Change the value of sv_password on your server. For an empty password, you can use a quoted value: sv_password "" . Well, that is if I remember correctly that console variable.
H4PPY 9. apr. kl. 7:32 
i get 192.168.2.182:57009: password failed.
192.168.2.182:57009: password failed.
please help
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 10. sep. 2021 kl. 21:15 
What is wrong? :steamsad:
MARK_EDINOROGLOVE 19. feb. 2021 kl. 12:24 
sv_restart
Commencing connection retry to 192.168.0.100:27015
Restoring gamemode to sandbox
Client sending to server with no netchannel!
SoundEmitter: removing map sound overrides [3 to remove, 0 to restore]
Connecting to 192.168.0.100:27015...
The server will restart in 0 seconds!
Please wait before coming back.
Restoring gamemode to sandbox

This is run in the game
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 18. feb. 2021 kl. 15:31 
Do you know what the retry command is?
Run it from your game, not on the server!
MARK_EDINOROGLOVE 17. feb. 2021 kl. 12:18 
sv_restart
Dropped MARK_EDINOROGLOVE from server (Disconnect by user.)
Dropped vandrenko from server (Disconnect by user.)
86.100.164.25:27005: password failed.
192.168.0.100:27006: password failed.
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 14. feb. 2021 kl. 15:23 
I mean when you run it yourself from the console of your game.
MARK_EDINOROGLOVE 4. feb. 2021 kl. 9:23 
In what sense manually?
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 3. feb. 2021 kl. 14:16 
Hi! I have not started GMod in a while, that must be due to an update.
What happens when you manually use the retry console command??
MARK_EDINOROGLOVE 11. jan. 2021 kl. 13:56 
I have a new problem here, when I write sv_restart the server starts the report, as soon as it reaches zero, the message is displayed, the server will restart in 0 seconds! 192.168.0.100:27007: password failed is written to the server console. although there is no password on the server( what to do?
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 8. juli 2020 kl. 6:57 
Huh, on Windows here is how you do it:
:begin
srcds.exe .....
goto begin
MARK_EDINOROGLOVE 8. juli 2020 kl. 2:28 
Okay, but how can I edit the script then, it’s just that I have a server that opens in cmd and half of the FIG add-ons know where, but there is nothing in the addons folder, or maybe then drop the repository from github or maybe send it to discord ... ??
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 7. juli 2020 kl. 21:23 
You should edit the script that starts the server to make it loop. If you can't then simply uninstall this add-on! ;-) I do not think I can do more.
MARK_EDINOROGLOVE 5. juli 2020 kl. 19:12 
after writing the sv_restart command, the server turns off .... But it does not turn on ... What should I do ??
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 1. juni 2018 kl. 12:22 
The RCon mechanism is a part of the srcds binary, so it only listens if it is running (and I believe it only accepts incoming connections if it is not stuck in a loop).
Also if the server is running with no loaded map (bad map specified or after using disconnect ), you can use rcon map <map_name> .
NBA YUNG LOOZ 31. maj 2018 kl. 1:53 
Is there any way you could make another command on here so it starts the server if its down? Like you connect to the server like 'rcon_address (ip)', then 'rcon password (pw)' and then rcon_start or rcon_restart if you dont have the server on your hardware and its on a friends lets say
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 30. mar. 2018 kl. 10:43 
I am not a Linux user but I know that the default bash script does not restart the server on process clean exit nor on process crash.
Okay my description should be clear about this fact.
女儿 28. mar. 2018 kl. 5:34 
Not work on dedicated server? it only shut down, not restart.
Tythegamer 14. aug. 2017 kl. 14:27 
Nice addon, very usefull!
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 13. nov. 2016 kl. 2:55 
Because sv_cheats cannot be used in Lua (forbidden).
http://wiki.garrysmod.com/page/Blocked_ConCommands
JustPlayer 13. nov. 2016 kl. 1:45 
why you dont use RunConsoleCommand( ) (https://wiki.garrysmod.com/page/Global/RunConsoleCommand) ^^
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 12. nov. 2016 kl. 11:42 
Well, yes, but I could make it as safe as possible though.
It was basically my only way to enable sv_cheats so I tried, and I failed.
JustPlayer 12. nov. 2016 kl. 10:55 
for RCON you need to give the console a password but if a Addon load he RCON pass then it can very fast detected as backdoor etc :3
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 12. nov. 2016 kl. 9:02 
Yes, I tried a few things to force a packet loss of 100%, but it needs sv_cheats. So I tried to activate it through RCon. But it did not work and that did an endless loop...
That would have allowed me to display a waiting screen during the restart, instead of being kicked with "Server shutting down".
JustPlayer 12. nov. 2016 kl. 8:55 
--[[ else
local rcon_address = GetConVar( "hostip" ):GetInt()
rcon_address = {
bit.band( 0xFF, bit.rshift( rcon_address, 24 ) ),
bit.band( 0xFF, bit.rshift( rcon_address, 16 ) ),
bit.band( 0xFF, bit.rshift( rcon_address, 8 ) ),
bit.band( 0xFF, rcon_address ),
}
rcon_address = table.concat( hostip, "." )..":"..GetConVar( "hostport" ):GetInt()
-- game.ConsoleCommand( 'rcon_address "'..rcon_address..'"\nnet_fakeloss 100\nrcon sv_cheats 1\nrcon net_fakeloss 100\n' )
end ]]

huh?