Vetrogor

Choosing troops for deployment.

Nov 8th, 2021
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. +--------------------------------+
  2. | Choosing troops before battle. |
  3. +--------------------------------+
  4.  
  5. This is submod for Prophecy of Pendor v3.9.5 ported from PreBattle and Deployment mod.
  6. The code below is for clean PoP without tweaks. The instructions have adaptation tips: calculation of new variables.
  7. It should be easy except the other versions of Pendor. You better use WSE to run this submod.
  8. Without WSE some troops experience may be lost after deployment.
  9.  
  10. You can create a link for WSE v4.8 with command line parameters:
  11. "C:\Games\Mount&Blade Warband\Modules\Prophesy of Pendor V3.9.5\WSE\WSELoader.exe" -p "..\..\..\mb_warband.exe" -m "Prophesy of Pendor V3.9.5"
  12.  
  13. Installation:
  14.  
  15. 1) Open file 'scripts.txt'.
  16.  
  17. 2) Calculate: <new_script_id> = <top_counter> + 936748722493063168
  18.  
  19. 3) Replace 936748722493063922 with <new_scripts_id> in this file.
  20.  
  21. 4) Increase scripts' top counter by 5.
  22.  
  23. 5) Append 5 scripts at the bottom of the file:
  24.  
  25. party_stack_get_xp -1
  26. 13 23 2 1224979098644774912 1 23 2 1224979098644774913 2 1652 3 1224979098644774914 1224979098644774912 1224979098644774913 4 0 2147485155 1 1224979098644774914 3901 3 1224979098644774915 1224979098644774912 1224979098644774913 1 2 936748722493063190 1224979098644774914 2107 2 72057594037927936 1224979098644774915 3900 3 1224979098644774916 1224979098644774912 1224979098644774913 2105 2 72057594037927936 1224979098644774916 5 0 2133 2 72057594037927936 0 3 0
  27. party_get_members_stack_no -1
  28. 10 23 2 1224979098644774912 1 23 2 1224979098644774913 2 2133 2 72057594037927936 -1 1650 2 1224979098644774914 1224979098644774912 6 3 1224979098644774915 0 1224979098644774914 1652 3 1224979098644774916 1224979098644774912 1224979098644774915 31 2 1224979098644774916 1224979098644774913 2133 2 72057594037927936 1224979098644774915 2133 2 1224979098644774914 0 3 0
  29. party_restore_members_xp -1
  30. 13 23 2 1224979098644774912 1 23 2 1224979098644774913 2 23 2 1224979098644774914 3 2120 3 1224979098644774915 936748722493063922 1 4 0 1 3 1224979098644774915 1224979098644774912 1224979098644774913 2133 2 1224979098644774916 72057594037927936 2147483679 2 1224979098644774916 -1 1 3 936748722493063922 1224979098644774912 1224979098644774916 2147483678 2 72057594037927936 1224979098644774914 2121 3 1224979098644774917 1224979098644774914 72057594037927936 1670 3 1224979098644774912 1224979098644774916 1224979098644774917 3 0
  31. move_one_stack_to_the_bottom -1
  32. 22 23 2 1224979098644774912 1 23 2 1224979098644774913 2 23 2 1224979098644774914 3 6 3 1224979098644774915 0 1224979098644774914 4 0 2147484652 0 1 3 936748722493063922 1224979098644774912 1224979098644774913 3 0 2133 2 1224979098644774916 72057594037927936 1652 3 1224979098644774917 1224979098644774912 1224979098644774913 1653 3 1224979098644774918 1224979098644774912 1224979098644774913 1654 3 1224979098644774919 1224979098644774912 1224979098644774913 1615 3 1224979098644774912 1224979098644774917 1224979098644774918 1610 3 1224979098644774912 1224979098644774917 1224979098644774918 1618 3 1224979098644774912 1224979098644774917 1224979098644774919 4 0 2147484652 0 32 2 1224979098644774916 0 2120 3 1224979098644774920 936748722493063922 2 1 4 1224979098644774920 1224979098644774912 1224979098644774917 1224979098644774916 3 0 3 0
  33. calculate_player_battle_size -1
  34. 58 270 1 1224979098644774912 1107 1 0 1 1 936748722493063390 2133 2 1224979098644774913 72057594037927936 1107 1 1 1 2 936748722493063356 648518346341351441 2133 2 1224979098644774914 72057594037927936 1 2 936748722493063356 648518346341351424 2133 2 1224979098644774915 72057594037927936 2122 3 1224979098644774916 1224979098644774915 100 2108 2 1224979098644774916 1224979098644774914 4 0 2147483679 2 1224979098644774916 100 2106 2 1224979098644774916 10 3 0 4 0 1073742365 3 144115188075856280 0 2 541 3 144115188075856280 0 3 2133 2 1224979098644774917 32 4 0 31 2 144115188075856192 864691128455135351 2105 2 1224979098644774917 4 4 0 541 3 144115188075856280 27 0 2105 2 1224979098644774917 8 3 0 3 0 5 0 2133 2 1224979098644774917 40 3 0 2122 3 1224979098644774918 1224979098644774917 125 2108 2 1224979098644774918 100 2122 3 1224979098644774919 1224979098644774917 525 2108 2 1224979098644774919 100 2121 3 1224979098644774920 1224979098644774919 1224979098644774918 2107 2 1224979098644774912 1224979098644774920 2119 3 1224979098644774921 1224979098644774912 1000 2108 2 1224979098644774912 1000 4 0 30 2 1224979098644774921 500 2105 2 1224979098644774912 1 3 0 2105 2 1224979098644774912 1224979098644774918 2112 3 1224979098644774913 -12 6 2105 2 1224979098644774913 15 2107 2 1224979098644774913 2 2122 3 1224979098644774922 1224979098644774913 1224979098644774912 2119 3 1224979098644774921 1224979098644774922 30 2108 2 1224979098644774922 30 4 0 30 2 1224979098644774921 15 2105 2 1224979098644774922 1 3 0 2122 3 1224979098644774923 1224979098644774922 1224979098644774916 2108 2 1224979098644774923 100 2110 2 1224979098644774923 1224979098644774915 2106 2 1224979098644774923 1 2133 2 72057594037927996 1224979098644774923
  35.  
  36. 5-a) Ensure that there is an empty line at the bottom.
  37.  
  38. 6) Open file 'strings.txt'.
  39.  
  40. 7) Calculate: <new_string_id> = <top_counter> + 216172782113783808.
  41.  
  42. 8) Replace 216172782113788864 with <new_string_id> in this file.
  43.  
  44. 9) Increase strings' top counter by 13.
  45.  
  46. 10) Append strings at the bottom of the file:
  47.  
  48. str_plan_deployment Plan_Deployment
  49. str_pd1 You_will_have_{reg60}_troops_available_at_the_battle's_start
  50. str_pd2 Troop
  51. str_pd3 #_at_start__/_#_in_party
  52. str_pd4 /_{reg0}
  53. str_pd5 {reg59}
  54. str_pd6 of_{reg60}_troops
  55. str_pd7 Deploy
  56. str_pd8 Cancell
  57. str_pd9 Reset
  58. str_pd10 0
  59. str_pd11 Too_many_troops^Check_number_available
  60. str_pd12 No_troops_to_deploy.
  61.  
  62. 10-a) Ensure that there is an empty line at the bottom.
  63.  
  64. 11) Open file 'presentations.txt'.
  65.  
  66. 12) Calculate: <new_presentation_id> = <top_counter> + 1513209474796486656.
  67.  
  68. 13) Replace 1513209474796486717 with <new_presentation_id> in this file.
  69.  
  70. 14) Increase presentations' top counter by 1.
  71.  
  72. 15) Add new presentation at the bottom:
  73.  
  74. prsnt_prebattle_custom_deployment 0 243 3
  75. -60.000000 134 2124 1 1000 2120 3 1224979098644774912 936748722493063922 4 1 1 1224979098644774912 2133 2 1224979098644774913 216172782113788864 910 3 72057594037927936 1224979098644774913 98320 921 2 72057594037927936 4294967295 729 2 1 1500 730 2 1 1500 925 2 72057594037927936 1 729 2 1 500 730 2 1 680 926 2 72057594037927936 1 2105 2 1224979098644774913 1 910 3 72057594037927936 1224979098644774913 32784 729 2 1 500 730 2 1 650 926 2 72057594037927936 1 2105 2 1224979098644774913 1 910 3 72057594037927936 1224979098644774913 16 729 2 1 105 730 2 1 600 926 2 72057594037927936 1 2105 2 1224979098644774913 1 910 3 72057594037927936 1224979098644774913 16 729 2 1 385 730 2 1 600 926 2 72057594037927936 1 2319 1 0 910 3 144115188075856908 0 131072 729 2 1 50 730 2 1 100 926 2 144115188075856908 1 729 2 1 385 730 2 1 500 929 2 144115188075856908 1 945 1 144115188075856908 2133 2 1224979098644774914 0 2133 2 1224979098644774915 40 1650 2 1224979098644774916 648518346341351424 2122 3 1224979098644774917 1224979098644774916 1224979098644774915 2105 2 1224979098644774913 1 6 3 1224979098644774918 1 1224979098644774916 1652 3 1224979098644774919 648518346341351424 1224979098644774918 4 0 1507 1 1224979098644774919 1508 1 1224979098644774919 2133 2 1224979098644774920 1 5 0 1654 3 1224979098644774920 648518346341351424 1224979098644774918 3 0 1653 3 1224979098644774921 648518346341351424 1224979098644774918 2106 2 1224979098644774921 1224979098644774920 520 3 1224979098644774922 1224979098644774919 37 2110 2 1224979098644774922 1224979098644774921 500 3 1224979098644774919 37 1224979098644774922 2105 2 1224979098644774914 1224979098644774922 2322 2 1 1224979098644774919 910 2 72057594037927936 1 729 2 1 800 730 2 1 800 925 2 72057594037927936 1 729 2 1 25 730 2 1 1224979098644774917 926 2 72057594037927936 1 2133 2 72057594037927936 1224979098644774921 2320 2 1 1224979098644774913 910 2 72057594037927936 1 729 2 1 325 730 2 1 1224979098644774917 926 2 72057594037927936 1 2105 2 1224979098644774921 1 942 3 72057594037927936 0 1224979098644774921 927 2 72057594037927936 1224979098644774922 729 2 1 250 730 2 1 1224979098644774917 926 2 72057594037927936 1 500 3 360287970189640740 1224979098644774919 72057594037927936 2106 2 1224979098644774917 1224979098644774915 3 0 945 1 -1 2133 2 72057594037927995 1224979098644774914 2105 2 1224979098644774913 1 910 3 144115188075856554 1224979098644774913 65536 4 0 32 2 1224979098644774914 72057594037927996 921 2 144115188075856554 16716032 5 0 921 2 144115188075856554 16777215 3 0 729 2 1 290 730 2 1 50 926 2 144115188075856554 1 2105 2 1224979098644774913 1 910 3 72057594037927936 1224979098644774913 0 729 2 1 330 730 2 1 50 926 2 72057594037927936 1 911 2 72057594037927936 1441151880758558929 729 2 1 700 730 2 1 700 925 2 72057594037927936 1 729 2 1 225 730 2 1 50 926 2 72057594037927936 1 2105 2 1224979098644774913 1 940 3 144115188075856561 1224979098644774913 0 729 2 1 880 730 2 1 15 926 2 144115188075856561 1 2105 2 1224979098644774913 1 940 3 144115188075856562 1224979098644774913 0 729 2 1 722 730 2 1 15 926 2 144115188075856562 1 2105 2 1224979098644774913 1 940 3 144115188075856524 1224979098644774913 0 729 2 1 565 730 2 1 15 926 2 144115188075856524 1 902 1 999999 2105 2 1224979098644774913 1 2320 2 1 1224979098644774913 2105 2 1224979098644774913 1 910 3 144115188075856525 1224979098644774913 65552 921 2 144115188075856525 16716032 729 2 1 600 730 2 1 500 926 2 144115188075856525 1 4 0 2147483680 2 1224979098644774914 72057594037927996 729 2 1 0 730 2 1 0 925 2 144115188075856525 1 3 0
  76. -61.000000 4 4 0 71 1 1 902 1 0 3 0
  77. -62.000000 81 2071 1 1224979098644774912 2072 1 1224979098644774913 4 0 31 2 1224979098644774912 144115188075856562 1650 2 1224979098644774914 648518346341351424 6 3 1224979098644774915 1 1224979098644774914 1652 3 1224979098644774916 648518346341351424 1224979098644774915 520 3 1224979098644774917 360287970189640740 1224979098644774916 500 3 1224979098644774916 37 0 927 2 1224979098644774917 0 3 0 902 1 0 5 0 31 2 1224979098644774912 144115188075856524 1650 2 1224979098644774914 648518346341351424 6 3 1224979098644774915 1 1224979098644774914 1652 3 1224979098644774916 648518346341351424 1224979098644774915 520 3 1224979098644774917 360287970189640740 1224979098644774916 500 3 1224979098644774916 37 0 927 2 1224979098644774917 0 3 0 2133 2 72057594037927995 0 920 2 144115188075856554 1 921 2 144115188075856554 16777215 5 0 31 2 1224979098644774912 144115188075856561 2133 2 1224979098644774918 72057594037927995 2133 2 1224979098644774919 72057594037927996 4 0 32 2 1224979098644774918 1224979098644774919 729 2 1 1000 730 2 1 1000 925 2 144115188075856525 1 5 0 501 3 648518346341351424 47 1 902 1 0 3 0 5 0 1650 2 1224979098644774914 648518346341351424 6 3 1224979098644774915 1 1224979098644774914 1652 3 1224979098644774916 648518346341351424 1224979098644774915 540 3 360287970189640740 1224979098644774916 1224979098644774912 520 3 1224979098644774920 1224979098644774916 37 2133 2 1224979098644774914 0 3 0 2133 2 1224979098644774918 72057594037927995 2133 2 1224979098644774919 72057594037927996 2121 3 1224979098644774921 1224979098644774913 1224979098644774920 2120 3 1224979098644774922 1224979098644774918 1224979098644774921 4 0 32 2 1224979098644774922 1224979098644774919 2121 3 1224979098644774923 1224979098644774922 1224979098644774919 4 0 30 2 1224979098644774913 1224979098644774923 2106 2 1224979098644774913 1224979098644774923 2133 2 1224979098644774922 1224979098644774919 5 0 2106 2 1224979098644774922 1224979098644774913 2133 2 1224979098644774913 0 3 0 3 0 4 0 32 2 1224979098644774922 1224979098644774919 729 2 1 1000 730 2 1 1000 5 0 701 1 1 3 0 925 2 144115188075856525 1 927 2 1224979098644774912 1224979098644774913 500 3 1224979098644774916 37 1224979098644774913 2133 2 72057594037927936 1224979098644774922 920 2 144115188075856554 216172782113787247 4 0 32 2 1224979098644774922 1224979098644774919 921 2 144115188075856554 16716032 5 0 921 2 144115188075856554 16777215 3 0 2133 2 72057594037927995 1224979098644774922 3 0
  78.  
  79. 15-a) Ensure that there are 3 empty lines at the bottom.
  80.  
  81. 16) Open file 'menus.txt'.
  82.  
  83. 17) Find 'menu_simple_encounter'. In the end of this line (the last number) increase counter by 1.
  84.  
  85. 18) In the next line place cursor after space before 'mno_attack'. Insert this code:
  86.  
  87. mno_deployment 6 1 2 936748722493063355 648518346341351424 2133 2 1224979098644774912 72057594037927936 2120 3 1224979098644774913 936748722493063922 4 1 1 1224979098644774913 2133 2 1224979098644774914 72057594037927996 32 2 1224979098644774912 1224979098644774914 Choose_who_will_join_you_in_battle. 1 900 1 1513209474796486717 .
  88.  
  89. 19) There should be one space before inserted code and two spaces before and after the dot in the end.
  90.  
  91. 20) Repeat for this game menus:
  92. menu_join_battle
  93. menu_besiegers_camp_with_allies
  94. menu_castle_besiege
  95. menu_siege_started_defender
  96.  
  97. 21) Open file 'mission_templates.txt'
  98.  
  99. 22) Find lead_charge
  100.  
  101. 23) Increase counter +2
  102.  
  103. 24) Add after the counter
  104.  
  105. -19.000000 0.000000 0.000000 1 541 3 648518346341351424 47 1 21 1650 2 1224979098644774912 648518346341351424 6 3 1224979098644774913 0 1224979098644774912 1652 3 1224979098644774914 648518346341351424 1224979098644774913 500 3 1224979098644774914 51 1224979098644774913 4 0 2147484652 0 2147485155 1 1224979098644774914 1 3 936748722493063922 648518346341351424 1224979098644774913 500 3 1224979098644774914 52 72057594037927936 3 0 3 0 1 3 936748722493063336 648518346341351425 648518346341351424 500 3 360287970189639680 37 1 7 3 1224979098644774913 1 1224979098644774912 1652 3 1224979098644774914 648518346341351424 1224979098644774913 520 3 1224979098644774915 1224979098644774914 37 1653 3 1224979098644774916 648518346341351424 1224979098644774913 2121 3 1224979098644774917 1224979098644774916 1224979098644774915 32 2 1224979098644774917 0 1619 3 648518346341351424 1224979098644774914 1224979098644774917 3 0
  106. 0.000000 0.000000 100000000.000000 2 1943 0 541 3 648518346341351424 47 1 53 1650 2 1224979098644774912 648518346341351424 1650 2 1224979098644774913 648518346341351425 6 3 1224979098644774914 1 1224979098644774913 1652 3 1224979098644774915 648518346341351425 1224979098644774914 1653 3 1224979098644774916 648518346341351425 1224979098644774914 4 0 2120 3 1224979098644774917 936748722493063922 1 1 3 1224979098644774917 648518346341351424 1224979098644774915 2133 2 1224979098644774918 72057594037927936 2147483679 2 1224979098644774918 -1 1653 3 1224979098644774919 648518346341351424 1224979098644774918 1654 3 1224979098644774920 648518346341351424 1224979098644774918 5 0 2133 2 1224979098644774919 0 2133 2 1224979098644774920 0 3 0 2121 3 1224979098644774921 1224979098644774916 1224979098644774919 32 2 1224979098644774921 0 1610 3 648518346341351424 1224979098644774915 1224979098644774921 4 0 1654 3 1224979098644774922 648518346341351425 1224979098644774914 2106 2 1224979098644774922 1224979098644774920 32 2 1224979098644774922 0 1618 3 648518346341351424 1224979098644774915 1224979098644774922 3 0 4 0 2147484652 0 2147485155 1 1224979098644774915 520 3 1224979098644774923 1224979098644774915 52 32 2 1224979098644774923 0 2120 3 1224979098644774917 936748722493063922 2 1 4 1224979098644774917 648518346341351424 1224979098644774915 1224979098644774923 3 0 3 0 501 3 648518346341351424 47 0 2147483679 2 1224979098644774913 1224979098644774912 1650 2 1224979098644774924 648518346341351424 2133 2 1224979098644774925 1224979098644774924 6 3 1224979098644774926 1 1224979098644774924 2133 2 1224979098644774927 -1 2133 2 1224979098644774928 999 6 3 1224979098644774914 1 1224979098644774925 1652 3 1224979098644774929 648518346341351424 1224979098644774914 520 3 1224979098644774918 1224979098644774929 51 2147483678 2 1224979098644774918 1224979098644774928 2133 2 1224979098644774928 1224979098644774918 2133 2 1224979098644774927 1224979098644774914 3 0 2147483679 2 1224979098644774927 -1 2120 3 1224979098644774917 936748722493063922 3 1 4 1224979098644774917 648518346341351424 1224979098644774927 1 2106 2 1224979098644774925 1 3 0
  107.  
  108. 25) Expansion to the other missions. Repeat (p.22-24) for this missions:
  109. castle_attack_walls_belfry
  110. castle_attack_walls_ladder
RAW Paste Data