KSP-CKAN / CKAN

The Comprehensive Kerbal Archive Network
https://forum.kerbalspaceprogram.com/index.php?/topic/197082-*
Other
1.99k stars 348 forks source link

CKAN KSP2 time not counting towards Steam playtime #4003

Closed k0smonaut closed 10 months ago

k0smonaut commented 10 months ago

Is there an existing issue for this?

Operating System

Windows 11

CKAN Version

1.34.4

Games

KSP 2

Game Version

0.2.0.0

Did you make any manual changes to your game folder (i.e., not via CKAN)?

No manual changes.

Describe the bug

Steam shows that I have a total of 46 hours in-game with 0.0 in the past 2 weeks. I am quite sure I have played well over 20 hours in just the last 2 weeks. I want to make sure my playtime is being counted so that the devs and Steam get accurate statistics.

image

I am signed into Steam when playing. The game does not show as running in Steam when the game is running. CKAN is pointed directly at the KSP2 install folder. This is the original, clean install folder and has not been copied or altered.

Not only that, but CKAN counts over 90 hours in KSP2: image

Is this because Steam launches the launcher executable, but CKAN launches the game executable?

UPDATE I used my critical thinking brain and launched the game executable directly from the install folder. The same issue occurs. This is not necessarily a bug unique to CKAN but rather to Steam or the game and I'll be posting it on KSP's forums. Feel free to remove this or leave it for visibility.

Steps to reproduce

  1. Install and configure CKAN.
  2. Launch KSP2
  3. Observe whether Steam registers the launch of KSP2

Relevant log output

No response

HebaruSan commented 10 months ago

Right, this isn't a CKAN bug. Steam counts time when you launch through Steam.

To configure CKAN to launch through steam, you can set Settings → Game command line to:

image

k0smonaut commented 10 months ago

Right, this isn't a CKAN bug. Steam counts time when you launch through Steam.

To configure CKAN to launch through steam, you can set Settings → Game command line to:

image

I appreciate your quick feedback and clear instructions and have confirmed that your suggestion works perfectly.

Suggestion: in future releases, make this more visibly disclosed on initial deployment. Make the desired behavior subject to a user dialogue choice on game instance selection. or integrate the fix directly into the CKAN launcher settings.

In other instances, I have observed Steam and other launchers detect when a game is running even when launched manually. I have also observed that other modloaders default to run-from-Steam behavior. CKAN's default behavior was (to me) unexpected and undesirable.

HebaruSan commented 10 months ago

I can see how you'd think that, but it would be incorrect behavior to make this the default. CKAN supports multiple game instances in different folders, but the steam:// URL can only launch one instance, and there's no way for CKAN to know whether it's the right instance.

k0smonaut commented 10 months ago

I can see how you'd think that, but it would be incorrect behavior to make this the default. CKAN supports multiple game instances in different folders, but the steam:// URL can only launch one instance, and there's no way for CKAN to know whether it's the right instance.

Appreciate the clarity - yes, that makes sense.

I stand by my suggestion to add a disclosure on initial CKAN deployment.

I am surely not the only user for whom this is unanticipated behavior. I'm only now realizing that KSP1 is likely missing hundreds of hours of playtime on my Steam profile.

Thanks for your hard work! I love CKAN and have used it extensively.

k0smonaut commented 10 months ago

One last followup, @HebaruSan -

After reviewing why I had this expectation for a mod manager, I looked at some other games I use with mods and immediately found the source of my confusion: my experience with Fallout 3/NV/4 Script Extender and NMM/Vortex Mod Manager.

When Fallout 3/NV/4 is launched from the vanilla install folder executable, from Fallout Script Extender, OR from the mod manager which points to either executable, the game is immediately launched within Steam. I still do not fully understand how this is different from other games' functionality, or why KSP behaves differently, but this experience led me to expect all games to work similarly.