Cambios

Saltar a: navegación, buscar

Formato alfa

369 bytes añadidos, 03:17 25 sep 2014
sin resumen de edición
{{Construcción}}
{{about|[[Minecraft Alpha]] 1.2.6|[[Minecraft 1.0]]|Level Format}}
[[Minecraft Indev]] introduced a new data storage challenge while under development: Terrain generated in infdev has the potential to be almost introdujo un nuevo sistema de almacenado mientras se encontraba en desarrollo. El terreno generado en Infdev tiene el potencial de ocupar casi 235 petabytes, which is lo cual serian 240,640 terabytes, in size when stored in memory, due to the sheer size of the map en tamaño mientras este almacenado en memoria debido al tamaño del mapa (several times the surface area of the Earthel cual es varias veces más grande que la superficie de la Tierra). Therefore, to reduce file size and memory usagePara reducir el tamaño de este archivo y el uso de memoria, Notch decided to split the terrain into decide dividir el terreno en segmentos de 16 x X 128 x 16 chunks and store them on disk when not visibley grabarlos cuando no estén visibles. In additionAdemas, terrain is only generated when it is within the drawing distance of the player's camerael terreno solo es generado cuando se encuentra dentro del rango de visión del jugador, significantly reducing save sizereduciendo considerablemente el espacio de guardado, since most players will only be able to search a tiny fraction of the map in a reasonable time frameya que casi todos los jugadores solo lograran explorar una muy pequeña fracción del mapa en un tiempo razonable. [[ Minecraft Alpha]] uses this techniqueusa esta técnica, and both [[Minecraft Beta]] and y [[Minecraft 1.0]] still use the usan este concepto general concept because of its successdebido al éxito que tuvo.
== World folder structure Estructura del mundo en carpeta ==An Alpha level is actually a single folder containing at least one file named '''levelEl nivel alfa es una única carpeta que contiene al menos un archivo llamado “level.dat'''dat” y un archivo llamado “sesión. There is also a [[#session.lock Format|session.lock]] file to make sure only one lock” que asegura que solo un Minecraft opens the level at onceabra ese nivel por vez.
The level folder may have up to La carpeta de nivel puede tener hasta 64 subfolders, each with up to carpetas y este a su vez puede contener 64 additional subfolders eachsubcarpetas. These folders contain the chunk files that hold the level's terrain and entitiesEstas carpetas contienen los segmentos o “chunks” que mantienen el terreno y las entidades. Each chunk file is identified by its chunk position Cada archivo de segmento o “chunk” es identificado por su posición en xPos and y zPos. The varying parts of the Las partes variantes del nombre del archivo de cada chunk file's name are obtained by taking the [[wikipedia:Base 36|son obtenidas tomando la base36]] representation of the de xPos and y zPos. The names of the folders that the Los nombres de las carpetas en los cuales se encuentra el archivo del chunk file is placed in are found by taking se encuentran al tomar xPos and y zPos, modulo 64 (or bitwise ANDing with 63), and converting to base36y convirtiéndolo a base 36. Negative coordinates must be interpreted as positive numbersLas coordenadas negativas deben ser interpretadas como números positivos, bitwise, via [[wikipedia:Signed number representations#Twomediante complemento a 2.27s_complement|two's complement]]. So, De forma que -13 is treated as es interpretado como si fuese 243 (if its size is a bytesi su tamaño fuese en bytes).
As an exampleComo ejemplo, to find the para encontrar el chunk at position en la posición (-13, 44):* The first folder name is El primer nombre de la carpeta es la base36(-13 % 64). This is Esto es base36(243 243 % 64 = 51) which is ", el cual es 1f".* The second folder name is El segundo nombre de carpeta es base36(44 44 % 64). This is Esto es base36(44) which is "18"el cual es “18”.* The El nombre de archivo del chunk file's name is "ces “c." + base36(-13) + "." + base36(44) + ".dat". This evaluates to Esto se evalúa como  "c.-d.18.dat".* ThusDe esta forma, the el chunk at en la posición (-13, 44) is stored in "1fes guardada en el archivo “1f/18/c.-d.18.dat"Each chunk remembers its position independently of the file and folder names. See [[#Chunk Format|below]] to find out how to read a Cada chunk's position from the file datarecuerda la posición independiente del archivo y los nombres de carpeta.
[[Minecraft Beta]] 1.3 introduced [[introdujo MCRegion]], where donde los chunks are stored in groups of son guardados en grupos de 32x32 in region filesen los archivos de región.
=== Dimensions ===
Dimensions are saved in the same way normal worlds are, but instead of mixing the world files inside the save folder, the files are stored in an additional sub-folders with their own region and chunk data. Their names start with <code>DIM</code>, followed by the dimension ID.
These dimension IDs were used in Alpha:=== Dimensiones ===Las dimensiones son guardadas de la misma forma que los mundos, pero en lugar de mezclar los archivos del mundo en la carpeta de guardado, son guardados en subcarpetas con sus propias regiones e información de chunks. Los nombres empiezan con “DIM” seguido por la ID de la dimensión. Estas eran las ID’s que eran usadas en Minecraft Alfa
{| class="wikitable"
! ID !! Folder !! Dimension
|-
| 0 || <code>saves/[World]/</code> || Normal world Mundo normal (Overworld), always stored in the world folder without siempre es guardado en la carpeta <code>DIM</code>
|-
| -1 || <code>saves/[World]/DIM-1/</code> || [[The El Nether]], added with the [[añadido en la Actualizacion de Halloween Update]]
|}
=== sessionFormato de sesión.lock Format ===sessionSession.lock contains the timestamp of when the world was last touchedcontiene registro de tiempo de la última vez que el mundo a sido alterado. The file is eight El archivo tiene 8 bytes long, and contains a single de largo y contiene una única integral firmada de 64-bit signed integer in big bits en formato endian format. The value of this integer is the timestampEl valor de esta integral corresponde al registro de tiempo, stored as the number of milliseconds elapsed since que representa el numero de milisegundos transcurridos desde 1970, in en UTC.
Unlike typical lock filesA diferencia de los típicos archivos de bloqueo, sessionsesión.lock ensures that the LAST program to open a world is that one that owns it se asegura que el último programa que abrió ese mundo es el que es dueño de este. The process goes something like thisEl proceso ocurre de la siguiente forma:
# program opens sessionEl programa abre sesión.lock.# program writes timestamp to sessionEl programa crea el registro de tiempo en sesión.lock.# program monitors sessionEl programa monitorea sesión.lock for changesen busca de cambios.# if the contents of sessionSi los contenidos de sesión.lock changecambian, program aborts and gives up its lock on the worldel programa aborta y abandona el bloqueo en el mundo.
=== level.dat Format ===
The El archivo de '''level.dat''' file is a esta comprimido en GZip'd [[en formato NBT Format|NBT]] file that stores que almacena la información del nivel de forma global level data (time of daytiempo, player healthsalud del jugador, inventoryinventario, velocityvelocidad, and position within the mapposición en el mapa, etc.). Most importantlyLo más importante, it stores the Random Seed that the terrain generator uses to seamlessly generate more terrain on the flyalmacena la semilla que es usada para generar el terreno de ese mismo mundo.
This file has this structureEl archivo contiene la siguiente estructura:
<div class="treeview">
* {{nbt|compound}} The root tagLa etiqueta raíz.** {{nbt|compound|Data}}: Global level dataInformación global.*** {{nbt|long|LastPlayed}}: Stores the Guarda el registro de tiempo Unix time stamp (in milliseconds) when the player saved the gamede la ultima vez que el jugador grabo la partida.*** {{nbt|long|SizeOnDisk}}: Estimated size of the entire world in Es el tamaño estimado del mundo entero en bytes.*** {{nbt|long|RandomSeed}}: Random number providing the Random Seed for the terrainNumero aleatorio (o escogido por el jugador) que es usada para la generación del terreno.*** {{nbt|int|SpawnX}}: Coordenada X coordinate of the level's spawn positionde la posición del Spawn del mundo.*** {{nbt|int|SpawnY}}: Y coordinate of the level's spawn positionCoordenada X de la posición del Spawn del mundo.*** {{nbt|int|SpawnZ}}: Z coordinate of the level's spawn positionCoordenada X de la posición del Spawn del mundo.*** {{nbt|long|Time}}: Stores the current "time of day" in Guarda el ultimo “tiempo del dia” en ticks. There are Cada 20 ticks per real-life secondcorresponde a 1 segundo, and y 24000 ticks per Minecraft [[daycorresponden a un Ciclo de día/night cycle]]noche, making the full cycle length haciendo que este ciclo dure 20 minutesminutos. Habran transcurrido 0 is the start of [[Day/night cycle#Daytime|daytime]]ticks al inicio del dia, 12000 is the start of [[Day/night cycle#Sunset/Dusk|sunset]]en el atardecer, 13800 is the start of [[Day/night cycle#Nighttime|nighttime]], correspondera al anochecer y 22200 is the start of [[Day/night cycle#Sunrise/Dawn|sunrise]], and el comienzo del amanecer y por ultimo 24000 is daytime again. The value stored in level.dat is always increasing and can be larger than 24000, but the "time of day" is always modulo 24000 of the "Time" field valuees el inicio del siguiente día e inmediatamente empieza un nuevo clico en 0 ticks.*** {{nbt|compound|Player}}: The [[El jugador en Singleplayer]] player for the level.**** {{nbt|int|Dimension}}: The dimension the player is in. La dimensión en la cual el jugador se encuentra, 0 is para el mundo normal [[The Overworld]], and y -1 is para [[The el Nether]].**** {{nbt|list|Pos}}: List of 3 TAG_Doubles for the Lista de las coordenadas X, Y, and y Z position of the playerdonde se encuentra el jugador.**** {{nbt|list|Rotation}}: List of 2 TAG_Floats for the Yaw and Pitch of the player's viewLista de la rotación en las coordenadas Y y Z.**** {{nbt|list|Motion}}: List of 3 TAG_Doubles for the Lista que abarca el movimiento de los ejes X, Y, and y Z motion in meters per tick.**** {{nbt|byte|OnGround}}: 1 or o 0 (trueverdadero/falsefalso) - true if the player is on the ground Es Verdadero si el jugador está pisando suelo.**** {{nbt|float|FallDistance}}: How far the player has fallenDurante cuánto tiempo el jugador a estado cayendo.**** {{nbt|short|Health}}: The number of hit points the player has. La cantidad de vida que conserva el jugador, representada en hitpoints, donde 20 is hitpoints son 10 heartscorazones.**** {{nbt|short|AttackTime}}: Number of ticks the player is immune to attacks.Tiempo en el que el jugador es inmune a ser atacado**** {{nbt|short|HurtTime}}: Number of Numero de ticks the player is red from being attackeden los que el jugador se muestra rojo por haber sido atacado.**** {{nbt|short|DeathTime}}: Number of Numero de ticks the player has been dead for - used for controlling the death animationen los que el jugador a estado muerto. (Usado para controlar la animación de muerte).**** {{nbt|short|Air}}: The number of El número de ticks before the player starts to drownque le faltan al jugador para ahogarse. Starts at Inicia en 300.**** {{nbt|short|Fire}}: When negative, the number of Cuando este valor esta negativo representa el número de ticks before the player can catch on fireque han pasado para que el jugador pueda volver a ser incendiado. When positiveCuando positivo, the number of el número de ticks before the fire is extinguishedque le faltan para que el fuego se extinga.**** {{nbt|int|Score}}: The player's scoreEl puntaje del jugador. The score was never utilized in Este valor nunca fue utilizado en la versión Alpha or even betao en la Beta, so this value is irrelevanteste valor es irrelevante.**** {{nbt|list|Inventory}}: List of TAG_Compounds representing the items in the player's inventoryLista de conjuntos de Tag’s que representan los ítem en el inventario del jugador.***** {{nbt|compound}} An inventory itemUn ítem en el inventario.****** {{nbt|byte|Slot}}: The [[Data Values#Inventory_Slot_Number|Slot]] the item is inLa casilla en la cual se encuentra el ítem.****** {{nbt|short|id}}: The Item La [[Data Values#IDs|ID]]del ítem.****** {{nbt|short|Damage}}: The item's [[Data Values#Data|data]] valueEl valor específico del ítem, or damage value for toolso el valor de daño para herramientas.
****** {{nbt|short|Count}}: The number of this item in the stack. Range -128 to 127. Values less than 2 are not displayed in-game.
</div>
=== Formato de Chunk Format ===Chunk filesLos archivos de chunk, as described aboveantes descritos arriba, are son archivos comprimidos en GZip'd [[NBT Format|en formato NBT]] files. They have this structureTienen la siguiente estructura:
<div class="treeview">
* {{nbt|compound}} The root tagLa etiqueta raíz.** {{nbt|compound|Level}}: The level data in this Los datos de nivel en este chunk.*** {{nbt|int|xPos}}: The La coordenada X de este chunk coordinate.*** {{nbt|int|zPos}}: The La coordenada Z de este chunk coordinate.*** {{nbt|byte|TerrainPopulated}}: 1 or o 0 (trueVerdadero/falseFalso) - true if Minecraft Alpha has generated special features in this El valor es verdaero si el chunk such as Dungeons and Cave systemsestá ocupado por estructuras generadas como Calabozos y sistemas de cavernas.*** {{nbt|long|LastUpdate}}: The El tick when the de la última vez que el chunk as last updatedfue actualizado.*** {{nbt|byte-array|Blocks}}: 32768 bytes of Block IDsde ID’s de los bloques, 8 bits per blockpara cada Bloque.*** {{nbt|byte-array|Data}}: 16384 bytes of Block Datade datos de los bloques, 4 bits per blockpor cada Bloque.*** {{nbt|byte-array|BlockLight}}: 16384 bytes of Block Lightbites de información de iluminación, 4 bits per blockpor cada Bloque.*** {{nbt|byte-array|SkyLight}}: 16384 bytes of Sky Lightbites de luz del cielo, 4 bits per blockpor Bloque.*** {{nbt|byte-array|HeightMap}}: 256 bytes of Height Map informationde información sobre la altura del mapa, 8 bits per por cada columna XZ column. Used for speeding up sky light calculationsUsado para agilizar los cálculos sobre SkyLight.*** {{nbt|list|Entities}}: List of TAG_CompoundsLista de conjuntos de TAG’s , one for each entity in the uno por cada entidad en el chunk.**** {{nbt|compound}} An entityUna entidad.
***** See [[Chunk format#Entity_Format|Chunk format → Entity Format]] - not all information is applicable to Minecraft Alpha.
*** {{nbt|list|TileEntities}}: List of TAG_CompoundsLista de conjuntos de TAG’s, one for each tile entity in the uno por cada Titulo de Entidad en el chunk.
**** {{nbt|compound}} A tile entity.
***** See [[Chunk format#Tile_Entity_Format|Chunk format → Tile Entity Format]] - not all information is applicable to Minecraft Alpha.
</div>
 
== See also ==
* [[Indev level format]]
* [[Level Format]] for [[Minecraft 1.0]]
** [[Anvil file format]]
** [[Region file format]]
*** [[Chunk format]]
{{minecraft}}
[[Category:Development]]
1082
ediciones

Menú de navegación