Thursday 7 October 2010

PGF conversion tutorial

Tools:

FPGE v0.6.0
Notepad++, Notepad 
UnixTools - Optional, used to help find problems
GIMP - Optional, fixing icon problems
Graphviz - Optional, drawing campaign tree


Steps:
1. Save equipment file
2. Save units bmp
3. Save flags bmp
4. FPGE -E ALL - check for units errors : FPGE -E ALL | grep "Not found\#"
4.1. Correct original units
4.2. Correct equipment file
4.3 Delete pgscn files, start over with . When satisfied move to 5.
5. Move created files to new dir in PGF directory:
5.1 bmp to Graphics dir
5.2 *.pgscn, MAPNAMES.STR to Scenario dir
6. Fix map : FPGE -Frtnh ALL
7. Check if each map got victory points set - at least one on each side
7.1 Correct if needed : FPGE ## -> Victory mode
8. Correct maps:
8.1 Check for map errors like: wrong roads, rivers, lack of coastal tiles
8.2 Randomize needed map elements like swamps, forests, etc. Can be done by : FPGE -Rocdefbs ALL Sometimes forest randomization is not needed.
8.3 Randomize rivers or roads - this works different then 8.2 randomization. Can be done : FPGE -Rri ALL
8.4 Manually add mountains using predefined mountains when needed
8.5 Once again fix maps since randomization of roads or map corrections can broke down map:  FPGE -Frtnh ALL
9. Fix units on maps. Check FPGE -U ALL | grep "ID\|#" Possible errors are:
9.1 Flag of unit not set or set not properly - use FPGE flag mode with ALT
9.2 Ground units on sea without sea transport - use FPGE transport mode
9.3 Paradrop units on without air transport - use FPGE transport mode
10. Copy default campaign file
10.1 Make campaign path while converting from AG : awk..
10.2 Set victory conditions, read campaign manual or guess
11. Convert briefings
12. Option: check icons vs countries: FPGE -Xau 01
13. Option Ag: draw campaign tree while converting from AG:

head -n 40  SCENARIO.TDB | awk -F \. 'BEGIN{print"digraph G { node [shape=box]"} END{print"}" }{ if (NF > 4 ) {print "\""$2"\" -> \"" $4"\" [color=\"#0000ff\"]"; print "\""$2 "\" -> \""$5"\" [color=\"#00ff00\"]"; print "\""$2"\" -> \""$6"\" [color=\"#ff0000\"]"} }'> alg.gv
dot -Tpng alg.gv > alg.png

No comments:

Post a Comment