17 Commits

Author SHA1 Message Date
jomo
dff58c66e7 drop support for usernames
Mojang has disabled their legacy skins API:
https://twitter.com/MojangSupport/status/964511258601865216

With their API rate limits, it's now practially impossible
for us to support usernames.

Fixes #142. The default parameter allows using:

- UUID
- URL
- MHF_Alex
- MHF_Steve
- Alex
- Steve

Contrary to UUIDs, using alex/steve doesn't redirect
and instead provides the skin from a locally stored file.
2018-02-16 18:01:41 +01:00
jomo
4fdbfb442b use pajk-lwip as a temporary workaround for EyalAr/lwip#297 2017-07-13 13:03:32 +02:00
jomo
0940b50f2c networking.save_texture should return image buffer, not lwip image object
This led to a crash when a cape or skin was not stored on disk.
The function caled skins.save_image and returned that function's lwip image object instead of the expected buffer.
skins.save_image also no longer returns the image object because it's not used anywhere
2016-02-14 17:04:33 +01:00
jomo
f2dda3b939 check for transparency in hat transparency-bounding-box for avatars, fixes #117 2016-02-02 23:57:40 +01:00
jomo
4f667cc99f remove transparency from avatar, fixes #129 2016-01-20 23:44:33 +01:00
jomo
8367c1e519 mhf_alex should default to mhf_alex if skin not accessible
We only use the 'hard stored' mhf_alex skin when it's part of the 'default' query parameter.
In the rare event that mhf_alex is requested but the skin is not accessible, we would fall back to 'mhf_steve' because it's the default for usernames.
This commit adds the special case to use the stored version of the 'mhf_alex' skin when it's not accessible otherwise
2016-01-20 00:56:20 +01:00
jomo
ecfec6a407 use MHF_Steve and MHF_Alex instead of steve and alex in default parameter
See #142 (not fixed by this commit!)
Basically, this just adds mhf_steve and mhf_alex as special cases for the default parameter only
2015-09-30 00:38:32 +02:00
jomo
fd4fb0764c return & use lwip-stripped image in skins.save_image
no need to pass along (possibly) bulky or broken images!
see #147
2015-09-29 23:32:16 +02:00
jomo
26f6b089ef log errors only once, fixes #140
also made sure some (network) errors have level 'WARN'
these are printed without stacktrace
2015-09-20 21:17:13 +02:00
Jake
d71d99fa9a Make a vast majority of logs debug, make it so that essential info is in one line 2015-07-16 17:42:41 -05:00
Jake
e9071b123c Handle several unhandled errors - this is becoming a mess and we should really use a package to clean this up - closes #113 2015-06-25 13:26:27 -05:00
jomo
f36cfa7898 skip helm for images without alpha channel
hotfix for #117
2015-05-28 01:55:05 +02:00
jomo
e28451f8e7 remove debug log 2015-04-06 03:07:29 +02:00
jomo
af03fb63f8 ❤️ eslint 2015-03-27 23:12:44 +01:00
jomo
13360430d9 join logs using , instead of + " " + 2015-03-15 01:57:19 +01:00
jomo
abaf3f77aa add & clean up documentation
also a small improvement for URL error logging, variable naming, and argument joining
2015-03-01 18:58:21 +01:00
jomo
f984b20344 mv modules/ lib/
that's what all the cool kids do
2015-02-27 18:49:39 +01:00