Do Not Click On The Honey Pot !

How to mod the court physics ?

Everything about Modding the game, 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

How to mod the court physics ?

Postby leo26 » 08 Oct 2021, 18:18

I am confused as to what the court.ini values mean. Can someone please explain ?

CoF
CoR0
CoR1
DeltaE
SurfaceSpeed
HiDeceleration
SpeedConversion
leo26
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 60
Gaming Since: 05 May 2018, 07:37

Re: How to mod the court physics ?

Postby manutoo » 09 Oct 2021, 06:34

Hello,

HiDeceleration is for the player inertia ; lower value => more inertia
SpeedConversion alters the players' left/right speed conversion. The lower it is, the more the player will feel to be stuck in the mud.
DeltaE = change of elasticity for topspin ball
SurfaceSpeed doesn't change anything for the physics ; it's just there to tell the CPU what kind of surface it is so it'll adapt its game for it ; 1 = grass, 0 = hard, -1 = clay

CoF = Coefficient of Friction
CoR = Coefficient of Restitution ; it's the equivalent to TE2013's Elasticity.

You'll find the CoF & CoR here : https://www.itftennis.com/media/4420/20 ... ooklet.pdf ; "Figure 3. Court Pace Rating conversion chart." on page 33

However, ITF did an over-simplification with its ratings, so I put some additional CoRs.
So CoR0 is the one of the ITF at 16° incoming angle at 30 meters/second on impact for the vertical speed. But in some cases, it's better to define the CoR at some other angles ; by default, CoR1 is to indicate the ITF Vertical Ball Drop Test (90° angle, 7 m/s).
To define even more precisely the bounce, you can add CoR2 which is for the highest theoretical possible CoR of the surface (0° angle, 0m/s), and CoR3 which is for the Fast Vertical Drop (90° angle, 20m/s).

You can also enter your own angle & speed for the CoR, in case you find other data, eg :
Code: Select all
CoR1      =   0.76 44 12

This means the CoR is 0.76 for an impact at 44° with 12m/s of vertical speed.

By putting "weird" values on several CoRs, I simulated a kind of rubber surface (ie: the bounce was higher or lower than expected, depending on the incoming angle), which was pretty funny... :blackeye:

If you put too weird values, you'll get really strange stuff happening, though... :fear:
ManuTOO
== Mana Games ==

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

Re: How to mod the court physics ?

Postby antimouse » 30 Jun 2026, 22:42

Let me revive this old topic because my questions are related.

1) Above you said grass = -1 and clay = 1, but the modding SDK files show the opposite. Is it the post above that is wrong or is it the files?

2) And what does Type do to a surface? I noticed only the Wood surface is marked as Type 5 (Indoor). Do I have to put all indoor courts with Type 5?

Thanks!
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 552
Gaming Since: 06 Sep 2013, 01:05

Re: How to mod the court physics ?

Postby manutoo » 01 Jul 2026, 06:45

antimouse,
1) Yup, I had inverted the values. :blackeye:

2) You shouldn't use a Type of 5 anymore ; it's mainly for the stats, and now the game uses the Indoor values of the tournament instead. If set to 1, for Clay, the lines will get dirty during the match. It might be used for other stuff, I can't recall exactly what... :fear:
ManuTOO
== Mana Games ==

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

Re: How to mod the court physics ?

Postby antimouse » 08 Jul 2026, 00:15

Good to know.
And one more question: how do the court codes translate to surfaces in TE4? There are 9 codes (CL, GR, RA etc.), but 16 different surfaces in the Modding SDK. In TE2013, for indoor hard Tournaments, we used IH, but now I don't know which surface I should choose for my custom indoor court. I used Concrete, since it has higher SurfaceSpeed (0.5), but I wonder if there's a better choice.

Thanks again!
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 552
Gaming Since: 06 Sep 2013, 01:05

Re: How to mod the court physics ?

Postby manutoo » 08 Jul 2026, 06:27

here's the list :
1- "Clay"
2- "Grass"
3- "Synthetic"
4- "Cement"
5- "Carpet"
6- "Concrete"
7- "BlueGreenCement"
8- "NewLineSynthetic"
9- "GreenClay"
10- "PorousConcrete"
11- "ArtificialGrass"
12- "Wood"
13- "Nylon"
14- "Acrylic"

For a reminder, here are the values in the Tour.ini :
Code: Select all
[Court]
CL              =   1
GR              =   2
RA              =   3
HD              =   4
IN              =   5
IH              =   6
HD_BG           =   7
PC              =   8
HR              =   9
ManuTOO
== Mana Games ==

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


Return to Modding - TE4

Who is online

Users browsing this forum: ClaudeBot and 7 guests