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

Users who are viewing this thread

Sivy said:
kraggrim said:
Companions: change time between attempts to leave the party (1.03 release)
http://forums.taleworlds.com/index.php/topic,323613.msg7708802.html#msg7708802
Is this a workaround for Companions never leaving tweak? I mean, if you set an extremely high number for time between attempts to leave then even if their morale is at minimum they should stay in your party for hundreds of days, right? Or am I interpreting this wrong?

Yep, that's it. I had this tweak activated when I started a new (sandbox) game and was able to gather all companions, none tried to leave.
They also seem to have higher morale listed in the report bit, "X is pretty happy about your choice of companions and life in general", no idea if that affects anything apart from attempts to leave.


No worries florinteal & kalarhan, I had wondered about that feature too.
 
kraggrim said:
kraggrim said:
Added "Change the village recruit type of to be based on the faction owning the village" to front page.

Kalarhan, any idea how to do this tweak for towns/castles?

Had a look myself but couldn't find where it is.

1.04 new recruting system now takes renown, relations, religion, charisma, leadership, ....... into account to choose which troop AND how many soldiers  :iamamoron:

But it seens conquered towns/castles are not switching to the player support faction culture. Seens like a bug. I will ask on the feedback thread.

I modded it to get the player's faction instead. But gonna wait on devs reply.

Presentations.txt for 1.04beta (earlier version)
This:
Code:
prsnt_vc_submenu_recruits2 0 0 2
-60.000000  183 2133 2 144115188075857079 0 2133 2 144115188075857080 0 2133 2 144115188075857081 0 2133 2 144115188075857082 0 520 3 1224979098644774912 360287970189639680 16 521 3 1224979098644774913 144115188075856183 19 520

Change to this:
Code:
prsnt_vc_submenu_recruits2 0 0 2
-60.000000  183 2133 2 144115188075857079 0 2133 2 144115188075857080 0 2133 2 144115188075857081 0 2133 2 144115188075857082 0 520 3 1224979098644774912 360287970189639680 16 2204 2 1224979098644774913 144115188075856183 520


Update from the devs:
JuJu70 said:
No culture remains the same.
 
Lords in the game seem to have high starting relationship with their faction leaders, something like 30+, and it deteriorates very slowly even if you beat the living hell out of them constantly. Judging from what happens to lords in the player faction, every lost battle adds -1 to the lord-king relationship, I think that's too small a penalty and I would like to increase it, where should I look for it? Thanks!
 
kalarhan said:
should be on this script: battle_political_consequences

Play with cheat mode on, full debug/log messages and when you see someone losing a battle make a note/screen of the exact text message.

And include your scenario description:

a) Player loses battle: ?
b) Lord loses to player: ?
c) Random lord loses to a random lord (no player interation): ?
d) Marshal loses ...

and so on.
Hm... didn't think about the debug_mode, I should try it. Thank you!

As for scenario, I would like in general to make lords dislike thier kings if they lose battles/fiefs, so that would be options b and c.
 
Found it! Line 1136 under `battle_political_consequences`
Code:
1 4 936748722493063738 1224979098644774922 1224979098644774927 [color=red]-1[/color] 2105 2 144115188075857230 -1

Thanks!
 
telltale said:
Found it! Line 1136 under `battle_political_consequences`
Code:
1 4 936748722493063738 1224979098644774922 1224979098644774927 [color=red]-1[/color] 2105 2 144115188075857230 -1

Thanks!

Can you put a little more detailed instruction reply here I can link to on the front page?
 
kraggrim said:
telltale said:
Found it! Line 1136 under `battle_political_consequences`
Code:
1 4 936748722493063738 1224979098644774922 1224979098644774927 [color=red]-1[/color] 2105 2 144115188075857230 -1

Thanks!
Can you put a little more detailed instruction reply here I can link to on the front page?

The algorithm/script is the same as native.
The numbers that change are the scripts/variables numbers (9367487224xxxxxxxx, 1441151880xxxxxxx, etc). So for every patch/update it may change those values, but not the operations/commands. Here is how you can use this tweak for any version:

File: scripts.txt

Find what you want to change: penalty of -1 relation to the king
Script:
Code:
                     
 (call_script, "script_troop_change_relation_with_troop", ":cur_troop_id", ":faction_leader", -1), 
 (val_add, "$total_battle_ally_changes", -1),
Encoding:
Code:
1 4 9367487224xxxxxxxx 12249790986xxxxxxxx 12249790986xxxxxxxx -1 
2105 2 1441151880xxxxxxxx -1

What: penalty of -1 relation to other lords
Script:
Code:
(call_script, "script_troop_change_relation_with_troop", ":cur_troop_id", ":faction_leader", -1),
Encoding: same

(We will ignore the notes update so we dont have to change more stuff....)

Color coded below for 1.04beta2:  LIEGE / LORDS / MARSHAL
battle_political_consequences -1
144 23 2 1224979098644774912 1 23 2 1224979098644774913 2 4 0 31 2 144115188075856185 1 2330 2 4 1224979098644774913 2330 2 5 1224979098644774912 1106 1 216172782113786089 3 0 2204 2 1224979098644774914 1224979098644774913 4 0 31 2 1224979098644774913 648518346341351424 2133 2 1224979098644774914 144115188075856330 3 0 1609 2 1224979098644774915 1224979098644774912 4 0 1073741855 2 1224979098644774915 576460752303423511 31 2 1224979098644774915 576460752303423520 521 3 1224979098644774916 1224979098644774912 5 521 3 1224979098644774917 1224979098644774912 126 1 6 936748722493063712 3 1224979098644774913 1224979098644774917 1224979098644774916 1224979098644774914 4 0 31 2 144115188075856185 2 2147483681 3 1224979098644774914 432345564227567631 432345564227567653 2320 2 65 216172782113786090 1 4 936748722493063530 864691128455135503 0 0 2330 2 15 1224979098644774917 2330 2 16 1224979098644774916 1106 1 216172782113786091 3 0 3 0 4 0 1609 2 1224979098644774918 1224979098644774913 31 2 1224979098644774918 576460752303423525 2147483679 2 1224979098644774913 648518346341351424 1652 3 1224979098644774919 1224979098644774913 0 33 3 1224979098644774919 360287970189639975 360287970189640150 2204 2 1224979098644774914 1224979098644774913 1662 2 1224979098644774913 648518346341351427 1650 2 1224979098644774920 648518346341351427 6 3 1224979098644774921 0 1224979098644774920 1652 3 1224979098644774922 648518346341351427 1224979098644774921 33 3 1224979098644774922 360287970189639975 360287970189640150 4 0 520 3 1224979098644774923 1224979098644774922 10 132 1 1224979098644774923 1 2 936748722493063497 1224979098644774923 1 6 936748722493063712 35 360287970189639680 -1 1224979098644774922 -1 3 0 2173 2 1224979098644774924 1224979098644774922 31 2 1224979098644774924 1224979098644774914 2147483679 2 1224979098644774922 1224979098644774919 4 0 31 2 144115188075856185 4 2322 2 15 1224979098644774922 2322 2 16 1224979098644774919 1106 1 216172782113786092 3 0 1 4 936748722493063738 1224979098644774922 1224979098644774919 6 2105 2 144115188075857230 3 3 0 1617 1 648518346341351427 3 0 4 0 1662 2 1224979098644774912 648518346341351427 1650 2 1224979098644774920 648518346341351427 4 0 32 2 144115188075857185 0 2322 2 15 144115188075857185 2173 2 1224979098644774925 144115188075857185 4 0 31 2 144115188075856185 1 1106 1 216172782113786093 3 0 5 0 31 2 144115188075857185 360287970189639680 31 2 1224979098644774912 648518346341351424 542 3 432345564227567631 21 0 4 0 31 2 144115188075856185 1 1106 1 216172782113786094 3 0 5 0 2133 2 144115188075857185 -1 3 0 6 3 1224979098644774921 0 1224979098644774920 1652 3 1224979098644774922 648518346341351427 1224979098644774921 540 3 1224979098644774922 2 2 4 0 520 3 1224979098644774926 1224979098644774922 10 132 1 1224979098644774926 1 2 936748722493063497 1224979098644774926 1 6 936748722493063712 36 360287970189639680 -1 1224979098644774922 -1 3 0 2173 2 1224979098644774924 1224979098644774922 522 3 1224979098644774927 1224979098644774924 11 2147483679 2 1224979098644774922 1224979098644774927 32 2 1224979098644774927 -1 4 0 31 2 144115188075856185 1 2322 2 14 1224979098644774922 2335 2 15 1224979098644774924 1106 1 216172782113786095 3 0 4 0 3221225503 2 1224979098644774927 360287970189639680 31 2 144115188075856330 1224979098644774924 1 4 936748722493063738 1224979098644774922 1224979098644774927 -1 2105 2 144115188075857230 -1 3 0 1 4 936748722493063735 1224979098644774914 1224979098644774924 10 4 0 1073741857 3 1224979098644774919 360287970189639975 360287970189640150 31 2 1224979098644774919 360287970189639680 3221225503 2 1224979098644774919 360287970189639680 31 2 1224979098644774913 648518346341351424 1073742364 3 1224979098644774922 52 2 1073742364 3 1224979098644774922 52 3 540 3 1224979098644774922 52 5 1 4 936748722493063738 1224979098644774922 1224979098644774919 -1 2105 2 144115188075857186 -1 4 0 31 2 144115188075856185 1 2322 2 14 1224979098644774922 2322 2 15 1224979098644774919 1106 1 216172782113786096 3 0 3 0 32 2 144115188075857185 -1 31 2 1224979098644774924 1224979098644774925 2322 2 14 1224979098644774922 1 3 936748722493063729 1224979098644774922 144115188075857185 4 0 31 2 144115188075856185 1 1106 1 216172782113786097 3 0 1 6 936748722493063712 33 1224979098644774922 144115188075857185 1224979098644774927 1224979098644774914 1 4 936748722493063738 1224979098644774922 1224979098644774927 -15 2105 2 144115188075857230 -15 2147483679 2 144115188075857185 1224979098644774927 1 4 936748722493063738 1224979098644774922 144115188075857185 -15 2105 2 144115188075857230 -15 3 0 1617 1 648518346341351427 3 0


TLDR: -15 is for marshal penalties. -1 or -15 after a  1 4 9367487224xxxxxxxx 12249790986xxxxxxxx 12249790986xxxxxxxx   is for liege/lords.

Do not change this line: 2133 2 1441151880xxxxxxxx -1


Use Sublime Text (or similar) with a regex: 1 4 9367([0-9])* 12([0-9])* 1([0-9])* - -> that will make easy to find the spots to change
 
kalarhan, where do you get that Python script by the way? I don't see any in my distributive, is there some SDK with it?
 
kalarhan said:
telltale said:
kalarhan, where do you get that Python script by the way? I don't see any in my distributive, is there some SDK with it?

that is from native 1.166. VC uses the same script, like I mentioned above. Think of VC as native + bunch of new code  :cool:

When it is new stuff you will need to decode manually from the text files.

See this:

http://forums.taleworlds.com/index.php/topic,323613.msg7719180.html#msg7719180 http://forums.taleworlds.com/index.php/topic,323613.msg7718289.html#msg7718289

If you want to learn more please create a new thread about it. This one is for @kraggrim's tweaks collection

Cheers
I mean where do you find this Python code:
(7 * 24,
  [
      (troop_get_slot, ":player_renown", "trp_player", slot_troop_renown),
      (store_div, ":renown_decrease", ":player_renown", 200),
      (val_sub, ":player_renown", ":renown_decrease"),
      (troop_set_slot, "trp_player", slot_troop_renown, ":player_renown"),
    ]),
There is no Python script (.py files) that I can find in my game directory.
 
Hello all
Anyone know where i can modify  the fact that as a king , when i give a fort or village to a lord, the others get pissed off about it ? ( like changing teh value to 0 for exemple:razz: ).
those *#'[] should really have a look at my prison to see the piles of enemies lord rotting here and learn to st*u when they are not happy :razz:
 
irishterion said:
Hello all
Anyone know where i can modify  the fact that as a king , when i give a fort or village to a lord, the others get pissed off about it ? ( like changing teh value to 0 for exemple:razz: ).
those *#'[] should really have a look at my prison to see the piles of enemies lord rotting here and learn to st*u when they are not happy :razz:

That depends on each lord personality. If you choose to recruit the honourable ones, etc, you wont get the penalty on giving fiefs. They are harder to recruit, easier to manage. Companions follow the same rule-set if you turn them into lords. It also depends on other stuff (did you promise him a fief? Did he like you before or not? ....)

The script you should look at: give_center_to_lord


To tweak only the lords personality, change this:

File: scripts.txt
Script: give_center_to_lord
Look for:    (lt, ":relation_with_liege_change", 0) -> 2 2147483678 2 12xxxxxxxxxxxxxxxxxxxx 0 2107 2
Change the 0 to something else (like -99)


Using Sublime Text with regex:
            - find: (2 2147483678 2 12[\d]{17} )(\d{1})(\s2107 2)
            - replace: \1-99\2

That should do the trick unless they changed something for VC.


For 1.04beta patch2 it would be :

give_center_to_lord -1
171 23 2 1224979098644774912 1 23 2 1224979098644774913 2 23 2 1224979098644774914 3 4 0 31 2 144115188075856185 1 30 2 1224979098644774913 0 2330 2 4 1224979098644774912 2322 2 5 1224979098644774913 1106 1 1585267068834415345 3 0 4 0 31 2 1224979098644774913 360287970189639680 372 1 50 2133 2 1224979098644774915 1 6 3 1224979098644774916 648518346341351445 648518346341351714 2147483679 2 1224979098644774916 1224979098644774912 541 3 1224979098644774916 7 360287970189639680 2105 2 1224979098644774915 1 3 0 30 2 1224979098644774915 5 372 1 51 3 0 521 3 1224979098644774917 1224979098644774912 7 4 0 31 2 1224979098644774913 -1 2133 2 1224979098644774918 432345564227567631 1677 2 1224979098644774912 0 5 0 31 2 1224979098644774913 360287970189639680 2133 2 1224979098644774918 144115188075856330 5 0 2173 2 1224979098644774918 1224979098644774913 3 0 522 3 1224979098644774919 1224979098644774918 11 4 0 31 2 1224979098644774919 360287970189639680 4 0 1506 2 1224979098644774920 360287970189639680 2109 2 1224979098644774920 2 31 2 1224979098644774920 1 372 1 77 3 0 3 0 4 0 31 2 1224979098644774919 1224979098644774917 1 6 936748722493063712 22 1224979098644774919 1224979098644774912 1224979098644774913 1224979098644774918 500 3 1224979098644774913 47 0 3 0 4 0 31 2 1224979098644774913 -1 1620 2 1224979098644774912 144115188075856330 5 0 31 2 1224979098644774913 360287970189639680 32 2 144115188075856330 0 1620 2 1224979098644774912 144115188075856330 5 0 31 2 1224979098644774913 360287970189639680 2147483681 3 144115188075856330 432345564227567631 432345564227567653 1620 2 1224979098644774912 432345564227567631 5 0 1620 2 1224979098644774912 1224979098644774918 3 0 501 3 1224979098644774912 7 1224979098644774913 4 0 541 3 1224979098644774912 0 4 521 3 1224979098644774921 1224979098644774912 122 32 2 1224979098644774921 0 132 1 1224979098644774921 2204 2 1224979098644774922 1224979098644774912 1620 2 1224979098644774921 1224979098644774922 3 0 4 0 1073742365 3 1224979098644774912 0 3 541 3 1224979098644774912 0 2 32 2 1224979098644774913 -1 520 3 1224979098644774923 1224979098644774913 13 32 2 1224979098644774923 0 2106 2 1224979098644774923 1080863910568919452 2105 2 1224979098644774923 1297036692682702983 1677 2 1224979098644774912 1224979098644774923 3 0 4 0 32 2 1224979098644774913 -1 1 2 936748722493063641 1224979098644774913 3 0 1 2 936748722493063645 1224979098644774912 4 0 32 2 1224979098644774918 0 1 2 936748722493063638 1224979098644774918 3 0 4 0 30 2 1224979098644774917 0 1 2 936748722493063641 1224979098644774917 2173 2 1224979098644774924 1224979098644774917 1 2 936748722493063638 1224979098644774924 3 0 4 0 31 2 1224979098644774914 1 1073742365 3 1224979098644774912 0 3 541 3 1224979098644774912 0 2 2133 2 1224979098644774925 3 4 0 541 3 1224979098644774912 0 3 2133 2 1224979098644774925 9 3 0 6 3 1224979098644774926 0 1224979098644774925 1 2 936748722493063477 1224979098644774912 3 0 6 3 1224979098644774926 0 7 2122 3 1224979098644774927 150 1224979098644774925 2122 3 1224979098644774928 200 1224979098644774925 2136 3 1224979098644774929 1224979098644774927 1224979098644774928 1673 3 1224979098644774912 1224979098644774929 0 3 0 3 0 522 3 1224979098644774919 1224979098644774918 11 2270 1 1224979098644774930 4 0 32 2 1224979098644774930 0 32 2 1224979098644774913 0 1 4 936748722493063738 1224979098644774913 1224979098644774919 10 2105 2 144115188075857227 10 6 3 1224979098644774931 360287970189639975 360287970189640150 540 3 1224979098644774931 2 2 2147483679 2 1224979098644774931 1224979098644774913 2173 2 1224979098644774932 1224979098644774931 31 2 1224979098644774918 1224979098644774932 2147483679 2 1224979098644774931 1224979098644774919 1 3 936748722493063739 1224979098644774931 1224979098644774913 2133 2 1224979098644774933 72057594037927936 2123 3 1224979098644774934 1224979098644774933 8 2106 2 1224979098644774934 2 2112 3 1224979098644774934 -5 3 4 0 1073742364 3 1224979098644774931 52 7 540 3 1224979098644774931 52 6 30 2 1224979098644774933 0 2111 2 1224979098644774934 0 5 0 1073742364 3 1224979098644774931 52 3 1073742364 3 1224979098644774931 52 5 540 3 1224979098644774931 52 2 2147483678 2 1224979098644774934 0 2107 2 1224979098644774934 3 2108 2 1224979098644774934 2 3 0 2147483679 2 1224979098644774934 0 4 0 540 3 1224979098644774931 157 1224979098644774913 2105 2 1224979098644774934 1 2111 2 1224979098644774934 1 3 0 1 4 936748722493063738 1224979098644774931 1224979098644774919 1224979098644774934 2105 2 144115188075857227 1224979098644774934 4 0 3221225504 2 1224979098644774934 -4 1073742364 3 1224979098644774931 47 1 540 3 1224979098644774931 47 1224979098644774912 1 6 936748722493063712 26 1224979098644774931 1224979098644774912 1224979098644774913 1224979098644774918 3 0 3 0 3 0 4 0 33 3 1224979098644774912 648518346341351445 648518346341351564 6 3 1224979098644774935 648518346341351564 648518346341351714 541 3 1224979098644774935 120 1224979098644774912 2204 2 1224979098644774936 1224979098644774935 2147483679 2 1224979098644774936 1224979098644774918 1 4 936748722493063469 1224979098644774935 1224979098644774913 0 3 0 3 0
 
mmm the file doesn't look like that at all.
i mean i find the give_center_to_lord  but it is like that

give_center_to_lord -1
171 23 2 1224979098644774912 1 23 ... ( hundreds of numebrs here )
then  it's
get_number_of_hero_centers -1 
numbers again
so no relation with liege  near it or either in the file as well. ( I am assuming that the file is in the viking conquest folder of course ) 
Am i missing something here ? i use notepad++ for editing the file.
 
all right ok i understand.
i was beginning to think i was doing something wrong as i looked a the scripts file from the native modul and i could see the same list of numbers . :smile:
much better when the code is translated i guess ^^. thx a lot for your help Kalarhan, i am guessing i need to find some kind of phyton translating prog now . ( time for me to google mod 101 for warband  i think :smile: )
 
irishterion said:
all right ok i understand.
i was beginning to think i was doing something wrong as i looked a the scripts file from the native modul and i could see the same list of numbers . :smile:
much better when the code is translated i guess ^^. thx a lot for your help Kalarhan, i am guessing i need to find some kind of phyton translating prog now . ( time for me to google mod 101 for warband  i think :smile: )

all you want to know about modding, scripts and Python is in the Forge: http://forums.taleworlds.com/index.php/board,64.0.html
 
Hey guys :smile:

Can you help me to change the loss of morale when I choose to "Lay claim to see all the loot first"? That's the most annoying thing in this game (for me), because even tho I kill most of the heavy and strongest units it's then completely "random" what I get and I don't really like that style.

Thanks in advance!
 
Back
Top Bottom