Some of you have noticed, in the BRC thread, that I had a suspicious-looking “Coming soon…” screenshot in my signature.
As it indicated, I was working on a visual editor for test tracks.
So, after a few days of interface adjustments, battles against the libraries and trigonometry hijinks, here it is:
[size=200]uberwald-dev.net/automation-track-builder/[/size]
See the racing line over your nice-looking background and change every possible value on-the-fly. You can even select any corner* to change!
[size=85]* This will not change the subsequent corners, so things will likely look a bit weird.[/size]
A few things to be taken into consideration:
[ul] ] This is a 100% client-side web application, so 1) it’s a bit heavy, and 2) it can be hosted anywhere. Future plans include a downloadable version for those who want to use it offline./:m] ] Right now, the import function expects the Scale field to be a division of two numbers. Sorry for those who used a direct value./:m] ] Some breakage might be experienced on other, unpredicted cases (the parsing algorithm is somewhat fickle, as it handles a raw Lua AST). Feel free to submit reports./:m] ] Those who want to look at the source code can access its repository: github.com/ElSaico/automation-track-builder/:m][/ul]
Wow, just wow, this will be amazing! Just wanted to say that I’m extremely grateful for your efforts putting this together, and I look forward to seeing the tracks roll in!
[quote=“strop”]Wow, just wow, this will be amazing! Just wanted to say that I’m extremely grateful for your efforts putting this together, and I look forward to seeing the tracks roll in!
[size=85]Pike’s peak, anyone?[/size][/quote]
i actually had something of a pikes peak challenge in mind to run after this round of the BRC.
obviously the track should only be released to the public after the challenge so that people can’t practice till perfection.
so if people would leave this track alone for the time being i would organize something if there is interest.
Gave this a test run this morning. It’s a bit of a learning curve, but it works quite well. I made a replica of Suzuka with it in about 30 minutes, but it needs quite a bit of tweaking. You can’t really “trust the line” being drawn when used in the game.
Here is what it looked like in the Automation Track Editor.
Run it and see it comes out quite different. Close, but different. I will work on it more tonight after work. Still, a much easier way of doing it! I spent about 3 1/2 hours on it before, and only got to the left end of the track.
Hello. Thanks for the feedback - and the compliments!
To answer a few things:
[ul] ] At the moment, the game only allows for clockwise tracks. As soon as the track specs allow for a counter-clockwise option, I’ll add it./:m]
*] About the differences between the plotted driving line and the actual one, I have two suspicions: either accumulated rounding error is in effect (which wouldn’t be surprising, given the amount of floating-point calculations involved), or… something for the how-to thread I’ve just noticed:
Which might be the way the game addresses the rounding issues in the first place (just conjecturing, here). Either way, this problem is going to be investigated further./*:m] ] I’m a bit hopeless in the “how-to” field , so any contributions of that nature would be appreciated./:m][/ul]
The game does allow for counter-clockwise tracks. The car always starts from left to right. Imagine an oval with left corners → counter-clockwise.
That has to be the cause of the differences. I don’t know how you draw the track, but probably in steps, too? If yes, adjusting the step size to 0.2 meters will probably solve the issue.
But there is one thing I am not sure about in your tool: The corners all look very sharp, there’s no smooth transition between straights and corners. Or am I just too stupid to use your tool?
The game does allow for counter-clockwise tracks. The car always starts from left to right. Imagine an oval with left corners → counter-clockwise.
That has to be the cause of the differences. I don’t know how you draw the track, but probably in steps, too? If yes, adjusting the step size to 0.2 meters will probably solve the issue.
But there is one thing I am not sure about in your tool: The corners all look very sharp, there’s no smooth transition between straights and corners. Or am I just too stupid to use your tool?[/quote]
The corners are drawn by calculating the center and destination and making a quadratic curve out of them. This means I need to work on an iterative (parametric?) approach to achieve a similar result with the game.
Each one of them is drawn individually - couldn’t find another way to make them selectable - hence the gaps. I just thought of a way to fix this, though.
This could possibly be a dumb question, but why are you using a quadratic equation to estimate the path of the corner? surely it would be more sensible to use the equation of a circle:
(x-a)² + (y-b)² = r²
Well, this track I did was a rush job before going to work this morning. I will play with it more tonight to see if I can learn how to correct it. One thing I had trouble with was getting “sweeping turns” to come out as expected using the line, which is why I said it can’t be trusted implicitly. One thing I did learn is, if you append the next section after a curve, it becomes a LOT easier to form it using the visual aid. Overall, I really like this. As stated before, with the track I showed I spent 3.5 hours and only got about 2/3 around but managed this “pretty close” attempt in only about .5 hours. Much, MUCH faster with this tool. It’s just a matter of learning the quirks. The slowet part of doing them manually (at least for longer tracks) is waiting the 1-3 minutes for the simulation to run so you can see how you need to correct it. This is instant on changes, which is a HUGE help. Thanks for taking the time to make it.
This could possibly be a dumb question, but why are you using a quadratic equation to estimate the path of the corner? surely it would be more sensible to use the equation of a circle:
(x-a)² + (y-b)² = r²
[quote=“SirStonelouse”]i actually had something of a pikes peak challenge in mind to run after this round of the BRC.
obviously the track should only be released to the public after the challenge so that people can’t practice till perfection.
so if people would leave this track alone for the time being i would organize something if there is interest.[/quote]
Okay then! I would love to participate in something like this, but it seems modelling all 130something turns in Pikes Peak would be quite the task!
[quote=“SirStonelouse”]i actually had something of a pikes peak challenge in mind to run after this round of the BRC.
obviously the track should only be released to the public after the challenge so that people can’t practice till perfection.
so if people would leave this track alone for the time being i would organize something if there is interest.[/quote]
Okay then! I would love to participate in something like this, but it seems modelling all 130something turns in Pikes Peak would be quite the task!
I shall await further news of this.[/quote]
luckily i have some spare time next week, let me see how far i get.