Tweaks for Viking Conquest (one for 2.028, others for 2.021, 2.012, 2.010 etc)

Users who are viewing this thread

Pan-Shmal said:
How to disable, the flight of enemies from the battlefield? You need to make sure that they fight to the end?
(Disabled troop routing)

see module_mission_templates.py for the routing triggers vc_courage
 
kalarhan said:
Pan-Shmal said:
How to disable, the flight of enemies from the battlefield? You need to make sure that they fight to the end?
(Disabled troop routing)

see module_mission_templates.py for the routing triggers vc_courage

I do not understand this at all, if it is not difficult for you to specify where exactly to change this?
 
youzi said:
Hello, can you tell me how to change the time required for shipbuilding? Or delete it :grin:

module_dialogs.py

see "port_chief_build_ship_main_4" for "$build_ship_days".

you can use modsys or [VC Tweaks Tool] to see how to edit it. Then apply it to your own .txt module (use Winmerge) if you don't want to use them as your base.
 
kraggrim said:
Trainer can upgrade troops to max level (2.010 beta)

If you want your refuge trainer to be able to upgrade troops beyond the third tier (usually spearmen or equivalent) then back up simple_triggers.txt and find this section:
120.000000  72 11 1 1224979098644774912 541 3 1224979098644774912 394 1 501 3 1224979098644774912 394 0 3 0 31 2 144115188075856346 16 31 2 144115188075856132 648518346341351795 132 1 648518346341351795 2133 2 1224979098644774913 0 2170 3 1224979098644774914 17 360287970189639680 4 0 2147483680 2 1224979098644774914 1 2120 3 1224979098644774913 1224979098644774914 4 5 0 2120 3 1224979098644774913 1224979098644774914 3 3 0 4 0 2172 3 1224979098644774915 360287970189639680 2 30 2 1224979098644774915 18 2105 2 1224979098644774913 1 3 0 1650 2 1224979098644774916 648518346341351795 2133 2 1224979098644774917 0 7 3 1224979098644774918 0 1224979098644774916 31 2 1224979098644774917 0 1652 3 1224979098644774919 648518346341351795 1224979098644774918 2147485155 1 1224979098644774919 1561 3 1224979098644774920 1224979098644774919 144115188075856133 4 0 2147483680 2 1224979098644774920 0 1561 3 1224979098644774920 1224979098644774919 0 3 0 32 2 1224979098644774920 0 2171 2 1224979098644774921 1224979098644774919 2147483680 2 1224979098644774921 18 2133 2 1224979098644774922 16 4 0 4 0 2147483680 2 1224979098644774921 12 2105 2 1224979098644774913 2 3 0 2147483680 2 1224979098644774922 19 2105 2 1224979098644774922 10 3 0 2147483680 2 1224979098644774921 1224979098644774922 2330 2 10 648518346341351795 1630 3 1224979098644774923 648518346341351795 1224979098644774919 2110 2 1224979098644774913 1224979098644774923 1 2 936748722493063264 1224979098644774919 2105 2 72057594037927936 10 2122 3 1224979098644774924 1224979098644774913 72057594037927936 2149 2 1224979098644774925 360287970189639680 4 0 2147483678 2 1224979098644774925 1224979098644774924 2123 3 1224979098644774926 1224979098644774925 72057594037927936 2110 2 1224979098644774913 1224979098644774926 2122 3 1224979098644774924 1224979098644774913 72057594037927936 1106 1 216172782113787161 3 0 32 2 1224979098644774913 0 1615 3 648518346341351795 1224979098644774919 1224979098644774913 1610 3 648518346341351795 1224979098644774920 1224979098644774913 1529 2 360287970189639680 1224979098644774924 2133 2 72057594037927941 1224979098644774913 2121 3 72057594037927942 72057594037927941 1 2322 2 6 1224979098644774919 2322 2 7 1224979098644774920 2323 2 8 1224979098644774919 2323 2 9 1224979098644774920 2320 2 11 216172782113787162 1106 1 1585267068834417162 2133 2 1224979098644774917 1 3 0
Change that 18 to 26.

If you are king and want the same for your minister then do the same in this section (should be right undearneath).
120.000000  71 542 3 432345564227567631 21 0 542 3 432345564227567631 11 360287970189639680 2147483679 2 144115188075855992 -1 2204 2 1224979098644774912 144115188075855992 31 2 1224979098644774912 432345564227567631 2133 2 1224979098644774913 0 2170 3 1224979098644774914 17 360287970189639680 4 0 2147483680 2 1224979098644774914 1 2120 3 1224979098644774913 1224979098644774914 4 5 0 2120 3 1224979098644774913 1224979098644774914 3 3 0 4 0 2172 3 1224979098644774915 360287970189639680 2 30 2 1224979098644774915 18 2105 2 1224979098644774913 1 3 0 2133 2 1224979098644774916 144115188075855992 1650 2 1224979098644774917 1224979098644774916 2133 2 1224979098644774918 0 7 3 1224979098644774919 0 1224979098644774917 31 2 1224979098644774918 0 1652 3 1224979098644774920 1224979098644774916 1224979098644774919 2147485155 1 1224979098644774920 1561 3 1224979098644774921 1224979098644774920 144115188075855993 4 0 2147483680 2 1224979098644774921 0 1561 3 1224979098644774921 1224979098644774920 0 3 0 32 2 1224979098644774921 0 2171 2 1224979098644774922 1224979098644774920 2147483680 2 1224979098644774922 18 2133 2 1224979098644774923 16 4 0 4 0 2147483680 2 1224979098644774922 12 2105 2 1224979098644774913 2 3 0 2147483680 2 1224979098644774923 19 2105 2 1224979098644774923 10 3 0 2147483680 2 1224979098644774922 1224979098644774923 2330 2 10 1224979098644774916 1630 3 1224979098644774924 1224979098644774916 1224979098644774920 2110 2 1224979098644774913 1224979098644774924 1 2 936748722493063264 1224979098644774920 2105 2 72057594037927936 10 2122 3 1224979098644774925 1224979098644774913 72057594037927936 2149 2 1224979098644774926 360287970189639680 4 0 2147483678 2 1224979098644774926 1224979098644774925 2123 3 1224979098644774927 1224979098644774926 72057594037927936 2110 2 1224979098644774913 1224979098644774927 2122 3 1224979098644774925 1224979098644774913 72057594037927936 1106 1 216172782113787161 3 0 32 2 1224979098644774913 0 1615 3 1224979098644774916 1224979098644774920 1224979098644774913 1610 3 1224979098644774916 1224979098644774921 1224979098644774913 1529 2 360287970189639680 1224979098644774925 2133 2 72057594037927941 1224979098644774913 2121 3 72057594037927942 72057594037927941 1 2322 2 6 1224979098644774920 2322 2 7 1224979098644774921 2323 2 8 1224979098644774920 2323 2 9 1224979098644774921 2320 2 11 216172782113787162 1106 1 1585267068834417163 2133 2 1224979098644774918 1 3 0

How do you change this in Python? I can't find that particular string of code.

In python simple triggers if I search for Trainerlair I see this:

training player
  # Moved from 36 trigger
  (24 * 5, [
      (try_begin),
        (eq, "$hire_trainer1", hire_trainer1),
        (eq, "$g_trainerlair_training_center", "p_yourlair"),
        (party_is_active, "p_yourlair"),
       
        (call_script, "script_cf_process_training_fail", "p_yourlair", "$g_trainerlair_training_type"),
        (str_store_party_name, s1, "p_yourlair"),
        (display_message, "@You receive word that the trainer at {s1} has completed his task."),
        (assign, "$g_trainerlair_training_center", -1),
        (assign, "$g_trainerlair_training_type", 0),
      (try_end),
     
      (try_begin),
        (faction_slot_eq, "fac_player_supporters_faction", slot_faction_state, sfs_active),
        (faction_slot_eq, "fac_player_supporters_faction", slot_faction_leader, "trp_player"),
       
        (neq, "$g_trainerlair_training_center2", -1),
        (store_faction_of_party, ":faction", "$g_trainerlair_training_center2"),
        (eq, ":faction",  "fac_player_supporters_faction"),
       
        (call_script, "script_cf_process_training_fail", "$g_trainerlair_training_center2", "$g_trainerlair_training_type2"),
        (str_store_party_name, s1, "$g_trainerlair_training_center2"),
        (display_message, "@You receive word that the trainer at {s1} has completed his task."),
        (assign, "$g_trainerlair_training_center2", -1),
        (assign, "$g_trainerlair_training_type2", 0),
      (try_end),
  ]),
 
  (24 * 5, [
      (try_for_parties, ":party"),
        (party_slot_eq, ":party", slot_party_bribed, 1),
        (party_set_slot, ":party", slot_party_bribed, 0),
      (try_end),
  ]),
  ###


What would I have to change there?


Thanks in advance

additionally, would it be possible to increase the amount of people the trainer can train per week?

Also, 1 more possibly stupid question: If I change something in one of the python files instead of the tweak document, do I have to run the app to make the changes in the text files happen?
 
Dionaea said:
If I change something in one of the python files instead of the tweak document, do I have to run the app to make the changes in the text files happen?

are you talking about [VC Tweaks Tool] ? Then please ask in the tool thread. This one is for .txt tweaks.

if you want to learn about modding you can check the Q&A modding thread or visit the Forge (subforum for modding). Specific questions about VC are best placed in this forum Q&A (like how to change the trainer).

use spoiler and code tags when copying long texts/code

stuff

Code:
game code
 
Rikard_Karstark said:
anyone knows prisoner escape rates tweak?

you need to be specific about when they are escaping. Pos-battle (capture or escape), while travelling around the world, while inside a dungeon/prison inside a town/castle, while inside a town/castle without a prison... you also need to be specific about the type of prisoner: lords or soldiers.

you can find some tweaks about this on the OP (original post). You can also see the [VC Tweaks Tool] for a updated version.
 
i checked vc tool its useless for it i want make prisoners unescapeable at party at my lair at castles and settlements all prisoners lords and troops unescapeable
 
Rikard_Karstark said:
i checked vc tool its useless for it i want make prisoners unescapeable at party at my lair at castles and settlements all prisoners lords and troops unescapeable

VC tool has the game code, which means you can modify anything you want. Of course you will need to learn a bit about modding, but that is the price of freedom. You can check the Q&A thread on modding for the basic tutorials and the Forge subforum if you want to learn more.

Cheers
 
Rikard_Karstark said:
im trying but i still couldnt find out how to use module system i got offical module system from taleworlds

study the initial posts from this thread https://forums.taleworlds.com/index.php/topic,347990.0.html

modified game code is in the [VC Tweaks Tool], you do not need to download it from somewhere else. If you dont want to use the [VC Tweaks Tool], then you can download the DLC game code from the TW website. Not Warband code. VC code.
 
Guys, I really want to be able to increase the amount of "manageable" troops. I find it ridiculous that it's only half the party limit. With a Viking style play-through that involves long voyages, it's a massive handicap.

Another tidbit I'd really want to know of is how to increase player (and ONLY the player's) party size in general. Where is the base party size number in scripts.txt in Viking conquest anyway? I don't want to meddle with the balance of renown or leadership skill against party size unless they somehow only affect the player's army and not the npc lords. I'm trying to slightly match the lower average of npc lord parties in general: 200 (or a bit less) for vagrants and 250 (or a bit less) for a lord with one castle (and one village - but these hamlets don't seem to count).
 
Verisoxy said:
amount of "manageable" troops

ONLY the player's) party size in general

both things handled by the modsys (not hardcoded), so no issues here. If you want to learn more about modding you can check the Q&A in modding and the [VC Tweaks Tool], easier path to create your own tweaks (even .txt ones).
 
Kalarhan that's what I did. There's an outdated post that directs me to scripts.txt (of Native) to modify two values in that jungle of code - two values that I CANNOT find in Viking Conquest. I looked at the forum for tweaks, VC tweaks, and tweaksMB, but nothing. Specifically, I need to know how to change base party size and base morale. Base morale is a bit trickier because said outdated post only changes values for leadership points to morale, not base morale in general. So, any modder out there willing to teach me?
 
Verisoxy said:
base morale

as a example you can check this tweak on [VC Tweaks Tool]

Code:
# TWEAK 1: MORALE MODIFICATION
TWEAK_BASE_MORALE = 50  # Base morale is the target value, you gain bonus and penalties from skills, army composition, etc
                        # It takes time to morale to change, and the final value is limited between 0 and 100
                        # Example: base=50, food bonus=+10, recent events=-20, ... total = 40.
                        # If current morale is 80, then you will lose some daily until reaches 40. 
                        # Default: 50  (before bonus and penalties)

Cheers
 
I've seen that, but I have problems getting python to run (no path on my pc or something) but I'll just soldier on. How about base party size though? TweaksMB had it, but it has no module file for VC and VC tweaks doesn't have it. Can I manually change it in script.txt? Does anybody know anyone who has done so?
 
Verisoxy said:
How about base party size though?

Code:
  #script_game_get_party_companion_limit: Version motomataru
  # This script is called from the game engine when the companion limit is needed for a party.
  # INPUT: arg1 = none
  # OUTPUT: reg0 = companion_limit, reg31 = base, reg32= leadership contribution, reg33 = charisma contribution, reg34 = renown contribution
  ("game_get_party_companion_limit", [

if you have further questions related to code you should direct them to the Q&A thread in the Forge. I in particular will not work with .txt tweaks anymore, since I created a tool to replace that process a few years ago. You can, of course, post here related to manual .txt tweaks seeking help of other players/modders.

Cheers
 
Make Morrigan Stay tweak  ...

Worked flawlessly for me today on Sept 18 2018 ... so still valid, amazing!  :party:

Only lately have I decided to give the Story Mode a full playthrough and very happy with it it so far, amazing how much I love this mod!
 
kraggrim said:
Morale modification (untested)

get_player_party_morale_values -1
87 2133 2 1224979098644774912 50 2133 2 1224979098644774913 0 1650 2 1224979098644774914 648518346341351424 6 3 1224979098644774915 1 1224979098644774914 1652 3 1224979098644774916 648518346341351424 1224979098644774915 4 0 1507 1 1224979098644774916 2105 2 1224979098644774913 1 5 0 1653 3 1224979098644774917 648518346341351424 1224979098644774915 2105 2 1224979098644774913 1224979098644774917 3 0 3 0 1 1 936748722493063269 2108 2 72057594037927936 2 4 0 30 2 72057594037927936 1224979098644774913 2133 2 144115188075857235 0 5 0 2121 3 144115188075857235 1224979098644774913 72057594037927936 2107 2 144115188075857235 100 2108 2 144115188075857235 72057594037927936 2108 2 144115188075857235 3 2106 2 1224979098644774912 144115188075857235 3 0 2133 2 144115188075857236 -15 6 3 1224979098644774918 288230376151711856 288230376151711871 1 3 936748722493063517 1224979098644774918 41 527 3 1224979098644774919 1224979098644774918 1 2105 2 144115188075857236 1224979098644774919 3 0 2105 2 1224979098644774912 144115188075857236 4 0 31 2 144115188075857236 -15 2133 2 144115188075857237 15 2106 2 1224979098644774912 144115188075857237 5 0 2133 2 144115188075857237 0 3 0 2133 2 144115188075857238 0 4 0 32 2 144115188075857010 0 1 1 936748722493063475 32 2 72057594037927936 0 2133 2 1224979098644774920 72057594037927936 2133 2 1224979098644774921 72057594037927937 2122 3 144115188075857238 144115188075857010 100 4 0 32 2 1224979098644774921 144115188075857007 2108 2 144115188075857238 1224979098644774920 5 0 2108 2 144115188075857238 144115188075857008 3 0 2108 2 144115188075857238 3 2106 2 1224979098644774912 144115188075857238 3 0 2133 2 1224979098644774922 0 4 0 1650 2 1224979098644774914 648518346341351424 6 3 1224979098644774915 0 1224979098644774914 1652 3 1224979098644774916 648518346341351424 1224979098644774915 2322 2 12 1224979098644774916 4 0 31 2 144115188075856136 2 1073741857 3 1224979098644774916 360287970189639706 360287970189639709 1073741857 3 1224979098644774916 360287970189639732 360287970189639798 1073741857 3 1224979098644774916 360287970189639803 360287970189639834 33 3 1224979098644774916 360287970189639839 360287970189639845 2105 2 1224979098644774922 1 5 0 31 2 144115188075856136 1 1073741857 3 1224979098644774916 360287970189639716 360287970189639732 1073741857 3 1224979098644774916 360287970189639799 360287970189639803 33 3 1224979098644774916 360287970189639834 360287970189639839 2105 2 1224979098644774922 1 5 0 2105 2 1224979098644774922 0 3 0 3 0 2110 2 1224979098644774922 10 2111 2 1224979098644774922 0 2106 2 1224979098644774912 1224979098644774922 3 0 521 3 144115188075857239 648518346341351424 250 2106 2 1224979098644774912 144115188075857239 2112 3 1224979098644774912 0 100 2133 2 72057594037927936 1224979098644774912

In scripts.txt, the 50 is probably base moral, the 12 is probably leadership bonus, the 15 probably leadership bonus when king. That's presuming it's the same as native, which it may not be.

Thought I would just let you all know this one still works. (I only changed the 50 to 1000 though).
 
Back
Top Bottom