summaryrefslogtreecommitdiff
path: root/worldedit/serialization.lua
AgeCommit message (Collapse)Author
2016-01-23Fix crash when loading version 3 schematicsShadowNinja
2015-03-12Load first node too with LuaJITest31
Before, the first node would have had the version number prepended (e.g. "5:"), and therefore wouldn't be loaded.
2015-02-01Cleanup and fixupShadowNinja
Non-stylistic changes: * Add LuaDoc/LDoc support. * Fix `clear_objects` area size calculation. * Fix `clear_objects` removing player objects. * Fix shadowing of marker entity name with player name. * Make visualization functions use `swap_node`. * Make hidden nodes unwalkable. * Prevent `hide` from hiding air. * Make deprecated functions log to deprecated stream when called. * Fixed `replaceinverse` not using normalized node names. * Added .gitignore. * Bump version to 1.1. Stylistic changes: * Change `x = function` to `function x`. * Change comment format. * Make missing VoxelManip error less obnoxious. * Move `sort_pos` into `common.lua`, which is a required module. * Remove local copies of `minetest`. * Remove `worldedit = worldedit or {}` from modules. * Replace replaceinverse with an inverse argument to `replace`. * Added `error()`s on on invalid axes. * Change `wip` to `TODO`. * Rename `clearobjects` to `clear_objects`. * Remove `hollow_{sphere,dome,cylinder}` and replace them with a hollow parameter to each function. * Add helpers to reduce code duplication. * Renamed `Chat Commands.md` to `ChatCommands.md`.
2014-12-29Fix crash when loading schematic in a LuaJIT build in recent Minetest ↵Anthony Zhang
versions (thanks LazyJ & VanessaE!).
2014-12-29Fix some warnings.Anthony Zhang
2014-12-13Fix bug with loading old .we file formats, thanks to @Sokominesfan5
2014-10-24Clean up serializationShadowNinja
* Adds a header to serialized data (to make version checking sane). * Removes the duplicate deserialization for `worldedit.deserialize` and `worldedit.allocate`. * Optimizes `worldedit.deserialize` by only deserializing the data once. * Makes some fields optional. * Cleans up the comments and a little of the code style.
2013-12-24Mark the region with an entity cube.Uberi
2013-07-31Rewrite spirals from scratch and fix upside-down pyramids. Use voxelmanip ↵Anthony Zhang
for markers to ensure area is emerged.
2013-07-31//pyramid works along any axis and backwards. Working //clearobjects and ↵Anthony Zhang
//cylinder command, begin implementing super marker. Remove EnvRef usages and the block queue (the block queue does not work with VoxelManips). More block emergers.
2013-07-28Fix bugs in visualization API and make it ore robust. Fix bugs in ↵Anthony Zhang
//fixedpos, //suppress, and //highlight.
2013-07-21Super duper VoxelManipulator speedups to nearly every API function, and plus ↵Anthony Zhang
support for unloaded areas. Still in progress. Also, fix //allocate for very large schematics.
2013-07-12Even bigger speed gains by using LuaVoxelManipulator in a few choice places! ↵Anthony Zhang
Faster //set, //cylinder, etc., but plenty of room for improvements still.
2013-04-29Fix deserialization for real this time.Anthony Zhang
2013-04-28Fix loading of schematics containing chests that had empty slots.Anthony Zhang
2013-04-28Add Block QueueSfan5
2013-04-20Horrible, vile, disgusting hack. But it works.Anthony Zhang
2013-03-27Metadata fix for serialization.Anthony Zhang
2013-03-20//metasave and //metaload are now superceded by //save and //load's new ↵Anthony Zhang
functionality. worldedit.deserialize now supports every version of the WorldEdit format that has ever existed, and the new worldedit.valueversion uses file characteristics to determine which type of file format a given file uses. The new WorldEdit file format is the same as the one used by MineTest for serializing data, and is capable of storing arbitrary data, as well as leaving fields for future improvements. In other words, this is the last forward-compatibility breaking change that will be made to the file format.
2012-10-23Quick and dirty fix for metasave not saving ItemStack instances in node ↵Anthony Zhang
metadata inventories.
2012-10-22Fix //load and //allocate for old WorldEdit files.Anthony Zhang
2012-10-21Rename //find to //highlight and worldedit.find to worldedit.highlight, add ↵Anthony Zhang
//allocate and worldedit.allocate as well as related documentation. Improve documentation by fixing a few mistakes and adding return signatures.
2012-10-13Separate components into separate mods, add visualization API with hide(), ↵Anthony Zhang
suppress(), find(), and restore() for nondestructive node visualization. Corresponding chat commands are //hide, //suppress, //find, and //restore. Commands and functions documented.