<< Back to Programming Forum   Search

Posts 1 - 7 of 7   
CLOT questions: 2015-03-08 14:35:02


Deadman 
Level 64
Report
I have two questions.

1. Can I run my cron job every 3 or 5 minutes instead of your suggested frequency of 10 minutes?

It makes for a very boring experience on the ladder right now, since activity is low. Also, I'm pretty sure I don't have bugs with the amount of games I'm querying for, and I am also deleting "stale" games. (In short, responsible developer :P)


2. I would like to show the clan icon of every player who plays on the CLOT. The api returns the clan name. Is there any way for me to retrieve the clan icon too? (One hack I can do, is to store all the icons manually for each clan as resources and display the appropriate icon based on clan name returned by the api -- But I would prefer not to do this due to there being a chance of me being out of sync with clans on WL)
CLOT questions: 2015-03-10 14:45:57


ChrisCMU 
Level 61
Report
1) I think his directions say not to shorten it unless you are doing RT. So no reason you could not check 3-5 minutes, you just want to make sure you are not pounding the server (that everything works correctly first).

2) Hmm, I have no idea how you would store the icon. The Wiki says the JSON contains "their names, color, their state, etc." (what is the "etc."?)

Yes, your method would be out of sync if a clan changes their icon for sure. There must be a way to query their profile though as Fizzer clearly does it for his ladders.

Edited 3/10/2015 14:46:21
CLOT questions: 2015-03-11 03:35:59


Deadman 
Level 64
Report
1. Quoting Fizzer
"""For real-time games, you can set this as low as 10 minutes."""

Hence my question, if I can reduce it further.


2. This will return the following fields about the player whose token you provided:

tokenIsValid: This simply tells you that the token does belong to a WarLight player.
name: The player's WarLight nickname.
isMember: True if the player has purchased a WarLight membership.
level: Their current level.
color: The player's preferred WarLight color.
tagLine: The tagline the player has set up to display on their profile page.
clotpass: See CLOT Authentication
createPlayerLimit: The maximum game size that they can create.
lowestUsableLuckModifier: The lowest setting they can specify for the luck modifier when creating games.
levelForMapUsage: The level the system considers them when determining what maps they can use. If their level is 5, but their levelForMapUsage is 10, they can use maps that unlock at 6-10, even though their level isn't techincally high enough.
featuresUnlocked: What features they've unlocked, either from leveling up or purchasing a membership.
CLOT questions: 2015-03-11 15:55:38


ChrisCMU 
Level 61
Report
1) Well, you CAN reduce it. I'm not sure Fizzer would approve though.

2) Sounds like he needs to add clan tag to the API then.
CLOT questions: 2015-03-14 19:33:55


Krzysztof 
Level 67
Report
what's the source of "For real-time games, you can set this as low as 10 minutes"?

Edited 3/14/2015 19:34:01
CLOT questions: 2015-03-14 20:08:11


Deadman 
Level 64
Report
CLOT questions: 2015-03-16 16:28:08


ChrisCMU 
Level 61
Report
well, he just doesn't want the servers pounded if you have code issues. Perhaps just email Fizzer and have him give you the OK?
Posts 1 - 7 of 7