d3bda71212252cab8f0f1cb43d7173881564f64a
This commit establishes an extensible way of storing additional data in map file headers. Those header extras can be permanent, like the embedded config file or be used only once after map load like the undo/redo data. Additional extra data can be easily added and will not break backward compatibility, so this map format should hold up for quite some time. To make things easier for mappers, maps can now be saved without invoking the various optimisations. That, in combination with the stored undo data, means, that editing a map can be picked up at exactly the same state, as the map was saved in. Maps will automatically be written in the appropriate fashion, depending on the situation: 1) for sendmap: no optimisation, no undo data 2) savemap during editing: no optimisation, with undo data 3) savemap when not editing: optimised, no undo data 4) savemapoptimised: optimised, no undo data (For savemap to save different maps during editing, the variable preserveundosonsave has to be "1". It is "0" by default.) All of the above map files can be played without problems - they only differ in file size. (However, maps with undo data may be too big to send) The new command "embedconfigfile" will load the config file, include it in the map header and rename the original text file. "extractconfigfile" will write an embedded config file to a separate file and remove it from the map header. Embedded config files take precedence over regular config files and therefore make it harder for cheaters to play with modified config files. further changes: cleaned up some debugging code; more ASSERTs
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta http-equiv="refresh" content="0; url=docs/index.html">
<meta name="description" content="Documentation index of the game AssaultCube @ http://assault.cubers.net/">
<meta name="author" content="Rabid Viper Productions">
<meta name="copyright" content="You may be able to redistribute this content under specific conditions.
Please read the licensing information, available @ http://assault.cubers.net/docs/license.html for the
conditions that would apply to what you may be redistributing.">
<title>AssaultCube Documentation</title>
<style type="text/css">
body
{
background-color: #222222;
}
</style>
</head>
<body>
<div>
</div>
</body>
</html>
Languages
C
57.9%
C++
27.6%
Shell
11.1%
Python
1.2%
Makefile
1%
Other
1.1%