This is something that I've done as well. For example, I wanted the Bugatti track to be part of the Le Mans / Circuit de la Sarte track.
Recently, I wanted to add the fantastic update to
Zandvoort by RacingSounds to the Kunos Zandvoort folder. But also I wanted CM to combine my mileage for both tracks and keep my laptimes.
I will try to explain as precise as I can.
(English is not my native language.. And I might have had a few beers... Forgive my poor language, bitte)
The RacingSounds track is a good example, because it already has the track in it's own layout folder.
Take Imola, it has no layouts:
View attachment 1427027
Brands Hatch has two layouts:
View attachment 1427028
You see the difference, yes?
First, close ContentManager!
Now, the RacingSounds folder structure looks like this:
View attachment 1427029
Notice the subfolder '2023' (=layout). Also, in the 'ui' subfolder, there is a sub-subfolder '2023'. And, the 'models
_2023.ini' file. You see the pattern?
The standard Kunos Zandvoort track looks like this:
View attachment 1427030
This one has no layout folders (yet!)
Notice the "ai" & "data" subfolders.
Now copy all the files from the RacingSounds Zandvoort to the Kunos Zandvoort folder, and when it asks to merge the 'ui' folder, say yes. Your combined folder will look like this:
View attachment 1427031
One models.ini for the Kunos track
One models_2023.ini for the new layout within the Kunos track, but is it secretly the RacingSounds track. 2 in 1. It's fantastic!
Now, if you've not driven the track yet, or don't care about anything else, open ContentManager and have fun.
If you want to complicate things, continue reading:
In your '%appdata%\Local\AcTools Content Manager\Progress\' folder you'll find a file 'Progress (Sessions).data', open this with a notepad of your choice. CTRL+H for 'zandvoort2023/2023' and replace all with 'ks_zandvoort/2023'. Save & close.
Attached you'll find a fantastic (old) tool called Find & Replace. (change 'fnr.txt' to 'fnr.exe'). There might be better, newer alternatives, but this one works for me!
View attachment 1427033
Couple of things. Where it says 'USER', put your Windows username.
We want to look for the individual sessions files in '%appdata%\Local\AcTools Content Manager\Progress\Sessions'
Put a filemask of '*.json', like above example. (Or it take a long, long time)
Put 'zandvoort2023/2023' in the Find box.
Hit 'Find only'.
It will, magicly find all sessions for this track! It's very nice!
In a session file you'll find exactly 3 reference's to the 'old' track folder. ("track":"zandvoort2023-2023", CONFIG_TRACK=2023 & "TrackId\":\"zandvoort2023/2023\")
Change these to:
"track":"ks_zandvoort-2023"
CONFIG_TRACK=2023
"TrackId\":\"ks_zandvoort/2023\"
See the pattern?
Now if you save this file, your session will be saved with the current time. It messes up your Result tab in CM, Bad!
You might want to use a tool that can change a filedate. So
before saving the .json, copy the original filedate, then and only then save the file. And then put the filedate back with your tool of choice. (May I suggest
this tool by Nirsoft, it's also very old, hehe)
We are not there yet. You might want to keep your laptimes. Now this is a bit more riskfull. Have I mentioned ContentManager should not be active. (I have warned you!!!)
* ALSO, IF YOU USE ANYTHING THAT STORES AND/OR VALIDATES LAPTIMES, THIS WILL FAIL *
In your '%userProfile%\Assetto Corsa' folder is a file called 'personalbest.ini'. Open this with a notepad of your choice. CTRL+H for 'ZANDVOORT2023-2023' and replace all with 'KS_ZANDVOORT-2023'. Save.
In ContentManager > Settings > Content Manager > Lap Times you should untick anything but 'Own CM Storage' & 'New CM Storage'.
(If you do not do this, I can not guarantee good results. I'm sorry. I have found a way for Sidekick, but I don't use other tools that save laptimes. Ask me for more information about Sidekick, if applicable.)
Now open ContentManager. And go to results > stats. Click Recalculate.
Then go to your new combined track and be enjoy!
NOTE: There is just the matter of track extensions which I need to investigate further. You can put a extension folder in a layout folder and it works for the layout, but I don't know how to keep the main extensions from interfering with the layout. If you understand what I mean...
NOTE NOTE: This information might be useful for different purposes. I hope you can see the pattern(s) and use it to your advantage.
For example, some track might come with only layout. But... it's not how you want it shown in CM, so you take the 'ai' & 'data' folder and put it in the parent folder, take the layout from it's subfolder in 'ui' and drop the contents there. Now CM will not show a single layout. It took me some time, but my OCD is happy now!