New way to add 2D courts, 3D Stadium & Surfaces in TE4 v0.54

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 ! ;) )

Re: New way to add 2D courts in TE4 v0.54

Postby wilddog79 » 17 Apr 2022, 06:50

manutoo wrote:wilddog79,
1) Do not put space in your folder names ; the game may not work well with them

2) You just use the new way to position lines.
But if you use the old way, IIRC, the camera parameters are saved in your Tennis.ini and you have to copy them to your Stadium.ini .

I couldn't understand the new way, then for it I cameback to the old way, but I don't found information in Tennis.ini, because according to what I checked, enabling DevMode in the "XKT" profile is possible adjust lines in the game, If I try to make the same in the "Tennis.ini" this doesn't enable the shortcuts, the shortcuts are enabled with XKT profile for me.
My problem is that doesn't save changes of modification of camera.
wilddog79
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 331
Gaming Since: 08 May 2017, 04:32
Location: Chile

Re: New way to add 2D courts in TE4 v0.54

Postby manutoo » 18 Apr 2022, 06:03

wilddog79,
if you use a profile, check the saved camera in it ; ie: in "Profiles\XKT.ini".
ManuTOO
== Mana Games ==

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

Re: New way to add 2D courts in TE4 v0.54

Postby wilddog79 » 18 Apr 2022, 07:06

manutoo wrote:wilddog79,
if you use a profile, check the saved camera in it ; ie: in "Profiles\XKT.ini".

I already checked that and it doesn't worked for me, then I'd prefer to use the new way, but the new one i can't understand it, would it be possible you can explain it clearer, step by step please? I'd appreciate it too many.
wilddog79
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 331
Gaming Since: 08 May 2017, 04:32
Location: Chile

Re: New way to add 2D courts in TE4 v0.54

Postby Mystery » 18 Apr 2022, 11:34

wilddog79 wrote:I already checked that and it doesn't worked for me, then I'd prefer to use the new way, but the new one i can't understand it, would it be possible you can explain it clearer, step by step please? I'd appreciate it too many.



If you are using the "XKT" profile, then you should refer to the [Camera] section in "Profiles\XKT.ini" instead of "Tennis.ini" because that only controls the "Default" profile.
If you are new to modding, remember to press the "save" shortcut key after you fix the lines before exiting the game. Then copy the four lines in [Camera] in XKT.ini to the corresponding section in your Stadium.ini (i.e. inside the Dallas folder). Should work alright! :yes:

Note: There is a bug if you have devmode turned on in this build. Make sure you switch devmode to "off" after you create the court and then change camera from "still" to any other and switch it back should fix the issue.
Major Titles:
· Australian Open 2023
· Wimbledon 2021, 2023
· US Open 2022, 2023
· World Tour Finals 2022

Tour Moderator
YouTube: https://www.youtube.com/c/Mystery_Yale
User avatar
Mystery
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 360
Gaming Since: 24 Apr 2020, 11:29
Location: United States

Re: New way to add 2D courts in TE4 v0.54

Postby wilddog79 » 18 Apr 2022, 14:16

What you mention in the first point It's what I've made correctly, the situation is that the adjust of the camera manually became very complex for me this time, I mean, the first way.

In relation with your note, maybe it's my problem and due to that It's not saving and there're not reflected changes when I try to adjust camera.

Anyway, as I told you before, I'd prefer to use the second way to adjust camera, according what they say that's more recommended, and it's there where I'ven't understood.

Could you make some kind of tutorial when you can and have time please?
wilddog79
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 331
Gaming Since: 08 May 2017, 04:32
Location: Chile

Re: New way to add 2D courts in TE4 v0.54

Postby Roms » 18 Apr 2022, 15:01

wilddog79 wrote:What you mention in the first point It's what I've made correctly, the situation is that the adjust of the camera manually became very complex for me this time, I mean, the first way.

In relation with your note, maybe it's my problem and due to that It's not saving and there're not reflected changes when I try to adjust camera.

Anyway, as I told you before, I'd prefer to use the second way to adjust camera, according what they say that's more recommended, and it's there where I'ven't understood.

Could you make some kind of tutorial when you can and have time please?


which .ini do you use? the focal doesn't seem to be the right one.... :unsure: :jap: :jap:
Roms
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 304
Gaming Since: 13 Oct 2018, 02:37

Re: New way to add 2D courts in TE4 v0.54

Postby wilddog79 » 18 Apr 2022, 17:11

I use the XKT.ini file of my profile, in this file i'm working, now talking about the second way to adjust the camera, I don't understand when they talk about X Y coordinates and all the other mentioned.


Note: I too want to ask you if you'll have the videotutorial of the user pbdo who shared a long time ago, where he explains how to work with a picture of a court step by step adjusting the camera, because the youtube video is not available to download in the forum.
wilddog79
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 331
Gaming Since: 08 May 2017, 04:32
Location: Chile

Re: New way to add 2D courts in TE4 v0.54

Postby wilddog79 » 20 Apr 2022, 03:49

Automatic line positioning for 2D courts :
You can now define the custom camera for 2D courts like this :
Código: Seleccionar todo
[Camera]
AspectRatio = 16:9
AutoU1 = 0.3323
AutoV1 = 0.2106
AutoU2 = 0.8297
AutoV2 = 0.7810

ie: no more manual positioning of the camera, you just note down where are the top left & bottom right corners of the lines ! To get these coordinates, divide the pixel's X by the width, and the pixel's Y by the height (so the coordinates will be normalized and thus will still work in case you resize the image afterwards). U1/V1 is the top left line corner, and U2/V2 is the bottom right line corner. For courts without a corridor, add this line :
Código: Seleccionar todo
AutoNoCorridor = 1

Could someone please explain how this works to adjust the camera?
wilddog79
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 331
Gaming Since: 08 May 2017, 04:32
Location: Chile

Re: New way to add 2D courts in TE4 v0.54

Postby wilddog79 » 24 Apr 2022, 21:08

Old way: I think It's a problem of bug when I try to save a adjust of camera, because using the old way to adjust and save camera, I comeback to the game and none change is done.

New way: I'm working with my XKT.ini profile, that's where I find the "Camera" section and all parameters.

No case with the "Automatic line positioning for 2D courts" for me, I can't solve this, I think they explain superficially, now I can say that I worked with parameters in the TE2013 without problems, but in TE4 and especially with the "XKT" I can't find solution, I can't make adjust of cameras.

Note: I think that nobody cares explain clearly, maybe most of users here have understood how to make it, but noone is interested to help. I can add too that before I created

I'd like to know if one of you have the videotutorial of pbdo310 where he explains how to adjust and save cameras of a court perfectly.

Thanks.
wilddog79
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 331
Gaming Since: 08 May 2017, 04:32
Location: Chile

Re: New way to add 2D courts in TE4 v0.54

Postby fjaoaoaoao » 22 Jul 2022, 23:10

Is there any way to see the values (CoF, CoR0, SurfaceSpeed) of the non-modded surfaces?
fjaoaoaoao
tennis curious
 
Messages: 1
Gaming Since: 22 Jul 2022, 22:52

Re: New way to add 2D courts in TE4 v0.54

Postby manutoo » 23 Jul 2022, 06:14

fjaoaoaoao,
check the Modding SDK : topic29-33540.php ; folder "Courts/Surfaces".
ManuTOO
== Mana Games ==

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

Re: New way to add 2D courts, 3D Stadium & Surfaces in TE4 v

Postby Left Foot Brake » 15 Oct 2022, 12:50

I'm not quite grasping the idea behind mutiple courts within the same tournament.
I have like, 5 AO Courts.... how to enable them all to be used in the same tournament?

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 3 sets of formulas for the most common cases :
1) Central + Secondary Stadium + Side court
2) Central + Side court
3) 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.


This is the bit I'm not sure about... where is the [StadiumSelection] section? Am I correct in thinking the #Main2W and #SideMain2W must be entries for Formula #3? What entries would I use to the first formula? #Main, #SideMain, #Secondary #SideCourt ??? I can't work it out. :oops:

Any help would be much appreciated!
:bounce:
Left Foot Brake
court crocodile
court crocodile
 
Messages: 24
Gaming Since: 04 Aug 2022, 14:49
Location: Australia

Re: New way to add 2D courts, 3D Stadium & Surfaces in TE4 v

Postby manutoo » 15 Oct 2022, 14:51

Left Foot Brake,
"[StadiumSelection]" is near the start of Tour.ini .

You can use the 3) if you have 1 central + 4 side courts. In such a case, you can do this :
Code: Select all
Stadium = AO_Central #Main2W ; AO_Side1 #SideMain2W ; AO_Side2 #SideMain2W ; AO_Side3 #SideMain2W ; AO_Side4 #SideMain2W

Replace AO_Central & AOSideX by the names of your stadiums.

If you have 2 secondary central courts, and 2 side courts, use this instead :
Code: Select all
Stadium = AO_Central #CentralW ; AO_Second1 #Second2W ; AO_Second2 #Second2W ; AO_Side1 #SideCentral2W ; AO_Side2 #SideCentral2W


And add this under [StadiumSelection] : (I just added it for the next update)
Code: Select all
// Central Court + another Secondary Big Stadium (or several) + a side court (or several), for 2-week tournaments
Central2W   =   IfElse(Q == 0 && (B <= 3 || W <= 8), 1, 0)
Second2W   =   IfElse(Q == 1 || R <= 2 || B <= 2 || W <= 4, 0, IfElse(R <= 3 || B <= 16 || W <= 24, 1, 0))
SideCentral2W   =   IfElse(Q == 0 && (B <= 16 || W <= 24), 0, 1)
ManuTOO
== Mana Games ==

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

Re: New way to add 2D courts, 3D Stadium & Surfaces in TE4 v

Postby Left Foot Brake » 15 Oct 2022, 16:05

Fantastic!
:applause:
Thankyou so much, Manu!
Left Foot Brake
court crocodile
court crocodile
 
Messages: 24
Gaming Since: 04 Aug 2022, 14:49
Location: Australia

Previous

Return to Modding - TE4

Who is online

Users browsing this forum: No registered users and 1 guest