How do i add more troops to the tournaments in 1.003?

Users who are viewing this thread

Thymo

Sergeant at Arms
M&B
I've tried to search this but i couldn't find any corresponding answers..

Here's how far i got:

1. I found the tournament part of the scripts.txt file and edited every single "64's" (the original troop number) to 120. (using the search function in notepad ++).

fill_tournament_participants_troop -1
62 23 2 1224979098644774912 1 23 2 1224979098644774913 2 2133 2 1224979098644774914 0 4 0 31 2 1224979098644774913 1 1650 2 1224979098644774915 648518346341351424 6 3 1224979098644774916 0 1224979098644774915 1652 3 1224979098644774917 648518346341351424 1224979098644774916 1507 1 1224979098644774917 2147483679 2 1224979098644774917 360287970189639798 500 3 360287970189639685 1224979098644774914 1224979098644774917 2105 2 1224979098644774914 1 3 0 3 0 1662 2 1224979098644774912 648518346341351425 1650 2 1224979098644774915 648518346341351425 6 3 1224979098644774916 0 1224979098644774915 1652 3 1224979098644774917 648518346341351425 1224979098644774916 1507 1 1224979098644774917 500 3 360287970189639685 1224979098644774914 1224979098644774917 2105 2 1224979098644774914 1 3 0 4 0 2136 3 1224979098644774918 0 100 2147483678 2 1224979098644774918 50 500 3 360287970189639685 1224979098644774914 360287970189639810 2105 2 1224979098644774914 1 3 0 4 0 2136 3 1224979098644774918 0 100 2147483678 2 1224979098644774918 50 500 3 360287970189639685 1224979098644774914 360287970189639811 2105 2 1224979098644774914 1 3 0 4 0 2136 3 1224979098644774918 0 100 2147483678 2 1224979098644774918 50 500 3 360287970189639685 1224979098644774914 360287970189639812 2105 2 1224979098644774914 1 3 0 2133 2 1224979098644774919 1224979098644774914 6 3 1224979098644774914 1224979098644774919 64 2136 3 1224979098644774918 0 6 4 0 31 2 1224979098644774918 0 500 3 360287970189639685 1224979098644774914 360287970189639690 5 0 31 2 1224979098644774918 1 500 3 360287970189639685 1224979098644774914 360287970189639691 5 0 31 2 1224979098644774918 2 500 3 360287970189639685 1224979098644774914 360287970189639692 5 0 31 2 1224979098644774918 3 500 3 360287970189639685 1224979098644774914 360287970189639794 5 0 31 2 1224979098644774918 4 500 3 360287970189639685 1224979098644774914 360287970189639709 5 0 500 3 360287970189639685 1224979098644774914 360287970189639708 3 0 3 0
get_num_tournament_participants -1
6 2133 2 1224979098644774912 0 6 3 1224979098644774913 0 120 560 3 360287970189639685 1224979098644774913 0 2105 2 1224979098644774912 1 3 0 2133 2 72057594037927936 1224979098644774912
get_random_tournament_participant -1
14 1 1 936748722493063488 2133 2 1224979098644774912 72057594037927936 2136 3 1224979098644774913 0 1224979098644774912 2133 2 1224979098644774914 1 6 3 1224979098644774915 0 120 31 2 1224979098644774914 1 560 3 360287970189639685 1224979098644774915 0 2106 2 1224979098644774913 1 2147483678 2 1224979098644774913 0 2133 2 1224979098644774914 0 520 3 1224979098644774916 360287970189639685 1224979098644774915 500 3 360287970189639685 1224979098644774915 -1 3 0 2133 2 72057594037927936 1224979098644774916
add_tournament_participant -1
8 23 2 1224979098644774912 1 2133 2 1224979098644774913 1 6 3 1224979098644774914 0 120 31 2 1224979098644774913 1 540 3 360287970189639685 1224979098644774914 -1 500 3 360287970189639685 1224979098644774914 1224979098644774912 2133 2 1224979098644774913 0 3 0
get_random_tournament_team_amount_and_size -1
33 1 1 936748722493063488 2133 2 1224979098644774912 72057594037927936 521 3 1224979098644774913 144115188075856056 151 2105 2 1224979098644774913 1 521 3 1224979098644774914 144115188075856056 152 2105 2 1224979098644774914 1 2133 2 1224979098644774915 1224979098644774912 2110 2 1224979098644774915 1224979098644774913 2133 2 1224979098644774916 1224979098644774912 2110 2 1224979098644774916 1224979098644774914 2133 2 1224979098644774917 1 4 0 30 2 1224979098644774912 32 2133 2 1224979098644774917 2 2110 2 1224979098644774917 1224979098644774914 3 0 2133 2 1224979098644774918 500 6 3 1224979098644774919 0 1224979098644774918 2136 3 1224979098644774920 2 1224979098644774915 2136 3 1224979098644774921 1224979098644774917 1224979098644774916 2122 3 1224979098644774922 1224979098644774920 1224979098644774921 2147483680 2 1224979098644774922 1224979098644774912 2121 3 1224979098644774923 1224979098644774912 1224979098644774922 2147483679 2 1224979098644774923 1 2133 2 1224979098644774918 0 3 0 4 0 32 2 1224979098644774918 0 2133 2 1224979098644774920 2 2133 2 1224979098644774921 1 3 0 2133 2 72057594037927936 1224979098644774920 2133 2 72057594037927937 1224979098644774921
get_troop_priority_point_for_tournament -1
27 23 2 1224979098644774912 1 2133 2 1224979098644774913 0 4 0 30 2 1224979098644774912 0 2105 2 1224979098644774913 40000 4 0 31 2 1224979098644774912 360287970189639680 2105 2 1224979098644774913 80000 3 0 4 0 1507 1 1224979098644774912 2105 2 1224979098644774913 20000 3 0 4 0 540 3 1224979098644774912 2 3 2105 2 1224979098644774913 10000 5 0 540 3 1224979098644774912 2 2 520 3 1224979098644774914 1224979098644774912 7 2105 2 1224979098644774913 1224979098644774914 2105 2 1224979098644774913 1000 5 0 2171 2 1224979098644774915 1224979098644774912 2105 2 1224979098644774913 1224979098644774915 3 0 3 0 2133 2 72057594037927936 1224979098644774913
sort_tournament_participant_troops -1
14 6 3 1224979098644774912 0 63 2120 3 1224979098644774913 1224979098644774912 1 6 3 1224979098644774914 1224979098644774913 120 520 3 1224979098644774915 360287970189639685 1224979098644774912 520 3 1224979098644774916 360287970189639685 1224979098644774914 1 2 936748722493063492 1224979098644774915 2133 2 1224979098644774917 72057594037927936 1 2 936748722493063492 1224979098644774916 2133 2 1224979098644774918 72057594037927936 32 2 1224979098644774918 1224979098644774917 500 3 360287970189639685 1224979098644774912 1224979098644774916 500 3 360287970189639685 1224979098644774914 1224979098644774915 3 0 3 0
remove_tournament_participants_randomly -1
26 23 2 1224979098644774912 1 6 3 1224979098644774913 0 1224979098644774912 2133 2 1224979098644774914 0 6 3 1224979098644774915 0 120 520 3 1224979098644774916 360287970189639685 1224979098644774915 30 2 1224979098644774916 0 2171 2 1224979098644774917 1224979098644774916 2110 2 1224979098644774917 38 2121 3 1224979098644774918 40 1224979098644774917 2105 2 1224979098644774914 1224979098644774918 3 0 2136 3 1224979098644774919 0 1224979098644774914 2133 2 1224979098644774920 1 6 3 1224979098644774915 0 120 31 2 1224979098644774920 1 520 3 1224979098644774916 360287970189639685 1224979098644774915 30 2 1224979098644774916 0 2171 2 1224979098644774917 1224979098644774916 2110 2 1224979098644774917 38 2121 3 1224979098644774918 40 1224979098644774917 2106 2 1224979098644774919 1224979098644774918 2147483678 2 1224979098644774919 0 500 3 360287970189639685 1224979098644774915 -1 2133 2 1224979098644774920 0 3 0 3 0
end_tournament_fight -1

2. I saved and opened a new savegame, participated in a tournament.

3. In the fights i noticed that some fighters just stood still.. I checked the "View participants" and saw that all but 64 of the participants were 'me'.. As my character was named Fiona.. How do i change that?
Tournament menu:
tournamentmenuvx4.png



Enemies standing still:
tournamentenemiesstandihr4.png



Friendly standing still; note that my character's name is also Fiona.
tournamentcompfionastanrd3.png


"View participants1"
viewparticipantsintournwt1.png



"View participants2"
viewparticipantsintournjg5.png

That's all.. Anyone know how i can modify all the "Fiona's" to be something like "Champion Fighter"..?

Thanks for any answer. Thymo.
 

Charonte

Veteran
WBNW
Point being we dont have a module system yet.

My gueses are you changed one too many "64's" and eddited the player somehow.

If I get a chance tomorrow I'll poke around in .960 and give a rundown of the script.
 

Charonte

Veteran
WBNW
You caught me in a good mood :grin:

I've done a bit of screwing around and have found a way to make it possible to edit how many troops exist in a tournament. Keep in mind that currently, the number of participents is halved each and every time you win so in reality you're only getting a couple more rounds. This is fixable so that only the winning team plays on, however I'm far too lazy to go around screwing with globals in compiled files, especially considering there seems to be a couple of differences inbetween this and .960.

Of course, if you simply want take a way a smaller (or larger?) number of troops after each round, we can do that too.
Just keep in mind, that the number of troops should always be a power of 2, unless you perform the last modification - changing the factor at which participants are removed. See the edit notes at the end of the post.

Oh, backup scripts.txt to be safe :razz:

Here we go:
[list type=decimal]
[*]Open scripts.txt (duh)
[*]Look for the segment that looks like this:
fill_tournament_participants_troop -1
62 23 2 1224979098644774912 1 23 2 1224979098644774913 2 2133 2 1224979098644774914 0 4 0 31 2 1224979098644774913 1 1650 2 1224979098644774915 648518346341351424 6 3 1224979098644774916 0 1224979098644774915 1652 3 1224979098644774917 648518346341351424 1224979098644774916 1507 1 1224979098644774917 2147483679 2 1224979098644774917 360287970189639798 500 3 360287970189639685 1224979098644774914 1224979098644774917 2105 2 1224979098644774914 1 3 0 3 0 1662 2 1224979098644774912 648518346341351425 1650 2 1224979098644774915 648518346341351425 6 3 1224979098644774916 0 1224979098644774915 1652 3 1224979098644774917 648518346341351425 1224979098644774916 1507 1 1224979098644774917 500 3 360287970189639685 1224979098644774914 1224979098644774917 2105 2 1224979098644774914 1 3 0 4 0 2136 3 1224979098644774918 0 100 2147483678 2 1224979098644774918 50 500 3 360287970189639685 1224979098644774914 360287970189639810 2105 2 1224979098644774914 1 3 0 4 0 2136 3 1224979098644774918 0 100 2147483678 2 1224979098644774918 50 500 3 360287970189639685 1224979098644774914 360287970189639811 2105 2 1224979098644774914 1 3 0 4 0 2136 3 1224979098644774918 0 100 2147483678 2 1224979098644774918 50 500 3 360287970189639685 1224979098644774914 360287970189639812 2105 2 1224979098644774914 1 3 0 2133 2 1224979098644774919 1224979098644774914 6 3 1224979098644774914 1224979098644774919 64 2136 3 1224979098644774918 0 6 4 0 31 2 1224979098644774918 0 500 3 360287970189639685 1224979098644774914 360287970189639690 5 0 31 2 1224979098644774918 1 500 3 360287970189639685 1224979098644774914 360287970189639691 5 0 31 2 1224979098644774918 2 500 3 360287970189639685 1224979098644774914 360287970189639692 5 0 31 2 1224979098644774918 3 500 3 360287970189639685 1224979098644774914 360287970189639794 5 0 31 2 1224979098644774918 4 500 3 360287970189639685 1224979098644774914 360287970189639709 5 0 500 3 360287970189639685 1224979098644774914 360287970189639708 3 0 3 0
get_num_tournament_participants -1
6 2133 2 1224979098644774912 0 6 3 1224979098644774913 0 64 560 3 360287970189639685 1224979098644774913 0 2105 2 1224979098644774912 1 3 0 2133 2 72057594037927936 1224979098644774912
get_random_tournament_participant -1
14 1 1 936748722493063488 2133 2 1224979098644774912 72057594037927936 2136 3 1224979098644774913 0 1224979098644774912 2133 2 1224979098644774914 1 6 3 1224979098644774915 0 64 31 2 1224979098644774914 1 560 3 360287970189639685 1224979098644774915 0 2106 2 1224979098644774913 1 2147483678 2 1224979098644774913 0 2133 2 1224979098644774914 0 520 3 1224979098644774916 360287970189639685 1224979098644774915 500 3 360287970189639685 1224979098644774915 -1 3 0 2133 2 72057594037927936 1224979098644774916
[*]You'll want to replace it with the following: (Be sure to edit in the desired values)
fill_tournament_participants_troop -1
62 23 2 1224979098644774912 1 23 2 1224979098644774913 2 2133 2 1224979098644774914 0 4 0 31 2 1224979098644774913 1 1650 2 1224979098644774915 648518346341351424 6 3 1224979098644774916 0 1224979098644774915 1652 3 1224979098644774917 648518346341351424 1224979098644774916 1507 1 1224979098644774917 2147483679 2 1224979098644774917 360287970189639798 500 3 360287970189639685 1224979098644774914 1224979098644774917 2105 2 1224979098644774914 1 3 0 3 0 1662 2 1224979098644774912 648518346341351425 1650 2 1224979098644774915 648518346341351425 6 3 1224979098644774916 0 1224979098644774915 1652 3 1224979098644774917 648518346341351425 1224979098644774916 1507 1 1224979098644774917 500 3 360287970189639685 1224979098644774914 1224979098644774917 2105 2 1224979098644774914 1 3 0 4 0 2136 3 1224979098644774918 0 100 2147483678 2 1224979098644774918 50 500 3 360287970189639685 1224979098644774914 360287970189639810 2105 2 1224979098644774914 1 3 0 4 0 2136 3 1224979098644774918 0 100 2147483678 2 1224979098644774918 50 500 3 360287970189639685 1224979098644774914 360287970189639811 2105 2 1224979098644774914 1 3 0 4 0 2136 3 1224979098644774918 0 100 2147483678 2 1224979098644774918 50 500 3 360287970189639685 1224979098644774914 360287970189639812 2105 2 1224979098644774914 1 3 0 2133 2 1224979098644774919 1224979098644774914 6 3 1224979098644774914 1224979098644774919 {Number} 2136 3 1224979098644774918 0 6 4 0 31 2 1224979098644774918 0 500 3 360287970189639685 1224979098644774914 360287970189639690 5 0 31 2 1224979098644774918 1 500 3 360287970189639685 1224979098644774914 360287970189639691 5 0 31 2 1224979098644774918 2 500 3 360287970189639685 1224979098644774914 360287970189639692 5 0 31 2 1224979098644774918 3 500 3 360287970189639685 1224979098644774914 360287970189639794 5 0 31 2 1224979098644774918 4 500 3 360287970189639685 1224979098644774914 360287970189639709 5 0 500 3 360287970189639685 1224979098644774914 360287970189639708 3 0 3 0
get_num_tournament_participants -1
6 2133 2 1224979098644774912 0 6 3 1224979098644774913 0 {Number} 560 3 360287970189639685 1224979098644774913 0 2105 2 1224979098644774912 1 3 0 2133 2 72057594037927936 1224979098644774912
get_random_tournament_participant -1
14 1 1 936748722493063488 2133 2 1224979098644774912 72057594037927936 2136 3 1224979098644774913 0 1224979098644774912 2133 2 1224979098644774914 1 6 3 1224979098644774915 0 {Number} 31 2 1224979098644774914 1 560 3 360287970189639685 1224979098644774915 0 2106 2 1224979098644774913 1 2147483678 2 1224979098644774913 0 2133 2 1224979098644774914 0 520 3 1224979098644774916 360287970189639685 1224979098644774915 500 3 360287970189639685 1224979098644774915 -1 3 0 2133 2 72057594037927936 1224979098644774916
[*]Next, look for the "add_tournament_participant -1" line. Replace it and the line after it with:
add_tournament_participant -1
8 23 2 1224979098644774912 1 2133 2 1224979098644774913 1 6 3 1224979098644774914 0 {Number} 31 2 1224979098644774913 1 540 3 360287970189639685 1224979098644774914 -1 500 3 360287970189639685 1224979098644774914 1224979098644774912 2133 2 1224979098644774913 0 3 0
[*]Now, look for "sort_tournament_participant_troops -1" replace it and remove_tournament_participants_randomly -1 with:
sort_tournament_participant_troops -1
14 6 3 1224979098644774912 0 {Number minus one} 2120 3 1224979098644774913 1224979098644774912 1 6 3 1224979098644774914 1224979098644774913 {Number} 520 3 1224979098644774915 360287970189639685 1224979098644774912 520 3 1224979098644774916 360287970189639685 1224979098644774914 1 2 936748722493063492 1224979098644774915 2133 2 1224979098644774917 72057594037927936 1 2 936748722493063492 1224979098644774916 2133 2 1224979098644774918 72057594037927936 32 2 1224979098644774918 1224979098644774917 500 3 360287970189639685 1224979098644774912 1224979098644774916 500 3 360287970189639685 1224979098644774914 1224979098644774915 3 0 3 0
remove_tournament_participants_randomly -1
26 23 2 1224979098644774912 1 6 3 1224979098644774913 0 1224979098644774912 2133 2 1224979098644774914 0 6 3 1224979098644774915 0 {Number} 520 3 1224979098644774916 360287970189639685 1224979098644774915 30 2 1224979098644774916 0 2171 2 1224979098644774917 1224979098644774916 2110 2 1224979098644774917 38 2121 3 1224979098644774918 40 1224979098644774917 2105 2 1224979098644774914 1224979098644774918 3 0 2136 3 1224979098644774919 0 1224979098644774914 2133 2 1224979098644774920 1 6 3 1224979098644774915 0 128 31 2 1224979098644774920 1 520 3 1224979098644774916 360287970189639685 1224979098644774915 30 2 1224979098644774916 0 2171 2 1224979098644774917 1224979098644774916 2110 2 1224979098644774917 38 2121 3 1224979098644774918 40 1224979098644774917 2106 2 1224979098644774919 1224979098644774918 2147483678 2 1224979098644774919 0 500 3 360287970189639685 1224979098644774915 -1 2133 2 1224979098644774920 0 3 0 3 0
[/list]

Tedious, I know. but it's more or less the only way until we get a module system.

Oh, and if you want to change the number of troops to take away after each round, look for 1224979098644774913 2 1 2 under end_tournament_fight -1, and replace the red 2 with the chosen amount. So, for example, if you wanted to remove 1/4 of the troops each round (so the tournament lasts longer), change it to a 4. Keep in mind, that this must be a factor power (see below) of the number of participants.. I haven't tested it yet, but should work just fine.

edit:
Just tested the last bit. It most certainly works, and you can still win however their are some rounding issues that leave you with odd numbers of opponents and a long, long tournament. If that bothers you, I'd recomend the number of participants is a power of the amount you used in the last conversion. So as an example, 9 would work if you had 3 as the factor. Or 256 for the default of 2 and so on.
 

Thymo

Sergeant at Arms
M&B

I'm SOO glad i cought you in a good mood!  :mrgreen:

Haven't tested it yet, but i'm finished scripting it in.. So.. Gotto go!  :mrgreen:
 

thick1988

Master Knight
WBWF&SNW
Quick question. Is there a way to make each tournament battle a 1 on 1 match between you and a single opponent?
 

Thymo

Sergeant at Arms
M&B
thick1988 said:
Quick question. Is there a way to make each tournament battle a 1 on 1 match between you and a single opponent?

Yep! We have the Module System now.. That should be a piece of ckae...  :wink:

..
 

T-72

Recruit
Thymo said:
thick1988 said:
Quick question. Is there a way to make each tournament battle a 1 on 1 match between you and a single opponent?

Yep! We have the Module System now.. That should be a piece of ckae...  :wink:

..

I want the same thing. 1 vs 1 battle each tier. How can i do this?
 

Zephilinox

Knight
WB
Top Bottom