0
Commit Graph

133 Commits

Author SHA1 Message Date
Andrew Francis Thomas
25bf1f5274 Added check for tileset version to forcerender on breaking change 2022-05-16 19:57:01 +02:00
Andrew Francis Thomas
a24ad4cb55 Fixed rendering of new height and depth limit in 1.18 2021-12-15 15:26:45 -07:00
Nicolas F
71d59be4b9 tileset: fix changelist option for Python 3
Turns out os.write only accepts bytes!
2019-09-11 21:00:34 +02:00
Nicolas F
204bcd0310 Add "center" config option
This option allows you to specify your own initial center for a
tileset, which is useful if your map is extremely asymmetric or
you don't really care about what's around the spawn.

Future work needs to be done on the JS side in order to fix the
fromWorldToLatLng and friends, as they're currently off by -24 in X
and +24 in Z direction.

Closes #1350.
2019-07-06 19:06:15 +02:00
Nicolas F
e348a548b6 Initial Python 3 port
Many things work, some don't. Notably, genPOI doesn't work, and
there's some signedness comparison stuff going on in the C extension.

This also completely drops support for Python 2, as maintaining a C
extension for both Python 2 and 3 is a pain and not worth it for the
9 months that Python 2 is still going to be supported upstream.

The documentation needs to be adjusted as well.

All of the few tests we have pass, and rendering a map works, both
with a configuration file and without. We can also use optimizeimages.

Concerns #1528.
2019-03-17 17:57:07 +01:00
Nicolas F
61ebd35240 Add WebP image format support
Since Firefox 65 added support for WebP, users may be interested
in having maps that use WebP images. Support for this is added in
this commit, along with documentation for it.

A new option, "imglossless", controls whether we write out lossless
or lossy WebP images. The generic name "imglossless" as opposed to
a more specific "webplossless" was chosen in case future image
formats we also implement also support lossless/lossy modes in the
same format (JPEG-XL? AV1 image format?).

It's an okay meme but lossy mode really falls apart on our sorts
of images on the more zoomed out composite tiles, resulting in
pretty blurry messes. Might be due to a PSNR bias in the encoder,
which is to be expected from Google.
2019-03-04 17:04:09 +01:00
Nicolas F
7f63dfe315 tileset: drastic code style fixes
We've also added a setup.cfg to specify what rules we want for
pycodestyle. We'll be ignoring some dumb ones that make no sense
and probably shouldn't exist, like both W503 and W504 being an
issue somehow???????

We're using a line length limit of 100. If you're on an 80 character
terminal and incredibly upset about this, then that's the nursing
home staff's problem, not ours.
2019-03-03 16:47:35 +01:00
Aaron Griffith
1e4cabe5d0 Merge branch 'master' into minecraft113 2019-02-19 14:28:34 -05:00
Willem Mulder
3cc184a751 Use cached center for initial view. Fixes #1453. 2018-10-06 18:12:17 +02:00
gmcnew
7236aefc94 Misc fixes 2018-08-07 22:52:32 +00:00
Kevin Chang
e996bd1e47 fix pillow no longer allowing RGBA JPEG 2018-02-22 15:38:29 -08:00
Nicolas F
c0d4fc9bc2 Add rollbacks to tile re-arrangements
Previously, any kind of interruption during tile re-arrangements
would leave the tileset in a half re-arranged state.

This commit makes _increase_depth roll back possible changes it did
during the re-arrangement prior to it being interrupted.

Fixes issue #1166.
2014-10-14 14:21:26 +02:00
matrixhacker
b6ac54a2b6 Added the ability to specify multiple crop zones. 2014-05-09 23:44:46 -04:00
Aaron Griffith
4b2cbfb5ee Merge pull request #1074 from CounterPillow/optimizerewrite
Rewrote image optimisation stuff.
2014-05-06 18:25:09 -04:00
Aaron Griffith
7c23d6e86a added rendercheck mode 3, the identity function of rendercheck modes! 2014-05-01 16:48:28 -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
CounterPillow
09477ed8a0 Rewrote image optimisation stuff.
The old one was broken anyway.
2014-03-04 00:39:59 +01: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
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
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
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
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
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
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
Aaron Griffith
e26727943f Merge remote-tracking branch 'exhuma/master', PR #963
Conflicts:
	overviewer.py
	overviewer_core/aux_files/genPOI.py
	overviewer_core/textures.py
2013-12-01 16:35:28 -05:00
Robin
d5c5a40797 Negative maxzoom gets added to the total levels
->Specifying -1 would result in the most detailed level to be excluded
2013-11-21 06:48:52 +01:00
Michel Albert
4112b5a72e Using a dedicated logger inside overviewer_core. 2013-07-28 15:04:51 +02:00
Aaron Griffith
f87dcee6f1 emit a warning (but don't crash!) on unexpected empty tiles 2013-07-25 14:15:19 -04:00
Krotton
221be8e211 s/rednerchecks/renderchecks
Well, I suppose this branch doesn't execute too often, as nobody noticed the typo so far ;).
2013-06-08 23:30:02 +02:00
Nicolas Frattaroli
3986e10af2 Added option showlocationmarker 2013-05-13 15:38:54 +02:00
Andrew Chin
94f51136b1 Fix spawn markers
(Fallout from the arbitrary dimension name change)
2013-02-03 14:56:00 -05:00
Aaron Griffith
443aa84b07 updated tileset.py and genPOI.py and a few other stragglers 2013-01-06 01:00:06 -05:00
Thomas Lake
223b326df1 Add option to configure maxzoom and appropriate documentation 2012-11-28 20:24:29 -05:00
Aaron Griffith
49b05dece5 huh, I guess the overlay attribute is always there. length > 0 then. 2012-09-11 15:47:52 -04:00
Aaron Griffith
143b9fa366 overlay-ness now considers whether the "overlay" option is set 2012-09-11 14:28:35 -04:00
Andrew Chin
8c9de7a575 Allow the poiTitle setting to be tileset-specific. Added docs
Closes #761
2012-07-28 20:53:03 -04:00
Andrew Chin
59c706cf14 Merge remote branch 'origin/resize' 2012-07-20 22:22:44 -04:00