Do Not Click On The Honey Pot !

TE4 Player Generator

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

TE4 Player Generator

Postby holt77 » 05 May 2026, 22:12

This is a project I've been working on for the last few days. I made it primarily for my own use, but thought I'd post it here in case anyone else finds it useful.

It's a TE4 Player Generator web app, which allows you to create a full men's player data file completely from scratch, or to top up an existing player data file with fictional players if you want to pad out your World Tour or create future players.

Setup and Configuration features:

  • Select to create a new player database from scratch, starting from [Player0001], or top up an existing database, starting from a specified player number.
  • Select whether you want to include singles players or doubles specialists. These need to be created in separate batches, as they are created differently.
  • Select the total number of players to be included in the database, up to 1000 per batch. You can create multiple batches, depending on how many players you need.
  • Select the base year, which is the year the RankPerYear values will be created up to.
  • Select how many players in each ranking tier you want to include, so you can create an even spread, or maybe top up an existing database with players of a similar ranking.
  • Select how many players from each nationality you want. You can add from any of the nationalities that appear in the game, and choose exactly how many players you want from each.
  • Adjust the probability percentages of the nine different playing styles appearing in your database. There is a separate list for singles players and doubles players, so that the spread of styles for doubles specialists will actually be closer to real doubles players!
  • Select the birth year range, so you can choose to also include future or retired players if you wish.
  • Select the height and weight ranges. When players are generated, their weight will relate to their height to keep it realistic.
  • Select the probability percentages of different handedness appearing in your database.
  • Select the value ranges and averages for the 27 normalised stats. By default, these will average at 35 for each player, but individual stats can range from 5-65.
  • Select the value ranges separated by ranking tier for the four key mental stats.
  • Select the value ranges for Topspin and DoubleSpirit. For the latter, you can select different ranges for singles and doubles players.

Generation features:

  • Once you select the Generate Players option, the number of players in your batch will be created in a few seconds, using the configuration settings you specified.
  • A full preview list of the created players is shown, complete with filters and sortable columns.
  • The players are named using AI, so all nationalities should be represented by players with appropriate names. If you want to edit any of the players' names you can click on them to edit them inline at the preview stage.
  • If you click elsewhere on a player's data line, it will open a modal window with a graphical display of all the player's data values, all of which can be edited at the preview stage. Logic has been built in so that players with certain playing styles will be statistically more likely to score higher in appropriate skills for that playing style, but random factors will also be included to maintain player individuality.
  • When you're happy with everything, you can download the data in an .ini file, which can be put straight into your mod. You will just need to add the lines of data in the [WT_Static] section and make sure the numbers add up.
  • If a player database is created using multiple batches, there is also a tool included in the app that allows you to upload an .ini file and it will identify any duplicate player names that might have been created from different batches.

Link:

https://te4-player-generator.replit.app/

Screenshots:

Screenshot 2026-05-05 204227.png
Screenshot 2026-05-05 204557.png
Screenshot 2026-05-05 204757.png
Screenshot 2026-05-05 204816.png
Screenshot 2026-05-05 204904.png
Screenshot 2026-05-05 205102.png
Screenshot 2026-05-05 205238.png
Screenshot 2026-05-05 205304.png
Screenshot 2026-05-05 205327.png
You do not have the required permissions to view the files attached to this post.
holt77
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 99
Gaming Since: 10 Jun 2025, 11:51

Re: TE4 Player Generator

Postby KenTremendous » 06 May 2026, 18:36

I may or may not ever use this but wanted to say this is exceptional work.

A career without worrying about the "names" appeals one day.

Thanks for sharing.
User avatar
KenTremendous
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 84
Gaming Since: 09 May 2024, 14:35
Location: United Kingdom

Re: TE4 Player Generator

Postby mbrane » 07 May 2026, 09:42

Amazing work, really. I wonder if I can merge this with the XKT players to just control the future players that will appear on the fictional years. Any clues?
mbrane
tennis enthusiastic
tennis enthusiastic
 
Messages: 6
Gaming Since: 27 Apr 2026, 00:23

Re: TE4 Player Generator

Postby holt77 » 07 May 2026, 17:23

mbrane wrote:Amazing work, really. I wonder if I can merge this with the XKT players to just control the future players that will appear on the fictional years. Any clues?


Yes, absolutely, although I would only recommend doing this if you're happy using your own data mod in combination with XKT, and are familiar with editing the TE4 data files. I would also recommend doing this prior to starting a new World Tour.

You can go to XKT's Players.ATP file, save a copy, check the number of the last player listed in the database, then take the following steps:

  • In the TE4 Player Generator app, select the "Top up existing database" option and enter the next available player number from XKT's Players.ATP file.
  • Also on the Setup screen, select singles or doubles players, and select how many players you want to create (read the "Things to note" section below for more info on this). If you're creating future players, the base year can stay as the default.
  • In the Configure section, go to the Age & Body tab and adjust the Birth Year Range so it will only include players who will debut in the future.
  • Update all your other player preferences in the various tabs in the Configure section, then go to the Generate & Download section and generate your players.
  • In the player preview list, you can change player name data inline by clicking on the name, or click elsewhere on the player data to open the modal window with all other stats on it, which can also be edited.
  • Once you're happy with the list, download the .ini file, then copy the data from it and paste it at the end of your copy of the Players.ATP file from XKT.
  • Update the player number data in the [WT_Static] section at the top of the file. This is important.
  • Place the updated file into the Ini folder in your game's Mods folder.

Things to note:

Your modded Players.ATP file will take priority over the default one in XKT. This means if new players get added to XKT at some point, they won't automatically appear in your game, unless you copy the new players' data from XKT into your modded file. Also, be aware that automatic regens from existing players will still happen after the last year of the Players.ATP file, so this method won't replace those, but it will allow you to add some future players that you can customise.

Also, there is a minor bug in the current version of the app, where future players are given an initial RankPerYear value that is the same as their BestRank, which shouldn't be the case. This has already been fixed in the test version of the app and should be updated in the live version this evening.
holt77
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 99
Gaming Since: 10 Jun 2025, 11:51

Re: TE4 Player Generator

Postby holt77 » 08 May 2026, 04:31

holt77 wrote:Also, be aware that automatic regens from existing players will still happen after the last year of the Players.ATP file, so this method won't replace those, but it will allow you to add some future players that you can customise.


Following up on this point, I've actually done a bit more testing with this tonight. If you create future players and set them to debut after the designated LastYear of the Players.ATP file, it does work, but it seems to have a significant effect on player regens, in that it seems to create a lot more of them! Not sure why that is. So, if anyone is adding fictional future players to XKT or any other Players file, either manually or by using this app, I would do so sparingly to avoid a large increase in player numbers.

Alternatively, if you're just looking to fill out your World Tour with more random players (which would solve issues of players playing every week and qualification tournaments not filling up), that can be done by generating a batch of players that are all set to debut before the designated LastYear of your Players.ATP file.

I created the Player Generator mainly for the purpose of generating complete and entirely fictional player databases from scratch though, which is what I am using it for.
holt77
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 99
Gaming Since: 10 Jun 2025, 11:51

Re: TE4 Player Generator

Postby holt77 » 10 May 2026, 03:11

I've updated the app to v1.1.0

New features added:

SKIN TONES are now allocated by country, rather than the game's default of allocating them by continent. Every generated player is given a skin tone that is appropriate to the country they're from. Some countries have multiple tones available, and built-in probability percentages determine how many players from those countries get each available skin tone, allowing for a realistic distribution of tones for each country.

In the Tools tab, there is now a SCHEDULE CALCULATOR, which can help you calculate the number of tournaments you should have at each different tour level each week, depending on the number of active players you have and the total number of tournaments you want them to be playing each year. This can be used as a guide to find out if you should be adding or removing tournaments to solve issues like players playing too often or not playing enough.

A few other minor issues have been fixed, and some small features added to improve app navigation.

Thanks to everyone who has checked it out so far!

Link: https://te4-player-generator.replit.app/
holt77
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 99
Gaming Since: 10 Jun 2025, 11:51

Re: TE4 Player Generator

Postby holt77 » 16 May 2026, 14:20

Updated the app to v1.2.0

New features added:

RANK CONDITIONS for nationalities. On the Nationality tab, there is now a separate panel that allows you to set conditions for any nation. For example, you can specify that a certain nation will have a set number of players with a BestRank in the top 10, or that a certain nation won't have any players in the top 50. The conditions you set are fully customisable.

DOUBLES PARTNERS. When generating doubles specialists, there is now the option to have favourite partners built in to the data. This can be done randomly, or with a preference for same-country pairs. You can also set the number of pairs you want to create. Pairs will usually be created using players with a similar BestRank, to avoid imbalance.

There is now a RE-ROLL BUTTON at the player preview stage, which means you can re-roll the name and stats for any player you're not happy with, prior to exporting.

Link: https://te4-player-generator.replit.app/
holt77
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 99
Gaming Since: 10 Jun 2025, 11:51


Return to Modding - TE4

Who is online

Users browsing this forum: ClaudeBot and 0 guests