Author Topic: How do i add more troops to the tournaments in 1.003?  (Read 3915 times)

0 Members and 1 Guest are viewing this topic.

Thymo

  • Sergeant at Arms
  • *
  • Physicist, Mathematician, Microbiologist, Samurai.
    • View Profile
  • Faction: Neutral
  • M&B
How do i add more troops to the tournaments in 1.003?
« on: October 03, 2008, 02:12:18 AM »
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 ++).

(click to show/hide)

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?
(click to show/hide)

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

Thanks for any answer. Thymo.
e^(i*π)+1=0

1. d4 d5 2. c4 e5! The Albin Countergambit! <3

The Riemann Zeta Function:

Cloud Breaker

  • He who summoned KoC
  • Master Knight
  • *
  • Hear Me Roar.
    • View Profile
  • Faction: Rhodok
Re: How do i add more troops to the tournaments in 1.003?
« Reply #1 on: October 03, 2008, 11:50:51 AM »
It is best to make the changes in the module system. Not many of us can help you with txt files.
ALICE: Thank you for the clarification.
Human: good man
ALICE: Thanks for the compliment. Thanks for telling me your gender, unknown person. You are a " he".
Human: no, I am a woman.
ALICE: Are you serious? Me too. I am a she.
Human: I don't have a cock
ALICE: Are you looking for a cock?

Charonte

  • Veteran
  • *
    • View Profile
  • Faction: Bandit
Re: How do i add more troops to the tournaments in 1.003?
« Reply #2 on: October 03, 2008, 12:08:36 PM »
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
  • *
    • View Profile
  • Faction: Bandit
Re: How do i add more troops to the tournaments in 1.003?
« Reply #3 on: October 04, 2008, 06:21:49 AM »
You caught me in a good mood :D

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 :P

Here we go:
  • Open scripts.txt (duh)
  • Look for the segment that looks like this:
    (click to show/hide)
  • You'll want to replace it with the following: (Be sure to edit in the desired values)
    (click to show/hide)
  • Next, look for the "add_tournament_participant -1" line. Replace it and the line after it with:
    (click to show/hide)
  • Now, look for "sort_tournament_participant_troops -1" replace it and remove_tournament_participants_randomly -1 with:
    (click to show/hide)

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.
« Last Edit: October 04, 2008, 06:45:35 AM by Charonte »

Thymo

  • Sergeant at Arms
  • *
  • Physicist, Mathematician, Microbiologist, Samurai.
    • View Profile
  • Faction: Neutral
  • M&B
Re: How do i add more troops to the tournaments in 1.003?
« Reply #4 on: October 04, 2008, 10:35:20 AM »

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:
e^(i*π)+1=0

1. d4 d5 2. c4 e5! The Albin Countergambit! <3

The Riemann Zeta Function:

thick1988

  • Squire
  • *
  • Double taxes and half rations...
    • View Profile
  • Faction: Neutral
  • MP nick: Sir_Thick1988_TCK
Re: How do i add more troops to the tournaments in 1.003?
« Reply #5 on: December 01, 2008, 04:45:26 AM »
Quick question. Is there a way to make each tournament battle a 1 on 1 match between you and a single opponent?
Creator of Diplomacy + OSP mod and OSP Item Variants

Knight of the Order of the Lance
 
JOIN THE CLAN:
http://forums.taleworlds.com/index.php?topic=132437.new#new

Thymo

  • Sergeant at Arms
  • *
  • Physicist, Mathematician, Microbiologist, Samurai.
    • View Profile
  • Faction: Neutral
  • M&B
Re: How do i add more troops to the tournaments in 1.003?
« Reply #6 on: December 01, 2008, 11:16:42 AM »
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:

..
e^(i*π)+1=0

1. d4 d5 2. c4 e5! The Albin Countergambit! <3

The Riemann Zeta Function:

sanjak

  • Veteran
  • *
    • View Profile
  • Faction: Vaegir
Re: How do i add more troops to the tournaments in 1.003?
« Reply #7 on: December 07, 2008, 02:46:30 AM »
Thank you very much, Charonte.  :)

thick1988

  • Squire
  • *
  • Double taxes and half rations...
    • View Profile
  • Faction: Neutral
  • MP nick: Sir_Thick1988_TCK
Re: How do i add more troops to the tournaments in 1.003?
« Reply #8 on: December 12, 2008, 08:47:41 PM »
the module system is essentially lost on me. but ill give it a go.
Creator of Diplomacy + OSP mod and OSP Item Variants

Knight of the Order of the Lance
 
JOIN THE CLAN:
http://forums.taleworlds.com/index.php?topic=132437.new#new