[QUOTE=fpgranny;47818773]Nope, no errors anywhere. I have setup just as instructed. But zones will not show or set.[/QUOTE]
And are there any entries appearing in your sv.db -> game_zones table?
There are maps on the RTV's and Nominate lists that I don't have on my server. Is this fixable by going through the files?
[QUOTE=starman12355;47828269]There are maps on the RTV's and Nominate lists that I don't have on my server. Is this fixable by going through the files?[/QUOTE]
All maps are separately stored in the database since they have to be coupled with a specific amount of points. I actively kept the maps in-sync myself so there wasn't any need to add a failsafe to check if the BSP still existed. Either add the map or remove the entry from game_map on the sv.db file.
[QUOTE=starman12355;47828269]There are maps on the RTV's and Nominate lists that I don't have on my server. Is this fixable by going through the files?[/QUOTE]
Open up the admin panel, click the "Remove Map" option, type in the mapname.
Voila, it's gone. If it's still in the list, go to /garrysmod/data/gamemode/settings.txt and increase the number by 1.
Where is the file for adding/removing modes?
[QUOTE=thefreemann;47842605]Where is the file for adding/removing modes?[/QUOTE]
Modes are all contained within the core.lua file. It's about halfway down after the velocity setups. Look for the functions for AutoHop and StripMovements.
i cant find the gamemode where
[editline]25th June 2015[/editline]
so i found it but dont know how to apply it as a gamemode
*in offline mode*
[QUOTE=And3rson;48046328]i cant find the gamemode where
[editline]25th June 2015[/editline]
so i found it but dont know how to apply it as a gamemode
*in offline mode*[/QUOTE]
It's gonna require some tweaking for good offline usage. Primarily removing the bots from spawning and switching from MySQL to SQLite.
Just drop the appropriate folders in your GMod install folder, though.
Disconnect: The server can't load essential data! If you can, contact an admin to make him identify the issue: Missing SQLite tables (gmod_admins and gmod_bans) on No MySQL setup! (Use the correct sv.db or SQL queries).
I disabled sql in the core_data.lua like the readme said, but I get this issue.
I am trying to use the flow bunny hop.
[QUOTE=Extr3meErr0r;48205965]Disconnect: The server can't load essential data! If you can, contact an admin to make him identify the issue: Missing SQLite tables (gmod_admins and gmod_bans) on No MySQL setup! (Use the correct sv.db or SQL queries).
I disabled sql in the core_data.lua like the readme said, but I get this issue.
I am trying to use the flow bunny hop.[/QUOTE]
If you're using the right database and the latest version it should not give this error.
Offtopic question, I see you made a new movement replacement for pG, more like Counter Strike: Source. How did you make it or are you willing to give it out? It's much better then normal GMOD movement.
[QUOTE=FiBzY;48208268]Offtopic question, I see you made a new movement replacement for pG, more like Counter Strike: Source. How did you make it or are you willing to give it out? It's much better then normal GMOD movement.[/QUOTE]
Probably not anytime soon. He's actively working on it for money, if he quits devving for good and they eventually change gamemode we may have a chance.
[QUOTE=rikyy;48213653]Probably not anytime soon. He's actively working on it for money, if he quits devving for good and they eventually change gamemode we may have a chance.[/QUOTE]
I work on it actively, but I'm no more than a freelance developer at Prestige Gaming.
If I'd wanted money I'd have sold out private versions already.
pG is the only community that has it right now because they're the only server who I think can handle it properly, which is why I'm not giving or selling it out.
Well I got it working, but the anticheat perma banned me for no reason. I removed the anticheat but the ban is not in the banned_user.cfg. How would I get rid of my ban?
[QUOTE=Extr3meErr0r;48247888]Well I got it working, but the anticheat perma banned me for no reason. I removed the anticheat but the ban is not in the banned_user.cfg. How would I get rid of my ban?[/QUOTE]
The ban is stored in gmod_bans which is present in your sv.db
You can also get another admin to unban you via in-game.
You have to set the anticheat up exactly right (without renaming it).
Is there a way to add the players' ranks in chat( on the flow gamemode )? If so, how?
[QUOTE=DogPD;48274585]Is there a way to add the players' ranks in chat( on the flow gamemode )? If so, how?[/QUOTE]
This already happens by default :o
If you're talking about the pG gamemode, have a look at this post: [url]http://facepunch.com/showthread.php?t=1448806&p=47385355&viewfull=1#post47385355[/url]
[QUOTE=Gravious;48283514]This already happens by default :o
If you're talking about the pG gamemode, have a look at this post: [url]http://facepunch.com/showthread.php?t=1448806&p=47385355&viewfull=1#post47385355[/url][/QUOTE]
Sorry, I didn't work it right, I mean like authority ranks. Super, mod, owner, etc.
[QUOTE=DogPD;48289990]Sorry, I didn't work it right, I mean like authority ranks. Super, mod, owner, etc.[/QUOTE]
Ah, that makes more sense, haha.
This is the current function:
[code]
local function ChatTag( ply, szText, bTeam, bDead )
if ply.ChatMuted then
print( "[CHAT MUTE] " .. ply:Name() .. ": " .. szText )
return true
end
local tab = {}
if bTeam then
table.insert( tab, Color( 30, 160, 40 ) )
table.insert( tab, "(TEAM) " )
end
if ply:GetNWInt( "Spectating", 0 ) == 1 then
table.insert( tab, Color( 189, 195, 199 ) )
table.insert( tab, "*SPEC* " )
end
local nAccess = 0
if IsValid( ply ) and ply:IsPlayer() then
nAccess = ply:GetNWInt( "AccessIcon", 0 )
local ID = ply:GetNWInt( "Rank", 1 )
table.insert( tab, GUIColor.White )
-- This part right here
if nAccess > 0 then
local VIPTag, VIPTagColor = ply:GetNWString( "VIPTag", "" ), ply:GetNWVector( "VIPTagColor", Vector( -1, 0, 0 ) )
if VIPTag != "" and VIPTagColor.x >= 0 then
table.insert( tab, "[" )
table.insert( tab, Core.Util:VectorToColor( VIPTagColor ) )
table.insert( tab, VIPTag )
table.insert( tab, GUIColor.White )
table.insert( tab, "] " )
end
end
table.insert( tab, "[" )
table.insert( tab, _C.Ranks[ ID ][ 2 ] )
table.insert( tab, _C.Ranks[ ID ][ 1 ] )
table.insert( tab, GUIColor.White )
table.insert( tab, "] " )
if nAccess > 0 then
local VIPNameColor = ply:GetNWVector( "VIPNameColor", Vector( -1, 0, 0 ) )
if VIPNameColor.x >= 0 then
local VIPName = ply:GetNWString( "VIPName", "" )
if VIPName == "" then
VIPName = ply:Name()
end
if VIPNameColor.x == 256 then
tab = Client:GenerateName( tab, VIPName )
elseif VIPNameColor.x == 257 then
tab = Client:GenerateName( tab, VIPName, ply )
else
table.insert( tab, Core.Util:VectorToColor( VIPNameColor ) )
table.insert( tab, VIPName )
end
if Client.VIPReveal and VIPName != ply:Name() then
table.insert( tab, GUIColor.White )
table.insert( tab, " (" .. ply:Name() .. ")" )
end
else
table.insert( tab, Color( 98, 176, 255 ) )
table.insert( tab, ply:Name() )
end
else
table.insert( tab, Color( 98, 176, 255 ) )
table.insert( tab, ply:Name() )
end
else
table.insert( tab, "Console" )
end
table.insert( tab, GUIColor.White )
table.insert( tab, ": " )
if nAccess > 0 then
local VIPChat = ply:GetNWVector( "VIPChat", Vector( -1, 0, 0 ) )
if VIPChat.x >= 0 then
table.insert( tab, Core.Util:VectorToColor( VIPChat ) )
end
end
table.insert( tab, szText )
chat.AddText( unpack( tab ) )
return true
end
hook.Add( "OnPlayerChat", "TaggedChat", ChatTag )
[/code]
Within this function, it's already checking the access-level of the player (for VIP custom chat colors etc).
These are the values "AccessIcon" / "nAccess" can take on:
1 - Material( "icon16/heart.png" ) - VIP
2 - Material( "icon16/heart_add.png" ) - Extended VIP
3 - Material( "icon16/report_user.png" ) - Moderator
4 - Material( "icon16/shield.png" ) - Admin
5 - Material( "icon16/shield_add.png" ) - Supervisor
6 - Material( "icon16/script_code_red.png" ) - Developer
7 - Material( "icon16/house.png" ) - Owner
Now, to translate these icons to actual strings we need this bit at the top of [b]cl_init.lua[/b]
[code]
local AccessNames = { "VIP", "VIP+", "Mod", "Admin", "Super", "Dev", "Owner" }
[/code]
After the if-conditional marked with "-- This part right here" it handles the chat tags VIPs can set, which means we can also give admins a nice chat tag. If you want admins to be able to custom set their chat tag still, set it like this:
[code]
if nAccess > 0 then
local VIPTag, VIPTagColor = ply:GetNWString( "VIPTag", "" ), ply:GetNWVector( "VIPTagColor", Vector( -1, 0, 0 ) )
if VIPTag != "" and VIPTagColor.x >= 0 then
table.insert( tab, "[" )
table.insert( tab, Core.Util:VectorToColor( VIPTagColor ) )
table.insert( tab, VIPTag )
table.insert( tab, GUIColor.White )
table.insert( tab, "] " )
elseif nAccess >= 3 then
table.insert( tab, "[" )
table.insert( tab, Color( 0, 255, 0 ) ) -- This gives admins a bright green chat tag, can be changed (possibly per admin level, but you'll have to do that yourself (have a look at AccessNames table for it - duplicate it and change them to colors))
table.insert( tab, AccessNames[ nAccess ] or "Unknown" )
table.insert( tab, GUIColor.White )
table.insert( tab, "] " )
end
end
[/code]
Otherwise, make an if-statement like this:
[code]
if nAccess >= 3 then
table.insert( tab, "[" )
table.insert( tab, Color( 0, 255, 0 ) ) -- This gives admins a bright green chat tag, can be changed (possibly per admin level, but you'll have to do that yourself (have a look at AccessNames table for it - duplicate it and change them to colors))
table.insert( tab, AccessNames[ nAccess ] or "Unknown" )
table.insert( tab, GUIColor.White )
table.insert( tab, "] " )
elseif nAccess > 0 then
local VIPTag, VIPTagColor = ply:GetNWString( "VIPTag", "" ), ply:GetNWVector( "VIPTagColor", Vector( -1, 0, 0 ) )
if VIPTag != "" and VIPTagColor.x >= 0 then
table.insert( tab, "[" )
table.insert( tab, Core.Util:VectorToColor( VIPTagColor ) )
table.insert( tab, VIPTag )
table.insert( tab, GUIColor.White )
table.insert( tab, "] " )
end
end
[/code]
I hope that's enough!
I got this error from the last one you put
[CODE][ERROR] gamemodes/bhop/gamemode/cl_init.lua:329: bad argument #1 to 'insert' (table expected, got string)
1. insert - [C]:-1
2. v - gamemodes/bhop/gamemode/cl_init.lua:329
3. unknown - lua/includes/modules/hook.lua:84
This is line 329:
table.insert( AccessNames[ nAccess ] or "Unknown" )
[/CODE]
I also put the AccessNames here
[img]http://puu.sh/jcTZq/364ac747ca.png[/img]
[QUOTE=DogPD;48294993]I got this error from the last one you put
[CODE][ERROR] gamemodes/bhop/gamemode/cl_init.lua:329: bad argument #1 to 'insert' (table expected, got string)
1. insert - [C]:-1
2. v - gamemodes/bhop/gamemode/cl_init.lua:329
3. unknown - lua/includes/modules/hook.lua:84
This is line 329:
table.insert( AccessNames[ nAccess ] or "Unknown" )
[/CODE]
I also put the AccessNames here
[img]http://puu.sh/jcTZq/364ac747ca.png[/img][/QUOTE]
My bad, I was writing that out the top of my head, but if you're going to have a server I recommend looking into the code harder before blindly copy and pasting it.
If you look at the other 100 lines containing "table.insert" you can see the first argument is a table. Within that hook it's all inserting into "tab". So if you just added "tab, " in front of the "AccessNames" bit as well as on the other lines that are missing the first argument, the problem should be solved. I edited the previous post as well.
Also, I don't really know how to explain it but I'll try my best:
Here's what happened User A is Owner, User B is Dev, C is Regular.
User B promotes user C and A becomes regular until restart/map change.
What's happening with that and is there a way to fix this?
[B]EDIT:[/B] The problem only happens when they get owner from the OperatorID in core_data. A fix is by putting the SteamID and the rank in the sv.db file.
Sometimes on my bhop and surf server, players and other parts of the map just seem to go invisible. The whole server notices it, it fixes when we change map. Could it be from too many entities?
[QUOTE=DogPD;48312122]Also, I don't really know how to explain it but I'll try my best:
Here's what happened User A is Owner, User B is Dev, C is Regular.
User B promotes user C and A becomes regular until restart/map change.
What's happening with that and is there a way to fix this?
[B]EDIT:[/B] The problem only happens when they get owner from the OperatorID in core_data. A fix is by putting the SteamID and the rank in the sv.db file.[/QUOTE]
Exactly! What the OperatorID does is force the player into a 'temporary' operator mode, since it's only for one time usage really, to get yourself into the system without having to edit sv.db. Another fix would be to target a Steam ID and "Set Authority" on that. Glad you figured it out yourself :)
[QUOTE=fpgranny;48316342]Sometimes on my bhop and surf server, players and other parts of the map just seem to go invisible. The whole server notices it, it fixes when we change map. Could it be from too many entities?[/QUOTE]
I'm not exactly sure what you mean with this. What maps does it happen on and how exactly do things go invisible? Can you make the players re-appear by doing !hide/!show in combo? Can you maybe post screenshots?
I don't know if this is just me, but when a player joins the server lags for a few seconds.
All I am running is "Ulx, ULib, Utime, and Cake anti cheat". Any fix for the lag?
[QUOTE=Gravious;48317203]I'm not exactly sure what you mean with this. What maps does it happen on and how exactly do things go invisible? Can you make the players re-appear by doing !hide/!show in combo? Can you maybe post screenshots?[/QUOTE]
I've played the server and what happens is playermodels, entities that aren't solid, and zones disappear. If gmod has an entity limit, that could be what's happening. It happens on every map, so it isn't a map issue. I've talked to Granny about this before and I think it's an addon causing the issue. Unless he's heavily modified the GM code (doesn't seem like it), that's the only source the issue could stem from.
Fixed all errors, thanks.
Hey! So I recently encountered a weird bug or something with the ranking system on the Flow BunnyHop Gamemode. I installed it perfectly, it was working FINE until I restarted the server (The only thing I added was !cake anti-cheat and the sync addon that was in the rar). I have ULX/ULIB Installed.
The problem is the points required for the ranks are all at 0. Literally ZERO. New players are spawning in as the rank "Nightmare" without any points. There's also one thing, at the beginning of the map switch or when you first connect, !admin works perfectly fine, then a few minutes after bhopping, etc. It says !admin is an unknown command and I cant execute any ban, or kick commands.
I'm using the non-mysql version (sv.db) fresh clean database, the only thing I edited was the gmod_maps file so rtv only displays the maps that I have on the server. I've tried reinstalling the gamemode, removing ulx and ulib. I know it can't be the anti-cheat because another server has the exact same gamemode and anti-cheat. But I'll give it a try. Anyone know what to do about my 2nd or 1st problem? Thanks
[QUOTE=Error420;48385657]Hey! So I recently encountered a weird bug or something with the ranking system on the Flow BunnyHop Gamemode. I installed it perfectly, it was working FINE until I restarted the server (The only thing I added was !cake anti-cheat and the sync addon that was in the rar). I have ULX/ULIB Installed.
The problem is the points required for the ranks are all at 0. Literally ZERO. New players are spawning in as the rank "Nightmare" without any points. There's also one thing, at the beginning of the map switch or when you first connect, !admin works perfectly fine, then a few minutes after bhopping, etc. It says !admin is an unknown command and I cant execute any ban, or kick commands.
I'm using the non-mysql version (sv.db) fresh clean database, the only thing I edited was the gmod_maps file so rtv only displays the maps that I have on the server. I've tried reinstalling the gamemode, removing ulx and ulib. I know it can't be the anti-cheat because another server has the exact same gamemode and anti-cheat. But I'll give it a try. Anyone know what to do about my 2nd or 1st problem? Thanks[/QUOTE]
Since you mentioned you changed gmod_maps, that might be the cause. If there's no points set on the maps it won't be able to calculate the rank scalar. If you're a bit familiar with Lua you can try debugging it with putting prints around the rank calculation functions. Otherwise can you maybe revert the changes and slowly put them back in? There are Lua solutions to not show maps you don't have in the maps directory too (Using RTV.IsAvailable I'm pretty sure).
I think if you temporarily change the DB again to the clean one, the ranks might work again.
[QUOTE=Gravious;48394762]Since you mentioned you changed gmod_maps, that might be the cause. If there's no points set on the maps it won't be able to calculate the rank scalar. If you're a bit familiar with Lua you can try debugging it with putting prints around the rank calculation functions. Otherwise can you maybe revert the changes and slowly put them back in? There are Lua solutions to not show maps you don't have in the maps directory too (Using RTV.IsAvailable I'm pretty sure).
I think if you temporarily change the DB again to the clean one, the ranks might work again.[/QUOTE]
I'll try your suggestion, the only thing thats weird is when I changed gmod_maps it was working perfectly, the points were in perfectly, everything. I was going to release the server too because everything was working fine. But when I installed ULX, ULIB, and CAC all of a sudden that happened. Also what about the !admin command? It disappears randomly overtime and says its an unknown command.
Sorry, you need to Log In to post a reply to this thread.