Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

yeah i mostly just sit and watch it lol, ive tried and failed to automate it multiple times. i need to find a reliable way to get the speed. and currently it seems a browser extension to read the console is my best option

The hack-iest way I can think of is to take screenshots of every digit, 0-9, and then clip out the speedometer and check the pixel differences of each digit-place on the speedometer against the 0-9 screenshots, and append the one with the least difference to a string, and then convert it to an int. You'd also need a blank-space image for when there is no digit. But hopefully there's a better way!

yeah i was thinking of it, also tried cv2 to read it, but with the font it didnt work. and even after removing the font in the console, still didnt work... but i think ill try to make an extension to read the speed from the console

good luck! It's always fun to create something that ends up better than you at something -- Hope to race against the bot sometime soon :)

i have also attempted to get this working, the way I figured out getting speed is by manually taking a screenshot of each number and saving those images then finding the best match to the speed shown while running. note that its a bit tricky since it is not 100% opaque

A neural network, given the last 3 frames, can determine speed and acceleration by itself, probably better than reading the console, since the car can drive backwards and still have high speed, and the car can also be falling, turning, etc. and the nn can figure that out. Wpould take a bit longer to train though.

i might try this to be honest

(1 edit)

It worked for this Trackmania AI, with pretty good results, although it seems there was additional info given it. I can't seem to find the video (it was of an AI playing pong) that demonstrates how the nn can find velocity / acceleration, though.