Modding Questions

Everything about this tennis manager game

Modding Questions

Postby Jay_Ar » 13 Apr 2020, 10:27

Hello
1) is it possible to create more than one player at the beginning? I would like to create 4 Jamaicans and mix up the ATP including the Davis Cup?

2) AND, I would be happy to provide original center courts would be phenomenal, as would player pictures and trophies.
Maybe it’s okay anyway? I can't find the file for editing;
I think you only have to assign a certain center court to a tournament, don't you? I would love to do that :-)

3) and I am currently trying to figure out whether it is possible to create the ATP Cup? 1: 1 will not work, because the promotion and awarding points is quite complicated, but would it be possible in principle to create such a tournament for nations? I would try if someone could give me a little push :-)

I wish you a nice day!
Jay_Ar
tennis fan
tennis fan
 
Messages: 12
Gaming Since: 10 Apr 2020, 12:40

Modding Questions

Postby Jay_Ar » 14 Apr 2020, 21:11

Thank You for the update :-)

4) Since the update, the color of my type has changed; can I edit them in a file?
I would like the ATP250 to be different in color from the Challenger, that's for sure somewhere, isn't it?

5) and the font could be white too, would be cool too
if anyone could tell me the file
Thanks :-)
Attachments
colour.JPG.png
Jay_Ar
tennis fan
tennis fan
 
Messages: 12
Gaming Since: 10 Apr 2020, 12:40

Re: Modding Questions

Postby manutoo » 15 Apr 2020, 07:36

Hello,

1) No, it's not possible

2) I need to add some stuff so you could specify a background image in the Tour.ini for each tournament you'd like, and you'd put this image in a folder somewhere (maybe in "Menu\Art\Bg\Tournament")

3) No, it's not possible to create anything looking like the ATP Cup : there's no set of rules for it.

4) Background color is from the tournament TypeRank in its category ; maybe you have changed those ? I checked and in my game, Challenger background is still pink and Future blue.

5) It's hard to change the font color if you're not familiar with scripting (or coding). You'll find the file in the Modding SDK -> Menu -> Scripts -> PlayerPlanningSub.menu ; it's the "Default" font at the start : 0xFF000000 = black
ManuTOO
== Mana Games ==

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

Re: Modding Questions

Postby Jay_Ar » 15 Apr 2020, 11:50

Thank you for your answers, very great

I managed to get the colors back, imagining that the background in the "Type" column was white; but it doesn't matter, now they are separated in color again, that's a good step :-) so the font color is no longer so important; would only be the point on the i

now I have to edit the ATP tour again because I have saved my already finished one :-(
the files from cj1984 are perfect -> THANK YOU, I only change to the official tournament names (Kitzbühel ->Generali Open), and some tournament weeks; a question about the prize money

PrizeMoney = $1.313.215 | 219.755 | 118.320 | 64.975 | 36.670 | 20.655 | 12.110

I don't quite understand who gets what; the first amount is the pool for the entire tournament, right? then follow winner, finalist, semi-finalist, and and, right? There is something left over from the total amount, which goes to the doubles?

Excuse me, if I am a little annoying I would like to learn a little, maybe then, like the FM20 (Country-File Austria), I can create a good mod file; good in the sense of what an unsuspecting person can do with help and youtube videos

and, I can't say it enough, I love TEM2

have all a nice day
stay healthy
Jay_Ar
tennis fan
tennis fan
 
Messages: 12
Gaming Since: 10 Apr 2020, 12:40

Re: Modding Questions

Postby manutoo » 15 Apr 2020, 12:45

You'll find some explanation about the player & tour bases here : https://www.managames.com/tennis/doc/HowToMod.html .

The changes from TEM2 are explained here : topic11-31376.php .

so, it's :
“PrizeMoney” is the money earnt in tournament; 1st number = total prize; 2nd number = prize for winner; 3rd = for finalist; 4th = for semi-finalists; and so on


So you guessed correctly. :yes:

For doubles, the prizes are divided by 5 to give the prizes for each player in the doubles team.
ManuTOO
== Mana Games ==

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

Re: Modding Questions

Postby Jay_Ar » 15 Apr 2020, 13:08

bloody good, thank you so much
Jay_Ar
tennis fan
tennis fan
 
Messages: 12
Gaming Since: 10 Apr 2020, 12:40

Re: Modding Questions

Postby manutoo » 16 Apr 2020, 18:33

With today's build, you can change the background tournament based on tournament info in the Tour.ini ; eg:
Code: Select all
Background   =   Doha

and put this image in : Mods/MySuperMod/Menu/Art//CustomCourtBackground/Doha.jpg
Note: use power-of-2 dimensions so the images will be faster to load (eg: change from 1920x1080 to 2048x1024, or smaller size to save on loading time & memory)
If the image aspect ratio is not 16:9, can add, for example 4:3 :
Code: Select all
BackgroundAR   =   1.333


I didn't test when switching tournament draw ; so if the loading is too slow, let me know and I'll add some caching system so the background won't be reloaded every time..! :yes:
ManuTOO
== Mana Games ==

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

Re: Modding Questions

Postby Jay_Ar » 17 Apr 2020, 10:11

new.JPG
Great, Thank you very much
I just have to add "Background = Doha" to the tournament (Tour.ATP.ini) and it should work? I'll test right away ... oh, and if Doha is now called Diha, must the picture also be called Diha? :-)
Here is a brief overview of what I have meanwhile achieved :-)


2 things I just can't find in the files; I managed to color the tournaments that can be played without qualification in green;
I would like to have orange to start qualifying, and red if I am too far behind in the ranking; but as mentioned, I don't find these 2 commands
I have been working intensively on it for the past 3 days, I have learned a lot and come up with different things every day on how to change something, but I also often fail :-)

Oh, one more thing, I would like to change the "Blue-Green Cement" and "green Clay" to the right color for the surface; I think I have already found the right passage
I know I need a tga file; I also know where this file has to go, but I can't find it, where I can assign these images correctly and insert them at Function SetSurfaceImage = in the PlayerPlanningSup;
i assume 5 u 6 i have to set in another file;

and I would have done the font color in the individual columns, but black looks best, everything else is difficult to read, at least for the colors I chose

So it goes on, I click through the files, change something and see what happens :-) so I will come step by step on some things
Attachments
courts.JPG
courts.JPG (42.2 KiB) Viewed 2393 times
new3.JPG
new3.JPG (33.48 KiB) Viewed 2393 times
new2.JPG
new2.JPG (11.21 KiB) Viewed 2393 times
Jay_Ar
tennis fan
tennis fan
 
Messages: 12
Gaming Since: 10 Apr 2020, 12:40

Re: Modding Questions

Postby manutoo » 17 Apr 2020, 10:41

0) Woh, you managed to edit the .menu files pretty fast ! :o
Do you know how to code in a general way ?

1) So, of course, you can put any name you want for the background images... ;)

2) For the draw button color, actually, these are textures ; you can see them in "item FuncSetCanEnterBg" in PlayerPlanningSub :
- CanEnter_Qualies is yellowish, so change it to full orange
- CanEnter_No is reddish, so change it to full red
Note: redownload the Modding SDK if you don't see them in the Menu/Art folder.

3) For the BG-Cement & Green Clay, both don't have a special surface type. ie: BG-Cement = Hard ; Green Clay = Clay ; so change this line from :
Code: Select all
Function FuncSetSurfaceImageO /Board/SurfaceType

to :
Code: Select all
Function FuncSetSurfaceImageO /Board/SurfaceType /Board/Ground

and then in "item FuncSetSurfaceImageO", start by testing $2 :
Code: Select all
OnActionIf $2 6   // Bg-Cement

Code: Select all
OnActionIf $2 8   // Green Clay

(I think it's 6 & 8 ; but maybe it's 7 & 9)
ManuTOO
== Mana Games ==

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

Re: Modding Questions

Postby Jay_Ar » 17 Apr 2020, 10:51

Thank you for the fast answer
well then I'll have a look what I can do :-)
It's also a lot of fun; if I had only decided 30 years ago differently :-D

Unfortunately I have as much idea about general coding as a cow does about cycling
I look at the files and try to figure out what it could be in the game and then I try something and see what happens. I would give a lot for being able to do what you can
Jay_Ar
tennis fan
tennis fan
 
Messages: 12
Gaming Since: 10 Apr 2020, 12:40

Re: Modding Questions

Postby Jay_Ar » 17 Apr 2020, 19:30

okay, now after three days of playing around intensely, my head smokes. I didn't do anything :-D

1) Green works differently when registering for the tournament, orange and red somehow; can it be that the background color mixes with orange and red? The color changes, but not to bright orange or ferrari red, .....

2) I didn't make the green clay either; the green-blue cement worked immediately; but no matter, it shouldn't be anything worse, is just a small detail

3) You should be able to change the age now after the update? Do I understand it right? Shouldn't work for me.

4) and I think that even with the backgrounds at the tournaments might be a little too much for me :-D I didn't make it either

but I don't give up, I can do it :-D just as I said, I'm a naked man in all this, and now after three days, I need a break; Really, from 9 a.m. to 10 p.m. did nothing else than, copied, saved, started, copied, saved, started, .....
Jay_Ar
tennis fan
tennis fan
 
Messages: 12
Gaming Since: 10 Apr 2020, 12:40

Re: Modding Questions

Postby manutoo » 18 Apr 2020, 09:19

1) Font color is multiplied with the texture color ; so if your font is purple and the texture is yellow, then the result is red

3) You can change the age in the Player Detail screen during the New Game process ; if you have copied all the menu files, then you have to get the Modding SDK and copy the changed files

5) I forgot to tell you :
The game can reload automatically the .menu files without restarting it if you activate the DevMode (HowTo => topic19-32161.php ), then when you focus back on the game (ie: after have changed a file), the game will reload the .menu files for the active menu.
Warnings:
- the game cannot detect a change to the .def files, so resave the corresponding .menu files if you want to see your changes
- sometimes the reloading doesn't work, especially if the file size didn't change, so add some characters in a comment and resave it to fix the issue
- dynamic variables defined in the .menu file will be set back to their initial value, so the menu won't be correctly displayed if these dynamic variables had some different values before the reloading

So you have to restart it all the time.
ManuTOO
== Mana Games ==

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

Re: Modding Questions

Postby Sebkosebi » 06 Feb 2021, 20:47

from where did you get the new tournaments?Is there any mod/patch?Budapest etc etc
Sebkosebi
court crocodile
court crocodile
 
Messages: 27
Gaming Since: 13 Aug 2020, 20:47

Re: Modding Questions

Postby manutoo » 07 Feb 2021, 07:06

Sebkosebi,
check the links at the end of the 1st post here : topic11-31376.php .
ManuTOO
== Mana Games ==

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

Re: Modding Questions

Postby chriscobain » 19 Jun 2021, 11:41

Jay_Ar wrote:Thank You for the update :-)

4) Since the update, the color of my type has changed; can I edit them in a file?
I would like the ATP250 to be different in color from the Challenger, that's for sure somewhere, isn't it?

5) and the font could be white too, would be cool too
if anyone could tell me the file
Thanks :-)


Could you explain to me step by step how you succeeded reversing it to the original color scheme?
chriscobain
tennis fan
tennis fan
 
Messages: 15
Gaming Since: 17 Jun 2021, 01:55

Next

Return to Tennis Elbow Manager 2

Who is online

Users browsing this forum: No registered users and 3 guests