Questions about tournament info

Everything about Modding TE2013, from new courts to the modifications of the player & tournament bases (and including all the bugs they may be creating ! ;) )
Forum rules
Speak English in 1st page of topics, and don't hijack topics, troll, use profanities nor insults

Questions about tournament info

Postby antimouse » 04 Jan 2015, 23:44

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!
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05

Re: Questions about tournament info

Postby manutoo » 05 Jan 2015, 04:50

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" .
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 18689
Gaming Since: 24 Jan 2004, 15:38
Location: France

Re: Questions about tournament info

Postby antimouse » 05 Jan 2015, 13:57

I'm not sure if I tried /Board/TrnBnkNum, but I'll give it a try later.
Thank you, Manu. :)
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05

Re: Questions about tournament info

Postby antimouse » 04 May 2015, 15:02

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!
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05

Re: Questions about tournament info

Postby manutoo » 05 May 2015, 09:35

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.
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 18689
Gaming Since: 24 Jan 2004, 15:38
Location: France


Return to Modding - TE2013

Who is online

Users browsing this forum: Google [Bot], Yandex [Bot] and 19 guests