aboutsummaryrefslogtreecommitdiff
path: root/src/serialization.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Switch MapBlock compression to zstd (#10788)lhofhansl2021-08-311-4/+10
| | | | | | | * Add zstd support. * Rearrange serialization order * Compress entire mapblock Co-authored-by: sfan5 <sfan5@live.de>
* Add limit parameter to decompressZlibBen Deutsch2020-02-011-1/+1
| | | | | This can prevent untrusted data, such as sent over the network, from consuming all memory with a specially crafted payload.
* C++ modernize: Pragma once (#6264)Loïc Blot2017-08-171-5/+1
| | | | * Migrate cpp headers to pragma once
* compressZlib: don't use a SharedBuffer but a raw u8 * pointerLoic Blot2017-07-271-2/+2
| | | | | | | | Remove usage of the SharedBuffer in zlib compression which has two problems: * We copied the whole memory block to compress it (not good with mapblocks) * We copied sometimes strings to SharedBuffer to SharedBuffer (2nd time) Use this method in MapNode::serializeBulk + optimize serialization but merging 3 identical loops in a single loop
* Private nodemeta (#5702)sfan52017-05-101-2/+3
| | | | * Private node metadata that isn't sent to the client
* Lighting: Update lighting at block loadingDániel Juhász2017-02-131-2/+3
| | | | | This commit updates mapblocks' light if necessary when they are loaded. This removes ghost lighting.
* Serialisation: documentation fixes, clarifying renames and whitespace fixesest312015-09-141-6/+6
| | | | | | | | | | | | | | | 1. Do two renames: * SER_FMT_CLIENT_VER_LOWEST -> SER_FMT_VER_LOWEST_WRITE * SER_FMT_VER_LOWEST -> SER_FMT_VER_LOWEST_READ Now the two define values are consistently named with the _WRITE defines SER_FMT_VER_{HIGHEST,LOWEST}_WRITE, and to better point out what the two serialisation versions actually are for. 2. wrap some lines in doc/worldformat.txt, and point out that the node timers are serialized at a later point, as this can cause confusion about what now happens (if one doesn't strictly read the if block's conditions). 3. some whitespace fixes in NodeTimerList::serialize, and one new comment.
* Fix a crash (assert) when client set serial version < 24 in INITLoic Blot2015-01-271-0/+4
| | | | | | | | | When SER_FMT_VER_LOWEST is set to zero, then the test is stupid in INIT because all client works. In mapblock we check if client's serialization version is < 24, but if client sent serialization version < 24 (15 for example) the server set it and tried to send nodes, then BOOM To resolve the problem: * Create a different CLIENT_MIN_VERSION to handle this problem * Remove the exception * Use an assert in case of bad developer code
* Revert "Fix a crash (assert) when client set serial version < 24 in INIT ↵Craig Robbins2015-01-271-3/+3
| | | | | | | | command SER_FMT_VER_LOWEST is set to zero, then the test is stupid in INIT because all client works. In mapblock we check if client's serialization version is < 24, but if client sent serialization version < 24 (15 for example) the server set it and tried to send nodes, then BOOM" nerzhul is (may?) be working on a new solution. For the moment this is reverted because old worlds cannot be loaded (see discussion on github for the commit). This reverts commit 800d19270250bb13cc6b2d330199815bf8e96446.
* Fix a crash (assert) when client set serial version < 24 in INIT command ↵(@U-Exp)2015-01-241-3/+3
| | | | SER_FMT_VER_LOWEST is set to zero, then the test is stupid in INIT because all client works. In mapblock we check if client's serialization version is < 24, but if client sent serialization version < 24 (15 for example) the server set it and tried to send nodes, then BOOM
* Fix -Wtype-limits warnings and remove disabling of -Wtype-limitsCraig Robbins2014-12-291-1/+3
|
* Add compression APIShadowNinja2014-09-201-2/+2
|
* Weather backward compatibilityproller2013-08-021-3/+5
|
* Weather supportproller2013-07-271-1/+2
|
* Update Copyright YearsSfan52013-02-241-1/+1
|
* Change Minetest-c55 to MinetestPilzAdam2013-02-241-1/+1
|
* Improve node timer format (map format version 25) and update mapformat.txtPerttu Ahola2012-07-241-2/+3
|
* Fix map deserialization and remove old serialization codePerttu Ahola2012-07-231-1/+1
|
* Implement node timersdarkrose2012-07-231-2/+3
|
* Optimize headersPerttu Ahola2012-06-171-1/+1
|
* Properly and efficiently use split utility headersPerttu Ahola2012-06-171-1/+1
|
* Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola2012-06-051-4/+4
| | | | GPLv2/later, by agreement of major contributors
* WIP node metadata, node timersKahrl2012-06-031-2/+3
|
* Node placement / mineral / serialization / iron freq / node_dig callbackKahrl2012-01-221-1/+2
| | | | | | | | - Node placement code moved to Lua - Mineral system removed (added default:stone_with_coal and default:stone_with_iron). - MapBlock and MapNode serialization updated. - Mapgen: Frequency of iron increased. - node_dig callback and related changes.
* Node definition namesPerttu Ahola2011-11-291-1/+2
|
* extended content-type rangePerttu Ahola2011-07-231-1/+2
|
* initial steps in doing content type extensionPerttu Ahola2011-07-021-2/+3
|
* New map generator added (and SQLite, messed up the commits at that time...) ↵Perttu Ahola2011-06-251-1/+2
| | | | (import from temporary git repo)
* Preliminary "active block" stuff + set up test code to grow grass.Perttu Ahola2011-05-221-20/+22
|
* Some work-in-progress in hp and mobs and a frightening amount of random fixes.Perttu Ahola2011-04-211-1/+7
|
* updated example map generator python scriptPerttu Ahola2011-04-111-1/+1
|
* support for format 0 and 1 mapsPerttu Ahola2011-04-111-1/+1
|
* new object systemPerttu Ahola2011-04-101-1/+2
|
* fully implemented the sign with the new frameworkPerttu Ahola2011-04-041-1/+2
|
* all kinds of tweaking and fixingPerttu Ahola2011-02-041-1/+2
|
* Initial commit of mapgen v.2. Lacks configuration and saving to disk.Perttu Ahola2011-01-161-1/+2
|
* day/night working client sidePerttu Ahola2010-12-191-1/+1
|
* commit before content-tile separationPerttu Ahola2010-12-131-5/+2
|
* commit before some radicallish changes to water behaviorPerttu Ahola2010-12-111-1/+2
|
* license stuffPerttu Ahola2010-11-291-0/+19
| | | | | --HG-- rename : src/licensecomment.txt => licensecomment.txt
* - added map generating scriptPerttu Ahola2010-11-291-1/+3
| | | | - dropped support for versions older than 2 because of lighting support
* Initial filesPerttu Ahola2010-11-271-0/+49