Page 1 of 1

Questions about tournament info

PostPosted: 04 Jan 2015, 23:44
by antimouse
Hello,

Here I am again with more questions ':D

1) Can I add more info in tournament section? Will the engine load it? For example, I'd like to add the field City, like in the piece of code below:

Code: Select all
[Tournament001]
Name            =   Qatar ExxonMobil Open
Ground          =   DOHA250
City         =   Doha
DrawSingle      =   32
DrawDouble      =   16
Category        =   7
Country         =   QA
Week            =   1
PrizeMoney      =   $1025000  176000   92500    50000    28650    16850    9960
//CustomHud   =   Hud_Doha
//DrawSingleQ   =   28
VictoryCup   =   35


I know Sam did something similar with Players.ATP.ini file, adding a FullName and a OldName separately. I'm not sure if that is possible with tournaments. I tried and it didn't seem to work, but maybe I tried it wrong. If the engine loads it, how do I retrieve it?

2) Can I get the tournament ID number (001 for the [Tournament001] in the example above)? If I can, what is the command? I tried some things like /Board/CT_NbTrn, but it always gives me a sequential number by week, and not exactly this ID defined in Tour.ATP.ini.

I think that's all for now :D
Thanks in advance!

Re: Questions about tournament info

PostPosted: 05 Jan 2015, 04:50
by manutoo
Hello,

1) no, it's not possible.
I think Sam used that to manually change the name with a search & replace with a text editor.

2) Not possible either, but usually you have "/Board/TrnBnkNum" which contains the Index in the Tour.ini ( 0 = 1st tournament, 1 = 2nd tournament, etc...) . This Index changes if you change the tournament place in the .ini, though.
Alternatively, you may be able to use the name with "/Board/TrnName" .

Re: Questions about tournament info

PostPosted: 05 Jan 2015, 13:57
by antimouse
I'm not sure if I tried /Board/TrnBnkNum, but I'll give it a try later.
Thank you, Manu. :)

Re: Questions about tournament info

PostPosted: 04 May 2015, 15:02
by antimouse
Hey Manu,

Sorry for reviving one more topic ':D , but only now I started looking into this.
The /Board/TrnBnkNum is always 0, so I'm using /Board/CT_NbTrn. The problem is that this variable is sequential (1st tournament, 2nd tournament.... as you said), BUT it is not based on Tour.ini sequence, it is based on week sequence. I mean, for example, instead of having Doha-Chennai-Brisbane-Auckland-Sydney.... (I mean major tour) and only then adding Challengers and Futures, it counts all challengers and futures of the week together (Doha-Chennai-Brisbane-Challengers-Futures-Auckland-Sydney....). Is there another way for me to count them by type? Is there at least any way to know how many challengers I have in a week and how many futures in that same week, so I could do some math to correct the counting?

Why I'm bothering with this? Because I'm trying to make a different tournament menu screen, with info on each tournament, images etc., and I don't want to change the way tournaments are usually defined on Tour.ini, because everyone uses it like that (first Major tour, then Challengers and then Futures), so I wanted to keep the pattern.

Anyway, any help is appreciated, if it is not possible I'll understand :D

Thank you so much!

Re: Questions about tournament info

PostPosted: 05 May 2015, 09:35
by manutoo
antimouse,
I think you can do what you want by manually counting by the type of tournament (= /Board/TypeRank ) you get from GetWeekTournamentInfoBySlot. That'll require a bit of hard coding though.