David Vierra
584b8a30b4
don't adjust minimum edge when adjusting maximum edges
2010-10-14 14:53:06 -10:00
David Vierra
9d8d14b5bd
Get the save directory path in unicode on win32 systems
2010-10-14 14:52:42 -10:00
David Vierra
717e9384cd
limit length of blocktype array to 256
2010-10-13 16:24:24 -10:00
David Vierra
e0b18c4ee0
changed more strings to unicode
...
I wonder if this is really needed. It seems like when filenames are in unicode, i have to format them into unicode strings or get an encoding error...
2010-10-13 13:06:22 -10:00
David Vierra
f4b439c222
catch chunk errors during relight
2010-10-12 23:07:25 -10:00
David Vierra
acfe936056
i have absolutely no idea why this function gets called on a malformed chunk that was already culled, but whatever
2010-10-12 14:05:23 -10:00
David Vierra
bdd85b7336
catch chunk loading errors here
...
todo: find a better way to deal with malformed and absent chunks in general
2010-10-12 14:04:58 -10:00
David Vierra
00509546b3
create a new function readBox in anticipation of better box specifiers
2010-10-11 22:59:40 -10:00
David Vierra
11048d9d74
Newly created chunks' initial lights are fully bright
2010-10-10 21:56:24 -10:00
David Vierra
3b23358ccc
remove dead code
2010-10-10 18:53:32 -10:00
David Vierra
780fbbeccf
loadChunk args are chunk positions
2010-10-10 18:50:50 -10:00
David Vierra
919e4db340
fix arg name
2010-10-10 18:50:22 -10:00
David Vierra
a93e103ff0
reorganized copyEntitiesFrom, fixed painting copy, todo: painting rotation
...
the TileX, TileY, TileZ refer to the block that the painting is attached to.
2010-10-09 23:04:22 -10:00
David Vierra
552284af5c
return a world bounds for empty levels instead of crashing
2010-10-09 11:31:41 -10:00
Caleb Deveraux
655cb535be
Add support to obtain cProfile output from regression tests
2010-10-09 03:55:42 -10:00
David Vierra
90a45531e6
unicode strings...
2010-10-09 03:55:00 -10:00
David Vierra
7a4746dbf8
can guess-open unnumbered classic levels again
2010-10-09 03:22:01 -10:00
David Vierra
d0158a21ba
list dumpsigns in usage info
2010-10-09 03:20:51 -10:00
David Vierra
0d97ad9405
fix range inputs for infinite-to-infinite copy
2010-10-09 03:00:52 -10:00
David Vierra
7e5b88c75e
Added dumpSigns command to save sign locations and text to a text file.
2010-10-09 02:56:18 -10:00
David Vierra
535d0e5104
use path.basename to get the filename
2010-10-09 02:49:21 -10:00
David Vierra
af007e317d
use unicode strings
2010-10-09 02:48:47 -10:00
David Vierra
7969bd28e8
win32 fixes
2010-10-09 00:16:46 -10:00
Caleb Deveraux
ca4a3d4f13
Fix an indexing error in a warning
2010-10-08 21:36:38 -10:00
Caleb Deveraux
5e564531fb
Fix dataType assertions in TAG_Compound
2010-10-08 21:36:34 -10:00
Caleb Deveraux
e41cf4f77e
Add a vim modeline to nbt.py so the non-pep8-ness of nbt.py is maintained
2010-10-08 21:36:27 -10:00
David Vierra
bafa5d79ad
this import is needed for the bounded relight
2010-10-08 18:01:25 -10:00
David Vierra
c1742db9e9
correct None check
2010-10-07 21:22:25 -10:00
David Vierra
d0b0277f24
set batchMode flag earlier
2010-10-07 16:05:06 -10:00
David Vierra
882816e91e
the docstring needs to be first
2010-10-07 16:04:41 -10:00
David Vierra
da9f4b7b8d
tweaked readme
2010-10-07 16:03:52 -10:00
David Vierra
485cea1a6d
catch missing chunks here
2010-10-07 15:32:44 -10:00
David Vierra
574e3a7be6
avoid creating an extra list
2010-10-07 15:32:36 -10:00
David Vierra
dbe1beb1ca
classic levels adjust their Width/Length/Height when rotated, like schematics
2010-10-07 10:53:54 -10:00
David Vierra
2215568e0e
fill/replace all for finite levels
2010-10-07 10:53:17 -10:00
David Vierra
fe94efd28a
correct door rotation
2010-10-07 10:53:03 -10:00
David Vierra
2b5607237b
add setters for these so rotate/roll/flip can replace them
2010-10-06 23:57:26 -10:00
David Vierra
c7edbde037
Merge remote branch 'carrus85/master'
2010-10-06 18:14:52 -10:00
David Vierra
73213d6c90
fixed argument order for functools.reduce
2010-10-06 18:03:23 -10:00
David Vierra
57eef31c93
Merge branch 'master' of github.com:codewarrior0/pymclevel
2010-10-06 17:59:56 -10:00
Caleb Deveraux
951d8daaec
Simplify another mask construction instance to avoid temporaries
2010-10-07 11:59:45 +08:00
Caleb Deveraux
c09a58a725
Simplify mask construction to prevent unnecessary temporaries
2010-10-07 11:59:44 +08:00
David Vierra
747ad82fc0
Merge branch 'master' of github.com:codewarrior0/pymclevel
2010-10-06 17:58:37 -10:00
Caleb Deveraux
d4a318c719
Fix the 'No newline at end of file' weirdness in box.py
2010-10-07 11:54:12 +08:00
Caleb Deveraux
2df01a56f9
Fix file case problem for linux
2010-10-07 11:54:12 +08:00
Caleb Deveraux
bb791c2168
mce.py can be executed out of the box on *nix
2010-10-07 11:52:21 +08:00
Caleb Deveraux
9e47df25b1
Don't throw in mce.py on fill/replace with an empty box
...
mce.py, when called with an empty box (e.g., request entire world to be
changed), would throw an exception, since box is None (and therefore has
no volume parameter). This would prevent the ligthting steps from
occuring further on.
2010-10-07 11:50:49 +08:00
David Vierra
87eb272195
Merge branch 'master' of git@github.com:codewarrior0/pymclevel.git
2010-10-06 17:48:13 -10:00
David Vierra
791003e72c
messed with the indentation...
2010-10-06 17:48:09 -10:00
Caleb Deveraux
7292701e4d
Fix TAG_Byte_Array's setValue and dataType member functions
2010-10-07 11:47:24 +08:00