Could I add a week long stalemate in the beggining of the game?

Users who are viewing this thread

Giggityninja

Sergeant
I've noticed that in old Mount&blade for the first week of the game, lords stay in their castles and there is no military action at all. However, in Warband, military campaigns are called instantly and lords are already conquering castles by day 4 or 5. The kingdoms have already ravaged each other before the time I even have 40 men in my party and the factions I want to join already have a city or castle taken over. I want to be able to build a small army and join a kingdom before they get the crap kicked out of them. It's a small feature, but I don't think Taleworlds should have removed it. So could I add a week long stalemate like in old Mount&blade?
 
With the module system yes. Check scripts game start. Randomly start war peace or something or other. Not near a pc so cant check for sure but its around there somewhere.
 
These are the lines in "game_start" script at the beginning of "module_scripts.py" responsible for starting wars at the start of the game:

Code:
	  #this should come after assignment of territorial grievances
      (try_for_range, ":unused", 0, 70),
        (try_begin),
          (eq, "$cheat_mode", 1),
          (display_message, "@{!}DEBUG -- initial war/peace check begins"),
        (try_end),
        (call_script, "script_randomly_start_war_peace_new", 0),
      (try_end),

You can remove these lines, or just comment out the (call_script, ...) line.

It is also possible to solve the issue without Module System. Edit scripts.txt file in the module directory (make a backup first, though). In the line following game_start (should be 4th line in the file) find the following text:

6 3 1224979098644774920 0 70 4 0 31 2 144115188075856163 1 1106 1 1585267068834414656 3 0 1 2 936748722493063458 0 3 0

Red number is the one you need to change, so the sequence should look like this:

6 3 1224979098644774920 0 70 4 0 31 2 144115188075856163 1 1106 1 1585267068834414656 3 0 1 2 936748722493063171 0 3 0

Actually only three last digits need to be changed.

Essentially, instead of calling script to randomly start wars for 70 times, modified code will call a different harmless script ("script_get_army_size_from_slider_value" to be precise) for the same number of times. Hence, no wars at the beginning of the game. :smile:
 
I would really suggest not making so much posts. I see at least 4-5 of your posts all on the first page and they're cluttering the sub-board. Just make replies with other questions or sticky your pages for the future.
 
Lav said:
Essentially, instead of calling script to randomly start wars for 70 times, modified code will call a different harmless script ("script_get_army_size_from_slider_value" to be precise) for the same number of times. Hence, no wars at the beginning of the game. :smile:

When removing those lines specified, it causes the factions to show no info in the notes panel. Besides, is there a way to pause wars without completely stopping them from happening?
 
Giggityninja said:
When removing those lines specified, it causes the factions to show no info in the notes panel.
Huh? How does that screen look then? Is there no information at all, or is the basic information (ruler with his banner) still there? Because most entries are only added as you learn them in the game.

Giggityninja said:
Besides, is there a way to pause wars without completely stopping them from happening?
You could try to edit faction and campaign AIs I suppose. I haven't investigated the Warband AI thoroughly, but I would start with searching ID_scripts file for all scripts with "ai" in their name and research from there. What you need to find are the slots where faction current strategy and objectives are stored, find where those slots are set and insert your code to make factions stick to defensive strategy for the first week or something. Probably would be wise to rig the marshal elections as well. It's possible that lords will still make individual excursions into enemy territory even with all these changes, but at least there shouldn't be any large scale warfare.
 
Lav said:
Huh? How does that screen look then? Is there no information at all, or is the basic information (ruler with his banner) still there? Because most entries are only added as you learn them in the game.
That was just a silly mistake, I guess. After trying again it works fine to stop the wars, but can you (or anybody) please make a script that just stops lords from leaving their castles for a week?
 
Back
Top Bottom