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 |
|
David Vierra
|
b630586568
|
fixed fencepost error in dummy getPresentChunks
|
2010-10-03 12:34:19 -10:00 |
|
David Vierra
|
4551c81e67
|
removed unused structures, converted a list to a numpy array
|
2010-10-02 02:12:15 -10:00 |
|
David Vierra
|
5ba7bf2c96
|
don't try to update zeroChunk
|
2010-10-01 21:08:40 -10:00 |
|
David Vierra
|
bae486d35b
|
fill zero chunks with white light instead of darkness
|
2010-10-01 18:19:33 -10:00 |
|
David Vierra
|
2f81e8469a
|
correct the entity's motion and position correctly
|
2010-10-01 18:19:23 -10:00 |
|
David Vierra
|
f66099f9c0
|
Merge branch 'master' of d:\gitrepos\mcedit\pymclevel
|
2010-09-28 16:04:32 -10:00 |
|
David Vierra
|
cf94b41cf1
|
.NET gzip output doesn't always get read correctly by python's gzip
|
2010-09-28 16:04:25 -10:00 |
|
David Vierra
|
e1ac12659c
|
test on a schematic already present
|
2010-09-28 16:04:02 -10:00 |
|
David Vierra
|
face30d24e
|
avoid negative size here xxx do it better
|
2010-09-28 16:03:50 -10:00 |
|
David Vierra
|
e5a966596c
|
raise a more descriptive error when cannot import infdev
|
2010-09-28 16:03:40 -10:00 |
|
David Rio Vierra
|
2c5a7b4b12
|
better gitignore
|
2010-09-28 01:57:49 -08:00 |
|
David Rio Vierra
|
93102897b3
|
added ignore file
|
2010-09-28 01:56:14 -08:00 |
|
David Rio Vierra
|
2981bc5bb8
|
added encoding marker
|
2010-09-28 01:09:36 -08:00 |
|
David Rio Vierra
|
5e430b3f16
|
began using this function to test set membership instead of the absent 'in2d'
|
2010-09-27 23:00:49 -08:00 |
|
David Vierra
|
18e3b38aed
|
changed copyAir and copyWater args in copyBlocks... to blocksToCopy - a list of block numbers to copy
|
2010-09-27 18:23:39 -10:00 |
|
David Vierra
|
1d081c4138
|
add analyze to help
|
2010-09-26 01:46:43 -10:00 |
|
David Vierra
|
02280ed2a6
|
throw away the uncompressed chunk data - xxx add dirty flag for other level types?
|
2010-09-26 01:43:28 -10:00 |
|
David Vierra
|
151e984909
|
added analyze command to count blocks.
|
2010-09-26 01:42:46 -10:00 |
|
David Vierra
|
72f2d3cfce
|
fixed interactive load command to load things other than numbered worlds
|
2010-09-26 01:41:54 -10:00 |
|
David Vierra
|
2bdda6f09c
|
began using logging module
|
2010-09-26 01:41:38 -10:00 |
|
David Vierra
|
efdce2b5fa
|
don't modify some random variable called la instead of the one we want
|
2010-09-25 21:51:51 -10:00 |
|
David Vierra
|
7e46c941bf
|
copyWater can now be turned off without turning off copyAir
|
2010-09-25 21:51:29 -10:00 |
|
David Vierra
|
8c5d5e7388
|
save and unload chunks during entity cleaning
|
2010-09-25 21:47:22 -10:00 |
|
David Vierra
|
ae690646e2
|
changed print lines to logging module calls
|
2010-09-25 21:46:58 -10:00 |
|
David Vierra
|
efa22c0cca
|
added MCInfdevOldLevel.unload
|
2010-09-25 19:25:42 -10:00 |
|
David Vierra
|
bcad04094e
|
fixed comments
|
2010-09-25 19:04:38 -10:00 |
|
David Vierra
|
519ff19908
|
MCIndevLevel: unpacked BlockLight array from Data array.
xxx move to unpackChunkData and get full indev editing working, but nobody can play indev right now
|
2010-09-25 19:04:21 -10:00 |
|
David Vierra
|
9f8a1ab35a
|
clarified comments, removed incorrect ones
|
2010-09-25 18:32:27 -10:00 |
|
David Vierra
|
33df0ed0dc
|
box compare
|
2010-09-25 18:31:55 -10:00 |
|
David Vierra
|
6e6ba93855
|
added licensing terms
|
2010-09-25 00:14:18 -10:00 |
|
David Vierra
|
95b65a8cf9
|
None argument to fillBlocks means operate on every chunk in the world.
previously, getChunks over a huge box would waste a lot of time skipping absent chunks in large, sparse levels.
|
2010-09-24 11:42:29 -10:00 |
|
David Vierra
|
2d20849271
|
pass None to fillBlocks for the area, instead of a giant box
|
2010-09-24 11:41:24 -10:00 |
|