[GH-ISSUE #1654] Disable Lua-AutoRefresh by default on gmodserver #1290

Closed
opened 2026-02-27 02:56:19 +03:00 by kerem · 9 comments
Owner

Originally created by @MarkTwoFive on GitHub (Oct 18, 2017).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1654

Originally assigned to: @marvinlehmann on GitHub.

Reason: Lua files are being refreshed when file changes are detected (Actually saving or just permission changes as any write operation triggers the refresh).

This is not supported or recommended by GarrysMod.

I suggest adding "-disableluarefresh" to the default parameters as the auto refresh should only be used during development processes. This will force users to restart upon changing scripts causing more consistent, reliable and supported behavior and preventing inconsistent bugs.

See: https://wiki.garrysmod.com/page/Auto_Refresh

Originally created by @MarkTwoFive on GitHub (Oct 18, 2017). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1654 Originally assigned to: @marvinlehmann on GitHub. Reason: Lua files are being refreshed when file changes are detected (Actually saving or just permission changes as any write operation triggers the refresh). This is not supported or recommended by GarrysMod. I suggest adding "-disableluarefresh" to the default parameters as the auto refresh should only be used during development processes. This will force users to restart upon changing scripts causing more consistent, reliable and supported behavior and preventing inconsistent bugs. See: https://wiki.garrysmod.com/page/Auto_Refresh
kerem 2026-02-27 02:56:19 +03:00
Author
Owner

@UltimateByte commented on GitHub (Oct 19, 2017):

Well, if it wasn't supported it would be disabled by default, don't you think? In some cases it saves time, in other cases it will crash your server while adding/editing scripts, especially when you make syntax errors of course. Though I agree it can be nice to have it by default, and users can just remove the argument if they don't like it.

(just to make sure all things are considered before committing)

<!-- gh-comment-id:337763292 --> @UltimateByte commented on GitHub (Oct 19, 2017): Well, if it wasn't supported it would be disabled by default, don't you think? In some cases it saves time, in other cases it will crash your server while adding/editing scripts, especially when you make syntax errors of course. Though I agree it can be nice to have it by default, and users can just remove the argument if they don't like it. (just to make sure all things are considered before committing)
Author
Owner

@MarkTwoFive commented on GitHub (Oct 19, 2017):

I've indeed thought about that too.

Hopefully you won't be editing either you other 3rd party scripts on a production environment though. Fixing syntax errors can also be very tricky because as said in the article when refreshing cascades some of the initializations are redone and some aren't which always may break everything in weird manners. For the same reason reloading in MC servers should only be used in development environments.

At least to me the deployed lgsm server should not be a development server out of the box. Features soly for development should be disabled.

Just to respond to your concerns.

<!-- gh-comment-id:337796096 --> @MarkTwoFive commented on GitHub (Oct 19, 2017): I've indeed thought about that too. Hopefully you won't be editing either you other 3rd party scripts on a production environment though. Fixing syntax errors can also be very tricky because as said in the article when refreshing cascades some of the initializations are redone and some aren't which always may break everything in weird manners. For the same reason reloading in MC servers should only be used in development environments. At least to me the deployed lgsm server should not be a development server out of the box. Features soly for development should be disabled. Just to respond to your concerns.
Author
Owner

@marvinlehmann commented on GitHub (Oct 19, 2017):

I just saw that it was actually discussed long ago #590 but I still agree with @MarkL4YG although my knowledge about gmod is quite limited.

<!-- gh-comment-id:337820129 --> @marvinlehmann commented on GitHub (Oct 19, 2017): I just saw that it was actually discussed long ago #590 but I still agree with @MarkL4YG although my knowledge about gmod is quite limited.
Author
Owner

@MarkTwoFive commented on GitHub (Oct 19, 2017):

Yeah.
It seems the focus there was more a switch for this though rather than just adding the parameter to the default params.

Also it seems that issue is one of the first appearances of the additional params option - nice to know 😃

<!-- gh-comment-id:337936054 --> @MarkTwoFive commented on GitHub (Oct 19, 2017): Yeah. It seems the focus there was more a switch for this though rather than just adding the parameter to the default params. Also it seems that issue is one of the first appearances of the additional params option - nice to know :smiley:
Author
Owner

@UltimateByte commented on GitHub (Oct 19, 2017):

On #590 the lua autorefresh was just being added to the Linux version of Gmod server, so the point of view was a bit biased. Yeah, this idea of additional_parms which later became customparms, came from seing multiple request for parms that people might want to change but were a bit questionable to be added by default.
You're very right to remind it, customparms variable would fit perfectly for this case.

@marvinlehmann In that regard, it would be better to add it within customparms="" rather than in main parms="".

<!-- gh-comment-id:337955378 --> @UltimateByte commented on GitHub (Oct 19, 2017): On #590 the lua autorefresh was just being added to the Linux version of Gmod server, so the point of view was a bit biased. Yeah, this idea of `additional_parms` which later became `customparms`, came from seing multiple request for parms that people might want to change but were a bit questionable to be added by default. You're very right to remind it, `customparms` variable would fit perfectly for this case. @marvinlehmann In that regard, it would be better to add it within `customparms=""` rather than in main `parms=""`.
Author
Owner

@MarkTwoFive commented on GitHub (Oct 19, 2017):

@UltimateByte that may well be a compromise between adding it to the default params and not adding it at all.
But honestly wouldn't that compromise the purpose of "custom"-params on the other hand? One big question with this param and LGSM should really be how LGSM wants to deploy servers: In development or production stage.

<!-- gh-comment-id:337958326 --> @MarkTwoFive commented on GitHub (Oct 19, 2017): @UltimateByte that may well be a compromise between adding it to the default params and not adding it at all. But honestly wouldn't that compromise the purpose of "custom"-params on the other hand? One big question with this param and LGSM should really be how LGSM wants to deploy servers: In development or production stage.
Author
Owner

@marvinlehmann commented on GitHub (Oct 19, 2017):

@UltimateByte Done it. I totally didn't see it >.>

<!-- gh-comment-id:337961370 --> @marvinlehmann commented on GitHub (Oct 19, 2017): @UltimateByte Done it. I totally didn't see it >.>
Author
Owner

@UltimateByte commented on GitHub (Oct 20, 2017):

This is now merged.
(Into dev and will be into the next release)

<!-- gh-comment-id:338325514 --> @UltimateByte commented on GitHub (Oct 20, 2017): This is now merged. (Into dev and will be into the next release)
Author
Owner

@lock[bot] commented on GitHub (Oct 20, 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:431621985 --> @lock[bot] commented on GitHub (Oct 20, 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#1290
No description provided.