Turns out im retarded and I messed with the format, I had to reput a new DB and reconfigure it. Works fine now :)
One more question, how do you add a new rank and where do you configure the points required for it?
[QUOTE=Error420;48417773]One more question, how do you add a new rank and where do you configure the points required for it?[/QUOTE]
This has been asked before in the thread so before asking look at the F.A.Q / previous posts.
I'm on vacation now but here's a short summary;
For first question: Open up the file "core.lua" and have a look at the _C.Ranks table (you can simply insert one or change the names)
Second: You can't change the individual points for ranks but you can change how easy it is to get to the top rank (defined by "sv_player.lua" in a variable called Player.LadderScalar I think, it's set to 1.40 by default)
Curiosity, with you're GM:Move why is it 32.8 the speed gain. I think the normal one is 30 I just want to know where you got that number from?
[QUOTE=FiBzY;48427403]Curiosity, with you're GM:Move why is it 32.8 the speed gain. I think the normal one is 30 I just want to know where you got that number from?[/QUOTE]
You'll have to explain what you mean with "You are"'s GM:Move and "the normal one".
That number just sets how easy it is to gain speed. If you set it to 50 you'll start flying forward by strafing.
[QUOTE=Gravious;48445118]You'll have to explain what you mean with "You are"'s GM:Move and "the normal one".
That number just sets how easy it is to gain speed. If you set it to 50 you'll start flying forward by strafing.[/QUOTE]
I meant like how did you get the number 32.8 for the speed gain like is it something you just tested out and felt right? or you did math with the tick rate and got it something like that.
[QUOTE=FiBzY;48447169]I meant like how did you get the number 32.8 for the speed gain like is it something you just tested out and felt right? or you did math with the tick rate and got it something like that.[/QUOTE]
I was lazy and just went over each number and felt this was just about right :p
Garry's Mod is weird anyway (not precisely like other source games) so even if you calculated it manually it'd be off by a bit, just like this guesstimated number.
[QUOTE=tripps41;48325255]I don't know if this is just me, but when a player joins the server lags for a few seconds.[/QUOTE]
Yes this has been happening for us and also some other people as mentioned on page 7.
This same type of lag seems to occur:
-When someone joins
-When a time is beaten
-When someone changes style
I would suspect it is something to do with the rank calculation?
-The lag seems worse the higher the player rank (mainly for time beaten), although this doesn't seem to matter when a player joins
-If I change to a style that I have barely any times in (like !l), no lag is given, whenever I change to normal style there is lag/freeze of about a second to everyone.
I would say over time this issue has become worse as there are more times etc. There is about 16500 times stored, with the top player on 55000 points.
Not really sure what to do here, this issue is a major problem for a gamemode like Bhop.
Please help, Gravious~
[QUOTE=ikoN420;48528750]Yes this has been happening for us and also some other people as mentioned on page 7.
This same type of lag seems to occur:
-When someone joins
-When a time is beaten
-When someone changes style
I would suspect it is something to do with the rank calculation?
-The lag seems worse the higher the player rank (mainly for time beaten), although this doesn't seem to matter when a player joins
-If I change to a style that I have barely any times in (like !l), no lag is given, whenever I change to normal style there is lag/freeze of about a second to everyone.
I would say over time this issue has become worse as there are more times etc. There is about 16500 times stored, with the top player on 55000 points.
Not really sure what to do here, this issue is a major problem for a gamemode like Bhop.
Please help, Gravious~[/QUOTE]
Join lag isn't the same kind of lag as when you query the database.
Try optimizing the queries so that they can execute fast and make sure the querying computer has enough power to do so while letting a lot of people jump around.
The amount of times shouldn't be related under the millions, according to SQLite documentation.
Wow, great release! This looks fucking awesome!
Grav, have you found any servers running the deathrun gamemode that was included here? It's an amazingly fun mode, but I recall being one of the the only ones with it when I was trying to fix it.
I have two questions regarding flow bhop:
- Is it possible to perma ban someone?
- Sometimes the bot looks like he's leaning. And I couldn't find a way to fix it. Do you know anything about this?
How to setup surf?
I keep getting
[code]
[ERROR] gamemodes/bhop/gamemode/sv_player.lua:556: attempt to call method 'StartSQL' (a nil value)
1. fn - gamemodes/bhop/gamemode/sv_player.lua:556
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:179
[/code]
at
[code]
local function PlayerConnect( data )
if data.bot != 1 then
if not SQL.Available and not SQL.Busy then
Core:StartSQL()
end
end
end
[/code]
[QUOTE=JasonMan34;48570128]I have two questions regarding flow bhop:
- Is it possible to perma ban someone?
- Sometimes the bot looks like he's leaning. And I couldn't find a way to fix it. Do you know anything about this?[/QUOTE]
Permaban is setting the ban length to 0.
What do you mean by the bot is leaning? As in, the screen is tilted or..?
[QUOTE=RussiaMan420;48579267]How to setup surf?[/QUOTE]
Everything needed to set the gamemodes up is included. Gravious has even posted videos on how to set up the gamemodes on YouTube. Here is a video of setting up the bhop mode, but the surf gamemode would set up the exact same way.
[video=youtube;P0ejz_nhYjY]https://www.youtube.com/watch?v=P0ejz_nhYjY[/video]
[editline]31st August 2015[/editline]
[QUOTE=reckst4r;48580629]I keep getting
[code]
[ERROR] gamemodes/bhop/gamemode/sv_player.lua:556: attempt to call method 'StartSQL' (a nil value)
1. fn - gamemodes/bhop/gamemode/sv_player.lua:556
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:179
[/code]
at
[code]
local function PlayerConnect( data )
if data.bot != 1 then
if not SQL.Available and not SQL.Busy then
Core:StartSQL()
end
end
end
[/code][/QUOTE]
What kind of modifications have you made to the gamemode and what all have you added into your server directory besides the gamemode files? Any addons, SQL modules or anything like that?
I've been working with these gamemodes for the past few months and haven't experienced that issue myself.
[QUOTE=Clouds;48581866]What do you mean by the bot is leaning? As in, the screen is tilted or..?[/QUOTE]
When the bot spawns and it falls, it occasionally tilts the screen as if it were constantly falling and hitting the floor really fast. It doesn't happen that often, but you can fix it by tweaking CalcView clientsided if you must.
[QUOTE=Clouds;48581866]Everything needed to set the gamemodes up is included. Gravious has even posted videos on how to set up the gamemodes on YouTube. Here is a video of setting up the bhop mode, but the surf gamemode would set up the exact same way.[/QUOTE]
Exactly, but I'd recommend the SQLite setup for a small server: [url]https://www.youtube.com/watch?v=uXpfNJTy4nw[/url]
[QUOTE=reckst4r;48580629]I keep getting
[code]
[ERROR] gamemodes/bhop/gamemode/sv_player.lua:556: attempt to call method 'StartSQL' (a nil value)
1. fn - gamemodes/bhop/gamemode/sv_player.lua:556
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:179
[/code]
at
[code]
local function PlayerConnect( data )
if data.bot != 1 then
if not SQL.Available and not SQL.Busy then
Core:StartSQL()
end
end
end
[/code][/QUOTE]
Looks like the Core object is being replaced by another addon. Like Cloud asked, do you have any modifications or additional addons running that would use a global "Core" variable? It's quite a common name really.
[QUOTE=DannyCore;47774963]Yeah, looks like I figured this shit out. If the sv.db gets way too big, man you're in for a fucking ride of lag.
Our database had over 25k times which was causing such bad lag, and the hard drive the server is on isn't even bad.
I'm going to look into re-coding local storage to use MySQL, so this type of shit doesn't happen again. Just wanted to update for other users.[/QUOTE]
Can you give an update as to whether moving to MySQL fixed this issue for you?
What is the surf style IDS? I need to remove times for Normal, HSW, SW, and bonus
[QUOTE=RussiaMan420;48594627]What is the surf style IDS? I need to remove times for Normal, HSW, SW, and bonus[/QUOTE]
If you type !mode or /mode in the chat, it'll pull up the mode selector. The style ID is the number according to the style you want. You can also find the style ID set in the core.lua file, in the _C.Style table.
I'm going from memory, but I believe it goes:
1 = Normal
2 = SW
3 = HSW
4 = Bonus
5 = Practice
EDIT: Fixed arrangement of IDs after Grav posted the core.lua line.
[QUOTE=RussiaMan420;48594627]What is the surf style IDS? I need to remove times for Normal, HSW, SW, and bonus[/QUOTE]
They're in core.lua, somewhere at the top.
Bhop:
[code]
_C["Style"] = { Normal = 1, SW = 2, HSW = 3, ["W-Only"] = 4, ["A-Only"] = 5, Legit = 6, ["Easy Scroll"] = 7, Bonus = 8, Practice = 9 }
[/code]
Surf:
[code]
_C["Style"] = { Normal = 1, SW = 2, HSW = 3, Bonus = 4, Practice = 5 }
[/code]
Can u add !timescale in practice mode in bhop, I like to use it on fast runs to practice :D
[QUOTE=trunk208;48704746]Can u add !timescale in practice mode in bhop, I like to use it on fast runs to practice :D[/QUOTE]
I released the Flow Bunny Hop gamemode since the server it was part of died out. I released it as it was at the time of closing and applied a few fixes to it for it to be compatible with the newer Garry's Mod updates. Other than that I haven't applied any updates to the gamemode since it's public and meant to be changed by enthousiastic developers. I'm now busy with updating the [url=http://www.prestige-gaming.org/threads/21041/]Prestige Gaming Bunny Hop and Surf servers[/url] instead. A command like !timescale exists there but I won't add it to the Flow version of the gamemode. If you want to use it on a private/local server you can simply change sv_cheats to 1 and set host_timescale to 0.5 for example and practice some parts in 0.5 timescale still, even without the command available on Flow.
Since I am no longer working on qT Surf and don't plan on doing any work on a surf server for now, I'd like to give Flow users this code snippet. It disallows RTV for 15 minutes and notifies players via chat of the restriction and how long until they can RTV.
Just add the following variable to the top of the modules/sv_rtv.lua file and replace the RTV:Vote function in the same file // This does work for both Surf and BHop modes. This is the only modification to this GM that I'll release, as I am with Gravious in users helping themselves and researching and not copy/pasting code; I'm just tired of every server having maps that get RTV'd in 5 minutes while others, or I, are still playing them.
[u][B]Variable[/B][/u]
[code]RTV.VotePossibleAt = CurTime() + (15 * 60)[/code]
[u][B]Function[/B][/u]
[code]function RTV:Vote( ply )
if CurTime() <= RTV.VotePossibleAt then
local t,s = math.Round( (RTV.VotePossibleAt - CurTime()) / 60 ), "minutes"
if t < 1 then t,s = math.Round( RTV.VotePossibleAt - CurTime() ), "seconds" end
if t == 1 then s = "second" end
return Core:Send( ply, "Print", { "Notification", Lang:Get( "VoteNotPossible", { t .. " " .. s } ) } )
elseif ply.RTVLimit and CurTime() - ply.RTVLimit < 60 then
return Core:Send( ply, "Print", { "Notification", Lang:Get( "VoteLimit", { math.ceil( 60 - (CurTime() - ply.RTVLimit) ) } ) } )
elseif ply.Rocked then
return Core:Send( ply, "Print", { "Notification", Lang:Get( "VoteAlready" ) } )
elseif RTV.VotePossible then
return Core:Send( ply, "Print", { "Notification", Lang:Get( "VotePeriod" ) } )
end
ply.RTVLimit = CurTime()
ply.Rocked = true
RTV.MapVotes = RTV.MapVotes + 1
RTV.Required = math.ceil( #player.GetHumans() * ( 2 / 3 ) )
local nVotes = RTV.Required - RTV.MapVotes
Core:Broadcast( "Print", { "Notification", Lang:Get( "VotePlayer", { ply:Name(), nVotes, nVotes == 1 and "vote" or "votes" } ) } )
if RTV.MapVotes >= RTV.Required then
RTV:StartVote()
end
end[/code]
EDIT: Forgot this huge thing. Add this to the core_lang.lua file, so it displays how long the player has to wait.
[code]Lang.VoteNotPossible = "Voting is not possible in this period (Please wait 1;)"[/code]
EDIT: The only thing I did was add the variable to the code and add in the first few lines of code to the function. I pasted the whole function just to make it easier to understand.
Would anybody have tips on how I would set up the donation IPN to work with Prometheus by Marcuz?
[QUOTE=skittles9823;48878990]Would anybody have tips on how I would set up the donation IPN to work with Prometheus by Marcuz?[/QUOTE]
The IPN system that's included here is very simple. I think Prometheus provides a lot more possibilities and also makes use of PayPal's IPN system. I can't help with this however, since it is a paid script. What is it exactly that you want to accomplish? Giving people VIP on Bhop from Prometheus?
[QUOTE=Gravious;48891990]The IPN system that's included here is very simple. I think Prometheus provides a lot more possibilities and also makes use of PayPal's IPN system. I can't help with this however, since it is a paid script. What is it exactly that you want to accomplish? Giving people VIP on Bhop from Prometheus?[/QUOTE]
Yes, that's exactly what I would like to accomplish, but I have no idea how. I know it would require using the custom lua function Prometheus has (basically somebody donates and it runs lua on the server with some custom Prometheus arguments).
[QUOTE=skittles9823;48894707]Yes, that's exactly what I would like to accomplish, but I have no idea how. I know it would require using the custom lua function Prometheus has (basically somebody donates and it runs lua on the server with some custom Prometheus arguments).[/QUOTE]
If you can find where to put this Lua and look at what the Prometheus arguments are, you could easily re-make the PHP scripts from the IPN in Lua, allowing you to make the players VIP directly.
[QUOTE=Gravious;48900136]If you can find where to put this Lua and look at what the Prometheus arguments are, you could easily re-make the PHP scripts from the IPN in Lua, allowing you to make the players VIP directly.[/QUOTE]
Okay thanks for your help
hey , can you tell me how it works on a linux based server .... because my server crashes
From Gmod Console :
[ERROR] gamemodes/surf/gamemode/cl_init.lua:426: attempt to index global 'Radio' (a nil value)
1. unknown - gamemodes/surf/gamemode/cl_init.lua:426
Timer Failed! [Simple][@gamemodes/surf/gamemode/cl_init.lua (line 426)]
From Server Console :
[dante200985|2|STEAM_0:0:37308276] Lua Error:
[ERROR] gamemodes/surf/gamemode/cl_init.lua:426: attempt to index global 'Radio' (a nil value)
1. unknown - gamemodes/surf/gamemode/cl_init.lua:426
[dante200985|2|STEAM_0:0:37308276] Lua Error:
Couldn't include file 'modules\cl_radio.lua' (File not found) (@gamemodes/surf/gamemode/cl_init.lua (line 9))
Couldn't load data. Retrying (Try 3)
Couldn't load data. Retrying (Try 4)
Couldn't load data. Retrying (Try 5)
Couldn't load data. Retrying (Try 6)
Couldn't load data. Retrying (Try 7)
Couldn't load data. Retrying (Try 8)
Couldn't load data. Retrying (Try 9)
Couldn't load data. Retrying (Try 10)
so i think i need the "Radio" setup because when i delete the radio cl and sv the error is away ....
but then i am not an admin i hope you understand what i mean
and Thanks for Help
and bye the way how i can add "pointshop" points when someone finish the map i have pointshop 1+2 hope you can help me
[QUOTE=dante200985;48935585]hey , can you tell me how it works on a linux based server .... because my server crashes
From Gmod Console :
[ERROR] gamemodes/surf/gamemode/cl_init.lua:426: attempt to index global 'Radio' (a nil value)
1. unknown - gamemodes/surf/gamemode/cl_init.lua:426
Timer Failed! [Simple][@gamemodes/surf/gamemode/cl_init.lua (line 426)]
From Server Console :
[dante200985|2|STEAM_0:0:37308276] Lua Error:
[ERROR] gamemodes/surf/gamemode/cl_init.lua:426: attempt to index global 'Radio' (a nil value)
1. unknown - gamemodes/surf/gamemode/cl_init.lua:426
[dante200985|2|STEAM_0:0:37308276] Lua Error:
Couldn't include file 'modules\cl_radio.lua' (File not found) (@gamemodes/surf/gamemode/cl_init.lua (line 9))
Couldn't load data. Retrying (Try 3)
Couldn't load data. Retrying (Try 4)
Couldn't load data. Retrying (Try 5)
Couldn't load data. Retrying (Try 6)
Couldn't load data. Retrying (Try 7)
Couldn't load data. Retrying (Try 8)
Couldn't load data. Retrying (Try 9)
Couldn't load data. Retrying (Try 10)
so i think i need the "Radio" setup because when i delete the radio cl and sv the error is away ....
but then i am not an admin i hope you understand what i mean
and Thanks for Help
and bye the way how i can add "pointshop" points when someone finish the map i have pointshop 1+2 hope you can help me[/QUOTE]
This shouldn't cause your server to crash though. If you remove the sv/cl_radio files from the modules directory it'll give these errors, so you should just leave them in; they don't do anything if not setup.
About the "Couldn't load data." errors, do you have the database setup correctly? (Used the appropriate sv.db included in the release package?)
Pointshops can be manually added. I don't offer support for them since they suck. You could just do a ply:AddPoints( 100 ) upon map completion (if a function like that would exist).
Sorry, you need to Log In to post a reply to this thread.