|
| 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 |
|
|
| |
|
| |
|
| |
|
|
| 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 |
|
|
|
| 26 Jan 2016 12:26 AM |
| Used to do that but then the (exploiting) player will be able to return something different |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|