0
Commit Graph

2470 Commits

Author SHA1 Message Date
Nicolas F
2918637539 web: fix marker icon position
Shoutouts to 14mRh4X0r for finding the right CSS properties that
work for centering the marker icons.

Fixes #1481.
2018-11-18 09:10:54 +01:00
Aaron Griffith
e867221d8e Merge #1488: Make JSObserver work with Leaflet.
Fixes #1451.
2018-10-09 11:03:15 -04:00
Aaron Griffith
dc70d6dc62 Merge #1487: Use cached center for initial view.
Fixes #1453.
2018-10-09 11:01:27 -04:00
Aaron Griffith
a182335ad5 Merge #1478: Fixed behaviour of 'defaultZoom' property. 2018-10-09 10:53:41 -04:00
Willem Mulder
4efb9f2d89 Make JSObserver work with Leaflet. Fixes #1451. 2018-10-08 19:45:57 +02:00
Willem Mulder
3cc184a751 Use cached center for initial view. Fixes #1453. 2018-10-06 18:12:17 +02:00
Andrew Chin
3cceaf5869 Disable IRC notifications from travis 2018-09-17 17:48:29 -04:00
Leigh Oliver
f4e5b54651 Fixed behaviour of 'defaultZoom' property.
The initial map view was not affected by the 'defaultZoom' property in the config file. This has been fixed, by passing the value into 'centers' collection, when it is initially created. Additionally, the 'defaultZoom' config property is passed to the first overviewer.map.setView statement, to ensure correct zoom level on the initial page load.
2018-09-13 11:02:11 +10:00
Andrew Chin
b789641e6e Merge pull request #1477 from overviewer/nbt_utf8_decode
NBT: Use a replacement strategy to deal with undecodable data.
2018-09-06 22:31:05 -04:00
Andrew Chin
e76d364b1e NBT: Use a replacement strategy to deal with undecodable data.
The NBT spec requires that all strings are UTF-8 encoded.  However in
practice, non-UTF-8 data can get into a level.dat file (generally via
some weird user-supplied characters in signs.  This results in the
following error:

    CorruptNBTError: could not parse nbt: 'utf8' codec can't decode byte
    0xc0 in position 3: invalid start byte

This happens often enough that we should just ignore this error by using
the 'replace' strategy to replace the invalid data
2018-09-06 22:20:09 -04:00
Aaron Griffith
bf2f9d2cc3 Merge pull request #1469 from cl0ne/patch-1
Fix missing titles for markers
2018-07-30 17:46:22 -04:00
Vladislav Glinsky
7de8fa4f17 Fix missing titles for markers 2018-07-31 00:41:00 +03:00
Nicolas F
39d9dba814 Merge branch 'whitespaces' of https://github.com/r15ch13/Minecraft-Overviewer into r15ch13-fixes 2018-06-14 13:54:34 +02:00
Richard Kuhnt
bc37eaef81 Remove trailing whitespaces 2018-06-13 20:30:59 +02:00
Richard Kuhnt
c6e674e6ce Remove jQuery and underscore dependencies
- replace $.each with .forEach
- replace _.each with .forEach
- replace _.isFunction with typeof comparison
2018-06-13 20:11:46 +02:00
Nicolas F
cd9a0d6c68 Merge pull request #1459 from r15ch13/noscript
Use <noscript> to display message when JavaScript is disabled
2018-06-13 19:18:25 +02:00
Richard Kuhnt
f58e5bd626 Use <noscript> to display message when JavaScript is disabled 2018-06-13 18:57:37 +02:00
Aaron Griffith
befb25a8f8 Merge pull request #1441 from kkuhn3/inverted_daylight_sensor
issues-1411: Block Addition: Add inverted daylight sensor.
2018-06-06 12:46:22 -04:00
Aaron Griffith
6312837a3d Commit to trigger new debian builds. 2018-05-16 13:06:44 -04:00
Nicolas F
a129274aa1 Remove broken marker centreing code
Apparently, having an image's origin be in the center is too
advanced of a concept for The Web™. I guess we can't do this then.
2018-05-09 16:22:21 +02:00
Nicolas F
6fbced79bf Fix custom icons not showing up properly
Individual POIs such as player POIs can have their own icon per
POI, so we should respect that.
2018-05-09 15:45:31 +02:00
Nicolas F
cf5a14a088 Increase the Overviewer C extension version 2018-05-09 14:36:11 +02:00
Mitchell Skaggs
717fcdc5fe Add 3 more touch-up points for smooth lighting
Closes #1370
2018-05-09 14:36:11 +02:00
Nicolas F
ebdc4016d7 world: Don't call sys.exit here, raise something
A world being unsupported may not be a fatal application error in
all instances where this codepath in world.py is used, hence
throwing an exception is more sensible.
2018-05-09 14:25:05 +02:00
Andrew Chin
b9be8f8ffd Fixes and improvements to leaflet marker support 2018-05-06 13:47:51 -04:00
Andrew Chin
753191f68e Merge #1311 into master 2018-05-06 13:47:17 -04:00
Nicolas F
12c12d128f Set the attribution prefix 2018-05-06 17:44:07 +02:00
Nicolas F
05cc9e60e7 Don't collapse marker group control 2018-05-06 17:12:03 +02:00
Nicolas F
23ea1918ea Update leaflet to 1.3.1 2018-05-06 17:11:46 +02:00
Nicolas F
ea33ebe2fb Assume 32x32 marker size so they get centred
Maybe expose this as an option to the markers dict later, with
the anchor as an option too.
2018-05-06 16:59:27 +02:00
Nicolas F
614663f601 Show marker group display names 2018-05-06 16:53:32 +02:00
Aaron Griffith
db8de320f4 Merge pull request #1438 from rymate1234/master
Throw an error if the overviewer is running on a world saved on verisons of Minecraft newer than snapshot 17w47a
2018-05-01 10:45:55 -04:00
Andrew Chin
139e22f2f8 I don't make typos, no sir I don't 2018-04-21 15:36:48 -04:00
Andrew Chin
c621795fa9 Rename package to pkg in gitlab ci steps
This just reduces size of the step names, making it easier to see on the
gitlab web page
2018-04-21 15:31:46 -04:00
Andrew Chin
78390c6936 Updated to new gitlab registry URL 2018-04-21 15:31:33 -04:00
Andrew Chin
f28c4ce680 Add testrepo step for ubuntu:artful 2018-04-21 15:31:22 -04:00
Andrew Chin
44b525e709 During windows CI builds, use a specific Pillow
This is because we build against a fixed PIL_INCLUDE_DIR whos version
needs to match the python version we install

Note: CI builds for windows use a hard-coded path for PIL.  I manually
updated this to version 5.1.0

TODO@achin: automatically download the right version of pillow src
2018-04-21 15:27:05 -04:00
Karl Kuhn
e71a843df2 issues-1411: Block Addition: Add inverted daylight sensor. 2018-04-11 11:10:09 -04:00
rymate1234
c6922386a5 Use sys.exit(1) to exit rather than throwing a ValueError 2018-03-12 23:47:50 +00:00
rymate1234
80cc71325e Throw an error if the overviewer is running on a world saved on versions of Minecraft newer than snapshot 17w47a 2018-03-12 23:43:07 +00:00
Andrew Chin
cd11ea31a9 Fix gitlab CI 2018-02-28 14:02:44 -05:00
Nicolas F
cff0dcc187 Merge pull request #1431 from kevinwchang/travis-fix
Update Travis config
2018-02-23 04:47:26 +01:00
Kevin Chang
25ab4c13ba travis: additionally fetch ImagingUtils.h 2018-02-22 17:04:52 -08:00
Kevin Chang
86f845ca9d update Pillow header URLs in .travis.yml 2018-02-22 17:01:59 -08:00
Nicolas F
e847adaa20 Merge pull request #1430 from kevinwchang/no-rgba-jpeg
Convert RGBA to RGB before saving as JPEG
2018-02-23 01:49:49 +01:00
Kevin Chang
e996bd1e47 fix pillow no longer allowing RGBA JPEG 2018-02-22 15:38:29 -08:00
Aaron Griffith
22b9ab3f63 Merge many branches into master.
Branches:
 * mioux/sensor-false #1359
 * bobfrankly/Terracotta_Texture_Fix #1408
 * bobfrankly/Documentation #1407
 * lyknode/fix-slime-algo #1400
 * 3decibels/uuidcache_expire #1359
2017-08-24 18:22:35 -04:00
Sylvain Rumeu
9cf068973d Removing deprecated option in index.html : ?sensor=false 2017-08-24 18:19:58 -04:00
BobFrankly
16d8845eb6 Terracotta texture rotation fix
Terracotta blocks have differing rotations on each side, necessitating different handling for each directional map render. This fix was aligned against "Light Grey Glazed Terracotta", I'm presuming the rest of the colors follow.
2017-08-24 06:51:46 -07:00
BobFrankly
2c2d1034ed Modernize Windows build instructions
Updates to the Windows build instructions, terminology pulled from the current "Visual Studio Community 2017" version, which is the free version of VS at this time. I wrote these as a first timer building Overviewer. I also moved all of the pre-requisites to a bulleted list under a single header.
2017-08-23 19:26:28 -07:00