in a few days, the version 0.54 of TE4 will be released and it'll change the way to add 2D courts to the game.
Let's start with an example :
You can install this new court in the folder "Mods\<YourModName>\Courts\Stadiums", so you'll get : "Mods\<YourModName>\Courts\Stadiums\MyClayCourt\Court.jpg".
So the main change is that now the 2D courts can use any name for their folder, and this folder is in "Courts\Stadiums" instead of "Courts".
Important note : you shouldn't put spaces in the folder name. (although it seems to work anyway, except if you want to localize your stadium & surface names in different languages

This allows having your 2D court shown in the Training Club without touching any menu file.
The legacy Court.ini is split into 2 .ini :
- 1 in "Courts\Stadiums\<NameOfStadium>\Stadium.ini", for the stadium related information
- 1 in "Courts\Surface\<NameOfSurface>\Surface.ini", for the surface related information
So if you use the surfaces from the game, you don't need to add your own Surface.ini. Also if you want a new Surface, different new 2D courts can reference it through their Stadium.ini, which allows faster tuning of its physical properties.
The image itself is still called "Court.jpg" (and should be in power-of-2 dimensions for faster loading time ; eg: 2048x1024 instead of 1920x1080), and beside it, you can add an "Icon.jpg" file (or .png), preferably of 128x128 size. The stadium will be automatically displayed in the new stadium selection menu, with this icon.
New Stadium / 2D Court :
Here the content of the sample Stadium.ini :
- Code: Select all
[Stadium] // French Slam
Scene = FrenchSlam
SignColor = 0xBF8E9A94
DefaultGround = Clay
NameDirect = My Clay Court
Only2dSelection = 1
SelectableInTC = 1 // Set to 0 to hide this stadium from selection in the Training Club
[Data]
Boards = // This turns off the Match Time & Speed boards
//LinesColorFor2D = 0 // Uncomment this to disable the court lines when displaying the associated 2D court
[Camera]
Angle = -16.3228197752185
CustomFocal = //
Dist = 2968.73095703125
Height = 859.098022460938
Focal = 2.30787014961243
AspectRatio = 16:9
The [Stadium] section is the same as the legacy [StadiumXX] sections that were in the GameSys.ini ; here is an explanation for each entry :
- Scene : the 3D scene to display if the 2D Background option is disabled
- SignColor : to change the color of the ads in the 3D scene (0 = no ads)
- DefaultGround : the surface to use by default ; it can be one from the original game, or one you have created
- NameDirect : allows you to define the name of the stadium shown in the menu without adding it to the Lang_*.txt files
- Only2dSelection : if 1, then the Stadium won't be shown in the Stadium selection screen if the 2D Background option is disabled
[Data] is for the Boards entry, allowing you to choose the disposition of the speed & match time amongst the ones available in the original stadiums.
[Camera] is the section from the legacy Court.ini, without changes (it's very recommended to read the "Automatic line positioning for 2D courts" section here to ease the line positioning process : topic11-31376.php )
To add a new 2D court to the World Tour, add this line to any tournament of your Tour.ini :
- Code: Select all
Stadium = MyNewStadium
Replace "MyNewStadium" with the folder name of your court in the "Stadiums" folder.
New Surface :
If you want to add a new surface, just create a file like this : "Mods\<YourModName>\Courts\Surfaces\<NameOfYourSurface\Surface.ini" .
And copy this inside (or copy one from the Modding SDK, once the v0.54 will have been released) and then edit it to your liking :
- Code: Select all
[Surface]
NameDirect = My Super Name // Name shown directly without looking into Lang_English.txt
SelectableInTC = 1 // Set to 0 to hide this surface from selection in the Training Club
[Physics] // Bleu-green Cement
CoF = 0.62
CoR0 = 0.82
SurfaceSpeed = 0.25
Type = 4 // Hard
[Sound]
Bounce = Bounce_Hard
Skid = Skid_Hard
[Data]
LinesColor = 0xFFFFFFFF // format is : 0xAARRGGBB => Alpha / Red / Green / Blue
MaterialIn = Blue
MaterialOut = Green
To add a new surface to the World Tour, add this line to any tournament of your Tour.ini :
- Code: Select all
Surface = MyNewSurface
Of course, change "MyNewSurface" to the folder name of your new surface...

As for the 2D Court, you can add an "Icon.jpg" file (or .png), preferably of 128x128 size, in the same folder as your new Surface.ini .
Defining different Stadiums for the same Tournament :
In your Tour.ini, you add a line like this to define the stadium for each tournament :
- Code: Select all
Stadium = MonteCarlo
Note: if there's no Stadium entry for a tournament, then it uses the Stadium defined in its Category.
To have different Stadiums, you do something like this :
- Code: Select all
Stadium = AustralianSlam #Main2W ; SideCourt #SideMain2W
Main2W & SideMain2W are entries defined under the [StadiumSelection] section. There are already 4 sets of formulas for the most common cases :
1) Central + Secondary Stadium + Side court
2) Central + Secondary Stadium + Side court, for 2-week tournaments
3) Central + Side court
4) Central + Side court, for 2-week tournaments
You can tune them or add your own formulas.
The formulas calculate a selection weight for each stadium. 0 means the Stadium won't be selected. If 2 Stadiums get a weight of 1, then each Stadium has a "1 / (1 + 1)" = 50% chance to be selected.
The 1st set supports several secondary stadiums ; for example, instead of having 50% chance for both the Central & the only Secondary stadium, it'll have a 33% chance for each of the Central & 2 Secondary stadiums (25% for each of 4 stadiums total, etc.).