trackplacer: Now generates macros that allow a journey track...

...to display red only for the terminating battle or rest of each
stage.  LoW wanted this.
This commit is contained in:
Eric S. Raymond 2008-10-25 06:44:43 +00:00
parent 6c1c1bf332
commit ce66ad953c
2 changed files with 398 additions and 21 deletions

View file

@ -8,6 +8,10 @@
{NEW_BATTLE 1001 250}
#enddef
#define FLIGHT_STAGE1_END
{NEW_BATTLE 1001 250}
#enddef
#define FLIGHT_STAGE2
{OLD_BATTLE 1001 250}
{NEW_JOURNEY 977 238}
@ -20,6 +24,18 @@
{NEW_BATTLE 760 207}
#enddef
#define FLIGHT_STAGE2_END
{OLD_BATTLE 1001 250}
{OLD_JOURNEY 977 238}
{OLD_JOURNEY 958 228}
{OLD_JOURNEY 930 221}
{OLD_JOURNEY 895 216}
{OLD_JOURNEY 852 209}
{OLD_JOURNEY 812 201}
{OLD_JOURNEY 786 201}
{NEW_BATTLE 760 207}
#enddef
#define FLIGHT_STAGE3
{OLD_BATTLE 1001 250}
{OLD_JOURNEY 977 238}
@ -45,6 +61,31 @@
{NEW_BATTLE 393 258}
#enddef
#define FLIGHT_STAGE3_END
{OLD_BATTLE 1001 250}
{OLD_JOURNEY 977 238}
{OLD_JOURNEY 958 228}
{OLD_JOURNEY 930 221}
{OLD_JOURNEY 895 216}
{OLD_JOURNEY 852 209}
{OLD_JOURNEY 812 201}
{OLD_JOURNEY 786 201}
{OLD_BATTLE 760 207}
{OLD_JOURNEY 741 221}
{OLD_JOURNEY 717 228}
{OLD_JOURNEY 684 227}
{OLD_JOURNEY 663 225}
{OLD_JOURNEY 636 226}
{OLD_JOURNEY 606 241}
{OLD_JOURNEY 574 257}
{OLD_JOURNEY 541 269}
{OLD_JOURNEY 511 276}
{OLD_JOURNEY 479 270}
{OLD_JOURNEY 456 269}
{OLD_JOURNEY 424 264}
{NEW_BATTLE 393 258}
#enddef
#define FLIGHT_COMPLETE
{OLD_BATTLE 1001 250}
{OLD_JOURNEY 977 238}
@ -76,6 +117,12 @@
{NEW_BATTLE 287 245}
#enddef
#define TREASURY_STAGE1_END
{OLD_JOURNEY 375 261}
{OLD_JOURNEY 349 267}
{NEW_BATTLE 287 245}
#enddef
#define TREASURY_STAGE2
{OLD_JOURNEY 375 261}
{OLD_JOURNEY 349 267}
@ -90,6 +137,20 @@
{NEW_BATTLE 262 126}
#enddef
#define TREASURY_STAGE2_END
{OLD_JOURNEY 375 261}
{OLD_JOURNEY 349 267}
{OLD_BATTLE 287 245}
{OLD_JOURNEY 305 253}
{OLD_JOURNEY 324 265}
{OLD_JOURNEY 277 212}
{OLD_JOURNEY 274 193}
{OLD_JOURNEY 272 176}
{OLD_JOURNEY 270 159}
{OLD_JOURNEY 267 141}
{NEW_BATTLE 262 126}
#enddef
#define TREASURY_STAGE3
{OLD_JOURNEY 375 261}
{OLD_JOURNEY 349 267}
@ -111,6 +172,27 @@
{NEW_BATTLE 370 176}
#enddef
#define TREASURY_STAGE3_END
{OLD_JOURNEY 375 261}
{OLD_JOURNEY 349 267}
{OLD_BATTLE 287 245}
{OLD_JOURNEY 305 253}
{OLD_JOURNEY 324 265}
{OLD_JOURNEY 277 212}
{OLD_JOURNEY 274 193}
{OLD_JOURNEY 272 176}
{OLD_JOURNEY 270 159}
{OLD_JOURNEY 267 141}
{OLD_BATTLE 262 126}
{OLD_JOURNEY 282 128}
{OLD_JOURNEY 297 134}
{OLD_JOURNEY 315 144}
{OLD_JOURNEY 330 153}
{OLD_JOURNEY 345 161}
{OLD_JOURNEY 356 167}
{NEW_BATTLE 370 176}
#enddef
#define TREASURY_STAGE4
{OLD_JOURNEY 375 261}
{OLD_JOURNEY 349 267}
@ -137,6 +219,32 @@
{NEW_BATTLE 352 242}
#enddef
#define TREASURY_STAGE4_END
{OLD_JOURNEY 375 261}
{OLD_JOURNEY 349 267}
{OLD_BATTLE 287 245}
{OLD_JOURNEY 305 253}
{OLD_JOURNEY 324 265}
{OLD_JOURNEY 277 212}
{OLD_JOURNEY 274 193}
{OLD_JOURNEY 272 176}
{OLD_JOURNEY 270 159}
{OLD_JOURNEY 267 141}
{OLD_BATTLE 262 126}
{OLD_JOURNEY 282 128}
{OLD_JOURNEY 297 134}
{OLD_JOURNEY 315 144}
{OLD_JOURNEY 330 153}
{OLD_JOURNEY 345 161}
{OLD_JOURNEY 356 167}
{OLD_BATTLE 370 176}
{OLD_JOURNEY 375 181}
{OLD_JOURNEY 368 193}
{OLD_JOURNEY 365 210}
{OLD_JOURNEY 360 226}
{NEW_BATTLE 352 242}
#enddef
#define TREASURY_COMPLETE
{OLD_JOURNEY 375 261}
{OLD_JOURNEY 349 267}
@ -179,6 +287,22 @@
{NEW_BATTLE 567 130}
#enddef
#define BOOK_STAGE1_END
{OLD_JOURNEY 378 235}
{OLD_JOURNEY 394 227}
{OLD_JOURNEY 414 223}
{OLD_JOURNEY 433 214}
{OLD_JOURNEY 455 199}
{OLD_JOURNEY 475 188}
{OLD_JOURNEY 493 183}
{OLD_JOURNEY 505 175}
{OLD_JOURNEY 514 165}
{OLD_JOURNEY 524 153}
{OLD_JOURNEY 536 143}
{OLD_JOURNEY 554 136}
{NEW_BATTLE 567 130}
#enddef
#define BOOK_STAGE2
{OLD_JOURNEY 378 235}
{OLD_JOURNEY 394 227}
@ -198,6 +322,25 @@
{NEW_BATTLE 577 84}
#enddef
#define BOOK_STAGE2_END
{OLD_JOURNEY 378 235}
{OLD_JOURNEY 394 227}
{OLD_JOURNEY 414 223}
{OLD_JOURNEY 433 214}
{OLD_JOURNEY 455 199}
{OLD_JOURNEY 475 188}
{OLD_JOURNEY 493 183}
{OLD_JOURNEY 505 175}
{OLD_JOURNEY 514 165}
{OLD_JOURNEY 524 153}
{OLD_JOURNEY 536 143}
{OLD_JOURNEY 554 136}
{OLD_BATTLE 567 130}
{OLD_JOURNEY 572 111}
{OLD_JOURNEY 575 98}
{NEW_BATTLE 577 84}
#enddef
#define BOOK_STAGE3
{OLD_JOURNEY 378 235}
{OLD_JOURNEY 394 227}
@ -219,6 +362,27 @@
{NEW_BATTLE 592 21}
#enddef
#define BOOK_STAGE3_END
{OLD_JOURNEY 378 235}
{OLD_JOURNEY 394 227}
{OLD_JOURNEY 414 223}
{OLD_JOURNEY 433 214}
{OLD_JOURNEY 455 199}
{OLD_JOURNEY 475 188}
{OLD_JOURNEY 493 183}
{OLD_JOURNEY 505 175}
{OLD_JOURNEY 514 165}
{OLD_JOURNEY 524 153}
{OLD_JOURNEY 536 143}
{OLD_JOURNEY 554 136}
{OLD_BATTLE 567 130}
{OLD_JOURNEY 572 111}
{OLD_JOURNEY 575 98}
{OLD_BATTLE 577 84}
{OLD_JOURNEY 580 42}
{NEW_BATTLE 592 21}
#enddef
#define BOOK_COMPLETE
{OLD_JOURNEY 378 235}
{OLD_JOURNEY 394 227}
@ -250,7 +414,7 @@
{NEW_JOURNEY 447 292}
{NEW_JOURNEY 462 300}
{NEW_JOURNEY 472 320}
{NEW_JOURNEY 476 343}
{NEW_JOURNEY 477 340}
{NEW_JOURNEY 482 357}
{NEW_JOURNEY 491 369}
{NEW_JOURNEY 507 377}
@ -260,6 +424,26 @@
{NEW_BATTLE 508 436}
#enddef
#define ALLIANCE_STAGE1_END
{OLD_JOURNEY 356 252}
{OLD_JOURNEY 365 262}
{OLD_JOURNEY 378 276}
{OLD_JOURNEY 395 287}
{OLD_JOURNEY 414 291}
{OLD_JOURNEY 430 292}
{OLD_JOURNEY 447 292}
{OLD_JOURNEY 462 300}
{OLD_JOURNEY 472 320}
{OLD_JOURNEY 477 340}
{OLD_JOURNEY 482 357}
{OLD_JOURNEY 491 369}
{OLD_JOURNEY 507 377}
{OLD_JOURNEY 521 390}
{OLD_JOURNEY 511 403}
{OLD_JOURNEY 506 418}
{NEW_BATTLE 508 436}
#enddef
#define ALLIANCE_STAGE2
{OLD_JOURNEY 356 252}
{OLD_JOURNEY 365 262}
@ -270,7 +454,7 @@
{OLD_JOURNEY 447 292}
{OLD_JOURNEY 462 300}
{OLD_JOURNEY 472 320}
{OLD_JOURNEY 476 343}
{OLD_JOURNEY 477 340}
{OLD_JOURNEY 482 357}
{OLD_JOURNEY 491 369}
{OLD_JOURNEY 507 377}
@ -303,6 +487,49 @@
{NEW_BATTLE 848 303}
#enddef
#define ALLIANCE_STAGE2_END
{OLD_JOURNEY 356 252}
{OLD_JOURNEY 365 262}
{OLD_JOURNEY 378 276}
{OLD_JOURNEY 395 287}
{OLD_JOURNEY 414 291}
{OLD_JOURNEY 430 292}
{OLD_JOURNEY 447 292}
{OLD_JOURNEY 462 300}
{OLD_JOURNEY 472 320}
{OLD_JOURNEY 477 340}
{OLD_JOURNEY 482 357}
{OLD_JOURNEY 491 369}
{OLD_JOURNEY 507 377}
{OLD_JOURNEY 521 390}
{OLD_JOURNEY 511 403}
{OLD_JOURNEY 506 418}
{OLD_BATTLE 508 436}
{OLD_JOURNEY 524 446}
{OLD_JOURNEY 541 446}
{OLD_JOURNEY 559 443}
{OLD_JOURNEY 572 440}
{OLD_JOURNEY 588 434}
{OLD_JOURNEY 604 430}
{OLD_JOURNEY 619 428}
{OLD_JOURNEY 637 427}
{OLD_JOURNEY 651 417}
{OLD_JOURNEY 658 404}
{OLD_JOURNEY 673 398}
{OLD_JOURNEY 689 395}
{OLD_JOURNEY 705 389}
{OLD_JOURNEY 719 384}
{OLD_JOURNEY 737 376}
{OLD_JOURNEY 753 370}
{OLD_JOURNEY 765 362}
{OLD_JOURNEY 780 351}
{OLD_JOURNEY 797 339}
{OLD_JOURNEY 811 330}
{OLD_JOURNEY 824 321}
{OLD_JOURNEY 836 311}
{NEW_BATTLE 848 303}
#enddef
#define ALLIANCE_STAGE3
{OLD_JOURNEY 356 252}
{OLD_JOURNEY 365 262}
@ -313,7 +540,7 @@
{OLD_JOURNEY 447 292}
{OLD_JOURNEY 462 300}
{OLD_JOURNEY 472 320}
{OLD_JOURNEY 476 343}
{OLD_JOURNEY 477 340}
{OLD_JOURNEY 482 357}
{OLD_JOURNEY 491 369}
{OLD_JOURNEY 507 377}
@ -353,6 +580,56 @@
{NEW_BATTLE 926 177}
#enddef
#define ALLIANCE_STAGE3_END
{OLD_JOURNEY 356 252}
{OLD_JOURNEY 365 262}
{OLD_JOURNEY 378 276}
{OLD_JOURNEY 395 287}
{OLD_JOURNEY 414 291}
{OLD_JOURNEY 430 292}
{OLD_JOURNEY 447 292}
{OLD_JOURNEY 462 300}
{OLD_JOURNEY 472 320}
{OLD_JOURNEY 477 340}
{OLD_JOURNEY 482 357}
{OLD_JOURNEY 491 369}
{OLD_JOURNEY 507 377}
{OLD_JOURNEY 521 390}
{OLD_JOURNEY 511 403}
{OLD_JOURNEY 506 418}
{OLD_BATTLE 508 436}
{OLD_JOURNEY 524 446}
{OLD_JOURNEY 541 446}
{OLD_JOURNEY 559 443}
{OLD_JOURNEY 572 440}
{OLD_JOURNEY 588 434}
{OLD_JOURNEY 604 430}
{OLD_JOURNEY 619 428}
{OLD_JOURNEY 637 427}
{OLD_JOURNEY 651 417}
{OLD_JOURNEY 658 404}
{OLD_JOURNEY 673 398}
{OLD_JOURNEY 689 395}
{OLD_JOURNEY 705 389}
{OLD_JOURNEY 719 384}
{OLD_JOURNEY 737 376}
{OLD_JOURNEY 753 370}
{OLD_JOURNEY 765 362}
{OLD_JOURNEY 780 351}
{OLD_JOURNEY 797 339}
{OLD_JOURNEY 811 330}
{OLD_JOURNEY 824 321}
{OLD_JOURNEY 836 311}
{OLD_BATTLE 848 303}
{OLD_JOURNEY 857 286}
{OLD_JOURNEY 868 265}
{OLD_JOURNEY 874 244}
{OLD_JOURNEY 878 208}
{OLD_JOURNEY 895 199}
{OLD_JOURNEY 876 227}
{NEW_BATTLE 926 177}
#enddef
#define ALLIANCE_STAGE4
{OLD_JOURNEY 356 252}
{OLD_JOURNEY 365 262}
@ -363,7 +640,58 @@
{OLD_JOURNEY 447 292}
{OLD_JOURNEY 462 300}
{OLD_JOURNEY 472 320}
{OLD_JOURNEY 476 343}
{OLD_JOURNEY 477 340}
{OLD_JOURNEY 482 357}
{OLD_JOURNEY 491 369}
{OLD_JOURNEY 507 377}
{OLD_JOURNEY 521 390}
{OLD_JOURNEY 511 403}
{OLD_JOURNEY 506 418}
{OLD_BATTLE 508 436}
{OLD_JOURNEY 524 446}
{OLD_JOURNEY 541 446}
{OLD_JOURNEY 559 443}
{OLD_JOURNEY 572 440}
{OLD_JOURNEY 588 434}
{OLD_JOURNEY 604 430}
{OLD_JOURNEY 619 428}
{OLD_JOURNEY 637 427}
{OLD_JOURNEY 651 417}
{OLD_JOURNEY 658 404}
{OLD_JOURNEY 673 398}
{OLD_JOURNEY 689 395}
{OLD_JOURNEY 705 389}
{OLD_JOURNEY 719 384}
{OLD_JOURNEY 737 376}
{OLD_JOURNEY 753 370}
{OLD_JOURNEY 765 362}
{OLD_JOURNEY 780 351}
{OLD_JOURNEY 797 339}
{OLD_JOURNEY 811 330}
{OLD_JOURNEY 824 321}
{OLD_JOURNEY 836 311}
{OLD_BATTLE 848 303}
{OLD_JOURNEY 857 286}
{OLD_JOURNEY 868 265}
{OLD_JOURNEY 874 244}
{OLD_JOURNEY 878 208}
{OLD_JOURNEY 895 199}
{OLD_JOURNEY 876 227}
{OLD_BATTLE 926 177}
{NEW_JOURNEY 909 188}
#enddef
#define ALLIANCE_STAGE4_END
{OLD_JOURNEY 356 252}
{OLD_JOURNEY 365 262}
{OLD_JOURNEY 378 276}
{OLD_JOURNEY 395 287}
{OLD_JOURNEY 414 291}
{OLD_JOURNEY 430 292}
{OLD_JOURNEY 447 292}
{OLD_JOURNEY 462 300}
{OLD_JOURNEY 472 320}
{OLD_JOURNEY 477 340}
{OLD_JOURNEY 482 357}
{OLD_JOURNEY 491 369}
{OLD_JOURNEY 507 377}
@ -414,7 +742,7 @@
{OLD_JOURNEY 447 292}
{OLD_JOURNEY 462 300}
{OLD_JOURNEY 472 320}
{OLD_JOURNEY 476 343}
{OLD_JOURNEY 477 340}
{OLD_JOURNEY 482 357}
{OLD_JOURNEY 491 369}
{OLD_JOURNEY 507 377}
@ -469,6 +797,20 @@
{NEW_BATTLE 262 128}
#enddef
#define SAURIANS_STAGE1_END
{OLD_JOURNEY 910 206}
{OLD_JOURNEY 836 223}
{OLD_JOURNEY 775 234}
{OLD_JOURNEY 702 242}
{OLD_JOURNEY 633 246}
{OLD_JOURNEY 555 249}
{OLD_JOURNEY 478 245}
{OLD_JOURNEY 403 233}
{OLD_JOURNEY 330 210}
{OLD_JOURNEY 275 178}
{NEW_BATTLE 262 128}
#enddef
#define SAURIANS_STAGE2
{OLD_JOURNEY 910 206}
{OLD_JOURNEY 836 223}
@ -491,6 +833,28 @@
{NEW_BATTLE 318 276}
#enddef
#define SAURIANS_STAGE2_END
{OLD_JOURNEY 910 206}
{OLD_JOURNEY 836 223}
{OLD_JOURNEY 775 234}
{OLD_JOURNEY 702 242}
{OLD_JOURNEY 633 246}
{OLD_JOURNEY 555 249}
{OLD_JOURNEY 478 245}
{OLD_JOURNEY 403 233}
{OLD_JOURNEY 330 210}
{OLD_JOURNEY 275 178}
{OLD_BATTLE 262 128}
{OLD_JOURNEY 254 144}
{OLD_JOURNEY 251 163}
{OLD_JOURNEY 251 184}
{OLD_JOURNEY 256 205}
{OLD_JOURNEY 262 225}
{OLD_JOURNEY 276 245}
{OLD_JOURNEY 294 261}
{NEW_BATTLE 318 276}
#enddef
#define SAURIANS_COMPLETE
{OLD_JOURNEY 910 206}
{OLD_JOURNEY 836 223}
@ -517,18 +881,33 @@
{NEW_BATTLE 970 249}
#enddef
#define CIVILWAR_STAGE1_END
{NEW_BATTLE 970 249}
#enddef
#define CIVILWAR_STAGE2
{OLD_BATTLE 970 249}
{NEW_BATTLE 932 161}
#enddef
#define CIVILWAR_STAGE2_END
{OLD_BATTLE 970 249}
{NEW_BATTLE 932 161}
#enddef
#define CIVILWAR_STAGE3
{OLD_BATTLE 970 249}
{OLD_BATTLE 932 161}
{NEW_BATTLE 926 177}
#enddef
#define UNSORTED_COMPLETE
#define CIVILWAR_STAGE3_END
{OLD_BATTLE 970 249}
{OLD_BATTLE 932 161}
{NEW_BATTLE 926 177}
#enddef
#define CIVILWAR_COMPLETE
{OLD_BATTLE 970 249}
{OLD_BATTLE 932 161}
{OLD_BATTLE 926 177}
@ -561,28 +940,24 @@
#define TO_ELVISH_TREASURY_BATTLE
background=legend-of-wesmere-map.png
# FIXME: we really want just the final battle marker here
{FLIGHT_COMPLETE}
{TREASURY_STAGE1}
{TREASURY_STAGE1_END}
#enddef
#define TO_SAURIAN_TREASURY
background=legend-of-wesmere-map.png
# FIXME: we really want just the final battle marker here
{FLIGHT_COMPLETE}
{TREASURY_STAGE2}
#enddef
#define TO_SAURIAN_TREASURY_BATTLE
background=legend-of-wesmere-map.png
# FIXME: we really want just the final battle marker here
{FLIGHT_COMPLETE}
{TREASURY_STAGE2}
{TREASURY_STAGE2_END}
#enddef
#define TO_ACQUAINTANCE_IN_NEED
background=legend-of-wesmere-map.png
# FIXME: we really want just the final battle marker here
{FLIGHT_COMPLETE}
{TREASURY_STAGE3}
#enddef
@ -622,15 +997,13 @@
#define TO_BATTLE_OF_THE_BOOK_BATTLE
background=legend-of-wesmere-map.png
# FIXME: we really want just the final battle marker here
{FLIGHT_COMPLETE}
{TREASURY_COMPLETE}
{BOOK_STAGE3}
{BOOK_STAGE3_END}
#enddef
#define TO_HUMAN_ALLIANCE
background=legend-of-wesmere-map.png
# FIXME: we really want just the final battle marker here
#{FLIGHT_COMPLETE}
{TREASURY_COMPLETE}
{BOOK_COMPLETE}
@ -642,7 +1015,7 @@
#{FLIGHT_COMPLETE}
{TREASURY_COMPLETE}
{BOOK_COMPLETE}
{ALLIANCE_STAGE1}
{ALLIANCE_STAGE1_END}
#enddef
#define TO_THE_CHIEF_MUST_DIE
@ -671,13 +1044,12 @@
#enddef
#define TO_COSTLY_REVENGE_BATTLE
# FIXME: we really want just the final battle marker here
background=legend-of-wesmere-map.png
#{FLIGHT_COMPLETE}
#{TREASURY_COMPLETE}
#{BOOK_COMPLETE}
{ALLIANCE_COMPLETE}
{SAURIANS_STAGE1}
{SAURIANS_STAGE1_END}
#enddef
#define TO_COUNCIL_RULING
@ -695,9 +1067,8 @@
#enddef
#define TO_ELVISH_ASSASSINS_BATTLE
# FIXME: we really want just the final battle marker here
background=legend-of-wesmere-map.png
{CIVILWAR_STAGE1}
{CIVILWAR_STAGE1_END}
#enddef
#define TO_NORTHERN_BATTLE

View file

@ -182,7 +182,13 @@ class JourneyTracks:
fp.write(marker)
fp.write("#enddef\n\n")
fp.write("#define %s_END\n" % stagename)
fp.write(marker)
for j in range(0, e+1):
age="OLD"
if j == endpoints[i]:
age = "NEW"
waypoint = (age,) + tuple(track[j])
marker = " {%s_%s %d %d}\n" % waypoint
fp.write(marker)
fp.write("#enddef\n\n")
fp.write("#define %s_COMPLETE\n" % name)
for j in range(len(track)):