Compilation of 82 little tweaks to the text files to change your gameplay(links)

Users who are viewing this thread

TheMageLord said:
Looking into troop numbers in towns/castles, it appears it's all based on wealth. It checks daily if they have 2005 wealth or more, and if they do it gives them troops from their reinforcement party (in party_templates) based on kingdom, and it reduces wealth by 400. Then every week they get added wealth. The wealth calculation is 15x prosperity (a number from 0 to 100) + 700, 50% more if it's a city, and then subtract out their troop costs. So a very rich city (100 prosperity) would get ((15x100) +700)*1.5= 3300 wealth, minus all troop costs, per week. A 0 prosperity city would only get 1050. The minimum wealth is 0, so even if they get troop costs over the income they won't go into negatives. So it appears the best way to modify garrisons would be to modify how much wealth places receive. This is in simple_triggers.txt:
168.000000  25 6 3 1224979098644774912 360287970189639861 360287970189639971 520 3 1224979098644774913 1224979098644774912 21 2107 2 1224979098644774913 101 2108 2 1224979098644774913 100 500 3 1224979098644774912 21 1224979098644774913 1 2 936748722493063286 1224979098644774912 3 0 6 3 1224979098644774914 648518346341351443 648518346341351501 2147484189 3 1224979098644774914 7 360287970189639680 561 3 1224979098644774914 7 1 521 3 1224979098644774915 1224979098644774914 49 521 3 1224979098644774916 1224979098644774914 50 2122 3 1224979098644774917 1224979098644774916 15 2105 2 1224979098644774917 700 4 0 541 3 1224979098644774914 0 3 2107 2 1224979098644774917 3 2108 2 1224979098644774917 2 3 0 2105 2 1224979098644774915 1224979098644774917 1 2 936748722493063284 1224979098644774914 2106 2 1224979098644774915 72057594037927936 2111 2 1224979098644774915 0 501 3 1224979098644774914 49 1224979098644774915 3 0
The 3 and 2 are the +50% for cities (multiply by 3, divide by 2) and the other two are mentioned above. Increasing them should make garrisons grow larger over time, since the cities/castles will have more wealth to recruit with. I haven't actually tested it, though.

so if i want to half garrison sizes, how would i go about it?
 
I was not able to deduce the reason for using the reinforcements tweak besides to get even reinforcements during sieges.  Any other uses?
 
Hello to all  :grin:
I have a question and hope, you could understand, what i mean (i am no english, so i try to explain in some more words  :roll: ): Sometimes, when i get some new troops after a fight, i could not take them, because i have no more "slots" free in my company, sometimes this happens in towns too (maybe you have many troops in there with only "1" person) - sometimes the citys are "full". Ok, you could remove the "1-person-troops" and change them with 30 vaegir-knights, but do someone know, how to "enlarge" the slots of the player or/and towns or castles to get more different troops? Is there a way?
 
I've only been looking for the last two months and I get to use this computer one a week. Also, so why do I keep seeing brutality mod or Ironman mod. Surely there is a way. Thank you very much for the 'no answer' response. I have a job. I can't just geek out.
 
seoman of earthsea said:
I've only been looking for the last two months and I get to use this computer one a week. Also, so why do I keep seeing brutality mod or Ironman mod. Surely there is a way. Thank you very much for the 'no answer' response. I have a job. I can't just geek out.

i'm just itching to come to your aid now, such is the magnitude of your ailing

geek out  :wink:
 
i've made a way for you to be able to renounce your oath and keep your lands (i.e: rebel)
go into menus.txt and find this:

mno_camp_action  0  Take_an_action.  1 2060 1 864691128455135253  .

and paste this behind it:
mno_camp_action  0  Rebel,_keeping_all_your_land.  13 522 3 1224979098644774912 144115188075856122 10 1 6 936748722493063510 23 360287970189639680 -1 1224979098644774912 144115188075856122 2133 2 144115188075856074 144115188075856122 2133 2 144115188075855928 0 2270 1 144115188075856075 1 4 936748722493063279 144115188075856361 360287970189639680 0 1 2 936748722493063422 0 6 3 1224979098644774913 648518346341351443 648518346341351501 2204 2 1224979098644774914 1224979098644774913 501 3 1224979098644774913 155 1224979098644774914 3 0 501 3 144115188075856361 155 144115188075856074 2040 0  .

so the line should look like this (beware of double spaces and full stops):
mno_camp_action_1  1 31 2 144115188075856014 1  Cheat:_Walk_around.  3 1911 1 792633534417207318 1 1 936748722493063345 2048 0  .  mno_camp_action  0  Take_an_action.  1 2060 1 864691128455135253  .  mno_camp_action  0  Rebel,_keeping_all_your_land.  13 522 3 1224979098644774912 144115188075856122 10 1 6 936748722493063510 23 360287970189639680 -1 1224979098644774912 144115188075856122 2133 2 144115188075856074 144115188075856122 2133 2 144115188075855928 0 2270 1 144115188075856075 1 4 936748722493063279 144115188075856361 360287970189639680 0 1 2 936748722493063422 0 6 3 1224979098644774913 648518346341351443 648518346341351501 2204 2 1224979098644774914 1224979098644774913 501 3 1224979098644774913 155 1224979098644774914 3 0 501 3 144115188075856361 155 144115188075856074 2040 0  .  mno_camp_wait_here  0  Wait_here_for_some_time.  4 2133 2 144115188075856027 1 2133 2 144115188075856026 1 1031 3 168 5 1 2040 0  .

finally on the line above:
menu_camp 4096 You_set_up_camp._What_do_you_want_to_do? none 2 2133 2 144115188075856026 0 2031 1 1441151880758558728 5
change the blue 5 to 6

dont try to do this if you're not part of a faction or hold no lands, i havent tried, but it cant be good
 
Zathan said:
Hardrada said:
Here's another quick and simple one.

Enabling the option to refuse to let your companions quit.

Open up conversation.txt and search for dlga_companion_quitting_response:companion_quitting_no
There's a string of numbers after this that should look like this:
69631 107  2 31 2 1 0 31 2 144115188075855903 1
Change the 0 to 1, and next time someone wants to quit you should be able to play hardball.

Lord Zed: Does it give a specific error message?  It's possible something isn't compatible with 1.011, or you may have made an error somewhere.  It's best to do things incrementally and check they work so if there are problems you can narrow it down to one or two possibilities.

Has anyone found how to do the above in the module_dialogs.py file? I see the companion_quitting starts at line 1440 or so, but I'm unsure what to change to refuse companions to leave...

Thanks!:smile:

I'm still in the dark on this one... I'd be eternally grateful if someone points out how to stop companions from leaving by editing the module system, not the .txt file! :wink:
 
Leona said:
Hello to all  :grin:
I have a question and hope, you could understand, what i mean (i am no english, so i try to explain in some more words  :roll: ): Sometimes, when i get some new troops after a fight, i could not take them, because i have no more "slots" free in my company, sometimes this happens in towns too (maybe you have many troops in there with only "1" person) - sometimes the citys are "full". Ok, you could remove the "1-person-troops" and change them with 30 vaegir-knights, but do someone know, how to "enlarge" the slots of the player or/and towns or castles to get more different troops? Is there a way?

No one could help, please?
 
to impliment sailing:

go to menus.txt and search for this:
mno_sail_from_port

and replace the strings of numbers after it to:
3 541 3 144115188075856056 0 3 1073741855 2 144115188075856057 0 31 2 144115188075856058 1

end result should look like this:
mno_sail_from_port  3 541 3 144115188075856056 0 3 1073741855 2 144115188075856057 0 31 2 144115188075856058 1  Sail_from_port.  7 2133 2 144115188075856026 2 1603 3 648518346341351424 512 1 1625 2 1 648518346341351424 1629 3 2 1 6 1626 2 648518346341351424 2 2133 2 144115188075856102 -1 2040 0  .

there wont be any naval parties but its a nice novelty touch, i think
 
This tweak places the item you want in your inventory every time you start training in a training ground. You will see a green text message displayed whenever you start training (bow, sparring etc.).

In scripts.txt, find the line below

start_training_at_training_ground -1
163 2105 2 144115188075856114 1 23 2 1224979098644774912 ...

Right after 163 paste the line below and change 163 to 164 since we're adding a new line.

1530 3 360287970189639680 288230376151711745 0

It should look like this

start_training_at_training_ground -1
164 1530 3 360287970189639680 288230376151711745 0 2105 2 144115188075856114 1 23 2 1224979098644774912 ...

The blue number determines the item and the green number is its modifier.

288230376151711745 is itm_horse_meat and it's the first item in the list. You may use the M&B Item Editor to find the number of the item you want and then add that number to 288230376151711744. For instance, if I want some Smoked Fish then the number I'm going to add to 288230376151711744 is 70.

Here are some of the modifiers:


13 Balanced
17 Masterwork
27 Reinforced
29 Lordly
36 Champion
42 Large Bag


You may add multiple items at once by adding more lines.

You don't have to restart the game to change the items you get, after you modified the scripts.txt and press ALT+ENTER and from the menu select "restore module data".

This tweak is save game compatible and will work with other mods although the item number in various mods may differ.

 
For starters: This tread rocks!!!
It have helped me many times. 
However... I was wondering if some one could make these tweaks for python and not just the txt files.
I'm not a master coder but I could help with what I can. Perhaps just make a new thread and let everybody
who can, bomb the tread with these tweaks but for the module. This could help a lot of newbie coders and prevent the TONS
of new thread making epidemic that have started ( at least in the forge).

I could start. Umm... Oh yes.

Change the arena betting amount. Module Style.


Fist, open the module_game_menus.py and search for this tuple.


(
    "tournament_bet",0,
    "The odds against you are {reg5} to {reg6}.{reg1? You have already bet {reg1} denars on yourself, and if you win, you will earn {reg2} denars.:} How much do you want to bet?",
    "none",
    [
      (assign, reg1, "$g_tournament_bet_placed"),
      (store_add, reg2, "$g_tournament_bet_win_amount", "$g_tournament_bet_placed"),
      (call_script, "script_get_win_amount_for_tournament_bet"),
      (assign, ":player_odds", reg0),
      (assign, ":min_dif", 100000),
      (assign, ":min_dif_divisor", 1),
      (assign, ":min_dif_multiplier", 1),
      (try_for_range, ":cur_multiplier", 1, 50),
        (try_for_range, ":cur_divisor", 1, 50),
          (store_mul, ":result", 100, ":cur_multiplier"),
          (val_div, ":result", ":cur_divisor"),
          (store_sub, ":difference", ":player_odds", ":result"),
          (val_abs, ":difference"),
          (lt, ":difference", ":min_dif"),
          (assign, ":min_dif", ":difference"),
          (assign, ":min_dif_divisor", ":cur_divisor"),
          (assign, ":min_dif_multiplier", ":cur_multiplier"),
        (try_end),
      (try_end),
      (assign, reg5, ":min_dif_multiplier"),
      (assign, reg6, ":min_dif_divisor"),
      ],
    [
      ("bet_100_denars", [(store_troop_gold, ":gold", "trp_player"),
                          (ge, ":gold", 100)
                          ],
      "100 denars.",
      [
        (assign, "$temp", 100),
        (jump_to_menu, "mnu_tournament_bet_confirm"),
        ]),
      ("bet_50_denars", [(store_troop_gold, ":gold", "trp_player"),
                        (ge, ":gold", 50)
                        ],
      "50 denars.",
      [
        (assign, "$temp", 50),
        (jump_to_menu, "mnu_tournament_bet_confirm"),
        ]),
      ("bet_20_denars", [(store_troop_gold, ":gold", "trp_player"),
                        (ge, ":gold", 20)
                        ],
      "20 denars.",
      [
        (assign, "$temp", 20),
        (jump_to_menu, "mnu_tournament_bet_confirm"),
        ]),
      ("bet_10_denars", [(store_troop_gold, ":gold", "trp_player"),
                        (ge, ":gold", 10)
                        ],
      "10 denars.",
      [
        (assign, "$temp", 10),
        (jump_to_menu, "mnu_tournament_bet_confirm"),
        ]),
      ("bet_5_denars", [(store_troop_gold, ":gold", "trp_player"),
                        (ge, ":gold", 5)
                        ],
      "5 denars.",
      [
        (assign, "$temp", 5),
        (jump_to_menu, "mnu_tournament_bet_confirm"),
        ]),
      ("go_back_dot", [], "Go back.",
      [
        (jump_to_menu, "mnu_town_tournament"),
        ]),
    ]
  ),


You can easily change the number marked in the colors to any amount you want.
Preferably you would want to change the numbers in the same color to the same amount.


There you go.
And if you guys feel that it's a stupid idea or something just say so and i'll drop the idea.

 
tommylaw said:
to impliment sailing:

go to menus.txt and search for this:
mno_sail_from_port

and replace the strings of numbers after it to:
3 541 3 144115188075856056 0 3 1073741855 2 144115188075856057 0 31 2 144115188075856058 1

end result should look like this:
mno_sail_from_port  3 541 3 144115188075856056 0 3 1073741855 2 144115188075856057 0 31 2 144115188075856058 1  Sail_from_port.  7 2133 2 144115188075856026 2 1603 3 648518346341351424 512 1 1625 2 1 648518346341351424 1629 3 2 1 6 1626 2 648518346341351424 2 2133 2 144115188075856102 -1 2040 0  .

there wont be any naval parties but its a nice novelty touch, i think

i have tested that tweak, but it looks, that it dont work  :sad: Is there something more to do? Or only that changes? A time ago
i have the sailing-mod installed, there are ships available in the citys on the coast. With your tweak this option in Tihr a.s.o. is not
available...hmmmm..... How i could i sail with your tweak? Where i could get a ship?
 
Back
Top Bottom