Jump to content

FastPoint Gaming

Member
  • Posts

    90
  • Joined

  • Last visited

Reputation Activity

  1. Like
    FastPoint Gaming reacted to Halvhjearne in Auto Ban?!?!   
    i seriously doubt that ...
  2. Like
    FastPoint Gaming got a reaction from PAR4NA in Redis in PHP - Guide and Examples + Requests   
    Hi Everyone,

    As there is not a great deal of option when it comes to managing your redis data (Hence why we are building a custom database management panel - as well as a few other people) I'm going to show you how to both get information from your redis database and manipulate it.

    This will be helpful for those who wish to build a unique managment system for their servers. Be that very simple or very complex.

    I will also be taking request and offering help to people who wish to get certain results from their queries.


    ===================================

    Requirments:
    PHP capable enviroment (I suggest MAMP/Xampp/Wamp to create a local web server)
    Redis PHP Client (I will be using TinyRedisClient as it is very lightweight)
    General knowledge of PHP language as well as good arithmetic
    Redis Database

    ===================================

    Example One - Get the total amount of players
    function uniqueUsers() { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->GET( 'PLAYERS:YourPort' ); $object = json_decode($value, true); $number = count($object); return $number; } Breakdown

    Declare a fucntion and name it uniqueUsers
    function uniqueUsers() { } Connect to Redis Database
    function uniqueUsers() { $client = new TinyRedisClient( 'YourIP:YourPort' ); } Perform a GET request for the Key Called YourIP:Port
    function uniqueUsers() { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->GET( 'PLAYERS:YourPort' ); } This will return a JSON string. We now need to decode this using the json_decode() function like so
    function uniqueUsers() { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->GET( 'PLAYERS:YourPort' ); $object = json_decode($value, true); } This will seperate the JSON string into an array called $object. Now we count how many items are in the $objects array to get the total amount of players
    function uniqueUsers() { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->GET( 'PLAYERS:YourPort' ); $object = json_decode($value, true); $number = count($object); } Now all that is left to do is return the value of $number to a variable that we stored the returned value from the function in.
    function uniqueUsers() { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->GET( 'PLAYERS:YourPort' ); $object = json_decode($value, true); $number = count($object); return $number; } NOTE: To assign the returned value to a variable you must declare the variable and call the function like so:
    $uniquePlayers = uniqueUsers(); ===================================

    Example Two - Get Most Common Vehicle (Class Name)
    function mostPopularVehicle () { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->KEYS( 'Vehicle:YourPort*' ); $number = count($value); for ($x = 0; $x <= $number; $x++) { $value = $client->GET( 'Vehicle:YourPort:'.$x ); if ($value != '') { $vehicle = json_decode($value, true); if (isset($vehicle[0])) { $vehicles[$x] = $vehicle[0]; } } } $counted = array_count_values($vehicles); arsort($counted); return(key($counted)); } Breakdown
     
      Declare mostPopularVehicle function
    function mostPopularVehicle () { } Connect to Redis database
    function mostPopularVehicle () { $client = new TinyRedisClient( 'YourIP:YourPort' ); } Get all KEYS that match the pattern "Vehicle:YourPort:"
    function mostPopularVehicle () { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->KEYS( 'Vehicle:YourPort*' ); } Count the result to get the total amount of vehicles
    function mostPopularVehicle () { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->KEYS( 'Vehicle:YourPort*' ); $number = count($value); } Loop for the number of vehicles
    function mostPopularVehicle () { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->KEYS( 'Vehicle:YourPort*' ); $number = count($value); for ($x = 0; $x <= $number; $x++) { } } GET the vehicle number $x (For each number in the total number of cars)
    function mostPopularVehicle () { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->KEYS( 'Vehicle:YourPort*' ); $number = count($value); for ($x = 0; $x <= $number; $x++) { $value = $client->GET( 'Vehicle:YourPort:'.$x ); } } Check if the car value is not blank
    function mostPopularVehicle () { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->KEYS( 'Vehicle:YourPort*' ); $number = count($value); for ($x = 0; $x <= $number; $x++) { $value = $client->GET( 'Vehicle:YourPort:'.$x ); if ($value != '') { } } } Decode the JSON string
    function mostPopularVehicle () { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->KEYS( 'Vehicle:YourPort*' ); $number = count($value); for ($x = 0; $x <= $number; $x++) { $value = $client->GET( 'Vehicle:YourPort:'.$x ); if ($value != '') { $vehicle = json_decode($value, true); } } } Check if the decoded JSON string Index 0 is set
    function mostPopularVehicle () { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->KEYS( 'Vehicle:YourPort*' ); $number = count($value); for ($x = 0; $x <= $number; $x++) { $value = $client->GET( 'Vehicle:YourPort:'.$x ); if ($value != '') { $vehicle = json_decode($value, true); if (isset($vehicle[0])) { } } } } If the index is set, vehicles index of $x variables (Each car for the total of cars) = the vehicle class name (Index 0 of the JSON string)
    function mostPopularVehicle () { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->KEYS( 'Vehicle:YourPort*' ); $number = count($value); for ($x = 0; $x <= $number; $x++) { $value = $client->GET( 'Vehicle:YourPort:'.$x ); if ($value != '') { $vehicle = json_decode($value, true); if (isset($vehicle[0])) { $vehicles[$x] = $vehicle[0]; } } } } Count all the values in the $vehicles array
    function mostPopularVehicle () { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->KEYS( 'Vehicle:YourPort*' ); $number = count($value); for ($x = 0; $x <= $number; $x++) { $value = $client->GET( 'Vehicle:YourPort:'.$x ); if ($value != '') { $vehicle = json_decode($value, true); if (isset($vehicle[0])) { $vehicles[$x] = $vehicle[0]; } } } $counted = array_count_values($vehicles); } Sort the counted array but maintain index association 
    function mostPopularVehicle () { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->KEYS( 'Vehicle:YourPort*' ); $number = count($value); for ($x = 0; $x <= $number; $x++) { $value = $client->GET( 'Vehicle:YourPort:'.$x ); if ($value != '') { $vehicle = json_decode($value, true); if (isset($vehicle[0])) { $vehicles[$x] = $vehicle[0]; } } } $counted = array_count_values($vehicles); arsort($counted); } Return the value, in this case is the most frequent occurring vehicle in the databse
    function mostPopularVehicle () { $client = new TinyRedisClient( 'YourIP:YourPort' ); $value = $client->KEYS( 'Vehicle:YourPort*' ); $number = count($value); for ($x = 0; $x <= $number; $x++) { $value = $client->GET( 'Vehicle:YourPort:'.$x ); if ($value != '') { $vehicle = json_decode($value, true); if (isset($vehicle[0])) { $vehicles[$x] = $vehicle[0]; } } } $counted = array_count_values($vehicles); arsort($counted); return(key($counted)); } ===================================
     
    More coming Soon
  3. Like
    FastPoint Gaming got a reaction from TATERx in Learning to install scripts   
    Too many places/people are charging excessive fee's for installing/setting-up what is publicly available to everyone (Scripts/Mods) so we have decided to offer the community a 'class' once or twice a month where we will go over various publicly available scripts showing you how to install them and some important information to keep in mind whenever installing scripts/mods.
     
    All of this will be completely free of charge and will be open to everyone, I will probably stream my pc for all to view over twitch or some other platform as well as be on teamspeak to answer any questions or assist with confusion.
     
    Our aim from this is to better educate people on how to take the open sourced scripts/mods and implement them into their server. Please note however this is not an installation service, if you expect to join one of the sessions and have everything installed for you this will not be the case.
     
    I'm basically looking for a general idea of numbers in terms of how many people would join in on such a session, as well as best times/days for people so I can look to set dates for sessions.
     
    Let me know what you guys think.
     
    Thanks,
    Ricky
  4. Like
    FastPoint Gaming reacted to Zupa in Learning to install scripts   
    No, there are just more commands to use.
     
    If needed i can do like a session with stream this saterday evening , where poeple can join with coding questions or something, teamspeak perhaps with it.
     
    Then i can help as far as my knowledge goes : )
  5. Like
    FastPoint Gaming got a reaction from Dwarfer in Learning to install scripts   
    After reading what you all had to say I think it would be a good idea for me to reach out to some of the script developers who post here regularly to see if they would do a drop in on a video, maybe a different dev for each video. I'll send some messages around and see who would be willing to work with us in order to better educate the community
  6. Like
    FastPoint Gaming got a reaction from stonXer in Learning to install scripts   
    Too many places/people are charging excessive fee's for installing/setting-up what is publicly available to everyone (Scripts/Mods) so we have decided to offer the community a 'class' once or twice a month where we will go over various publicly available scripts showing you how to install them and some important information to keep in mind whenever installing scripts/mods.
     
    All of this will be completely free of charge and will be open to everyone, I will probably stream my pc for all to view over twitch or some other platform as well as be on teamspeak to answer any questions or assist with confusion.
     
    Our aim from this is to better educate people on how to take the open sourced scripts/mods and implement them into their server. Please note however this is not an installation service, if you expect to join one of the sessions and have everything installed for you this will not be the case.
     
    I'm basically looking for a general idea of numbers in terms of how many people would join in on such a session, as well as best times/days for people so I can look to set dates for sessions.
     
    Let me know what you guys think.
     
    Thanks,
    Ricky
  7. Like
    FastPoint Gaming got a reaction from Friendly in Learning to install scripts   
    Too many places/people are charging excessive fee's for installing/setting-up what is publicly available to everyone (Scripts/Mods) so we have decided to offer the community a 'class' once or twice a month where we will go over various publicly available scripts showing you how to install them and some important information to keep in mind whenever installing scripts/mods.
     
    All of this will be completely free of charge and will be open to everyone, I will probably stream my pc for all to view over twitch or some other platform as well as be on teamspeak to answer any questions or assist with confusion.
     
    Our aim from this is to better educate people on how to take the open sourced scripts/mods and implement them into their server. Please note however this is not an installation service, if you expect to join one of the sessions and have everything installed for you this will not be the case.
     
    I'm basically looking for a general idea of numbers in terms of how many people would join in on such a session, as well as best times/days for people so I can look to set dates for sessions.
     
    Let me know what you guys think.
     
    Thanks,
    Ricky
  8. Like
    FastPoint Gaming got a reaction from MAW3Y in Learning to install scripts   
    Too many places/people are charging excessive fee's for installing/setting-up what is publicly available to everyone (Scripts/Mods) so we have decided to offer the community a 'class' once or twice a month where we will go over various publicly available scripts showing you how to install them and some important information to keep in mind whenever installing scripts/mods.
     
    All of this will be completely free of charge and will be open to everyone, I will probably stream my pc for all to view over twitch or some other platform as well as be on teamspeak to answer any questions or assist with confusion.
     
    Our aim from this is to better educate people on how to take the open sourced scripts/mods and implement them into their server. Please note however this is not an installation service, if you expect to join one of the sessions and have everything installed for you this will not be the case.
     
    I'm basically looking for a general idea of numbers in terms of how many people would join in on such a session, as well as best times/days for people so I can look to set dates for sessions.
     
    Let me know what you guys think.
     
    Thanks,
    Ricky
  9. Like
    FastPoint Gaming got a reaction from nedfox in Learning to install scripts   
    Too many places/people are charging excessive fee's for installing/setting-up what is publicly available to everyone (Scripts/Mods) so we have decided to offer the community a 'class' once or twice a month where we will go over various publicly available scripts showing you how to install them and some important information to keep in mind whenever installing scripts/mods.
     
    All of this will be completely free of charge and will be open to everyone, I will probably stream my pc for all to view over twitch or some other platform as well as be on teamspeak to answer any questions or assist with confusion.
     
    Our aim from this is to better educate people on how to take the open sourced scripts/mods and implement them into their server. Please note however this is not an installation service, if you expect to join one of the sessions and have everything installed for you this will not be the case.
     
    I'm basically looking for a general idea of numbers in terms of how many people would join in on such a session, as well as best times/days for people so I can look to set dates for sessions.
     
    Let me know what you guys think.
     
    Thanks,
    Ricky
  10. Like
    FastPoint Gaming got a reaction from Bushwick in Learning to install scripts   
    Too many places/people are charging excessive fee's for installing/setting-up what is publicly available to everyone (Scripts/Mods) so we have decided to offer the community a 'class' once or twice a month where we will go over various publicly available scripts showing you how to install them and some important information to keep in mind whenever installing scripts/mods.
     
    All of this will be completely free of charge and will be open to everyone, I will probably stream my pc for all to view over twitch or some other platform as well as be on teamspeak to answer any questions or assist with confusion.
     
    Our aim from this is to better educate people on how to take the open sourced scripts/mods and implement them into their server. Please note however this is not an installation service, if you expect to join one of the sessions and have everything installed for you this will not be the case.
     
    I'm basically looking for a general idea of numbers in terms of how many people would join in on such a session, as well as best times/days for people so I can look to set dates for sessions.
     
    Let me know what you guys think.
     
    Thanks,
    Ricky
  11. Like
    FastPoint Gaming reacted to Darth_Rogue in Is it just me?   
  12. Like
    FastPoint Gaming got a reaction from Incsy in Learning to install scripts   
    Too many places/people are charging excessive fee's for installing/setting-up what is publicly available to everyone (Scripts/Mods) so we have decided to offer the community a 'class' once or twice a month where we will go over various publicly available scripts showing you how to install them and some important information to keep in mind whenever installing scripts/mods.
     
    All of this will be completely free of charge and will be open to everyone, I will probably stream my pc for all to view over twitch or some other platform as well as be on teamspeak to answer any questions or assist with confusion.
     
    Our aim from this is to better educate people on how to take the open sourced scripts/mods and implement them into their server. Please note however this is not an installation service, if you expect to join one of the sessions and have everything installed for you this will not be the case.
     
    I'm basically looking for a general idea of numbers in terms of how many people would join in on such a session, as well as best times/days for people so I can look to set dates for sessions.
     
    Let me know what you guys think.
     
    Thanks,
    Ricky
  13. Like
    FastPoint Gaming reacted to Gen0cide in Learning to install scripts   
    I like Darth_Rogue's idea of recording your classes and uploading them.  That way you can do a class on your own schedule and then people can watch, go back, or fast forward to where they need to be!  Again this is why I shut down my dedicated and have all my servers with you Ricky  A+ all the way!
  14. Like
    FastPoint Gaming got a reaction from Gen0cide in Learning to install scripts   
    Too many places/people are charging excessive fee's for installing/setting-up what is publicly available to everyone (Scripts/Mods) so we have decided to offer the community a 'class' once or twice a month where we will go over various publicly available scripts showing you how to install them and some important information to keep in mind whenever installing scripts/mods.
     
    All of this will be completely free of charge and will be open to everyone, I will probably stream my pc for all to view over twitch or some other platform as well as be on teamspeak to answer any questions or assist with confusion.
     
    Our aim from this is to better educate people on how to take the open sourced scripts/mods and implement them into their server. Please note however this is not an installation service, if you expect to join one of the sessions and have everything installed for you this will not be the case.
     
    I'm basically looking for a general idea of numbers in terms of how many people would join in on such a session, as well as best times/days for people so I can look to set dates for sessions.
     
    Let me know what you guys think.
     
    Thanks,
    Ricky
  15. Like
    FastPoint Gaming got a reaction from fr1nk in Learning to install scripts   
    Too many places/people are charging excessive fee's for installing/setting-up what is publicly available to everyone (Scripts/Mods) so we have decided to offer the community a 'class' once or twice a month where we will go over various publicly available scripts showing you how to install them and some important information to keep in mind whenever installing scripts/mods.
     
    All of this will be completely free of charge and will be open to everyone, I will probably stream my pc for all to view over twitch or some other platform as well as be on teamspeak to answer any questions or assist with confusion.
     
    Our aim from this is to better educate people on how to take the open sourced scripts/mods and implement them into their server. Please note however this is not an installation service, if you expect to join one of the sessions and have everything installed for you this will not be the case.
     
    I'm basically looking for a general idea of numbers in terms of how many people would join in on such a session, as well as best times/days for people so I can look to set dates for sessions.
     
    Let me know what you guys think.
     
    Thanks,
    Ricky
  16. Like
    FastPoint Gaming got a reaction from Richie in Learning to install scripts   
    Too many places/people are charging excessive fee's for installing/setting-up what is publicly available to everyone (Scripts/Mods) so we have decided to offer the community a 'class' once or twice a month where we will go over various publicly available scripts showing you how to install them and some important information to keep in mind whenever installing scripts/mods.
     
    All of this will be completely free of charge and will be open to everyone, I will probably stream my pc for all to view over twitch or some other platform as well as be on teamspeak to answer any questions or assist with confusion.
     
    Our aim from this is to better educate people on how to take the open sourced scripts/mods and implement them into their server. Please note however this is not an installation service, if you expect to join one of the sessions and have everything installed for you this will not be the case.
     
    I'm basically looking for a general idea of numbers in terms of how many people would join in on such a session, as well as best times/days for people so I can look to set dates for sessions.
     
    Let me know what you guys think.
     
    Thanks,
    Ricky
  17. Like
    FastPoint Gaming got a reaction from emmenboy in [BETA] FastPointGaming - Redis/MySql Database Managment Web Application - Source Code for the community   
    A fix for this issue has just been pushed live.
  18. Like
    FastPoint Gaming got a reaction from DanVonTrap in [BETA] FastPointGaming - Redis/MySql Database Managment Web Application - Source Code for the community   
    FastPointGaming Redis/MySQL Database Management System
     
    During the beta stages there will be two option for using this sytem.
     
    You can either use our online platform (This requires no set-up so is useful for those unfamiliar with setting up local web severs).
     
    Or you can download the sources files and host them on your own environment. (DELAYED).
    I need to spend some time writing detailed documentation for installation and updating due to the frequency that updates are going to be released. I personally think that there is no point releasing the full source until we are at v1 release as the constant updates would require people to update regularly. People would be using outdated versions and posting bug reports when they could have actually been resolved in a newer version. Let me know your opinion however.
     
    If you wish to use our online platform please register at: http://dev.fastpointgaming.com
    Please note that your account will be wiped regularly as we constantly update our database structure, you may simply re-register.
     
    Bug Reporting
    Please report any bugs either here or on our forums, both will be monitored by us for bugs.
  19. Like
    FastPoint Gaming got a reaction from San in [BETA] FastPointGaming - Redis/MySql Database Managment Web Application - Source Code for the community   
    To be fair we have changed design twice, however it's pretty hard to make bootstrap not look like bootstrap lol.
  20. Like
    FastPoint Gaming got a reaction from Tywin in Little something we are working on   
    I'm not so familiar with their CMS however I'm yet to see a Enjin site that doesn't look like 15 years old. All of their designs are very outdated, not to mention horrible (My personal opinion)
  21. Like
    FastPoint Gaming reacted to Gen0cide in Little something we are working on   
    Ricky your a beast. I dunno how you do all this by yourself.
  22. Like
    FastPoint Gaming got a reaction from VAKE in [BETA] FastPointGaming - Redis/MySql Database Managment Web Application - Source Code for the community   
    FastPointGaming Redis/MySQL Database Management System
     
    During the beta stages there will be two option for using this sytem.
     
    You can either use our online platform (This requires no set-up so is useful for those unfamiliar with setting up local web severs).
     
    Or you can download the sources files and host them on your own environment. (DELAYED).
    I need to spend some time writing detailed documentation for installation and updating due to the frequency that updates are going to be released. I personally think that there is no point releasing the full source until we are at v1 release as the constant updates would require people to update regularly. People would be using outdated versions and posting bug reports when they could have actually been resolved in a newer version. Let me know your opinion however.
     
    If you wish to use our online platform please register at: http://dev.fastpointgaming.com
    Please note that your account will be wiped regularly as we constantly update our database structure, you may simply re-register.
     
    Bug Reporting
    Please report any bugs either here or on our forums, both will be monitored by us for bugs.
  23. Like
  24. Like
  25. Like
    FastPoint Gaming got a reaction from unrealPANDA in [BETA] FastPointGaming - Redis/MySql Database Managment Web Application - Source Code for the community   
    v0.2 pushed live to dev platform. Github repo with source files coming soon.
     
    [NEW] Added error handling for live map connection when no database settings are set [NEW] Added tour to prevent confusion when using the platform [FIX] Fixed issue where database password would be set to blank if left blank (When updating details) [FIX] Improved live map accuracy [FIX] Fixed issues with verify email not working
×
×
  • Create New...