Commit Graph
421 Commits
Author SHA1 Message Date
Andrew Brown 9fc9c2a781 set a default image quality 2012-02-12 15:55:03 -05:00
Andrew Brown c94cc079c1 Merge remote-tracking branch 'origin/rewrite' into rewrite
Conflicts:
	overviewer.py
2012-02-12 15:35:37 -05:00
Andrew Brown 607bb329cf tileset objects now accept "jpg" or "jpeg" for jpeg format 2012-02-12 15:28:09 -05:00
Andrew Chin 14306f7e8a Bring docs and code in sync 2012-02-12 13:45:43 -05:00
Andrew Brown e7995e19b2 config parser ignores extra items in config files now 2012-02-11 16:02:15 -05:00
Andrew Chin c60936efbd Remove development/debug output 2012-02-11 15:57:38 -05:00
Andrew Chin 90dfc2b4af More javascript improvments related to northdirection 2012-02-11 15:39:32 -05:00
Andrew Chin 0e74d22e47 Merge remote-tracking branch 'origin/rewrite' into rewrite 2012-02-11 00:33:49 -05:00
Andrew Chin eb9649e310 Readded url hash updating
as a "side-effect", the current coords remain centered when switching
tilesets.  at least in theory.  needs more work
2012-02-11 00:29:28 -05:00
Andrew Chin 2e3bf7330d The coords box now displays the correct coords for every rotation 2012-02-10 21:55:28 -05:00
Andrew Chin b7d2733f0c The compass now changes direction to make the tileset 2012-02-10 20:44:11 -05:00
Aaron Griffith 288dc20deb removed old MapGen code 2012-02-09 10:18:39 -05:00
Aaron Griffith 09c4e4cbf8 removed really old composite.py stub wrapper 2012-02-09 10:12:12 -05:00
Aaron Griffith c486c99387 removed old biome code 2012-02-09 09:45:08 -05:00
Andrew Brown fec8e28f5c Added error detection to overviewerConfig.js parsing. 2012-02-08 21:31:45 -05:00
Andrew Chin 19fcee24f7 Split up overviewer.js into several files 2012-02-08 21:07:53 -05:00
Andrew Brown 9319fee138 added processes option to command line and config file
Also the config file parser now just looks for all Settings objects in
settingsDefinitions.py, not the items in __all__
2012-02-08 21:05:02 -05:00
Aaron Griffith a1dacfa994 added back biome colors, and misc. cleanup in world.py 2012-02-08 15:25:22 -05:00
Aaron Griffith 834598da0f fixed typo from master merge 2012-02-08 14:56:50 -05:00
Aaron Griffith ce214c19bc added color tables from biome extractor
Now, the textures loader doesn't have to know about the world path;
this works better in a multi-world environment.
2012-02-08 13:59:43 -05:00
Aaron Griffith 302e1d592a Merge branch 'master' into rewrite 2012-02-06 21:41:11 -05:00
Andrew Brown 50ebdd7f2c clarified some comments and conformed some function names 2012-02-05 00:20:58 -05:00
Andrew Brown 324100206b changed the semantics of required and default in settings definitions.
I think it makes more logical sense now. Essentially, the default is
always used if the user doesn't specify a value. If there is no user
specified value and the default is None, then the action depends on the
value of required. required=True means raise an error. required=False
means silently omit that setting.
2012-02-04 22:06:29 -05:00
Andrew Brown 6d95d80a73 overhaul to configParser. Parsing config works now. 2012-02-04 21:23:44 -05:00
Andrew Brown ceb98c4441 removed classes that are no longer used 2012-02-04 12:50:50 -05:00
Andrew Brown ba12cdf12e added some built-in rendermodes to rendermodes.py 2012-02-03 20:39:04 -05:00
Aaron Griffith 6c647f3161 texturepath setting now works 2012-01-29 17:33:21 -05:00
Aaron Griffith 9dc9e1e952 textures now appropriately handle north direction 2012-01-29 17:18:21 -05:00
Aaron Griffith b88e636728 changed settings to emit correct north values, north values now represent rotations
each north value is an integer representing how many times to rotate
the map by 90 degrees counterclockwise.
2012-01-29 16:45:23 -05:00
Andrew Chin 2497a8a806 Part of an attempt to make config parser a little more generic 2012-01-28 18:57:12 -05:00
Andrew Brown 42d1b5049f RotatedRegionSet now works. Rotated renders now work.
Changed the rotation constants so numpy.rot90 works.
2012-01-28 18:26:37 -05:00
Andrew Chin 96602a48d4 Specifying a dimension in a config file now works 2012-01-27 20:30:58 -05:00
Andrew Chin c29c983a79 Print a more user friendly error message on validation failure 2012-01-27 19:37:16 -05:00
Andrew Chin 1297385148 Validate the rendermode option as a list of primitives 2012-01-27 19:36:55 -05:00
Richard Pastrick cef0606642 Remove commented out code 2012-01-24 11:36:23 -08:00
Richard Pastrick 413e3933a2 Add support for MCPatcher compliant HD animated fire. 2012-01-24 11:19:50 -08:00
Andrew Chin 8297f4c0a3 northdirection glue 2012-01-22 23:25:56 -05:00
Andrew Chin 39e5793634 No longer require an import from rendermodes in config file 2012-01-21 20:02:06 -05:00
Andrew Chin 163dd66a38 Create RegionSets via the World object 2012-01-21 19:04:21 -05:00
Andrew Brown c63029a14d Fixed potential nameerror in tileset.py do_preprocessing() 2012-01-18 10:09:59 -05:00
Andrew Brown ff3bfceef7 more C code fixes. Activated caching.
Also removed some code that I accidentially left in.
Also added a traceback printing decorator around get_chunk() because the
C code can potentially swallow those exceptions.
2012-01-17 21:52:01 -05:00
Andrew Chin 0d23adb237 Avoid digging into the tileset when writing out config.js 2012-01-16 22:54:35 -05:00
Andrew Brown bbe105ead7 Fixes segfaults in the C extension
This should have been part of 70ef0af0 but I didn't catch these.
2012-01-16 22:00:44 -05:00
Andrew Brown 66295aabd9 Find the map size even in child processes
Rendering needs to know self.treedepth, so this must be in child
processes and not just computed in do_preprocessing()
2012-01-16 21:58:48 -05:00
Richard Pastrick dca755e9db Add special case for MCPatcher custom portal images 2012-01-16 17:41:36 -08:00
Andrew Chin aa34853664 Only pass to TileSet the options it required 2012-01-16 20:35:13 -05:00
Andrew Chin 728351f9a3 Display the coord box on index.html 2012-01-16 19:50:50 -05:00
Alejandro Aguilera 2339cc54b8 Revert textures optimization. At least, in the case of water it messed up water transparency.
It would be a good idea to check transparency for all the other optimized pngs.
2012-01-16 13:34:39 +01:00
Andrew Brown dafb659315 added __getstate__ and __setstate__ to TileSet to fix pickling 2012-01-16 02:19:34 -05:00
Andrew Brown 70ef0af00c modified C extension for get_chunk() raising exception on not found 2012-01-16 01:59:16 -05:00