Andrew Chin
f2b34dff7a
Improved handling of signposts
2010-10-24 00:19:27 -04:00
Andrew Chin
cb363df3cd
Initial work on generating markers.js from signposts
...
Details:
* A queue object is passed to all renderers, allowing each process to
avoid using shared memory when recording signpost data.
* New overviewer.dat file that stores persistent data between runs.
Currently used to store information on signs. markers.js is
generated by merging the stored POI list with the newly generated POI
list.
* POIs are tagged with their type (e.g. "spawn" or "sign"). This
should be useful if different types of POIs needs to be
handled/displayed differently
Known bugs:
* If you delete the last sign in a chunk, it won't be removed from
markers.js
2010-10-20 22:11:34 -04:00
Aaron Griffith
f8b516b360
Merge branch 'master' into lighting
...
Conflicts:
chunk.py
2010-10-14 15:01:31 -04:00
Aaron Griffith
51e1721a6d
Merge branch 'master' into lighting
...
Conflicts:
chunk.py
gmap.py
textures.py
world.py
2010-10-05 08:35:23 -04:00
Alex Jurkiewicz
05770468fb
More useful error if invalid --chunklist specified.
2010-10-05 15:29:22 +11:00
Andrew Chin
86d5476234
use os.path.join to build the spawn chunk path
2010-10-01 19:45:41 -04:00
Alex Jurkiewicz
c14740cbc6
Merge branch 'master' of git://github.com/brownan/Minecraft-Overviewer into logging
2010-10-01 09:51:49 +10:00
Alex Jurkiewicz
9f49bf3d77
Change logging to use the 'logging' module.
2010-09-30 14:35:37 +10:00
Andrew Brown
fd43331350
removed unused imports
2010-09-29 23:31:19 -04:00
Aaron Griffith
8dccf4162c
added run-time flags to enable lighting or nighttime rendering
2010-09-28 16:57:23 -04:00
Aaron Griffith
8d145f2b58
added correct chunk boundary lighting
2010-09-27 19:59:41 -04:00
Andrew Brown
aa82a82f13
won't error when no worlds are found. Thanks jbergstroem
2010-09-27 09:03:24 -04:00
Andrew Brown
d637ddbbe1
added the option to specify a list of chunks to update.
2010-09-27 00:52:11 -04:00
Andrew Chin
0a73d3af56
Merge remote branch 'origin/master'
2010-09-26 01:32:16 -04:00
Andrew Brown
3c75c60f61
overhauled options descriptions in readme
2010-09-25 01:33:39 -04:00
Andrew Chin
80c15a3910
Added initial work on a structure to allow map annocations
...
The spawn point is automatically added to the gmap as a marker.
Adding other markers (signs, mob spawners, etc) should be fairly
easy. Note: the math that converts from in-game block coordinates
to pixel coordinates is iffy. it requires a careful codereview
2010-09-24 23:26:43 -04:00
Andrew Brown
c53070304f
can now specify a chunk cache directory manually
2010-09-22 23:51:31 -04:00
Andrew Brown
d6f5afc40f
Added GPL license to all files.
...
If anyone is interested in using this software under different
conditions, contact me.
2010-09-21 22:51:12 -04:00
Andrew Brown
7278286599
get_worlds only considers world dirs of length 6
...
(I like to store backups of my worlds in the same dir as World1.tar and
it was trying to open up world number 'r')
2010-09-21 22:36:06 -04:00
Ryan Hitchman
07145bef3b
make it easier for the user to use a map in an expected location, show some information about found saves
2010-09-21 15:09:11 -05:00
Andrew Brown
6e323791e6
removed unneeded imports
2010-09-15 19:13:55 -04:00
Andrew Brown
2d4f0cc082
I believe I now have a usable program again
2010-09-14 23:53:28 -04:00
Andrew Brown
230e6ad480
Re-wrote most of the quad-tree tile code and world code.
...
Doesn't work yet.
2010-09-14 22:55:27 -04:00
Andrew Brown
206c8a4c41
Merge branch 'master' of github.com:brownan/Minecraft-Overviewer
2010-09-14 18:12:50 -04:00
Andrew Brown
44fc65d753
I think this should fix windows support
2010-09-14 18:12:02 -04:00
Andrew Brown
3ddd1d26e1
-p1 has fewer output lines for chunk process
2010-09-14 12:37:36 -04:00
Andrew Brown
51d30a77d0
how embarrassing, I left some debug code in
2010-09-12 10:10:16 -04:00
Andrew Brown
a3a4877e6a
no longer validates images, runs MUCH faster to scan existing chunks.
...
If a chunk image can't be loaded, it re-generates it on the fly.
2010-09-12 01:04:31 -04:00
Andrew Brown
55d596fc26
chunk progress prints fewer lines. Made a perhaps insignificant
...
algorithm change
2010-09-11 22:34:07 -04:00
Andrew Brown
5726f7e23e
chunk generation checks mtime before hashing block array
2010-09-11 22:07:46 -04:00
Andrew Brown
07d6df1cbe
fixed minecraft.jar path on macs
2010-09-11 15:33:00 -04:00
Andrew Brown
9309fd6c96
Uses a shared semaphore to spawn new processes when needed.
...
This more effectively utilizes as many cores as you tell it. It should
now spawn a new process whenever an old branch of the recursive tree
finishes, to always use as many processes as you specify.
2010-09-11 13:21:13 -04:00
Andrew Brown
f9783d7a20
Tile rendering is now mostly parallel up to 4 procs.
...
The initial recursive call for tile generation will spawn up to 3 extra
processes to work on each quadrant. It's not perfect yet since some
quadrants may have more or less work to do, and only 4 total workers are
supported.
Also, it waits for all chunks are finished before it dives into the
tiles, to prevent it from using more resources than requested.
2010-09-11 00:15:59 -04:00
Andrew Brown
1e296e858a
readme updates, texture code updates.
...
Re-factored the way the textures and blocks are being built. It should
be easier to understand and add new exceptions (sorta). Also fixed the
water and lava with other texture packs by putting a static water.png
and lava.png in with the code.
2010-09-10 00:04:02 -04:00
Andrew Brown
b6ceb536da
removes tiles if they no longer exist
2010-09-07 21:52:56 -04:00
Andrew Brown
8382e6664a
cleaned up some comments
2010-09-07 21:32:57 -04:00
Gregory Short
1b4a775f72
Merged and resolved conflicts.
2010-09-06 22:22:33 -05:00
Gregory Short
9e11071b35
Moved html generation to happen before quadtree generation. This way, you can open up the html file immediately and browse the map as it is being generated! This necessitated pulling the zoom-depth determination out into its own function.
2010-09-06 20:51:06 -05:00
Andrew Brown
2d7bd248ed
fixed strangeness in tile caching code.
...
I believe the tile caching and hashing mechanisms are working now.
2010-09-06 12:58:30 -04:00
Andrew Brown
54fb6ace07
fixed typo. Thanks again alexjurkiewicz
2010-09-05 21:39:43 -04:00
Andrew Brown
06006c6202
added tile caching. A tile will only be re-rendered if the underlying
...
chunks changed.
The next time a set of tiles is generated, a series of has files will be
written along side the image files. These keep track of whether the file
has changed.
2010-09-05 18:11:47 -04:00
Andrew Brown
ed8ea421fc
won't render tiles that would otherwise be blank.
...
This cuts down on the number of files outputted and the total size.
2010-09-05 13:58:50 -04:00
Andrew Brown
1e08406dff
quadtree generation works. Changed scaling algorithm
2010-09-04 19:22:04 -04:00
Andrew Brown
2005976248
I think the quadtree works now. Comments for it are inaccurate though
2010-09-02 23:19:32 -04:00
Andrew Brown
0b2880de08
should be raising this exception
2010-09-01 23:47:22 -04:00
Andrew Brown
0cb7df13fb
quadtree generation sorta works
2010-09-01 23:42:17 -04:00
Andrew Brown
de95ef827f
wrote function prototype and docstring. Now I just need to implement it
2010-08-31 23:35:23 -04:00
Andrew Brown
ee6eaf0206
tile drawing function implemented. Still needs an interface
2010-08-30 21:05:22 -04:00
Andrew Brown
6ba9eb903d
corrected some numbers in the comments
2010-08-28 23:03:26 -04:00
Andrew Brown
6d7e64a3d1
moved Image.new after the subprocesses are started
2010-08-28 17:42:52 -04:00