This week I released a new version of server code. Most changes won't be noticeable until people upgrade to the next phone version, which should be ready in a few weeks. Even then, you can't force people to upgrade, so there will always be people using older phone code with new server code. So it seems like there is no harm in releasing the web changes earlier than phone changes.
One change that takes effect immediately though is new badges. New badges are calculated on the server and their images are stored on the server too (until they are built into the next phone version). So we've got all kinds of new badges, a few shown below.
But first, here is something funny/stressful that happened with the release. One of the changes was to return the user's view range from the server. This is to enable different view range(s) if the user buys Monster Binoculars. Since the circle on the map has a radius of meters, I made the view range in meters. But my distance calculations on the server were in kilometers. I thought I should be consistent and change everything to one or the other to reduce the change of mistakes. Of course when doing so, I introduced a mistake.
What happened is I changed the pickup tolerance (the range that you have to get within to be close enough to catch the monster) to meters, but I still had the distance in kilometers. So it was basically checking that if your distance from a monster in kilometers -- say 0.1 kilometers -- was less than the pickup tolerance in meters -- 100 -- than you caught the monster. So people could catch monsters from 100 kilometers away! That is, monsters at your level, and it actually only gets them in batches of about 5 KM, so really it was within 5 KM. But right when I tried out the new version, I caught 4 monsters simultaneously. I realized what was happening right away and fixed it before anyone else caught a big batch. Then I deleted mine to be fair in the leader charts. Thank goodness I caught it right away or I could have had a mess of data on my hands.
Some new badges, below:
No comments:
Post a Comment