0
Commit Graph

1322 Commits

Author SHA1 Message Date
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
d4379fff93 fixed up command line parsing to match what we discussed
now supports --config= with no world/destdir on the command line, and no
--config but with specifying world/destdir on command line. Options are
validated accordingly.

Depricated and commented out options removed from option parser.

Config file mode currently broken due to the lack of "outputdir" parsing
from the config parser.
2012-02-03 21:13:22 -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 Brown
68792d7015 updated usage text. Removed --display-config. 2012-01-29 12:21:47 -05:00
Andrew Brown
f23872f06f added a docs link under getting started to the running and config pages 2012-01-29 12:01:33 -05:00
Andrew Brown
b30ea281a1 updated bgcolor faq since --bg-color no longer exists 2012-01-29 12:01:09 -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 Brown
65c27d4c42 minor docs improvements 2012-01-28 15:11:19 -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
Andrew Chin
a69a13159c Merge remote-tracking branch 'origin/rewrite' into rewrite 2012-01-22 23:26:23 -05:00
Andrew Chin
8297f4c0a3 northdirection glue 2012-01-22 23:25:56 -05:00
Andrew Brown
9e278a0568 of course I fogot to add this file 2012-01-22 01:28:15 -05:00
Andrew Brown
8c71c802d2 docs update to Running page and new page Config. Removed Options.
Added all about the new config file format. Needs checking for accuracy.
Also need to update the faq and other sections of the docs now that the
options page is gone.
2012-01-22 01:26:04 -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
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
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
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
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