Trailmakers

Trailmakers

Track Creator Plus
Krunch  [developer] 28 Mar, 2021 @ 3:35am
Ask for Help
If you need help using Track Creator Plus feel free to ask questions here.
< >
Showing 1-12 of 12 comments
RED-Mike 26 Dec, 2021 @ 2:46am 
Hi, I can't load my tracks, message pops up on the bottom right: Error failled to invoke callback ui !

2021-12-26T11:27:22.9723891+01:00 failed to invoke ui callback
C:\Steam\steamapps\workshop\content\585420\2434420628\main.lua:(1818,20-59): Unexpected token : '3411865234375'
2021-12-26T11:27:39.0518119+01:00 failed to invoke ui callback


do you have a solution ?
Krunch  [developer] 28 Dec, 2021 @ 7:39am 
Hi. Sorry to hear about this problem for you. I have not made any changes to loading and saving tracks so I'm not sure what has happened for you. I don't have any problem loading and saving tracks on my system.

It looks like the mod can see your track files but then fails to load them. It is not clear why but it could be a folder permissions issue, or maybe something has corrupted the track files.

You could try going to the data_dynamic folder where all your tracks are stored and move them all out into a new folder somewhere else as a backup. Then copy just one track file back into the data_dynamic folder and see if that one will load in the game.

The track files themselves can be opened in a text editor if you want to check them out.

Let me know how it goes.
Krunch  [developer] 28 Dec, 2021 @ 9:23pm 
Originally posted by RED-Mike:
Hi, I can't load my tracks, message pops up on the bottom right: Error failled to invoke callback ui !

2021-12-26T11:27:22.9723891+01:00 failed to invoke ui callback
C:\Steam\steamapps\workshop\content\585420\2434420628\main.lua:(1818,20-59): Unexpected token : '3411865234375'
2021-12-26T11:27:39.0518119+01:00 failed to invoke ui callback


do you have a solution ?

I've been looking into this further and I think this issue could be to do with the region your system is set to. This can affect the symbol used for the decimal point. I was able to replicate your error by changing a decimal point in one of my saved tracks from a full-stop (.) to a comma (,).

If your computer is set to a non-English region then it may be using the comma instead of a full-stop for decimal points in numbers and currency.

You can check this in the "Region" control panel in Windows. Just type intl.cpl in the Windows 10 search box, press Enter and then click "Additional Settings". Here you can see what the decimal symbol is set to. If it is set to a comma then that is the problem.

You could also check this by opening up one of your saved tracks in a text editor (if you don't know where they are saved, follow the instructions in this mod's description to find your files). Check the numbers in the file to see if they have commas for the decimal point symbol. If they do then that is the problem.

If you use that control panel to change the decimal symbol to a full-stop in your system it will mean your new tracks will save and re-open but I don't know what other problems that may cause in your system.

To fix your existing tracks the decimal symbol would need to be changed to the full-stop in almost every number in each file. A carefully constructed Regular Expression Search & Replace operation might be able to do that but it's a tricky problem.

I'm not yet sure how to overcome this issue in mods as the Trailmakers modding API is very limited so we have no way to check a player's region. I'll look further into it in case other modders have found a way to solve it.
RED-Mike 3 Jan, 2022 @ 3:27pm 
Good evening, thank you for your attention to my problem.

I have examined your explanation, and indeed I am not in English windows, but in French version, so I am in decimal symbol "," instead of ". "

I went to see a file of my track, and I have the wrong encoding for the coordinates like this for example :

{
"gates":{
"0":{
"positionX":-97,3411865234375,
"positionY":203,0076904296875,
"positionZ":-261,31985473632813,
"rot":348,54891967773438
},

so I tested creating a very small track of a few meters, then save, open this file and edit manually the "," to replace them by the ".
result after that : I manage to load it well :) but it is very tedious

I then tried to modify as you described in your explanation the decimal symbol of my region in windows from "," to ".
but after that the game Trailermakers makes me an error of recognition at the starting (in my opinion as if I did not have a key of the game for my region), and I can only solve that if I put back this decimal symbol on "," then my game launches without problem.

I also tested once launched the game to change this symbol "," to the "." it does not change anything for the creation of tracks, because at the time of saving the file will be made of ","

hoping that it will be possible to remedy this problem of region.

Greetings.
RedGoli 4 Jan, 2022 @ 1:17am 
Hello, Just let the game in English and the mod working fine. You need to change it at the level of steam.
RedGoli 7 Jan, 2022 @ 1:07pm 
Finally after some test, I put windows regional settings in US english, and change region language to English United Kingdom and it's working fine. THe change the game languages do nothing.
RedGoli 7 Jan, 2022 @ 1:14pm 
Country look have no effect on the problem, just the language. We are safe to save !!!
RED-Mike 7 Jan, 2022 @ 1:16pm 
Good evening, I just changed the regional format: English Uk and it is working now.
thank you.
Krunch  [developer] 9 Jan, 2022 @ 1:40am 
Hi. Thanks RedGoli for your help. RED-Mike I'm glad you can now save and load tracks but it's a shame you need to change your region in Windows. If that causes other problems please let me know and I'll see if there is some way I can make some changes to the mod to avoid the problem.
Krunch  [developer] 18 Jan, 2022 @ 3:00am 
I've now updated the mod with a fix that should allow you to load your tracks whether they use a comma or a full stop as the decimal separator. Please let me know if you have any issues with this version

v0.3.4 Hotfixes
- possible fix for non-english region based bug causing failed loading of track files that have a comma as the decimal separator. These tracks should load now without needing to be hand edited first.
RED-Mike 22 Jan, 2022 @ 1:41am 
Hello,
I put myself back in the original "regional setting" (on Belgium for me) and I tried with your update 0.3.4.

everything is working perfectly now :), saving and loading the track is ok.

thanks for your attention, I'm satisfied to have helped to fix this problem.

goodbye.
Krunch  [developer] 22 Jan, 2022 @ 5:38am 
Ah that's great! Thanks for helping solve this problem for everyone :)
< >
Showing 1-12 of 12 comments
Per page: 1530 50