generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

In-game Current Rank System

Previous Thread :: Next Thread 
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
25 Jan 2016 01:42 PM
So I need to make this well working rank system (group ranks ~ need to keep updating because people keep getting promoted) without spamming my RPi aka web server.

Which way would you prefer?

-1: On join posts HTTP request, stores in table and updates with an interval of a couple minutes.
-2: On join posts HTTP request, stores in table and updates when plr chats a specific command.
-3: Just request everytime game needs it (spamming someone else's proxy then ok). With spamming I mean how well ROBLOX's Touched event works (ye, you'll get it).


Thanks in advance
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
25 Jan 2016 02:23 PM
tx
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
25 Jan 2016 03:30 PM
Ppls
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
26 Jan 2016 12:15 AM
Anybody?
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
26 Jan 2016 12:19 AM
Fetch the player's rank locally, it will get the most updated version of the players rank, unlike doing it from the server which caches..

Is that what you mean??
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
26 Jan 2016 12:26 AM
Used to do that but then the (exploiting) player will be able to return something different
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
26 Jan 2016 05:34 AM
So that's why I need to find an efficient way of using HttpService off site to get the ranks and thought you could give me some advice
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
26 Jan 2016 03:07 PM
Currently made it like this

> if not in table
>> stores 0 in table
>> stores actual rank in table
> else
>> return table data
> wait(1)
> table.remove(data)

My best solution I guess
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
27 Jan 2016 01:55 AM
Yeah, just send a request here everytime you need it, not a real big deal. But if you don't want to use other people's proxy use your own :D

http://www.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=13992341&groupid=2677777
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
27 Jan 2016 01:57 AM
If you want it to keep updating then keep checking on the client at regular intervals. Everytime a change is detected, send it over to the server and validate it with HttpService.
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
27 Jan 2016 01:58 AM
Ye I used to do that but the Touched event doesn't just fire once whenever you touch it so it spammed my server and returned very late due to that.

Debounce wasn't really the solution due to it all being handled in one modulescript
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
27 Jan 2016 02:00 AM
Ok, option 2 then..
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image