0
Commit Graph

443 Commits

Author SHA1 Message Date
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
Aaron Griffith
30c4bb26c3 default values for options are now specified alongside their definitions 2012-01-08 01:09:43 -05:00
Aaron Griffith
7cacc59428 setup.py now auto-discovers available render primitives 2012-01-08 00:52:30 -05:00
Aaron Griffith
a682b8a689 broke out nether, heightfading, depth, and edgelines from base primitive 2012-01-08 00:08:16 -05:00
Aaron Griffith
e3610f8ac5 moved to a layer-based rendermode system, moved normal mode to base primitive
options are now handled partially in the python side, in rendermodes.py
2012-01-08 00:08:16 -05:00
Aaron Griffith
6f66a31738 ripped out all the rendermode option stuff, preparing to move it to python 2012-01-08 00:08:16 -05:00
Andrew Brown
fb0a7b161e forgot another thing sorry 2012-01-08 00:07:39 -05:00
Andrew Brown
ff418ba7c9 woops 2012-01-08 00:04:40 -05:00
Andrew Brown
df035aa00d changed iteration algorithm for rendercheckmode 1
UNTESTED
2012-01-08 00:03:16 -05:00
Andrew Chin
4255b26fc7 Fixed some crashes in assetManager
Copy in the rest of the web assets
2012-01-07 23:56:08 -05:00
Andrew Chin
0537733bca Merge remote-tracking branch 'origin/rewrite' into rewrite 2012-01-07 23:05:02 -05:00
Andrew Chin
25db39463f The AssetManager will now create a kinda working html output 2012-01-07 23:04:42 -05:00
Aaron Griffith
4d61e41f9f fixed crash when an option isn't recognized 2012-01-07 22:51:09 -05:00
Andrew Chin
9aa3847068 Merge remote-tracking branch 'origin/rewrite' into rewrite 2012-01-07 21:25:19 -05:00