Garry's Mod

Garry's Mod

View Stats:
Vortex Oct 28, 2016 @ 6:07pm
FactoryReset-Windows.bat
Does anyone else have that in their common/Garrys mod folder?
http://pastebin.com/eHtHgzH3 if you're wondering
< >
Showing 1-15 of 18 comments
JesseSmith Oct 28, 2016 @ 6:18pm 
Just looks like a program to reset Garry's mod, I wouldn't mess with it unless you want to re-install the game, it might also have to do with deleting the local content on steam.
Vortex Oct 28, 2016 @ 6:22pm 
already deleted it
didn't want to lose my materials
JesseSmith Oct 28, 2016 @ 6:25pm 
Originally posted by Marksman:
already deleted it
didn't want to lose my materials
I don't think it was gonna cause issues, it looks like that's a program ran when un-installing the game, but if your worried over it it's probably fine that you removed it, if it is what I think it is, it will re-create itself if you ever need to delete Garry's mod.
GOD ***** Oct 28, 2016 @ 7:27pm 
Originally posted by Marksman:
Does anyone else have that in their common/Garrys mod folder?
http://pastebin.com/eHtHgzH3 if you're wondering
its a console code designed to reset gmod to fresh state.... it will delete all mods server files that you have downloaded including the maps..... by the looks of it its clean it needs to be run inside the bin
KilledJoy Oct 28, 2016 @ 8:35pm 
Its named suspiciously valid file or not cant hurt to remove it if you have no intention of reseting gmod (assuming thats what it does )
R10101 Oct 29, 2016 @ 2:26am 
Originally posted by Derp Dolphin:
Its named suspiciously valid file or not cant hurt to remove it if you have no intention of reseting gmod (assuming thats what it does )
Yeah, a better name for it would be FactoryResetGMod or something.
sophie Oct 29, 2016 @ 4:35am 
Hey guys, looks like I forgot to list this in the recent update's changelog. It's just a script that'll reset your game's config and re-download a few files to make sure they haven't been modified. It's nothing to worry about.

I'll go ahead and rename it to FactoryReset-GMod.bat or something for the next update, because I can see how the name is pretty misleading.
Last edited by sophie; Oct 29, 2016 @ 4:37am
GOD ***** Oct 29, 2016 @ 4:53am 
Originally posted by Willox 👻:
Hey guys, looks like I forgot to list this in the recent update's changelog. It's just a script that'll reset your game's config and re-download a few files to make sure they haven't been modified. It's nothing to worry about.

I'll go ahead and rename it to FactoryReset-GMod.bat or something for the next update, lI can see how the name is pretty misleading.
lol
JesseSmith Nov 11, 2016 @ 10:59am 
Originally posted by igiul™ ( --:
Well, what should i do with it?
FactoryReset-Windows.bat file
You dont need to do anything, its not going to harm your computer or anything like that.
GOD ***** Nov 11, 2016 @ 3:49pm 
Originally posted by igiul™ ( --:
Well, what should i do with it?
FactoryReset-Windows.bat file
the developers put this in

Originally posted by Willox:
Hey guys, looks like I forgot to list this in the recent update's changelog. It's just a script that'll reset your game's config and re-download a few files to make sure they haven't been modified. It's nothing to worry about.

I'll go ahead and rename it to FactoryReset-GMod.bat or something for the next update, because I can see how the name is pretty misleading.
dont touch it its to reset your gmod
JesseSmith Nov 11, 2016 @ 3:59pm 
Originally posted by United Kingdom:
Originally posted by igiul™ ( --:
Well, what should i do with it?
FactoryReset-Windows.bat file
the developers put this in

Originally posted by Willox:
Hey guys, looks like I forgot to list this in the recent update's changelog. It's just a script that'll reset your game's config and re-download a few files to make sure they haven't been modified. It's nothing to worry about.

I'll go ahead and rename it to FactoryReset-GMod.bat or something for the next update, because I can see how the name is pretty misleading.
dont touch it its to reset your gmod
You do know he's a developer right? I'm sure he knows what he's talking about
WereWhusky Feb 20, 2017 @ 3:53pm 
TIS IS THE FILE'S CONTENT:

@echo off

::We don't want people running this in the wrong place
IF NOT EXIST ".\hl2.exe" (
ECHO Game binary doesn't exist. Are you executing this script from the wrong directory?
EXIT /B 1
)

::Give the user fair warning
ECHO This script will attempt to reset Garry's Mod to its default state. If the game is running, it will be closed.
ECHO You will lose any settings that have been changed and potentially any saved data, such as duplications.
ECHO Addons will not be removed.
ECHO.

::Let the user bail
CHOICE /N /M "Are you sure you want to continue? [Y/N]"

IF ERRORLEVEL == 2 (
ECHO Aborting.
EXIT /B 1
)

ECHO.

::Some of the below won't work if the game is already running
TASKKILL /f /im "hl2.exe" >NUL 2>&1

::Config files
ECHO [1/7] Removing configuration
CALL :DEL_DIR ".\garrysmod\cfg"
CALL :DEL_DIR ".\garrysmod\settings"

::Addon data
ECHO [2/7] Removing stored addon data
CALL :DEL_DIR ".\garrysmod\data"

::Server downloads
ECHO [3/7] Removing downloaded server content
CALL :DEL_DIR ".\garrysmod\download"
CALL :DEL_DIR ".\garrysmod\downloads"
CALL :DEL_DIR ".\garrysmod\downloadlists"

::Gamemodes/Lua
ECHO [4/7] Removing base Lua scripts and gamemodes
CALL :DEL_DIR ".\garrysmod\gamemodes\base"
CALL :DEL_DIR ".\garrysmod\gamemodes\sandbox"
CALL :DEL_DIR ".\garrysmod\gamemodes\terrortown"
CALL :DEL_DIR ".\garrysmod\lua"

::SQLite databases
ECHO [5/7] Removing SQLite databases
CALL :DEL_FILE ".\garrysmod\cl.db"
CALL :DEL_FILE ".\garrysmod\sv.db"
CALL :DEL_FILE ".\garrysmod\mn.db"

::Lua/Workshop cache
ECHO [6/7] Emptying Lua/Workshop cache
CALL :DEL_DIR ".\garrysmod\cache"

::Get steam to redownload anything we've just deleted (this actually also deletes cfg/config.cfg from the Steam Cloud)
ECHO [7/7] Marking game's content for validation by Steam
.\hl2.exe -factoryresetstuff

ECHO.
ECHO Finished. Steam will attempt to download some missing files the next time you launch Garry's Mod.
ECHO.

PAUSE
EXIT /B

:DEL_DIR
::ECHO Removing dir %1.
IF EXIST %1 ( RMDIR /S /Q %1 )
GOTO:EOF

:DEL_FILE
::ECHO Removing file %1.
IF EXIST %1 ( DEL /Q %1 )
GOTO:EOF
Krizis Jul 4, 2017 @ 1:52pm 
Originally posted by Teamroan117:
TIS IS THE FILE'S CONTENT:

@echo off

::We don't want people running this in the wrong place
IF NOT EXIST ".\hl2.exe" (
ECHO Game binary doesn't exist. Are you executing this script from the wrong directory?
EXIT /B 1
)

::Give the user fair warning
ECHO This script will attempt to reset Garry's Mod to its default state. If the game is running, it will be closed.
ECHO You will lose any settings that have been changed and potentially any saved data, such as duplications.
ECHO Addons will not be removed.
ECHO.

::Let the user bail
CHOICE /N /M "Are you sure you want to continue? [Y/N]"

IF ERRORLEVEL == 2 (
ECHO Aborting.
EXIT /B 1
)

ECHO.

::Some of the below won't work if the game is already running
TASKKILL /f /im "hl2.exe" >NUL 2>&1

::Config files
ECHO [1/7] Removing configuration
CALL :DEL_DIR ".\garrysmod\cfg"
CALL :DEL_DIR ".\garrysmod\settings"

::Addon data
ECHO [2/7] Removing stored addon data
CALL :DEL_DIR ".\garrysmod\data"

::Server downloads
ECHO [3/7] Removing downloaded server content
CALL :DEL_DIR ".\garrysmod\download"
CALL :DEL_DIR ".\garrysmod\downloads"
CALL :DEL_DIR ".\garrysmod\downloadlists"

::Gamemodes/Lua
ECHO [4/7] Removing base Lua scripts and gamemodes
CALL :DEL_DIR ".\garrysmod\gamemodes\base"
CALL :DEL_DIR ".\garrysmod\gamemodes\sandbox"
CALL :DEL_DIR ".\garrysmod\gamemodes\terrortown"
CALL :DEL_DIR ".\garrysmod\lua"

::SQLite databases
ECHO [5/7] Removing SQLite databases
CALL :DEL_FILE ".\garrysmod\cl.db"
CALL :DEL_FILE ".\garrysmod\sv.db"
CALL :DEL_FILE ".\garrysmod\mn.db"

::Lua/Workshop cache
ECHO [6/7] Emptying Lua/Workshop cache
CALL :DEL_DIR ".\garrysmod\cache"

::Get steam to redownload anything we've just deleted (this actually also deletes cfg/config.cfg from the Steam Cloud)
ECHO [7/7] Marking game's content for validation by Steam
.\hl2.exe -factoryresetstuff

ECHO.
ECHO Finished. Steam will attempt to download some missing files the next time you launch Garry's Mod.
ECHO.

PAUSE
EXIT /B

:DEL_DIR
::ECHO Removing dir %1.
IF EXIST %1 ( RMDIR /S /Q %1 )
GOTO:EOF

:DEL_FILE
::ECHO Removing file %1.
IF EXIST %1 ( DEL /Q %1 )
GOTO:EOF
awesome ♥♥♥♥♥♥♥ NECRO, good job dude

yes i necro'd too, just to complain
JesseSmith Jul 4, 2017 @ 1:55pm 
Originally posted by Krizis:
Originally posted by Teamroan117:
TIS IS THE FILE'S CONTENT:

@echo off

::We don't want people running this in the wrong place
IF NOT EXIST ".\hl2.exe" (
ECHO Game binary doesn't exist. Are you executing this script from the wrong directory?
EXIT /B 1
)

::Give the user fair warning
ECHO This script will attempt to reset Garry's Mod to its default state. If the game is running, it will be closed.
ECHO You will lose any settings that have been changed and potentially any saved data, such as duplications.
ECHO Addons will not be removed.
ECHO.

::Let the user bail
CHOICE /N /M "Are you sure you want to continue? [Y/N]"

IF ERRORLEVEL == 2 (
ECHO Aborting.
EXIT /B 1
)

ECHO.

::Some of the below won't work if the game is already running
TASKKILL /f /im "hl2.exe" >NUL 2>&1

::Config files
ECHO [1/7] Removing configuration
CALL :DEL_DIR ".\garrysmod\cfg"
CALL :DEL_DIR ".\garrysmod\settings"

::Addon data
ECHO [2/7] Removing stored addon data
CALL :DEL_DIR ".\garrysmod\data"

::Server downloads
ECHO [3/7] Removing downloaded server content
CALL :DEL_DIR ".\garrysmod\download"
CALL :DEL_DIR ".\garrysmod\downloads"
CALL :DEL_DIR ".\garrysmod\downloadlists"

::Gamemodes/Lua
ECHO [4/7] Removing base Lua scripts and gamemodes
CALL :DEL_DIR ".\garrysmod\gamemodes\base"
CALL :DEL_DIR ".\garrysmod\gamemodes\sandbox"
CALL :DEL_DIR ".\garrysmod\gamemodes\terrortown"
CALL :DEL_DIR ".\garrysmod\lua"

::SQLite databases
ECHO [5/7] Removing SQLite databases
CALL :DEL_FILE ".\garrysmod\cl.db"
CALL :DEL_FILE ".\garrysmod\sv.db"
CALL :DEL_FILE ".\garrysmod\mn.db"

::Lua/Workshop cache
ECHO [6/7] Emptying Lua/Workshop cache
CALL :DEL_DIR ".\garrysmod\cache"

::Get steam to redownload anything we've just deleted (this actually also deletes cfg/config.cfg from the Steam Cloud)
ECHO [7/7] Marking game's content for validation by Steam
.\hl2.exe -factoryresetstuff

ECHO.
ECHO Finished. Steam will attempt to download some missing files the next time you launch Garry's Mod.
ECHO.

PAUSE
EXIT /B

:DEL_DIR
::ECHO Removing dir %1.
IF EXIST %1 ( RMDIR /S /Q %1 )
GOTO:EOF

:DEL_FILE
::ECHO Removing file %1.
IF EXIST %1 ( DEL /Q %1 )
GOTO:EOF
awesome ♥♥♥♥♥♥♥ NECRO, good job dude

yes i necro'd too, just to complain
Hypocrisy at its finest
RDstonetrxz Jul 31, 2017 @ 4:32pm 
How do I pull a factory reset on a Linux client?
< >
Showing 1-15 of 18 comments
Per page: 1530 50

Date Posted: Oct 28, 2016 @ 6:07pm
Posts: 18