[GH-ISSUE #590] Garry's Mod -disableluarefresh #477

Closed
opened 2026-02-27 02:01:44 +03:00 by kerem · 8 comments
Owner

Originally created by @Herover on GitHub (Dec 28, 2015).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/590

In Garry's Mod theres a launch parameter to stop refreshing lua files when changed, -disableluarefresh.

Of course it's possible to just append -disableluarefresh manually but it would be convenient to have a easy enable/disable setting in lgsm too.

Thanks.

Originally created by @Herover on GitHub (Dec 28, 2015). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/590 In Garry's Mod theres a launch parameter to stop refreshing lua files when changed, -disableluarefresh. Of course it's possible to just append -disableluarefresh manually but it would be convenient to have a easy enable/disable setting in lgsm too. Thanks.
Author
Owner

@dgibbs64 commented on GitHub (Dec 29, 2015):

I don't think this would be a good idea. As there are likely many parms for garrys mod I tend to only have common parms in there own variable such as map and ports. Server specific parms I don't add. It is up to the server admin to customize the parms as they see fit. Over-wise I would end up with a massive list of possible options for users to add. However thanks for your input.

<!-- gh-comment-id:167684389 --> @dgibbs64 commented on GitHub (Dec 29, 2015): I don't think this would be a good idea. As there are likely many parms for garrys mod I tend to only have common parms in there own variable such as map and ports. Server specific parms I don't add. It is up to the server admin to customize the parms as they see fit. Over-wise I would end up with a massive list of possible options for users to add. However thanks for your input.
Author
Owner

@UltimateByte commented on GitHub (Dec 29, 2015):

Yep, gamemode whis is very used was already added if i remind well, that's already enough in my opinion for common start options.

<!-- gh-comment-id:167821809 --> @UltimateByte commented on GitHub (Dec 29, 2015): Yep, gamemode whis is very used was already added if i remind well, that's already enough in my opinion for common start options.
Author
Owner

@jaredballou commented on GitHub (Jan 6, 2016):

This is where the "srcds_params" variable in my external configs thing comes into play. I had similar issues with Insurgency and its weird commands, it might be worth plotting out how to add parameters properly for all the games. For example, in Insurgency (and srcds in general) the order can be important, my hacky way to get around it was to put the extra parameter variable between the - and + parameters and require the server admins to enter commands in the right order there. Some games may require different variables to be injected at different points. But unless Insurgency is a snowflake, this seems like an idea we may want to look into a bit more.

<!-- gh-comment-id:169224267 --> @jaredballou commented on GitHub (Jan 6, 2016): This is where the "srcds_params" variable in my external configs thing comes into play. I had similar issues with Insurgency and its weird commands, it might be worth plotting out how to add parameters properly for all the games. For example, in Insurgency (and srcds in general) the order can be important, my hacky way to get around it was to put the extra parameter variable between the - and + parameters and require the server admins to enter commands in the right order there. Some games may require different variables to be injected at different points. But unless Insurgency is a snowflake, this seems like an idea we may want to look into a bit more.
Author
Owner

@UltimateByte commented on GitHub (Jan 6, 2016):

Yep. Maybe your variable could be useful to integrate in main game scripts @jaredballou

That thing appart, i'm personally happy that gmod linux server finally supports lua auto refresh... Will make my life easier when setting up back some DarkRPs...

<!-- gh-comment-id:169335894 --> @UltimateByte commented on GitHub (Jan 6, 2016): Yep. Maybe your variable could be useful to integrate in main game scripts @jaredballou That thing appart, i'm personally happy that gmod linux server finally supports lua auto refresh... Will make my life easier when setting up back some DarkRPs...
Author
Owner

@Herover commented on GitHub (Jan 6, 2016):

Having a params variable could be nice as a alternative :)

@UltimateByte it should be noted that it's generally best-practice to have it disabled on production servers since it's easy to break stuff with it too.

<!-- gh-comment-id:169337736 --> @Herover commented on GitHub (Jan 6, 2016): Having a params variable could be nice as a alternative :) @UltimateByte it should be noted that it's generally best-practice to have it disabled on production servers since it's easy to break stuff with it too.
Author
Owner

@UltimateByte commented on GitHub (Jan 6, 2016):

Yep, one missing character, then you gotta restart the server :p
BTW i really don't think such a command will be added natively, otherwise, the script would support all commands in an advanced start options category, but it sounds like it's too much.

You can still make your own custom command pretty easilly as jaredballou did.
I think it would be a good idea to get this a default standard to all game servers.

Add this variable somewhere and put your additional commands in it:
additional_parms=""

Then change
fn_parms(){
parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} +host_workshop_collection ${workshopcollectionid} -authkey ${workshopauth} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}

to :
fn_parms(){
parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} +host_workshop_collection ${workshopcollectionid} -authkey ${workshopauth} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} ${additional_parms}"
}

<!-- gh-comment-id:169340813 --> @UltimateByte commented on GitHub (Jan 6, 2016): Yep, one missing character, then you gotta restart the server :p BTW i really don't think such a command will be added natively, otherwise, the script would support all commands in an advanced start options category, but it sounds like it's too much. You can still make your own custom command pretty easilly as jaredballou did. I think it would be a good idea to get this a default standard to all game servers. Add this variable somewhere and put your additional commands in it: additional_parms="" Then change fn_parms(){ parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} +host_workshop_collection ${workshopcollectionid} -authkey ${workshopauth} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" } to : fn_parms(){ parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} +host_workshop_collection ${workshopcollectionid} -authkey ${workshopauth} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} ${additional_parms}" }
Author
Owner

@UltimateByte commented on GitHub (Jan 7, 2016):

I hope it helped. Closing for now but feel free to re-open if needed.
Have a nice admin time !

<!-- gh-comment-id:169826069 --> @UltimateByte commented on GitHub (Jan 7, 2016): I hope it helped. Closing for now but feel free to re-open if needed. Have a nice admin time !
Author
Owner

@lock[bot] commented on GitHub (Jul 19, 2018):

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:406332525 --> @lock[bot] commented on GitHub (Jul 19, 2018): This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#477
No description provided.