0
Commit Graph

55 Commits

Author SHA1 Message Date
Andrew Chin
fbdeb90f9f overviewer.py now runs without crashing
but still is broken
2011-12-20 23:17:28 -05:00
Aaron Griffith
cc95799d1a renamed uppertile to compositetile (makes more sense)
This reverts commit d4c6e40d59, and
re-applies it with a renamed uppertile.
2011-12-12 15:15:36 -05:00
Andrew Brown
4b622b1333 issue #559: don't error if the map needs expanding but the tiledir was deleted
Also changed from using a join on self.destdir and self.tiledir to just
using self.full_tiledir, which is the same thing but already computed.
2011-12-11 11:27:07 -05:00
Andrew Brown
d4c6e40d59 renamed innertile to uppertile (makes more sense)
also changed a few "rendertile" to "worldtile"
2011-12-10 17:44:07 -05:00
Andrew Brown
4edc5e48b6 Set tile mtimes to the max of the chunk mtimes on render
or in the case of inner-tiles, the max of its child tile mtimes
2011-12-03 18:05:46 -05:00
Andrew Brown
dc3938f504 removed un-needed imports in rendernode and quadtree 2011-11-26 17:05:13 -05:00
Andrew Brown
f2a465c559 Merge remote-tracking branch 'origin/master' into brownan-chunkscan
Conflicts:
	overviewer.py
2011-11-26 16:58:27 -05:00
Andrew Brown
82864a1622 added an faq entry on copying tiles to another destionation
also added a link to the faq under help on the index page
also clarified the faq entry about adding new features or changing
texture packs
also fixed a typo
2011-11-24 23:30:33 -05:00
Andrew Brown
4de8acd1ee chunk scans are now done in parallel for multiple rendermodes 2011-11-20 12:49:44 -05:00
Andrew Brown
435c8ee1cb Merged master into brownan-chunkscan
This pulls in all the 1.9prep and textures.py updates into
brownan-chunkscan
2011-11-20 10:53:48 -05:00
Andrew Brown
c6b56030ec dirtytile trees can now iterate at any level
Fixed some broken tests too.
2011-11-20 10:50:37 -05:00
Andrew Brown
0be4e8664b added bounds checking for tiles during scan
fixes the problem where tiles outside the bounds (which can happen with
-z) would cause tiles to be rendered along the border even though they
have no chunks, causing a warning.
2011-11-18 10:01:22 -05:00
Andrew Brown
4c34e413ab renamed "level" to "depth" in DirtyTilesTree. Also...
iterate_dirty() yields tuples, not reverseiterators
added another level to test_iterate_level()
2011-11-16 20:53:52 -05:00
Andrew Brown
bd08dbc955 Minor comments adjustments 2011-11-15 13:56:39 -05:00
Andrew Brown
142166ef8e Failing to delete a corrupt tile should really be an error in the log. 2011-11-13 11:36:27 -05:00
Andrew Brown
0a5c90ba98 delete a tile if the innertile routine can't open it
This makes corrupt tiles self-correcting on subsequent runs. Before,
the warning is printed but the tile remains. Worse, the warning won't be
printed again.
2011-11-13 11:23:49 -05:00
Andrew Brown
04a2f05d1c implemented stochhastic check with chunk scanning
Also changed uniform(0,1) to random()
2011-11-13 09:39:49 -05:00
Andrew Brown
866b499142 Lots of rearranging and comments touchups
fixes progress updates for first level tiles
fixed long-standing typo inntertile -> innertile
2011-11-13 09:22:19 -05:00
Andrew Brown
3cc22bc13c Two chunkscan optimizations implemented
Checks a path in the tree to see if it's already dirty before
calculating its filepath and checking its mtime

Changed Tile.get_filepath() to use str.join instead of os.path.join
2011-11-11 17:44:16 -05:00
Andrew Brown
b9bca19cda fixed auto-detection for forcerender on empty maps
also re-arranged code so scan_chunks() returns the tree object
2011-11-09 23:17:27 -05:00
Andrew Brown
f6b7e1b501 implemented forcerender and auto-detection of empty tiledirs
Also added a few debug lines during chunkscanning with timing info
2011-11-08 16:02:15 -05:00
Andrew Brown
14ed48f975 misc cleanup and minor optimizations 2011-11-08 15:31:01 -05:00
Andrew Brown
75070f817f fixes so the last commit runs on maps that need work 2011-11-07 23:18:38 -05:00
Andrew Brown
13f3ba90ab preliminary chunk-scan algorithm activated.
forcerender and stochastic are currently broken.
2011-11-07 22:18:51 -05:00
Andrew Brown
636913af57 Merge remote-tracking branch 'origin/master' into brownan-chunkscan
Conflicts:
	overviewer.py
	overviewer_core/quadtree.py
2011-11-07 21:04:01 -05:00
Andrew Brown
b1c38a56f2 scan_chunks() works according to preliminary tests \o/ 2011-11-06 23:25:47 -05:00
Andrew Brown
6c0ab7e48c moved tile filepath calculation to Tile object 2011-11-06 21:12:11 -05:00
Andrew Brown
2e28375786 damn semicolons! 2011-11-06 20:58:50 -05:00
Andrew Brown
33667093a3 added the default value for bgcolor and imgformat in QuadtreeGen constructor 2011-11-06 20:46:05 -05:00
Andrew Brown
30e7083cd0 Tile.compute_path implemented and exhaustively tested 2011-11-06 10:01:44 -05:00
Andrew Brown
5d8daabe05 re-named variables for increased accuracy 2011-11-04 18:34:08 -04:00
Andrew Brown
5d26d3e5f6 added repr, eq, neq methods to Tile class 2011-11-04 18:33:27 -04:00
Aaron Griffith
cc4877f149 fixed stochastic_render and regionlists working together 2011-11-01 23:43:05 -04:00
Andrew Brown
72681a36cb re-factored the way tiles are passed from quadtree through rendernode 2011-11-01 22:32:34 -04:00
Andrew Brown
ab53a9bd3e added a tree class to keep track of dirty tiles 2011-11-01 17:10:41 -04:00
Andrew Brown
96cf62bd14 changed "go" methods in world and quadtree to something more descriptive 2011-11-01 17:10:41 -04:00
Andrew Brown
996b299c79 On map shrink, delete top files to ensure they get regen'd 2011-11-01 17:10:41 -04:00
Andrew Brown
55adc75d31 minor cleanup, comments/docstring adjustment 2011-11-01 17:10:41 -04:00
Aaron Griffith
03ce98df29 added stochastic render option for incrementally updating maps 2011-10-30 00:09:57 -04:00
Aaron Griffith
f8d43ca470 region file mtimes are no longer used, to fix a bug on windows 2011-10-24 23:14:23 -04:00
Aaron Griffith
79a3e0d795 the "waay to big" error now gives an upper bound on zoom level 2011-10-24 07:52:02 -04:00
Thomas Lake
1db010a8aa Add --changelist and --changelist-format
Allow output of changed tiles to a file specified with --changelist. The
file contains the name of each tile on a line. The path can be relative
or absolute, chosen using --changelist-format.

The code assumes that all innertiles will have been updated when a
worldtile changes, and prints the corresponding filenames to the list
directly, rather than add message passing to the innertile methods.
2011-09-17 11:37:04 +01:00
Aaron Griffith
79680203a5 fixed forcerender not being used while rendering innertiles 2011-08-16 15:02:09 -04:00
but2002
5e10ff1a30 Fixed indentation style to match the rest of the code. 2011-07-31 17:41:57 -05:00
but2002
3ccb188a11 Fixed an error in my original change, moved code to original location. 2011-07-31 17:39:56 -05:00
but2002
f36cb98911 Fixed undefined variable. 2011-07-31 17:37:59 -05:00
Aaron Griffith
30a8b851b6 added separate 'zoomLevels' JS config var for marker positioning use (closes #401) 2011-07-31 12:50:41 -04:00
Aaron Griffith
ebd3497a5f made forcerender and regionlist work together (closes #444) 2011-07-31 12:50:41 -04:00
Aaron Griffith
fde647bfdf Merge branch 'py-package'
Conflicts:
	setup.py
2011-07-10 18:14:20 -04:00
Aaron Griffith
c10074e87f Merge branch 'master' into py-package 2011-06-04 20:05:31 -04:00