Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure simulator from the app #44

Open
abesto opened this issue May 14, 2022 · 1 comment
Open

Configure simulator from the app #44

abesto opened this issue May 14, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@abesto
Copy link
Owner

abesto commented May 14, 2022

Having to input each race option into AMS2 is kind of a pain. After about 30 mins of looking around, I think the race setup is stored in %userprofile%\documents\Automobilista 2\savegame\[some numeric id]\automobilista 2\careersaves\.sav, but that's a binary file I failed to analyse.

In practice, this would probably take the shape of "download this file and stick it in the right place"; I don't think AMS2 actually exposes a runtime API.

I guess one could also experiment with faking inputs and setting up the app that way (possibly based on some exported data from the app).

@abesto abesto added the help wanted Extra attention is needed label May 14, 2022
@SvenTheBread
Copy link

I analyzed the save behaviour of all files contained in %userprofile%\documents\Automobilista 2\savegame\[some numeric id]\automobilista 2. It seems that the mentioned career save file is currently created initially, but not changed. The only file, that changed by altering the race setup, was default.sav within profiles. This file, however, will contain way more information than needed (like name and country settings of the profile). There is a save file for championships at the moment. It seems the scope of this file is way better suited.

Using save files would include the use of a tool or tools to decode/decrypt as well as encode/encrypt save files. Reiza would be the one to provide those. (I doubt they would even consider that, but hey, you never know).

It should be possible to generate/create all needed save files by creating championships and providing them. This solution would include creating every possible combination of track, car, length and so on. We would probably need a tool for generating those by faking inputs, since that would be a massive undertaking. At that point, it would be more sensible to use it for the race setup directly, instead of using save files.

As a side note, for faking inputs. Some game files suggest that CSS (or some other format of style sheets) could be used for the UI. If HTML is used as well, there is a possibility that modified testing tools like selenium could do the trick without much work. But that is just a guess, since I haven't looked into that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants