branchrust_reboot/main/premium_serverscancel
23 Commits over 28 Days - 0.03cph!
Fixed premium refresh interval being set <5s, clamp it from 30s -> 1hr
Indicate which `hello` api call is the first one
Final fix for premium status not deserializing properly
Initial refresh premium status 60s after launch to reduce worst case players waiting 10m before seeing their initial premium status
Print out content as warning if HTTP request fails and slight cleanup
Switch PremiumStatusResult from struct -> class because it seems IL2CPP can't deserialize JSON into a struct
Cherrpick rest of commits from `manual_refresh` -> `premium_servers` after the merge from main (so we don't take staging updates onto `premium_servers`)
merge from manual_refresh -> premium_servers (before the merge from main)
merge from ranking_change -> premium_servers
Hide current inventory value (since we don't have that exposed in API yet) and shift "Not Active" text over to compensate
merge from premium-servers-ui-tweaks -> premium_servers
Hide logging behind `log_premium_status` convar
Add PremiumClientCache
- stores last premium result in PlayerPref so it will show last result if web api has issues
- queries web api every 10min to recheck premium status
- switch from convars to check premium to using web api
- add convar `qualify_premium_override` to manually override whether you qualify for premium on the client
- add convar `recheck_premium` to manually refresh premium status
` add convar `premium_refresh_interval` to control how often client checks premium api (default 10min)
Refactor `CheckIfPlayerIsPremium()` so it can be called from both server and client
- don't print errors on client since it will cause a kick
- return struct instead of bool so can get the string message we want to reject connection attempt with
merge from main -> premium_servers
Fix premium tag having to be clicked twice to open premium modal
Include 2 more background images for the premium modal
Fix premium tag offset vertically in loading screen
Remove `premiumfilter` test convar
merge from main -> premium_servers
merge from main -> premium_servers
merge from server_browser -> premium_servers
merge from server_browser -> premium_servers