Commit Graph
72 Commits
Author SHA1 Message Date
Nicolas F 525d19318f Merge Mirculus' inline changes. 2016-02-17 16:41:03 +01:00
Nicolas F 4e77ba8d13 genpoi: Fix GzipFile closing on python 2.6
Fixes #1275
2016-02-13 14:41:09 +01:00
Nicolas F 8f08b3b69f rcon: Throw more helpful exception if proto error
Addresses #1273.
2016-01-30 15:25:45 +01:00
Nicolas F 9fc050cf67 genPOI: Use "with" statement to close gzip files
Previously, the files were not closed after reading or writing;
by using a "with" statement, the file handles will be closed as
soon as they go out of scope.

Possible fix for #1271.
2016-01-30 14:17:16 +01:00
Nicolas F c7f8cfee8c rcon: Wait for buffer to fill
We should wait for the buffer to fill up to 12 bytes instead of
simply assuming it will.

Possible fix for #1273.
2016-01-30 13:58:36 +01:00
Nicolas F b8fb7652b2 More Travis whacking 2015-08-16 00:37:18 +02:00
Nicolas F 48cd0c4aa7 Let's whack travis with a wrench for a bit 2015-08-16 00:30:52 +02:00
Nicolas F 9ae3ac2916 Add mingw-w64 build documentation 2015-08-16 00:17:19 +02:00
Nicolas F a8c71d089d Fix mingw-w64 build
On Windows with mingw-w64, Pillow includes windows.h, and thus
including Imaging.h would result in a name conflict of "TRANSPARENT",
which windows.h #defines but overviewer.h wants to use as enum.

For the record, this used to not be broken back when I initially
fixed Pillow for mingw-w64, so the change got somewhere introduced
between then and now.
2015-08-15 23:50:40 +02:00
Nicolas F. ebc54a59ef Merge pull request #1240 from enaut/docfixesStructureOverlay
Small documentation bug for StructureOverlay.
2015-07-04 01:04:20 +02:00
Nicolas F 0aef9b436c [webassets] Updated jQuery version 2015-05-04 14:59:18 +02:00
Nicolas F b35f848855 [genPOI] Work around utter plebbery 2015-03-08 17:03:43 +01:00
Nicolas F b5ecf8a7f4 [genPOI] Work around JSON signs
lol Mojang
2015-03-07 18:16:32 +01:00
Nicolas F dfe6f08ee9 genPOI: Resolve UUIDs for player spawns too 2014-10-24 13:57:06 +02:00
Nicolas F 3c3db5d909 Add warning if Overviewer is run as root 2014-10-18 17:44:59 +02: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
Nicolas F 79e60972e9 optimizeimages: Add documentation for jpegoptim 2014-10-10 21:10:07 +02:00
Nicolas F 3a0f334970 optimizeimages: Add jpegoptim interface
Only options that appear to be interesting for us have been exposed,
namely -m and -S.
2014-10-10 20:54:47 +02:00
Nicolas F 16edd622a2 Add documentation for RConObserver 2014-10-06 21:52:21 +02:00
Nicolas F c6830a35db Added RCon Observer
It does the rcons! And the observings!
2014-10-06 21:40:09 +02:00
Nicolas F 792b049dd5 FIx genPOI dimension parsing
Fixes Issue #1130
2014-07-18 20:08:34 +02:00
Nicolas F. a77f4aa5f4 Fix warning for unresolvable UUID
Exception while catching an exception. Try to make an inception joke of that.
2014-06-20 19:53:34 +02:00
Nicolas F 948d2fa741 Minor fixes to documentation
* Fix the copypasted section in the README

  * Update version and dates
2014-06-04 13:23:30 +02:00
Nicolas F 3c33080e3d Update front page of the docs
lol
2014-06-04 12:23:43 +02:00
Nicolas F 57fd1e2ffb config.rst restructuring with new headings
This hopefully makes the page slightly less intimidating.
2014-06-04 12:17:29 +02:00
Nicolas F 192ff4c1a0 Long overdue addition of information to docs
* Add 2 FAQ entries, one concerning mod blocks, the other
    about the maps API.

  * Add note about The End and lighting strength. (Closes #1111)
    (Also, nice quads.)
2014-06-04 11:44:38 +02:00
CounterPillow c15b9383c8 Remove broken special case for ancient worlds
And to whoever wrote that thing: "World10" is not 6 characters
long, so the workaround was broken anyway.
2014-06-03 18:08:27 +02:00
Nicolas F 8053eaca72 Lazily get names from UUIDs
Instead of doing the UUID->name resolution for all players in every
case, only do it when EntityId is accessed and the name hasn't been
retrieved this run already. This makes genPOI usable for people who
have many players on their servers but don't wish to use player POI
while still using other genPOI features.

To do this, a PlayerDict has been created, which contains a dirty
hack to see if the requested item is EntityId and whether it hasn't
been set already.
2014-05-30 10:16:28 +02:00
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
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
CounterPillow 09477ed8a0 Rewrote image optimisation stuff.
The old one was broken anyway.
2014-03-04 00:39:59 +01:00
CounterPillow 76bab40aa2 Possibly fixed crash when HOME is undefined
When HOME was undefined on Linux, the code would try calling
os.listdir(None) which will obviously fail.

This is a workaround. A proper fix would be to rewrite the
code to check for each operating system, not a combination
of operating systems, environment variables and the current
air humidity in London.
2013-11-16 15:07:51 +01:00
Nicolas Frattaroli 2b78b63e1a Fixed IE11 JS errors
Closes issue #1022.
Thanks to mattlee78 for pointing this out.
2013-11-08 06:56:45 +01:00
Nicolas Frattaroli 2346c26f37 Added dark wood and acacia wood blocks
Includes stairs, slabs, planks and saplings.
2013-11-02 15:12:44 +01:00
CounterPillow 107b6e757c Added genPOI workaround for MystCraft
Possibly fixes issue #993.
2013-09-25 21:36:59 +02:00
CounterPillow dc40dce59a Moved icons to subdirectory, adjusted docs
I also added one of the icons to the manualpois example, so people
have an exmaple of how they can use these in their configurations.
2013-09-23 16:02:06 +02:00
CounterPillow b9298243b2 Added some icons for people to use in their POIs. 2013-09-19 01:10:42 +02:00
Nicolas Frattaroli 89fc9b01b6 Fixed cave render for solid unknown blocks.
is_transparent returns 1 for every unknown block because that's an easy way to
make them ignore lighting, however, this makes cave render useless with a map
containing unknown ores.

The definition is_known_transparent checks whether a block is transparent and is known.

This is a workaround, a proper fix would be to have unknown blocks be neither transparent nor
solid. Or make them both. But don't prefer one of the two.
2013-09-13 23:54:58 +02:00
Nicolas F. 70b96e9c2e Add note about distutils bug. 2013-08-12 01:12:50 +02:00
Nicolas Frattaroli 3986e10af2 Added option showlocationmarker 2013-05-13 15:38:54 +02:00
Nicolas Frattaroli 0783cdbee7 Changed default poititle to "Markers"
I feel this is more accurate and it has been bugging me for a
while now.
2013-05-13 14:32:50 +02:00
Nicolas F. 85736e5b49 Add section about importing in the config file
Add a section that describes how users can import parts of their config from other files.
2013-04-21 17:16:54 +03:00
Nicolas Frattaroli cacf1498b8 Add option to skip scanning for POIs in regions
Sometimes, people just use --genpoi for manual POIs. This option
allows them to save some time by not handling entities.
2013-03-19 18:10:24 +01:00
Nicolas FrattaroliandAndrew Chin 44f624f64f Fixed paths with square brackets in them. 2013-03-13 20:59:53 -04:00
Nicolas Frattaroli 633dcd18c1 Fixed Python3 error message
Up to this point, when launching overviewer with python3, overviewer would
(ironic as it is) crash on the line where the error message would be displayed
with a syntax error. I have now fixed this.
2013-03-11 18:06:54 +01:00
Nicolas F. 31daa558f9 Fix error in documentation
No parenthesis on the import statement.
2013-03-11 15:29:47 +01:00
Nicolas Frattaroli ae5e146eff Updated documentation
* Added paragraph and example about returning tuples from a filter
  (Issue #859)

* Added section about manualpois
  (Issue #858, Issue #869, Issue #598)

* Fixed a typo in the FAQ

* Added logging to file to the FAQ
  (Issue #871)
2013-01-21 18:13:50 +01:00
CounterPillow 3ad99d9461 Added possibility to return tuple from filterfunc
If the returned type is a tuple, it will be interpreted as first the
title (i.e. hovertext), then the content of the infowindow. If the
returned type is a string, it will be used as both the title and
infowindow content (the old behaviour). This means that older configs
are still compatible and need no changes.
2013-01-01 21:15:38 +01:00
CounterPillow b13f0044e2 manualpois is now a per-render option 2012-12-31 18:54:31 +01:00
CounterPillow 2aa3a8cc02 Added manual POI option
Here's how to use it:
have a list called "manualpois" in your config filled with objects that contain
the attributes id, x, y and z. Feel free to add more attributes as you need them.
Then, write filter functions to filter for your custom POIs (hint: use the id).
2012-12-31 16:22:41 +01:00
CounterPillow 4d983f8ada Changed location marker icon and animation 2012-11-29 18:59:38 +01:00
CounterPillow bfcb53ede3 Added marker at coordinates in the url
Addresses issue #782
2012-11-29 18:48:54 +01:00
CounterPillow ccf99fb61d Fixed POI infowindow image scaling for FireFox 2012-09-09 17:09:41 +02:00
CounterPillow 37fcf5a478 Added note about building on CentOS 6 2012-09-03 17:05:55 +02:00
CounterPillow 79c47d429c Added documentation about defaultzoom 2012-07-15 05:58:30 +02:00
CounterPillow 63b72aabaa Added defaultzoom config option 2012-07-15 05:53:15 +02:00
CounterPillow eed119d4d7 Added Common Pitfalls section to windows newbguide 2012-06-27 19:00:09 +02:00
CounterPillow c5af1c81fc Added a special case for the swamp biome.
Addresses issue #708.
2012-04-29 02:26:14 +02:00
CounterPillow 4e7c837928 Added documentation about optimizeimg. 2012-04-10 21:30:26 +02:00
CounterPillow 06705ccbee Updated readme. Also, hmmmmmmmmmm 2011-09-15 22:04:58 +02:00
CounterPillow ff6dba7419 Default tinting now in C code 2011-09-14 21:50:20 +02:00
CounterPillow b0e6502094 Fixed vines. 2011-09-12 01:40:24 +02:00
CounterPillowandAaron Griffith 0ab3b0b2df Added vines. 2011-09-11 15:31:32 -04:00
CounterPillow 3e4b7b4cd7 Added title field for sign search box, added default value which sets to nothing when focussed and resets when box is empty and blured. 2011-08-05 13:38:09 +02:00
CounterPillow 7c5a809e71 Added maptypes to live hash updating, implemented some checks to catch incomplete hashes 2011-05-20 14:18:05 +02:00
CounterPillowandAaron Griffith 8a38fa859d Switched to x y z zoom format, using floor(), removed viewURL box 2011-05-12 13:50:48 -04:00
CounterPillowandAaron Griffith 4b9307d769 various fixes 2011-05-12 13:46:54 -04:00
CounterPillowandAaron Griffith 5803478060 Re-Implemented jywarrens live hash updating 2011-05-12 13:46:45 -04:00
CounterPillowandAaron Griffith 027419fa5f Moved the blockid check further up in the for-loop to increase performance while rendering empty chunks. 2011-05-12 13:46:19 -04:00