FYI, when you change gamemodes some things will break. It appears that the behavior of the file library changes when there has been a gamemode change, this is something Garry will need to fix.
On server load:
lua_run print( file.Read( ULib.UCL_USERS, "DATA" ) )
> print( file.Read( ULib.UCL_USERS, "DATA" ) )...
"STEAM_0:1:4566757"
{
"name" "[41]Zoot!"
"deny"
{
}
"allow"
{
}
"group" "superadmin"
}
Then,
gamemode base
Changing gamemode to Base (base)
Adding Legacy Addon 'i:\srcds\orangebox\garrysmod\addons\ulib'
Adding Legacy Addon 'i:\srcds\orangebox\garrysmod\addons\ulx'
lua_run print( file.Read( ULib.UCL_USERS, "DATA" ) )
> print( file.Read( ULib.UCL_USERS, "DATA" ) )...
"STEAM_0:1:4566757"
{
"name" "[41]Zoot!"
"deny"
{
}
"allow"
{
}
"group" "superadmin"
}
Base gamemode was chosen just to show it's not a TTT issue. Still works after a gamemode change without map change, but...
changelevel gm_flatgrass
<snip>
lua_run print( file.Read( ULib.UCL_USERS, "DATA" ) )
> print( file.Read( ULib.UCL_USERS, "DATA" ) )...
//ATTENTION! This is a default file. DO NOT EDIT THIS FILE!!!
//Instead, edit the version in <garrysmod root>/data/ULib/users.txt if it exists. If it doesn't, copy this file over to create it.
//IF YOU MAKE CHANGES TO THIS FILE THEY WILL BE ERASED!
It is now reading from the default file. No, this doesn't happen when changing levels without changing gamemodes.