452 Commits

Author SHA1 Message Date
David Vierra
5a32845634 Submodule pymclevel updated.
Submodule pymclevel:
    > 6cde200 - Fixed: Log the exception in materials.py when pkg_resources fails to load a yaml file.
    > 03c6baa - Add dist/ to .gitignore
    > c62bc96 - Build: Merge setup_nbt.py into setup.py.
    > 7b3a599 - nbt: gunzip calls GzipFile now instead of zlib.decompress.
    > 2712e29 - Refactor: Clean up imports in nbt and _nbt
    > 5b5f399 - Test: Move the extended HeightMap test from mcr_test to anvil_test and give it a better name.
    > b0f7d59 - Test: Add uncompressed NBT file and NBT file modified by NBTExplorer.
    > 894ff7a - Server: ChunkNotPresent error while copying chunks now chains exception tracebacks.
    > df75222 - Test: testDeleteChunks asserts that the chunk is no longer present.
    > adb6b7b - Test: Place temporary copies of testing files into their own subfolder.
    > 6713404 - Storage: Modified, unsaved chunks are stored on disk instead of being retained in memory.
    > 94bfb1a - Fixed: deleteChunk removes the given chunk from allChunks and marks the world for recalculating its bounds.
    > 5ed8c3d - Backend: Add listDirtyChunks to let MCEdit find out which chunks to redraw after saving and relighting the level.
    > 5b921d7 - Backend: Split AnvilChunkData apart from AnvilChunk.
    > b2c8046 - Refactor: Removed now-unused fake "filename" attribute from AnvilChunk
    > 10ed3a6 - Refactor: Move chunk.sanitizeBlocks to global scope.
    > f9bd070 - Debug: Little script to run nbt tests with and without _nbt.pyx built.
    > 5f8d9e6 - Fixed: Newly created chunks create the HeightMap array with the correct byte order.
    > 4629531 - Debug: Add test case for Primordial Desert generator.
    > cc20115 - Debug: Add test to measure time taken for level.generateLights
    > 8f782ec - Debug: Add MCRegionFile.__repr__
    > d9d49eb - Fixed: Chunk.bounds now returns a sensible bounding box for its position in the world.
    > 1c6c307 - Fixed: AnvilWorldFolder won't accept a non-folder path but will create a folder for a nonexistent path.
    > 124e338 - Refactor: Change chunk.save() into chunk.getSavedData(). Remove world._saveChunk.
    > 75ae4a3 - AnvilChunk no longer calls world._loadChunk. Instead, the world passes the chunk's root_tag to the chunk's initializer.
    > 78f473e - Fixed: Change dtype of HeightMap in newly created chunks to uint32
2012-10-30 04:39:44 -10:00
David Vierra
4350e62e20 Fixed: filterdemo.py lies. Block by block access DOES mark the chunks for lighting. 2012-10-30 04:39:44 -10:00
David Vierra
b384768f7e Fixed: BrushOperation._perform correctly skips over absent chunks. 2012-10-30 04:39:44 -10:00
David Vierra
bba800c692 Refactor: Rearrange the main loops in BrushOperation.perform to have the chunks on the outer loop and the brush points on the inner loop.
This reduces the number of calls to getChunk which can avoid causing chunks to be loaded and unloaded constantly.
BrushMode.performAtPoint is split up into apply, applyToChunk, and applyToChunkSlices
Some modes need to use apply to just loop over the points without looping over any chunks.
dirtyBoxForPointAndOptions renamed to brushBoxForPointAndOptions
2012-10-30 04:39:32 -10:00
David Vierra
a9d6c96a07 Refactor: Move createBrushMask to global scope 2012-10-29 22:07:53 -10:00
David Vierra
35a0ffc067 Debug: Disable some noisy prints 2012-10-29 22:07:52 -10:00
David Vierra
9eca9075f7 Refactor: Remove call to removed method chunkFilename
Submodule pymclevel updated.

Submodule pymclevel:
    > 428a950 - Refactor: Simplify ZipSchematic code and move it to schematic.py
    > 36e7972 - Fixed: AnvilWorldFolder.getRegionFilename calls getFolderPath to ensure the folder exists
    > 208ba76 - Fixed: Call sanitizeBlocks when saving a chunk.
    > 85d79d6 - Normalized line endings
    > 28209fe - Refactor: Move chunk and region loading code out of MCInfdevOldLevel into a new class.
    > 8d0f6c0 - Change pocket_test to load an Anvil world instead of an MCR world.
    > 89c535f - Refactor: Change TagProperty to accept either a value or a function for the default value.
    > 81f5bbf - Test: testServerGen asserts that the newly created chunk contains any non-air blocks.
2012-10-29 22:07:49 -10:00
David Vierra
e8dc9814ff Refactor: Remove call to removed function chunkFilenameAt.
Submodule pymclevel updated.

Submodule pymclevel:
    > 38cd052 - Refactor: Reorder members and methods of MCInfdevOldLevel to place related methods closer together.
2012-10-29 22:05:09 -10:00
David Vierra
d6739b1282 Refactor: Remove all uses of chunk.compress and related methods.
MCServerChunkGenerator was moved to minecraft_server.py
Some strings were changed from single- to double-quoted while removing statically declared tag names.Submodule pymclevel updated.

Submodule pymclevel:
    > f4b4091 - Fixed: Statement seems to have no effect
    > b7ce019 - Fixed: Remove redundant parentheses
    > 55c2369 - Fixed: Incorrect call arguments
    > bca5e18 - Fixed: Default argument value is mutable
    > 6fa9249 - Refactor: Remove dead class members.
    > 79f4e1a - Refactor: Remove dead function.
    > a749389 - Fixed: Comparison with None performed with equality operators
    > 670bb46 - Refactor: Move MCServerChunkGenerator and related classes and functions to a new file minecraft_server.py
    > 0b55db7 - Refactor: Remove tag names statically declared as string constants.
    > 50f9ee5 - Add .gitattributes with core.autocrlf
    > 78e45ae - Refactor: Remove compressedChunks and related methods and data from MCInfdevOldLevel and AnvilChunk
2012-10-29 22:03:03 -10:00
Cymbalov Stanislav
e382fae8b7 Fix error while trying to undo player spawn move 2012-10-28 04:16:18 +04:00
David Vierra
17320f4aff Setup now makes dev builds by default unless the --stable option is given. 0.1.6build299 2012-10-25 12:24:50 -10:00
David Vierra
23659a5cf0 Fix bug in Topsoil brush introduced by import reshuffling. 2012-10-25 12:18:18 -10:00
David Vierra
513ddc0398 Normalized line endings 2012-10-25 00:09:56 -10:00
David Vierra
8d51d63261 Normalized line endings in filter.py 2012-10-24 13:27:24 -10:00
David Vierra
e5ab9a4cd9 Add .gitattributes file to specify line ending conversion. 2012-10-24 13:19:33 -10:00
David Vierra
3b2c32a5ca Clean up, compact, and clarify readme.
Bump Python version number, remove freezing/packaging info to the Wiki, add note about easy_install on Windows
2012-10-22 17:10:35 -10:00
David Vierra
8a4b2bedc8 Submodule pymclevel updated.
Submodule pymclevel:
    > 419a403 - Remove last remnant of old NBT code.
    > fde247b - Change data type of computed heightmap arrays to signed integer to avoid unsigned overflow.
    > 14967d4 - Increase default height of MCInfdevOldLevel to 256
0.1.5
2012-10-18 14:11:50 -10:00
David Vierra
d6b4b152b2 Submodule pymclevel updated.
Submodule pymclevel:
    > 9e9fbc0 - Improve test coverage somewhat.
    > 7972bb8 - Rename pynbt.py to nbt.py, remove old nbt.py
    > a83821c - Clean up NBT modules.
0.1.4
2012-10-16 02:31:11 -10:00
David Vierra
c4f365e79c Change default FOV to 70.0 2012-10-15 14:04:09 -10:00
David Vierra
084f0dbdf9 Import OpenGL before all other modules.
Make sure error checking is disabled before any other modules get a chance to load the OpenGL module. Some Intel GMA chipset drivers will set an error condition when calling glGenRenderbufferEXT even though the framebuffer object is fully functional after initialization.
2012-10-14 19:11:26 -10:00
David Vierra
af0f7f9117 CreateSpawners.py: Fix AttributeError when trying to access a TAG_Compound's value
TAG_Compound is usable as a dict.
2012-10-10 23:31:23 -10:00
David Vierra
903068752f Fix setbiome.py to access the Biome tag's array using the 'value' property. 2012-10-09 15:13:00 -10:00
David Vierra
b16178b030 Submodule pymclevel updated.
Submodule pymclevel:
    > 87b97ab - Fix server generator when using MC Server 1.3.2.
    > 7696ff9 - Split up tests into separate files
    > 5e69394 - Correctly chain exception tracebacks when raising ChunkMalformed.
    > 61017d6 - Fix `MCInfdevOldLevel.getWorldBounds` returning incorrect bounds.
    > 5740ea3 - TestServerGen: Change to test against AnvilWorld to avoid a format mismatch between the server and the test world.
    > f96f9fd - Updated to add some newer blocks.
    > 4378e6a - Fix memory leak for Anvil chunks
    > 3f76761 - Don't turn a MemoryError into a ChunkMalformed exception
    > 96c1559 - Correct references to ChunkMalformed exception in dumpSigns/dumpChests
    > 0e4399b - Use UTF-8 for decoding of sign text from world
0.1.3
2012-10-08 19:14:20 -10:00
David Vierra
4bfe2f25e0 Remove old maintainer info, change bundle identifier, make build_nbt call the right setup script.
xxx merge setup_nbt.py with setup.py
2012-10-08 18:00:14 -10:00
David Vierra
963fd67f3b Make OpenGL errors non-fatal unless requested 2012-10-08 18:00:13 -10:00
David Vierra
dbb25bdbb0 Alternate FramebufferTexture implementation
For systems without GL_FRAMEBUFFER_EXT. Ought to fix the notorious "Intel Graphics Bug"
2012-10-08 18:00:13 -10:00
David Vierra
8439c48405 Ignore PyCharm project files 2012-10-08 18:00:12 -10:00
David Vierra
d3f877bd7c Copyright blocks were checked in with the wrong line endings, fix it 2012-10-08 18:00:12 -10:00
Tyler Kennedy
0fbd80af2c Merge pull request #134 from KaboPC/patch-2
Fix choiceButton with some string inputs
2012-10-07 07:36:25 -07:00
Tyler Kennedy
5495e273f0 Merge pull request #135 from Dezlad/master
Updated to add Textures for new blocks.
2012-10-07 07:32:29 -07:00
Derry Coffey
bbd61815df Updated some of the items, blocks and entities.
(Texture packs won't work for some new items)
2012-10-06 14:36:42 +01:00
KaboPC
ea1637e1a9 Fix choiceButton with some string inputs
Corrects an oversight which created a choiceButton input in addition to a string input field when using string input options "strValSize", "strVal", or "strSize".
2012-10-05 20:13:50 -03:00
Tyler Kennedy
feefa19118 Updating pymclevel 2012-09-18 05:18:59 -04:00
Tyler Kennedy
db44c6c437 Merge pull request #125 from KaboPC/patch2
Update filter.py and tab_panel.py to allow tabbed filter inputs
2012-09-18 02:10:52 -07:00
Tyler Kennedy
92ccddfe87 Merge pull request #122 from philippelatulippe/dni
Support dimensions with arbitrary directory names.
2012-09-18 02:08:01 -07:00
KaboPC
dbacc96773 Update tab_panel.py to support change in filter.py
tab_panel.py has been revised to draw glRects and draw text rendered on 2D surfaces to support 3D objects inside of filter panels.

These changes were made to support revisions in filter.py.

For more information: http://www.youtube.com/watch?v=NXN8R1BIIuk
2012-09-14 22:54:41 -03:00
KaboPC
e3328b2b71 Update filters.py to allow tabbed filter inputs
Major revision to filter.py to allow the use of lists of tuples for which each tuple element on the list will produce a tab.  Tuples are also acceptable values, so no changes are necessary to existing filters.

Relies on additional revisions in tab_panel.py

For more information: http://www.youtube.com/watch?v=NXN8R1BIIuk
2012-09-14 22:49:19 -03:00
Tyler Kennedy
e962e60ac5 Merge pull request #123 from KaboPC/patch-1
Update filter.py to Allow String Input for Filters
2012-09-11 04:54:02 -07:00
KaboPC
2a2ddb344a Update filter.py to Allow String Input for Filters
The proposed change takes advantage of the TextField class in the albow package to allow filters to accept string input from the user.  May be of use to filter creators.
2012-09-11 04:41:49 -03:00
Philippe Latulippe
b618202340 Support dimensions with arbitrary directory names. 2012-09-09 19:55:18 -04:00
Tyler Kennedy
43cc541185 Added several of SethBling's filters to the default pack. 0.1.2 2012-08-07 04:39:58 -04:00
Tyler Kennedy
16c231246a Updating for 1.3.1 2012-08-07 04:26:47 -04:00
Tyler Kennedy
cdc15b800e Suppress bloody Finder caches. 2012-08-07 04:22:21 -04:00
Tyler Kennedy
0e9365ec8f Bump logging level to file. 2012-08-07 04:21:48 -04:00
Tyler Kennedy
abc277c258 Merge pull request #114 from Dezlad/master
1.3.1 Update
2012-08-07 01:19:32 -07:00
Derry Coffey
b1e6ff7ee7 Added 1.3.1 Block and "Auto-Rotate" on fill with cocoa plants and tripwire hooks
This is good because it adds texture-pack support for 1.3 and the new blocks.
2012-08-06 10:52:03 +01:00
Tyler Kennedy
41ea379fb2 Fix chunk exporting. 2012-04-17 18:20:16 -04:00
Tyler Kennedy
08e33ccbaf Merging in style changes, minor fixes, unused imports, pymclevel update. 0.1.1 2012-04-15 13:03:39 -04:00
Tyler Kennedy
18778d2f2b Merge branch 'master' of https://github.com/jedediah/mcedit 2012-04-15 12:41:57 -04:00
Jedediah Smith
634b263a42 remove a spurious apostrophe that confuses emacs 2012-04-13 06:43:32 -04:00