Andrew Brown
fec8e28f5c
Added error detection to overviewerConfig.js parsing.
2012-02-08 21:31:45 -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
Andrew Brown
f9c24df769
Merge remote-tracking branch 'origin/rewrite-rendermodes' into rewrite
2012-01-16 00:50:57 -05:00
Andrew Brown
ba87959e31
added caching to chunks in RegionSet() currently disabled
...
This build is broken due to the mismatch in expected and actual error
condition for get_chunk. The C code still expects it to return None.
2012-01-16 00:48:30 -05:00
Andrew Brown
a48077fe54
removed unused imports in world.py. More docstrings
...
Also added __getstate__ and __setstate__ for pickling RegionSet
2012-01-15 19:10:14 -05:00
Andrew Brown
5096bff521
Cleaned up world.py and fixed find_true_spawn()
...
Added docstrings to the top of World and RegionSet
Added docstrings to some other methods
Removed unused methods that aren't part of our API
Changed get_chunk() to raise error on nonexistant chunks
Changed get_region_path() to _get_region_path()
UNTESTED!
2012-01-15 17:02:58 -05:00
Andrew Chin
48da4a6a3c
Write/read last_rendertime
2012-01-15 00:22:45 -05:00
Andrew Chin
514e99dcd2
overviewer.js now uses backbone.js for much of it's multiworld handling
2012-01-14 23:33:34 -05:00
Aaron Griffith
624d6ba351
updated and cleaned up overviewer.py
...
- moved c_overviewer version checks into __init__.py
- bare_console support (mostly) moved into util, slightly more sane
- removed and updated a ton of old code
2012-01-14 01:11:05 -05:00
Carter Charbonneau
2003267f35
optimize the images used in the UI an otherwise bundled
2012-01-11 22:35:01 -07:00
Aaron Griffith
16fec5085e
converted smooth-lighting into a primitive
...
for the first time ever, smooth-lit cave mode is now possible \o/
2012-01-08 22:49:20 -05:00
Aaron Griffith
ae88b6e27b
converted lighting mode into a primitive
2012-01-08 22:31:41 -05:00
Aaron Griffith
c93715ebfa
migrated cave mode into cave and depth-tinting primitives
2012-01-08 18:29:32 -05:00
Aaron Griffith
f1758a51a7
added netherbrick stairs to lighting estimator
...
Reported in Issue #581 .
2012-01-08 16:22:06 -05:00
Andrew Chin
9f6a4ee698
More updates to overviewer.js
2012-01-08 15:12:40 -05:00
Andrew Brown
9e61407c67
fixed a bug in TileSet. Traversal now works according to tests.
2012-01-08 03:12:06 -05:00
Andrew Brown
3995a06c97
added TileSet tests, fixed several bugs. Still needs work.
2012-01-08 02:51:06 -05:00