-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notify gmod of file change #1
Comments
Hey! The way I've gotten this to work is using symbolic links ( But this isn't very user friendly and it's quite manual. I would like to make this VS Code extension take care of this. |
@BadgerCode Yeah I attempted that too, but I was somewhat unsuccessful at linking that. I might try again, but ln just created an invalid link file. Might be related to the fact that it's on a different drive... |
Here's an example of making a symbolic link on PC in command prompt mklink /J "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons\myaddon" "C:\Users\mike-\Documents\Projects\gmod\myaddon" This should work for other drives too |
I got it to work in the end, and btw, I am on Linux ;) |
Yeah it's easy enough to mess up making a symbolic link. |
Hey there,
It turns out, that gmod can load lua files, that changed by observing the filesystem events, in this case the save-file event (no clue, how it's called)
I would be really pleased, if this addon could somehow call that event, so gmod recognizes the change and doesn't force me to always reload the map when I make changes ;)
Thanks!
The text was updated successfully, but these errors were encountered: