diff --git a/source/dev_tools/documentation.txt b/source/dev_tools/documentation.txt new file mode 100644 index 00000000..e9ab71dc --- /dev/null +++ b/source/dev_tools/documentation.txt @@ -0,0 +1,71 @@ +From inside the client you can run: + - docwritebaseref + and + - docwritetodoref +By passing "1" it'll write all idents, but that includes stuff like "_CAS_serverpass" and "__DEFAULT_SCOREBOARD", so only look into that list if you feel something was missed without it. + - docwritetodoref 1 + +There's no real automation for incorporating these snippets, you will need to find the proper section to place them in and collect all the required properties. +You may encounter html-like-entities, like "gt;" (not ">"!) in the autogenerated lists – the reference.xml would have "gt;=" as '''''' in plain. + +The established documentation does not adhere to any specific order of the properties; we would suggest to stick to one though and possibly fix the order if you see something not matching it. +Here's a set of fictional fully expanded examples: + + + Keep the value of that setting. + + A value between negative and positive infinity. + + + + -1001, -3.1415, -1, 2, 6.28, 2002, … + + + + + + + + + + + + + + + Performs some work. + + This takes the potential and releases it's energy. + 2nd law of thermodynamics applies. + + + + + + + + Output: 41 + + + + + Example: echo the energy of 1kg of sugar is (workworkwork 123456 "sugar rush") + + + + + + + + + + + + +For comparing established documentation and autogenerated I used this (on *nix): + while read begriff; do + zahl=$(grep -c "name=\"${begriff}\"" docs/reference.xml); + if [ $zahl -eq 0 ]; then + echo $begriff; + fi; + done < <(grep name= docs/autogenerated_base_reference.xml|sed 's/^.*name="\([^"]*\)".*$/\1/') diff --git a/source/dev_tools/packaging_guide.txt b/source/dev_tools/packaging_guide.txt index 4b3a0a5d..eeb82ac4 100644 --- a/source/dev_tools/packaging_guide.txt +++ b/source/dev_tools/packaging_guide.txt @@ -32,7 +32,7 @@ I. a clean build 3. in AC run "/loadallmapmodels" command II. fill packaging area - 1. copy Path-D:profile/config/mapmodelattributes.cfg to the Path-C:pack config directory + 1. copy Path-D:profile/config/mapmodelattributes.cfg to the Path-C:pack "config" directory Example: cp /home/user/.assaultcube/v9.9.9/config/mapmodelattributes.cfg /usr/local/src/AC/PACKAGE/pack/config/ 2. copy the binaries for the target platform to Path-C:pack 1. rename 'native_*' diff --git a/source/dev_tools/releasing_guide.txt b/source/dev_tools/releasing_guide.txt index 5083e3e7..ad7a3e42 100644 --- a/source/dev_tools/releasing_guide.txt +++ b/source/dev_tools/releasing_guide.txt @@ -11,7 +11,7 @@ See also https://github.com/assaultcube/assaultcube.github.io/blob/master/README II. AssaultCube ("AC" repository - "master" branch): -1. Transform docs/reference.xml in assaultcube.github.io repository into docs.cfg, copy it to config/ folder in AC repository. +1. Transform docs/reference.xml in assaultcube.github.io repository into docs.cfg, copy it to config/ folder in AC repository. See reference.xml source for how to transform it. 2. Make sure that config/pcksources.cfg contains only trusted package source servers, if not, update them. 3. Replace maps in packages/maps/official folder by newer dev_* maps from packages/maps/ folder. 4. Check, whether in packages/maps/official/preview/ folder there are preview .jpg files for new official maps, if missing, add them.