• Flow - Collection of gamemodes and accessories
    536 replies, posted
Like I said in the OP or somewhere in the README's: the SQLite version isn't fully tested. --- I just checked the files and there's indeed something about the SQL checking that doesn't seem to work. In sv_admin.lua line 194 (Admin:CheckPlayerStatus( ply, reload )) it checks if it has a valid MySQL connection by calling SQL.Available. To make this work, go to core_data.lua and search for this function: [B]SQL:LoadNoMySQL[/B] [code] function SQL:LoadNoMySQL() SQL.Use = false if not sql.TableExists( "gmod_admins" ) or not sql.TableExists( "gmod_bans" ) then Core:Lock() return print( "You aren't using the right SQLite tables. Be sure to use the correct files from the /Database folder in the release! Or use the preset sv.db" ) end SQL.LoadedSQLite = true SQL.Available = true SQL.Busy = false SQL_Print( "[SQL Connect] Connected to local SQLite server successfully" ) local OperatorID = "" -- If you want to start adding admins and don't know how to edit the 'sv.db' manually, enter your Steam ID here! It'll force you to admin. Admin:LoadAdmins( OperatorID ) Admin:LoadNotifications() end [/code] Instead of your function, use that. It should make everything work like it's meant to work. Yuuki and qTY, this should also show the icons on the scoreboard, as well as load VIP status. --- About your other issue; I have no idea what could be wrong, but then again, I don't exactly know what's wrong. Does anything else fail? Has anything been resolved by changing data in core.lua?
So I fixed the whole owner thing, but theres still a couple more things I need help with, 1) What perks do donators get? I heard that they get things like custom tags? And if so how do they change them? and 2) There are maps on the nomination list that we dont have, and any maps that we have added do not show up on the nomination list.. Also I fixed owner rank by editing the sv.db correctly xD And to add VIP's do I have to do it the same way I added myself to owner? Via the sv.db? Thanks
[QUOTE=Gravious;47049441]Like I said in the OP or somewhere in the README's: the SQLite version isn't fully tested. --- I just checked the files and there's indeed something about the SQL checking that doesn't seem to work. In sv_admin.lua line 194 (Admin:CheckPlayerStatus( ply, reload )) it checks if it has a valid MySQL connection by calling SQL.Available. To make this work, go to core_data.lua and search for this function: [B]SQL:LoadNoMySQL[/B] [code] function SQL:LoadNoMySQL() SQL.Use = false if not sql.TableExists( "gmod_admins" ) or not sql.TableExists( "gmod_bans" ) then Core:Lock() return print( "You aren't using the right SQLite tables. Be sure to use the correct files from the /Database folder in the release! Or use the preset sv.db" ) end SQL.LoadedSQLite = true SQL.Available = true SQL.Busy = false SQL_Print( "[SQL Connect] Connected to local SQLite server successfully" ) local OperatorID = "" -- If you want to start adding admins and don't know how to edit the 'sv.db' manually, enter your Steam ID here! It'll force you to admin. Admin:LoadAdmins( OperatorID ) Admin:LoadNotifications() end [/code] Instead of your function, use that. It should make everything work like it's meant to work. Yuuki and qTY, this should also show the icons on the scoreboard, as well as load VIP status. --- About your other issue; I have no idea what could be wrong, but then again, I don't exactly know what's wrong. Does anything else fail? Has anything been resolved by changing data in core.lua?[/QUOTE] ive tryed what you said my Vips dont work still :\
VIPs are just something I added for Flow. They're not required to have for a working gamemode. @qTY what database are you using? Again, have you changed the paths in core.lua, because if they're set to Flow, you'll get the files Flow used. Look guys, I'm releasing this to be used, but not will a full instructional manual and setup guiding. The maps would normally not come preloaded, but for some it may be useful. If you want to add or remove maps, you'll have to do it yourselves. You can easily remove maps under the Owner rank by clicking "Completely remove map" and then reloading the server. To add new maps, force change map to it, then add the zones and set the multiplier then reload and it'll show up on the nominate; if you don't follow these steps, it won't work. But because of the amount of 'problems', I'll create a full-on video tutorial for this, also covering maps so this is usable for every audience and not just common visitors / admins of my gamemode. --- Oh, and because you guys asked: VIPs get access to a simple VIP panel (!vip) where they can set colors for almost everything. Elevated VIPs get double votes, too. If you want the full list, check the included "Simple GMOD Website" folder (login.php, bottom)
Alright, and I appreciate all the help you are doing :) and we figured out everything but the autohop not working on slopes...
[QUOTE=Gravious;47049965]VIPs are just something I added for Flow. They're not required to have for a working gamemode. @qTY what database are you using? Again, have you changed the paths in core.lua, because if they're set to Flow, you'll get the files Flow used. Look guys, I'm releasing this to be used, but not will a full instructional manual and setup guiding. The maps would normally not come preloaded, but for some it may be useful. If you want to add or remove maps, you'll have to do it yourselves. You can easily remove maps under the Owner rank by clicking "Completely remove map" and then reloading the server. To add new maps, force change map to it, then add the zones and set the multiplier then reload and it'll show up on the nominate; if you don't follow these steps, it won't work. But because of the amount of 'problems', I'll create a full-on video tutorial for this, also covering maps so this is usable for every audience and not just common visitors / admins of my gamemode. --- Oh, and because you guys asked: VIPs get access to a simple VIP panel (!vip) where they can set colors for almost everything. Elevated VIPs get double votes, too. If you want the full list, check the included "Simple GMOD Website" folder (login.php, bottom)[/QUOTE] yeah the only reason i want vips working is the coustom colors and stuff if im doing it wrong how would i add a vip just a steam id or somthing else
[IMG]http://i.imgur.com/IpKMiHB.png[/IMG] So grav one last question before I leave yah alone, In the szSteam I put the steamid, and then what about the nType, nStart, and im guessing nLength is how long you have vip for... thanks
[QUOTE=qTY3;47050603][IMG]http://i.imgur.com/IpKMiHB.png[/IMG] So grav one last question before I leave yah alone, In the szSteam I put the steamid, and then what about the nType, nStart, and im guessing nLength is how long you have vip for... thanks[/QUOTE] yeah thats what i mean what do we put in all of thoses
This is surprisingly generous considering how greedy the community has become now-a-days. Good work and thanks!
Gravious, I'm Cuties Developer (qTY). As much as you probably do not want me to ask and probably has a tutorial in the files, how the in the hell are VIP's successfully added? Thanks.
-snip-
[QUOTE=FiBzY;47051647][QUOTE=OneTimeFun;47051629]Gravious, I'm Cuties Developer (qTY). As much as you probably do not want me to ask and probably has a tutorial in the files, how the in the hell are VIP's successfully added? Thanks.[/QUOTE] I think that's a bit rude now.[/QUOTE] yeah man be nice hes releasing the game modes cause hes nice and hes not providing instructions cause leachers but yeah how do we properly add vips?
Lol fibs
[QUOTE=qTY3;47051840]Lol fibs[/QUOTE] lol you should tots unban me :)
[QUOTE=Matt0722;47051891]lol you should tots unban me :)[/QUOTE] Who are you? :) I know I banned FiBz
[QUOTE=qTY3;47051900]Who are you? :) I know I banned FiBz[/QUOTE] i wus benned on ur server by de psuhers cuz a joke i did with my server name
We experience multiple errors attempting to use MySQL. One Including [ERROR] gamemodes/bhop/gamemode/sv_player.lua:527: Attempt to call method 'Broadcast' <a nil value> Something else about CORE:Boot as well. [editline]1st February 2015[/editline] Oh sorry, I was trying to be rude in any sort of way. ;(
[QUOTE=YourStalker;47050764]This is surprisingly generous considering how greedy the community has become now-a-days. Good work and thanks![/QUOTE] I thought releasing something like this on Facepunch would attract more knowledgable developers. [QUOTE=qTY3;47050603][IMG]http://i.imgur.com/IpKMiHB.png[/IMG] So grav one last question before I leave yah alone, In the szSteam I put the steamid, and then what about the nType, nStart, and im guessing nLength is how long you have vip for... thanks[/QUOTE] If you're not sure how the database works, you could've reverse engineered it (what I initially intended to do) from the Lua files (such as sv_admin.lua, where all the VIP code is located at). [B]nID[/B] is an autoincrement value, so this just increases with the amount of VIPs inserted; just for identification of the row [B]szSteam[/B] is your Steam ID [B]nType[/B] is the type of VIP you'll be (1 = VIP, 2 = Elevated VIP) [B]szTag[/B] is your saved tag (leave this blank so you can set it in-game) [B]szName[/B] is your saved name (leave this blank so you can set it in-game) [B]szChat[/B] is your saved chat color (leave this blank so you can set it in-game) [B]nStart[/B] is the time value since Epoch (os.time()) showing when your VIP started (If you want to add them manually, get the time() value from [url]http://epochconverter.com[/url]) [B]nLength[/B] is the length of your VIP in minutes (1440 = one day) - Set it to 0 for infinite VIP [QUOTE=OneTimeFun;47051629]Gravious, I'm Cuties Developer (qTY). As much as you probably do not want me to ask and probably has a tutorial in the files, how the in the hell are VIP's successfully added? Thanks.[/QUOTE] I didn't add any tutorial in the files because I thought that the people who actually wanted to have VIPs (this basically implies donations) would be more advanced with setting things up like this (because you'd have to add a website, the PayPal IPN and a some PHP script editing as well). The "Websites/PayPal IPN Script/ipn.php" file contains all queries you need to insert new VIPs to the database, as well as the checking of VIP status. --- Oh damn guys, please try to keep posts to useful contributions rather than those silly reactions. --- [QUOTE=OneTimeFun;47052085]We experience multiple errors attempting to use MySQL. One Including [ERROR] gamemodes/bhop/gamemode/sv_player.lua:527: Attempt to call method 'Broadcast' <a nil value> Something else about CORE:Boot as well. [editline]1st February 2015[/editline] Oh sorry, I was[B]n't*[/B] trying to be rude in any sort of way. ;([/QUOTE] I know you weren't, don't worry. It looks like there's another (probably a syntax error) in core_data.lua that caused the engine to not parse the "Core:Broadcast" function properly (this means the error has to be before that line). Try looking in your console for errors about core_data.lua. But for these errors you should really just read what the error says; it's almost impossible to not be able to fix it from reading the error.
Hello, thanks for the reply man. Turns out the MySqloo module wasn't loading correctly which caused the error. Got it all sorted, thanks man :). I also figured out how to add VIP's so that should no longer be a problem. Very good job on the gamemode. :dance:
I updated the OP with a new download link to v1.01 which has some fixes for typos in README files, as well as the fix for VIPs not loading. I'm uploading a really bad tutorial now but it should help you guys out. In the video I say that I'll do the MySQL part later; that's not true. I'll do that in a new, BETTER video, but since I don't have any time now, you'll have to settle with this. I'll edit this post once it's done processing. Here's the video: [video=youtube;VdgRbidK7WQ]http://www.youtube.com/watch?v=VdgRbidK7WQ[/video] Direct link: [URL="https://www.youtube.com/watch?v=VdgRbidK7WQ"]here[/URL]
[QUOTE=Gravious;47053515]I updated the OP with a new download link to v1.01 which has some fixes for typos in README files, as well as the fix for VIPs not loading. I'm uploading a really bad tutorial now but it should help you guys out. In the video I say that I'll do the MySQL part later; that's not true. I'll do that in a new, BETTER video, but since I don't have any time now, you'll have to settle with this. I'll edit this post once it's done processing. Here's the video: [video=youtube;VdgRbidK7WQ]http://www.youtube.com/watch?v=VdgRbidK7WQ[/video] Direct link: [URL="https://www.youtube.com/watch?v=VdgRbidK7WQ"]here[/URL][/QUOTE] Even after the patch for the VIPs it is still not adding it to the table.
[QUOTE=shadowslayer9;47054885]Even after the patch for the VIPs it is still not adding it to the table.[/QUOTE] Uhm... it's not meant to add anything to the table. You have to do that manually or setup PayPal IPN.
Thanks for all the help grav :) Glad you released this...
[QUOTE=Gravious;47054959]Uhm... it's not meant to add anything to the table. You have to do that manually or setup PayPal IPN.[/QUOTE] I am doing it manually
Having a pretty bad problem, Autohop doesn't work on slopes and you get your head stuck in roofs, a lot. :( Anything that could be causing this Gravious?
[QUOTE=OneTimeFun;47057706]Having a pretty bad problem, Autohop doesn't work on slopes and you get your head stuck in roofs, a lot. :( Anything that could be causing this Gravious?[/QUOTE] Heads stuck in roofs how? Lagging on roofs is a gmod problem, which is usually due to crouching.
Everyone on the server has experienced this problem.
[QUOTE=OneTimeFun;47057939]Everyone on the server has experienced this problem.[/QUOTE] The autohop on ramps not working and the boosters not working are a huge problem ^
[QUOTE=qTY3;47058114]The autohop on ramps not working and the boosters not working are a huge problem ^[/QUOTE] Works fine on my server.
[QUOTE=FiBzY;47058218]Works fine on my server.[/QUOTE] Nah we just figured it out... everything is working great now
Sorry, you need to Log In to post a reply to this thread.