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
Caleb Deveraux
47cf34bbfd
Fix TAG_String's setValue and dataType member functions
2010-10-07 11:47:23 +08:00
Caleb Deveraux
c3c44a60bf
Use new-style classes so properties work
...
Properties don't work on old-style classes. Convert classes to
new-style by explicitly inheriting from object.
2010-10-07 11:47:05 +08:00
Caleb Deveraux
0580a990cb
Merge remote branch 'github/topic/regression_testing'
2010-10-05 22:29:32 -06:00
Caleb Deveraux
4f11bb38bc
Fix previously-introduced call to reduce so the arguments are in order
2010-10-05 22:14:46 -06:00
Caleb Deveraux
402f6b24fe
Simplify another mask construction instance to avoid temporaries
2010-10-05 22:09:33 -06:00
Caleb Deveraux
85a6959c8c
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-05 22:03:21 -06:00
Caleb Deveraux
8becbc066d
Add regression tests for replace/fill
2010-10-05 22:02:41 -06:00
Caleb Deveraux
20cd8201e7
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-05 21:55:24 -06:00
Caleb Deveraux
b3a51d8487
Merge branch 'topic/regression_testing'
...
Conflicts:
nbt.py
run_regression_test.py
2010-10-05 21:10:54 -06:00
Caleb Deveraux
86ad3180ca
Update regression test w/ checksums so they sync w/ codewarrior0's master
2010-10-05 21:00:51 -06:00
Caleb Deveraux
af7e286c7e
Merge remote branch 'origin/master' into topic/regression_testing
2010-10-05 20:53:11 -06:00
Caleb Deveraux
31b4fcbf13
Use int(s, 36) rather than roll a custom base36 converter
2010-10-05 19:48:52 +08:00
Caleb Deveraux
269af277d7
Used reversed rather than __reversed__
2010-10-05 19:48:51 +08:00
Caleb Deveraux
b766af613c
Avoid creating temporary lists where possible
2010-10-05 19:48:51 +08:00
Caleb Deveraux
d85ffc1b8f
Use pack_into/unpack_from where possible
2010-10-05 19:48:51 +08:00
Caleb Deveraux
b113261c51
Use enumerate, rather than explicit count
2010-10-05 19:44:02 +08:00
Caleb Deveraux
e1d583f51d
Don't coerce data type twice
2010-10-05 19:44:02 +08:00
Caleb Deveraux
f7fc6ba343
Fix TAG_Compound to use value property
2010-10-05 19:44:01 +08:00
Caleb Deveraux
cfe68af226
Don't construct a key list unnecessarily; it slows things down
2010-10-05 19:43:30 +08:00
Caleb Deveraux
113b0fc7e1
Allow selection of regresion tests from the command line
2010-10-04 02:59:46 -06:00
Caleb Deveraux
19cf6ca568
run_regression_test.py now outputs the checksum's found on success
2010-10-04 02:59:41 -06:00
Caleb Deveraux
962e16bfc2
Allow selection of regresion tests from the command line
2010-10-04 02:56:30 -06:00
Caleb Deveraux
c4a37d8a59
run_regression_test.py now outputs the checksum's found on success
2010-10-04 02:56:17 -06:00
Caleb Deveraux
aa41458327
Don't append strings in a loop!
2010-10-04 01:56:09 -06:00
Caleb Deveraux
5557a0c802
Use int(s, 36) rather than roll a custom base36 converter
2010-10-04 01:55:44 -06:00