0
Commit Graph

357 Commits

Author SHA1 Message Date
Aaron Griffith
28b750b694 changed block lookup to use numpy macros
this fixes (probably all of) the errors we saw before, but not because
we're using the official numpy macro; it's because the old macro
messed up on coordinates like (x, y+1, z) due to operator precedence.
2011-03-19 00:15:29 -04:00
Andrew Chin
f9ae158457 removed log message in iterate.c 2011-03-18 16:37:47 -04:00
Aaron Griffith
b92dcd96ee increased max result queue size back to brownan/master normal 2011-03-18 16:22:48 -04:00
Xon
383e8197af Performance improvements on update scan 2011-03-19 02:50:44 +08:00
Xon
08597ab1c0 Fix performance regression caused by the lack of region/chunk cache at the world level 2011-03-19 02:48:57 +08:00
Aaron Griffith
6941bc3378 fixed up new C code to be (mostly) C89-compliant
*mostly*, because the "inline" keyword isn't C standard until C99, but
I'm leaving it in because most compilers support it and it's really
handy. If it becomes an issue, we can deal with it later.
2011-03-17 23:04:41 -04:00
Aaron Griffith
b20e881c5e Merge branch 'direct-to-tiles' into dtt-c-render 2011-03-17 22:29:24 -04:00
Aaron Griffith
ba83b6bf00 added contrib script to clean out old caches 2011-03-17 22:25:52 -04:00
Aaron Griffith
8c50addcdd Merge branch 'master' into direct-to-tiles 2011-03-17 21:47:04 -04:00
Aaron Griffith
ad0899bb8a handle bad biome files on load, instead of waiting for an IndexError later
related to <https://github.com/brownan/Minecraft-Overviewer/issues/301>
2011-03-17 21:45:15 -04:00
Aaron Griffith
997c247d6c updated marker positioning code to jive with updated rendering code 2011-03-11 18:05:21 -05:00
Alejandro Aguilera
c79b0b9b20 changed imgy calculation and moved "imgy -= 12" to start of loop
from discussion in
<https://github.com/agrif/Minecraft-Overviewer/commit/4e63e6#iterate.c-P282>
2011-03-11 17:54:12 -05:00
Xon
6519d71eaa changed setup.py to include numpy include paths
from <https://github.com/agrif/Minecraft-Overviewer/issues/2>
2011-03-09 19:10:35 -05:00
Aaron Griffith
5852c17ec8 changed my code style to be more in line with eminence's (and PEP 7), added GPL notice 2011-03-08 20:04:23 -05:00
Aaron Griffith
07dd219d20 refactored c extensions into one 2011-03-08 17:43:50 -05:00
Aaron Griffith
7555bcf1af moved c extensions into src/ 2011-03-08 16:54:20 -05:00
Aaron Griffith
4e63e6e9fa Merge commit 'eminence/direct-to-tiles' into dtt-c-render
Conflicts:
	chunk.py
2011-03-08 16:34:26 -05:00
Alejandro Aguilera
4aa7fff086 And also for double slabs. 2011-03-08 17:01:58 +01:00
Alejandro Aguilera
80027c7cc5 Add special case in textures.py for the different slabs. 2011-03-08 16:33:44 +01:00
Aaron Griffith
5a05105b62 Merge branch 'master' into dtt-merge
Conflicts:
	chunk.py
2011-03-06 18:05:28 -05:00
Andrew Chin
9c7d6a184d Print error messages after print_help 2011-03-06 17:54:18 -05:00
Aaron Griffith
a5612a1fa5 moved corrupt chunk handling to get_lvldata so it applies to all chunk loading
brought up in Issue #286:
https://github.com/brownan/Minecraft-Overviewer/issues/286
2011-03-06 15:48:48 -05:00
Aaron Griffith
5cb599fabb added a more informative error if the map is too big for Overviewer to handle
From Issue #290:
https://github.com/brownan/Minecraft-Overviewer/issues/290
2011-03-06 15:35:40 -05:00
Aaron Griffith
8b6b5df8ef handle get_worlds() returning None correctly
Exposed by Issue #287:
https://github.com/brownan/Minecraft-Overviewer/issues/287
2011-03-06 15:29:07 -05:00
Aaron Griffith
6a1ee964bf inlined 'iterate_chunkblocks' (backported from Xon's code)
From the discussion in the massive Issue #271 discussion:
https://github.com/brownan/Minecraft-Overviewer/issues/#issue/271
2011-03-06 01:57:05 -05:00
Andrew Chin
66a9306a29 Experimental code to provide a C implementation of chunk_render
Please see the TODO comments in iterate.c

None of the lighting, spawning, night, or cave modes work with this
version.
2011-03-06 00:30:40 -05:00
Aaron Griffith
48642e0e5b changed biome fix to be more consistent with the other region code 2011-03-03 20:48:32 -05:00
Aaron Griffith
a6805c2e0c updated biome rendering to use latest Biome Extractor format 2011-03-03 12:27:47 -05:00
Alejandro Aguilera
1bb6d03c90 Don't render buttons as full blocks. 2011-03-02 17:25:44 +01:00
Aaron Griffith
be26dc702b added option to QuadtreeGen to specify tile output directory 2011-03-02 08:29:33 -05:00
Aaron Griffith
5a043ab3d6 fixed -d flag, which now deletes just overviewer.dat 2011-03-02 08:28:55 -05:00
Aaron Griffith
300d4ac53e added back lighting, night, and spawn support 2011-03-02 08:21:41 -05:00
Aaron Griffith
94c1fbfaa6 fixed typo in quadtree.py 2011-03-01 20:42:58 -05:00
Aaron Griffith
d813053329 removed lingering traces of the hash system 2011-03-01 20:28:31 -05:00
Aaron Griffith
4293851fcc fixed chunk double-render bug and artifacts at the top of each tile 2011-03-01 20:22:22 -05:00
Aaron Griffith
16bab9be3b less time between console messages for -p1 2011-03-01 18:40:06 -05:00
Aaron Griffith
33b10f7065 initial (and incorrect) drawing code 2011-03-01 16:45:04 -05:00
Aaron Griffith
83d7a36ef4 moved quadtree.py to mtime-based update checking, and added a stub direct-to-tile renderer 2011-03-01 13:18:25 -05:00
Aaron Griffith
f34d9739e9 removed rendering code from WorldRenderer (now just World) 2011-03-01 12:28:37 -05:00
Aaron Griffith
5485e684b5 gutted gmap.py in preperation for direct-to-tile rendering 2011-03-01 10:34:34 -05:00
Andrew Chin
f4cd71a09b Fix region calc typo 2011-03-01 08:11:38 -05:00
Andrew Chin
5f2f098d40 Better cache checking, now uses chunk timestamps
and possibly fixed a bug in check_cache?
2011-02-28 22:10:36 -05:00
Andrew Chin
caa1ef1f45 Catch proper exception in chunk.py
Also removed unnecessary check in world.py
2011-02-28 18:56:22 -05:00
Andrew Chin
1f8fb017a3 Check to ensure level.dat has been updated
Error out if level.dat has not been updated.  Also, cleaned up some
debugging print statements
2011-02-26 21:59:49 -05:00
cbarber
1a57f53a39 Check if file exists before opening it 2011-02-26 21:41:59 -05:00
Andrew Chin
a690ebbce5 some caching work
hashchecking needs to be checked to see if it's still OK
timestamp checking should involved the timestamps from inside the region
file, not of the region file itself.
2011-02-24 23:29:58 -05:00
Andrew Chin
6f060633ad Running with -p should be OK now 2011-02-24 23:06:36 -05:00
Alejandro Aguilera
38d970f7e1 The texture for redstone wire is now white! Needs tinting. Ignore redstone wire blocks for now... 2011-02-24 13:26:36 +01:00
Alejandro Aguilera
5e360600c4 Update functions _load_up_left and _load_up_right with the new region format in chunk.py. 2011-02-24 13:22:25 +01:00
Andrew Chin
05ea562060 Working rendering with the new McRegion format.
Notes:
 * Currently only works with -p 1
 * Caching is mostly compatible with existing caches, but not completly.
   This needs more testing and more code reviews
 * There are probably many code paths that will throw exceptions.
 * Not ready for general use yet, but is OK for testing
2011-02-23 22:13:35 -05:00