1163 Commits

Author SHA1 Message Date
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
Caleb Deveraux
f602ba15ef Used reversed rather than __reversed__ 2010-10-04 01:55:17 -06:00
Caleb Deveraux
4bec18588f Simplify mask construction to prevent unnecessary temporaries 2010-10-04 00:28:02 -06:00
Caleb Deveraux
8ba96f9b13 Avoid creating temporary lists where possible 2010-10-04 00:23:31 -06:00
Caleb Deveraux
67f3d56846 Merge remote branch 'github/topic/regression_testing' 2010-10-03 23:14:46 -06:00
Caleb Deveraux
369aac35a3 Add regression test for relight call 2010-10-03 23:13:19 -06:00
Caleb Deveraux
0dd31db679 Add regression testing of 'analyze' command 2010-10-03 22:49:38 -06:00
Caleb Deveraux
d24b4dc10b Merge remote branch 'github/topic/regression_testing' 2010-10-03 22:42:22 -06:00
Caleb Deveraux
fdb35d8f4c Add some regression testing code.
This should help detect if any code changes introduce unexpected
behavior.
2010-10-03 22:39:30 -06:00
Caleb Deveraux
8f2aca1ab5 Allow override of random seed/last_played time for regression testing 2010-10-03 22:39:30 -06:00
Caleb Deveraux
d0f89f4022 mce.py can be executed out of the box on *nix 2010-10-03 22:39:30 -06:00
Caleb Deveraux
1fcc6d076b Fix file case problem for linux 2010-10-03 20:35:46 -06:00
Caleb Deveraux
ee8a079cf1 Unify the 'load named nbt' logic 2010-10-03 20:35:46 -06:00
Caleb Deveraux
37889cddfb Don't construct a key list unnecessarily; it slows things down 2010-10-03 20:35:46 -06:00
Caleb Deveraux
b0e1cbda2f Use pack_into/unpack_from where possible 2010-10-03 20:35:46 -06:00
Caleb Deveraux
4e2f6fc2b8 Don't coerce data type twice 2010-10-03 20:35:46 -06:00
Caleb Deveraux
ac6d8e0018 Use enumerate, rather than explicit count 2010-10-03 20:35:46 -06:00
Caleb Deveraux
4cdca8b63c Separate the log/debug method with a newline 2010-10-03 20:35:46 -06:00
Caleb Deveraux
8c503d7ab5 Exit with an error code on failure 2010-10-03 20:35:46 -06:00
Caleb Deveraux
39264828e5 Fix TAG_Compound to use value property 2010-10-03 20:35:46 -06:00
Caleb Deveraux
fc87cc2e83 Fix TAG_Byte_Array's setValue and dataType member functions 2010-10-03 20:35:46 -06:00
Caleb Deveraux
8eb6657408 Fix the 'No newline at end of file' weirdness in box.py 2010-10-03 20:35:46 -06:00
Caleb Deveraux
33226cddb8 Fix TAG_String's setValue and dataType member functions 2010-10-03 20:35:36 -06:00
Caleb Deveraux
9269130130 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-03 20:28:24 -06:00
David Vierra
7265fd3658 made generateHeightMap a global func until I find a better place to put it
this means a fake chunk can generate its heightmap
2010-10-03 12:35:58 -10:00
David Vierra
b214157f59 fake chunks now have a reference to the parent level 2010-10-03 12:34:54 -10:00