Softer
58db16a604
More blocks...
2018-08-07 23:07:39 +03:00
gmcnew
4661a1ac07
Add support for remaining palette sizes.
2018-08-07 03:11:48 +00:00
gmcnew
903d4a8b0d
Support 9-bit palettes.
2018-08-07 02:44:57 +00:00
gmcnew
8c366936bf
More block mappings!
2018-08-07 02:38:30 +00:00
gmcnew
7a4811b807
Lots more block mappings
2018-08-06 04:03:52 +00:00
gmcnew
e10b2f8960
Translate to old map format
...
For now, this will only work with palette indices up to 8 bits.
(Support for palette indices up to 12 bits should follow.)
2018-08-05 23:57:12 +00:00
gmcnew
bcc0027baa
Reverse version-check logic
2018-08-02 02:28:36 +00: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
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
Nicolas F
d2976625b3
world: remove redundant hashing
...
This is probably a leftover from the memcached thing. There is no
need to hash a key to be used for hashmap access, as the hashmap
itself hashes it already, and probably with a hash more appropriate
for the situation.
2017-03-16 16:26:10 +01:00
Nicolas F
f1909e9684
Remove memcached support
...
Apparently we had memcached support. It was never worth it, and put
a weird md5 hash calculation in the path of regular caching. Seeing
as it was completely undocumented, I doubt anyone has ever used it.
2017-03-16 14:45:19 +01:00
Thomas Lake
1803178bc8
Need to catch CorruptNBTError in both paths
2016-12-20 12:23:41 +00:00
Andrew Chin
3938d1889c
Better error handling of errors when a world fails to open.
...
A common case is a corrupt (or empty) level.dat file. This condition
wasn't properly caught, yielding a less-than-useful stack trace. Even
more concerning is that this could happen when a user is just running
"overviewer.py" to get a world listing.
This has been fixed to improve the user experience
2016-12-19 10:50:01 -05:00
Nicolas F
7dcf40fc20
Add region directory to corruption warnings
...
Fixes issue #1251
2015-10-18 21:33:08 +02:00
Andrew Chin
97e5985933
Allow worlds with a version of zero (temp fix for #1194 )
2015-01-03 11:56:51 -05: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
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
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
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
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
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
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
Michel Albert
4112b5a72e
Using a dedicated logger inside overviewer_core.
2013-07-28 15:04:51 +02:00
Andrew Brown
80bf4ec806
Edited the texture-finding code for 1.6
...
Now correctly avoids globbing problems. Removed a bit of irrelevant code
for old style minecraft.jar. Tweaked error messages for resource packs
instead of texture files.
2013-07-04 17:58:00 -04:00
Andrew Chin
9452af8898
Added some debug stuff
...
Hopefully this will be useful in tracking down dimension/rendermode
issues
2013-03-26 22:09:40 -04:00
Andrew Chin
dd6538b55e
Print out regionset type when run with -v
2013-03-13 21:23:52 -04:00
Andrew Chin
571f479636
Merge PR #899
...
Closes #898
2013-03-13 21:11:40 -04:00
Nicolas Frattaroli
44f624f64f
Fixed paths with square brackets in them.
2013-03-13 20:59:53 -04:00
Christoph Burschka
d32b247db7
Follow symbolic links while finding region sets.
2013-03-10 20:24:21 +01:00
Andrew Chin
94f51136b1
Fix spawn markers
...
(Fallout from the arbitrary dimension name change)
2013-02-03 14:56:00 -05:00
Andrew Chin
40becc9f59
Make sure that regionset.type always has a value
2013-01-31 16:39:10 -05:00
Aaron Griffith
77fff9fa25
specifying a directory name for a dimension should work now
2013-01-06 00:43:52 -05:00
Andrew Chin
126192514f
Don't error out when encountering an unknown RegionSet
2012-11-26 00:51:14 -05:00
Aaron Griffith
05bfaaf967
added slime overlay, colors chunks green if slimes can spawn
2012-06-05 23:18:15 -04:00
Socolin
f0d48347a4
Fix new map format, to support the 4096 ids
2012-05-26 08:57:00 -04:00
Andrew Brown
6009461239
fixed last commit to use absolute value and more reasonable threshold
...
\o/ for padding my commit numbers!
2012-05-11 22:23:42 -04:00
Andrew Brown
fdda8234ff
added warning for extremely absurd region files
2012-05-11 22:19:15 -04:00
Andrew Chin
a456c2ae8a
Fixed bug in find_true_spawn when spawnY is at a chunk border
...
Thanks to subz for pushing me to fix this!
2012-05-09 20:47:49 -04:00
Andrew Brown
b2ce4fa7e5
Merge branch 'devel'
2012-03-27 14:58:50 -04:00
Andrew Brown
7a4a257b51
Added better error related log lines for corrupt chunks
2012-03-27 14:57:42 -04:00
Andrew Brown
d7608b0e65
Merge branch 'devel'
2012-03-23 23:19:40 -04:00
Andrew Brown
af805d4a4b
Added soft-fail on region corruption to iterate_chunks() and get_chunk_mtime()
2012-03-23 23:19:03 -04:00
Aaron Griffith
dc1e3b662b
fixed biome rotation for upper-right and lower-left
2012-03-23 14:08:03 -04:00
Andrew Brown
ff0f4fe46e
fixed error handling code. Now more robust against corrupt chunks!
2012-03-18 13:52:59 -04:00
Andrew Brown
e9cf747513
Added better error handling for corrupt chunks
2012-03-17 22:56:33 -04:00
Andrew Chin
9b7226e91e
Nether-only worlds have no spawn
2012-03-17 14:54:16 -04:00
Andrew Chin
03d3e852fc
Backed out my level.dat reread code
2012-03-15 21:52:22 -04:00
Andrew Chin
729fcda964
Display a spawn marker
2012-03-11 17:59:29 -04:00
Andrew Brown
98c23fd970
added a memcached option. It's really slow though. don't use it.
2012-03-04 22:25:38 -05:00