Debian Codegraph @

texmf-dist/doc/latex/wargame/README.md

raw symbols SCIP
1 # A package to make Hex'n'Counter wargames in LaTeX
2
3 ## Version 0.8
4
5 This package can help make classic [Hex'n'Counter
6 wargames](https://en.wikipedia.org/wiki/Wargame) using LaTeX. The
7 package provide tools for generating
8
9 - Hex maps and boards
10 - Counters (called *chits* since TeX have already taken *counters*)
11 for units, markers, and so on
12 - Counter sheets
13 - Order of Battle charts
14 - Illustrations in the rules using the defined maps and counters
15
16 The result will often be a PDF (or set of PDFs) that contain everything
17 one will need for a game (rules, charts, boards, counter sheets).
18
19 - The package uses [NATO App6](#nato-app6 "Section below") symbology
20 for units.
21 - The package uses [TikZ](https://github.com/pgf-tikz/pgf) for most
22 things.
23 - The package support exporting the game to a
24 [VASSAL](#vassal-support%20'Section%20below') module
25
26 ## Sources
27
28 The sources of the package are kept at
29 [GitLab](https://gitlab.com/wargames_tex/wargame_tex)
30
31 ## Downloads available at GitLab
32
33 - [Zip file of package and support
34 files](https://gitlab.com/wargames_tex/wargame_tex/-/jobs/artifacts/master/download?job=dist)
35 - [Browse content of
36 package](https://gitlab.com/wargames_tex/wargame_tex/-/jobs/artifacts/master/browse?job=dist)
37 - [Documentation](https://gitlab.com/wargames_tex/wargame_tex/-/jobs/artifacts/master/file/doc/latex/wargame/wargame.pdf?job=dist)
38 - [Tutorial](https://gitlab.com/wargames_tex/wargame_tex/-/jobs/artifacts/master/file/doc/latex/wargame/tutorial.pdf?job=dist)
39 (and associated VASSAL
40 [module](https://gitlab.com/wargames_tex/wargame_tex/-/jobs/artifacts/master/file/doc/latex/wargame/Game.vmod?job=dist))
41 - [Table of
42 symbols](https://gitlab.com/wargames_tex/wargame_tex/-/jobs/artifacts/master/file/doc/latex/wargame/symbols.pdf?job=dist)
43 - [Compatibility](https://gitlab.com/wargames_tex/wargame_tex/-/jobs/artifacts/master/file/doc/latex/wargame/compat.pdf?job=dist)
44
45 ## Installation
46
47 The instructions below are geared towards Un\*x-like systems, for
48 example GNU/Linux and MacOSX. For more information on setting the
49 prerequisites and this package on various platforms, please see [this
50 page](https://wargames_tex.gitlab.io/wargame_www/build.html).
51
52 ### From ZIP file
53
54 To install, get the ([zip
55 file](https://gitlab.com/wargames_tex/wargame_tex/-/jobs/artifacts/master/download?job=dist))
56 and unzip into your TeX tree, for example
57
58 mkdir -p ~/texmf
59 (cd ~/texmf && unzip ../wargame_tex.zip)
60
61 ### From git clone
62
63 If you clone from GitLab
64
65 git clone https://gitlab.com/wargames_tex/wargame_tex.git
66
67 to get the sources, then you can do,
68
69 cd wargame
70 make install
71
72 to install in `~/texmf`. If you prefer another destination, say
73 `/usr/local/share/texmf`, do
74
75 make install DESTDIR=/usr/local/share/texmf
76
77 ## Download from CTAN
78
79 The package is available from
80 [CTAN](https://ctan.org/tex-archive/macros/latex/contrib/wargame) in the
81 directory `/macros/latex/contrib/wargame`. The package is part of the
82 CTAN distribution [TeXLive](https://tug.org/texlive/index.html).
83
84 ### From TDS zip archive
85
86 You can get the *TDS* [zip
87 file](https://mirrors.ctan.org/install/macros/latex/contrib/wargame.tds.zip)
88 and unpack that into your desired destination, e.g., `~/texmf`
89
90 unzip wargame.tds.zip -d ~/texmf
91
92 or
93
94 sudo unzip wargame.tds.zip -d /usr/local/share/texmf
95
96 ### From sources
97
98 If you get the source (`wargame.ins`, all `.dtx`,`.py`, and `Makefile`)
99 files, then do
100
101 make install
102
103 to install into `~/texmf`. If you prefer to install somewhere else, say
104 `/usr/local/share/texmf`, then do
105
106 make install DESTDIR=/usr/local/share/texmf
107
108 If you do not have `make` (or `gmake` on MacOSX), or because you are on
109 some system which does not have that tool (e.g., Windows), then do (the
110 equivalent of)
111
112 latex wargame.ins
113 pdflatex wargame.beach
114 pdflatex wargame.city
115 pdflatex wargame.light_woods
116 pdflatex wargame.mountains
117 pdflatex wargame.rough
118 pdflatex wargame.swamp
119 pdflatex wargame.town
120 pdflatex wargame.village
121 pdflatex wargame.woods
122
123 (You need to use `pdflatex`, `xelatex`, or `lualatex` - plain `latex`
124 with DVI output will not work)
125
126 Then copy the relevant files to your TeX tree (e.g., `~/texmf/`) as
127
128 mkdir ~/texmf/tex/latex/wargame
129 cp tikzlibrary*.tex ~/texmf/tex/latex/wargame/
130 cp wargame.sty ~/texmf/tex/latex/wargame/
131 cp wgexport.cls ~/texmf/tex/latex/wargame/
132 cp wargame.*.pdf ~/texmf/tex/latex/wargame/
133 cp wgexport.py ~/texmf/tex/latex/wargame/
134 cp wgsvg2tikz.py ~/texmf/tex/latex/wargame/
135
136 To generate the documentation, after having done the above, do
137
138 pdflatex wargame.dtx
139 makeindex -s gind -o wargame.ind wargame.idx
140 pdflatex wargame.dtx
141 pdflatex wargame.dtx
142 pdflatex symbols.tex
143 pdflatex compat.tex
144 pdflatex compat.tex
145
146 (You need to use `pdflatex`, `xelatex`, or `lualatex` - plain `latex`
147 with DVI output will not work)
148
149 You can install these into your TeX tree with (e.g., `~/texmf/`)
150
151 mkdir -p ~/texmf/doc/latex/wargame/
152 cp wargame.pdf ~/texmf/doc/latex/wargame/
153 cp symbols.pdf ~/texmf/doc/latex/wargame/
154 cp compat.pdf ~/texmf/doc/latex/wargame/
155
156 If you want to generate the tutorial document, do
157
158 cd tutorial
159 make
160
161 or
162
163 cd tutorial
164 pdflatex game
165 pdflatex game
166
167 If you also want to make the tutorial VASSAL module, do (also in
168 `tutorial`), do
169
170 pdflatex export.tex
171 ../wgexport.py export.pdf export.json -o Game.vmod \
172 -d "Example module from LaTeX PnP game" \
173 -t "LaTeX wargame tutorial" -v 0.1 \
174 -p patch.py
175
176
177 Note, you need `pdfinfo` and `pdftocairo` from Poppler, and Python with
178 the module `PIL` for this. On Debian-based systems, do
179
180 sudo apt install poppler-utils python3-pil
181
182 ## Tutorial
183
184 See the [tutorial](tutorial/README.md "Link works on GitLab only") page
185 for more
186 ([here](https://ctan.org/tex-archive/macros/latex/contrib/wargame/doc/tutorial/)
187 if you browse from CTAN).
188
189 Another simple example to get you started is the game
190 [Tannenberg4](https://gitlab.com/wargames_tex/advancedguard_tex) also
191 available from GitLab.
192
193 ## Examples
194
195 Below are some print'n'play board wargames made with this package. See
196 also [LaTeX Wargames](https://wargames_tex.gitlab.io/wargame_www/) for
197 more. These are not original games but rather revamps of existing games.
198 All credits goes to the original authors of these games.
199
200 - American Civil War
201 - [Smithsonian
202 Gettysberg](https://gitlab.com/wargames_tex/sgb_tex) (Avalon
203 Hill)
204 - WWI
205 - [Tannenberg4](https://gitlab.com/wargames_tex/advancedguard_tex)
206 - WWII
207 - Eastern Front
208 - [Battle for Moscow](https://gitlab.com/wargames_tex/bfm_tex)
209 (classic introductory game)
210 - Western Front
211 - [D-Day](https://gitlab.com/wargames_tex/dday_tex) (Avalon
212 Hill classic)
213 - [Smithsonian
214 D-Day](https://gitlab.com/wargames_tex/sdday_tex) (Avalon
215 Hill)
216 - [Smithsonian Battle of the
217 Bulge](https://gitlab.com/wargames_tex/sbotb_tex) (Avalon
218 Hill)
219 - [The Drive on Metz](https://gitlab.com/wargames_tex/dom_tex)
220 (from *The Complete Wargames Handbook*)
221 - Pacific theatre
222 - [First
223 Blood](https://gitlab.com/wargames_tex/firstblood_tex)
224 (Avalon Hill International Kriegspiel Association classic)
225 - Africa
226 - [Afrika
227 Korps](https://gitlab.com/wargames_tex/afrikakorps_tex)
228 (Avalon Hill classic)
229 - Modern/Speculative
230 - [Strike Force One](https://gitlab.com/wargames_tex/sfo_tex)
231 - [Kriegspiel](https://gitlab.com/wargames_tex/kriegspiel_tex)
232 (Avalon Hill classic)
233 - [Port Stanley](https://gitlab.com/wargames_tex/portstanley_tex)
234 (from the *Wargamer* magazine)
235 - Abstract
236 - [Battle](https://gitlab.com/wargames_tex/battle_tex)
237
238 ## VASSAL support
239
240 The packages has the script [`wgexport.py`](utils/wgexport.py) to
241 generate a draft [VASSAL](https://vassalengine.org) module from the
242 defined charts, boards, counters, OOBs, and so on. More about this is
243 given in the documentation.
244
245 The script will generate a first draft of a module, which then can be
246 edited in the VASSAL editor for the final thing.
247
248 Alternatively, one can provide a Python script to do more on the
249 generated module, such as defining starting positions, fixing grid
250 layouts, and so on. Using such a patch script, one can get an (almost)
251 final module. This means, that even if one makes changes to the original
252 content, it is easy to remake the module without much need for the
253 VASSAL editor.
254
255 An example of this is given in the [Battle for
256 Moscow](https://gitlab.com/wargames_tex/bfm_tex) project, and of course
257 in the [tutorial](tutorial/ "Link works on GitLab only")
258
259 The sources of this script is kept in a different project
260 [`pywargame`](https://gitlab.com/wargames_tex/pywargame) also on GitLab.
261 The script is generated in that package. The `pywargame` package allows
262 one to manipulate VASSAL modules from Python, or to read (and convert)
263 [CyberBoard](http://cyberboard.norsesoft.com/)
264 ([GitHub](https://github.com/CyberBoardPBEM/cbwindows)) scenarios.
265
266 ## NATO App6
267
268 The package supports
269
270 - All air, equipment, installation, land, sea surface, sub surface,
271 and space command symbols, including amplifiers and modifiers
272 - All friendly, hostile, neutral, and unknown faction frame. Undecided
273 faction frames can be made by specifying `dashed` line styles.
274 - Some, but very few, other kinds of symbology.
275
276 Here are some references for more information on the NATO App6 symbology
277 standard.
278
279 - The [Wikipedia
280 page](https://en.wikipedia.org/wiki/NATO_Joint_Military_Symbology)
281 on NATO Joint Military Symbology
282 - The [NATO
283 page](https://nso.nato.int/nso/nsdd/main/standards/ap-details/1912/EN).
284 If this does not work for you, then try to go to the [standards
285 page](https://nso.nato.int/nso/nsdd/main/standards) and put in and
286 write in `SYMBOLOGY` in the *Document Title Contains Words* field
287 and press *Start*.
288 - Other LaTeX package for making NATO symbology
289 [XMilSymb](https://github.com/ralphieraccoon/MilSymb)
290
291 ## Copyright and license
292
293 (c) 2022 Christian Holm Christensen
294
295 This work is licensed under the Creative Commons Attribution-ShareAlike
296 4.0 International License (CC-BY-SA-4.0). To view a copy of this
297 license, visit [CC](http://creativecommons.org/licenses/by-sa/4.0/) or
298 send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042,
299 USA.
300
301 ### Some comments on copyright
302
303 *Caveat*: I am not a lawyer.
304
305 Note that this license applies to the `wargame` package as such. What
306 you generate using the package is *not* required to be licensed
307 according to the *ShareAlike* clause of CC-BY-SA-4.0. That is, you can
308 license your materials *any way you want*.
309
310 However, copyright rights on games is not as prohibitive as you may
311 think (see [this thread on
312 BGG](https://boardgamegeek.com/thread/493249/)). What you *can*
313 copyright is original, artistic expression. That is, the copyrighted
314 work must not be a copy of something else (originality) and must be some
315 form of expression. One *cannot* copyright ideas, only their expression
316 in so far as it is *artistic* (i.e., not a trivial expression that
317 anyone knowledgeable within the field can do with rudimentary effort).
318
319 This means you *can not* copyright your game mechanics, for example,
320 only how you described them. You *can not* copyright a title (but you
321 may be able to claim trademark on it). You *can* copyright the wording
322 of the rules, the graphics that you use, and so on.
323
324 This also means, that you are essentially free to make your own version
325 of previously published game, *as long as*
326
327 - you do not copy existing text,
328 - you do not copy existing graphics, and
329 - you respect any kind of trademark claims
330
331 However, it is advisable to contact the copyright holders of the
332 previously published game to avoid
333 [SNAFU](https://en.wikipedia.org/wiki/SNAFU). If in doubt, seek
334 professional help.