0
Commit Graph

943 Commits

Author SHA1 Message Date
CounterPillow
6812cad596 Fix validator for empty lists (the default value)
Whoops.
2014-05-09 16:58:47 +02:00
CounterPillow
6d28942626 Clarify optimizeimg docs; add warnings
The validator will now warn if it detects that a crushed output
is fed into something that is not a crusher.

The is_crusher method of an optimizer shall return True if the
optimisation process is lossless, and does try to find optimal
encoding parameters as opposed to only removing unneeded channels
or reducing palettes.
2014-05-08 20:56:46 +02:00
Aaron Griffith
4b2cbfb5ee Merge pull request #1074 from CounterPillow/optimizerewrite
Rewrote image optimisation stuff.
2014-05-06 18:25:09 -04:00
CounterPillow
03561dccfa Use check_call(), add workaround for broken pngnq
Also -f pngnq to write files, in case something didn't work
last render.
2014-05-06 22:31:23 +02:00
CounterPillow
8817972b36 Move the check for program availability into class
We also actually execute it now. Go us!
2014-05-06 20:10:42 +02:00
CounterPillow
866c2fe064 Work around and warn if old optimizeimg definition
Before someone says this is incorrect because it only ever uses
pngcrush: The old code always used pngcrush and nothing else
anyway. This is absolutely correct and the old behaviour.

I also added a check to make sure it's a list, as some people might
forget the whole list thing.
2014-05-06 19:54:43 +02:00
Aaron Griffith
7c23d6e86a added rendercheck mode 3, the identity function of rendercheck modes! 2014-05-01 16:48:28 -04:00
Andrew Chin
7d87d25658 Fix ServerAnnounceObserver typo 2014-04-15 11:22:41 -04:00
Andrew Chin
8e5944d5c3 Catch some additional UUID lookup errors from urllib2 2014-04-10 19:52:50 -04:00
Andrew Chin
ae586a7d27 Merge PR #1079 -- Handle UUID player files semi-nicely in POIgen 2014-04-10 19:44:24 -04:00
Aaron Griffith
a8fc3300b4 general fixes for min/maxzoom, documentation cleared up
hopeful fix for #1086
2014-04-05 20:29:58 -04:00
Andrew Chin
90071e999f Merge #1055 -- Prevent opening and parsing files which haven't been modified since the last time that the render was done. 2014-03-30 18:21:08 -04:00
Luc Ritchie
0e1bd4369a Use Mojang's session API to get usernames from UUIDs 2014-03-09 16:23:32 -04:00
Luc Ritchie
1cf131a8fc Handle UUID player files semi-nicely in POIgen (14w10a+, 1.7.6+) 2014-03-09 00:56:27 -05:00
CounterPillow
09477ed8a0 Rewrote image optimisation stuff.
The old one was broken anyway.
2014-03-04 00:39:59 +01:00
Andrew Chin
eda7671450 Merge pull request #1068 from overviewer/locale_fix
Fixes for locale issues
2014-02-19 21:16:24 -05:00
Andrew Chin
2c35ab8cc7 Merge pull request #1064 from overviewer/fscaps
Try to track the capabilities of our outputdir filesystem.
2014-02-16 22:38:41 -05:00
Andrew Chin
c7ee8560d3 Fixes for locale issues
There were some problems when a level.dat contained a non-ascii name, or
when a level.dat lived in a directory with a non-ascii name.

Paths returned by os.listdir are encoded, so we need to decode them
before printing them.  When calculating the max length of the enumerated
world names, were we for some reason calling str() before taking the
len().  The had the effect of converting unicode strings into
non-unicode strings, which is not the correct thing to do.
2014-02-16 13:35:16 -05:00
Wil Gieseler
4c374f3f9b correct coordinates and bold the x/z labels 2014-02-14 16:15:02 -08:00
Wil Gieseler
b7414e603c display region file name in map coordinates view 2014-02-14 16:12:24 -08:00
Andrew Chin
d11960ecfb Try to track the capabilities of our outputdir filesystem.
For example, don't chmod if the filesystem dosen't support chmod, and
don't rename over files if that's not supported (this functionality was
already in place).

Should fix #1061
Related to #1055 (we could add a mtime capability flag)
2014-02-11 10:38:38 -05:00
Thomas Lake
cd48aaa656 Rearrange infoWindow contents to shrink icon size
Addresses issue #1057
2014-01-30 14:17:37 +00:00
Patrick-Emmanuel Boulanger-Nadeau
18beae6624 Import the platform 2014-01-21 10:55:13 -05:00
Patrick-Emmanuel Boulanger-Nadeau
8023b52fdc Pythonic or 2014-01-21 10:52:53 -05:00
Patrick-Emmanuel Boulanger-Nadeau
6ee3eba550 Do not use the newer than check on windows since apparently minecraft will not force a timestamp update on the file when they are written until it's closed. 2014-01-21 10:08:19 -05:00
Patrick-Emmanuel Boulanger-Nadeau
c438a37b29 Default value is compatible with the expecteed result in fetching the region for a path 2014-01-20 16:30:08 -05:00
Patrick-Emmanuel Boulanger-Nadeau
8458451044 Respect the markall parameter 2014-01-20 15:55:51 -05:00
Patrick-Emmanuel Boulanger-Nadeau
4579998663 Prevent opening and parsing files which haven't been modified since the last time that the render was done 2014-01-20 15:34:36 -05:00
Johan Kiviniemi
4bb8c7ce3a tileset: Log message when resuming interrupted forcerender 2013-12-29 03:26:05 +02:00
Aaron Griffith
4576fc96dc Merge remote-tracking branch 'ion1/master' 2013-12-28 18:58:39 -05:00
Johan Kiviniemi
8ac4f2811e RendertileSet: Do not render the root tile unnecessarily 2013-12-29 01:43:32 +02:00
Johan Kiviniemi
65f375eaac Add debugging code to RendertileSet counts
There seems to be something wrong with count caching. Calculate the
count by iterating and log an error when that count doesn’t equal the
precalculated one.
2013-12-29 01:36:36 +02:00
Aaron Griffith
2584328ba3 quick and dirty fix for progressbar assertion error 2013-12-28 16:27:26 -05:00
Johan Kiviniemi
471d6247db tileset: Automatically resume an interrupted forcerender 2013-12-28 14:57:53 +02:00
Aaron Griffith
da6d3614bc Merge remote-tracking branch 'ion1/master' 2013-12-28 01:12:46 -05:00
Johan Kiviniemi
71e3441cb1 RendertileSet: Cache the number of tiles 2013-12-27 08:51:36 +02:00
Johan Kiviniemi
c49fdd19e1 RendertileSet: Round-robin the four top-level subtrees 2013-12-27 08:51:36 +02:00
Johan Kiviniemi
e4638467ef Simplify RendertileSet code 2013-12-27 08:51:36 +02:00
Andrew Chin
7723e3df06 Added debug printout in the texture finding code 2013-12-27 00:19:26 -05:00
Andrew Chin
d68c792c41 Allow --genpoi to use -c to specify a config file
Closes #1033
2013-12-26 23:45:07 -05:00
Andrew Chin
329b299664 Merge PR #1037 -- ServerAnnounceObserver.update() updates last_update 2013-12-26 23:36:24 -05:00
Andrew Chin
7089eef005 Add a minzoom option
This only affects what's written to overviewerConfig.js.  That is, it
does not change the amount of tiles rendered (it's exactly analogous to
maxzom)

Closes #994
2013-12-26 23:04:20 -05:00
Johan Kiviniemi
66fb4afb5c tileset: Unify _posttraversal_helper and _iterate_helper 2013-12-25 04:50:18 +02:00
Johan Kiviniemi
f94e3de03f tileset: Render in expanding order from center 2013-12-25 04:50:18 +02:00
Johan Kiviniemi
a788065cfb tileset: Typo fix 2013-12-24 21:47:27 +02:00
Aaron Griffith
1a1022fa2f multiprocessing-based POI generator no longer crashes on python 2.6
fixes Issue #1041
2013-12-24 12:10:05 -05:00
Andrew Chin
cc4261aea5 Ignore corrupt chunks from .get_chunks() in genpoi
See #1038
2013-12-13 20:34:54 -05:00
Andrew Chin
f35859e026 If numpy has a problem reshaping data, issue a warning instead of crashing
Addresses #1038
2013-12-13 18:56:26 -05:00
Ean McLaughlin
8559d8e59f ServerAnnounceObserver.update() updates last_update 2013-12-09 22:46:42 -07:00
Aaron Griffith
df732bfa25 Revert "Merge remote-tracking branch 'exhuma/master', PR #963"
This reverts commit e26727943f, reversing
changes made to 7bbb077704.
2013-12-02 07:40:00 -05:00