News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

[Help testing] Steam API integration

Started by Roboron, May 20, 2024, 10:09:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Roboron

The day has finally come. The final step to achieve the last of my goals as the Steam maintainer was incorporated in r11213.

This means that Simutrans can now:

- Fetch the list of subscribed addons from the Steam Workshop.
- Install new subscribed addons into the appropriate location.
- Uninstall unsubscribed addons from the location they were installed previously.

Without the help of the preloader! With this working, we are ready to send the preloader to the museum it deserves to be in.

Additionally, I added two more things the preloader can't do:

- Rich presence! Now showing the pakset you are playing, the number of convoys and the year.


- Achievements!


Currently only two achievements are available: one for playing Pak192.Comic, and another hidden achievement obtained by clicking on a specific object in Pak128 👀. To request more achievements for Simutrans, go here: https://forum.simutrans.com/index.php/topic,23011.0.html
_______________________

Fantastic, everything works... for me! I don't know if it works on other systems, so I would appreciate some help testing this. If you want to help, follow these steps:

1. Right click Simutrans on your Steam Library -> Properties -> Betas -> Private beta (secret password: pr1ss1d4b3st).
2. Open Simutrans WITHOUT THE PRELOADER (It is deleted on this branch).
3. Test the installing of workshop items, rich presence, pak192.comic achievement.
4. Report back!

I am also working on new pipelines that will compile and ship steam-powered nightlies to Steam instead of normal builds, so expect to be able to enjoy those features on the nightly beta branch soon.

Leartin

I get the overlay and the status, but not the achievement :(
steam.jpg

The subscription works as well, the christmas tree was added and removed.

Roboron

Quote from: Leartin on May 20, 2024, 10:48:49 PMI get the overlay and the status, but not the achievement :(

If you had Steam already opened, restart it and try again - it may be a cache issue. Otherwise, your simulog will be useful (you can add launch options in properties -> general, like that: "%command% -log -debug 5")

Leartin

Tried it again today, restarting Steam as well as redownloading the pakset had no effect.

Logfile attached (did nothing but start the game with p192c and autoload the previous map, but I suppose that should be enough)

Roboron

Thank you. I believe I have fixed it in the latest [test] build, please try again.

Leartin


Roboron

I finished my work on the new steam nightlies. I've created a new repository to build Simutrans for Steam:

=> https://github.com/simutrans/simutrans-steam-builds

It's only purpose is to run the Steam pipelines. Then, my updated simutrans-deploy scripts will take care of uploading the builds to Steam. This will also make my life simpler when doing releases.

You can now forget about the test branch and use the nightly instead.