Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Auto Profiles not working in Steam #39

Closed
Ainson opened this issue Aug 9, 2016 · 14 comments
Closed

Auto Profiles not working in Steam #39

Ainson opened this issue Aug 9, 2016 · 14 comments
Assignees
Milestone

Comments

@Ainson
Copy link

Ainson commented Aug 9, 2016

Seems Antimicro can't recognize programs started via Steam as profiles don't change even when set properly in Auto Profiles.

Maybe because the programs are a sub-process of the parent Steam.exe, and as such, Antimicro can't see them initiating?

PS. Big thanks to you who are keeping Antimicro alive. Appreciated.

@jsbackus
Copy link
Member

jsbackus commented Aug 9, 2016

Hi @Ainson, welcome! Glad it is appreciated! Interesting... That would be my guess, but I'm not familiar enough with the autodetection code. I'll take a look at it when I get a chance. What programs have you tried?

@Ainson
Copy link
Author

Ainson commented Aug 10, 2016

Hi @jsbackus, thanks for the welcome and looking at the issue.

I've tried several programs like Hitman (1-4), Call of Duty MW3, Return to Castle Wolfenstein, You Don't Know Jack, 8BitBoy. Basically all my Steam games without controller support.

Looking at my PC's processes using System Explorer, I can see those games as 'child' processes under the Steam.exe tree.

@jsbackus
Copy link
Member

Hi @Ainson, interesting. Yeah, sounds like a Steam<->AntiMicro issue, not specific to any of the games. I'll take a closer look at the autodetection code when I get a chance.

@Ainson
Copy link
Author

Ainson commented Aug 16, 2016

Great

@jsbackus
Copy link
Member

jsbackus commented Sep 5, 2016

Hi @Ainson, sorry for taking so long to get back to you. Not enough hours in the day. When you get a chance, would you try the portable version here? Please start it from the console with the following commandline:

antimicro --log-level debug >> antimicro.log

Feel free to add any other arguments you want between debug and the arrows. Please do what you would normally do to use the auto profile selection with any of the Steam games that haven't worked for you. Try switching back and forth between your game and the AntiMicro window. Please send me the resulting antimicro.log file (simply attach it to this conversation, or you can e-mail it to me via the address in my profile).

Thanks!

@Ainson
Copy link
Author

Ainson commented Sep 6, 2016

Thanks for having a look at this @jsbackus. Some success with the new version, as two profiles (8BitBoy and Call of Juarez) auto-loaded, but the rest still not.

Attached a log file where I go through all the games.

I've made doubly sure all settings are correct in Antimicro - Auto Profiles, and all games are in the same folder as you can see in the log. Also, the default auto profile was not active.

antimicro.zip

@jsbackus
Copy link
Member

jsbackus commented Sep 8, 2016

Hi @Ainson, it looks like AM is properly picking up the window transition, but I can see where it only matched in 8BitBoy and Call of Juarez. How are you specifying your auto profiles? With the window title or with the executable/program? It looks like in some of the cases, such as the Call of Duties, an extended character is in the window title. Probably the TM or such. If you are not using the executable, would you please try for at least one of the cases that doesn't work?

Thanks!

@Ainson
Copy link
Author

Ainson commented Sep 9, 2016

@jsbackus Yeah that was it, all works now! Adding the ® to the Call of Duty titles and the others how the active window name appear in the log sorted it. Even removing the titles and just going by executable path works also, so this was never a bug, it was just me misunderstanding or not seeing a how-to on this, as in the title field I just put the game title and that of course varies quite a lot to what the window name is. (maybe clarify that title is active window somewhere in the Wiki so others won't make the same mistake?). Hitman Contracts active window, for example, is very 'Greek' with Hitman: Êîíòðàêòû ... ;)

Anyway, very happy to have this sorted! Many thanks and apologies for the unnecessary work.

@jsbackus
Copy link
Member

Hi @Ainson, Great! Glad it is working now. No worries! This was definitely a 'documentation bug'. Sorry it caused trouble!

Having to include symbols in the title is not intuitive. Agreed, there should be something in the wiki about this. I'll leave this issue open until I add a page regarding setting up auto profile selection. I've also add a new feature request(issue #44) for a "window picker widget", which we may or may not add sometime down the road and as well as a new feature request(issue #45) for allowing regular and/or glob expressions in the profile selection fields.

Thanks for your help tracking this down!

@jsbackus jsbackus added this to the 2.23 milestone Sep 10, 2016
@jsbackus jsbackus self-assigned this Sep 10, 2016
@jsbackus
Copy link
Member

Hi @Ainson, I put together a quick wiki entry. If you have a moment, would you please give it a quick read? Thanks!

@Ainson
Copy link
Author

Ainson commented Sep 12, 2016

..And what's more, because of my not understanding that Antimicro is looking for the active window title name and not just the path, I never explored the 'Select' option in the 'Auto Profile Dialog' window which it turns out captures both the path and title name perfectly, including all the symbols!

So trying now, in the 'Capture Application' window, I just set the timer to 10 seconds, hit the 'Capture Application' button, start the game, and returning to Antimicro after I'm sure 10 seconds has passed, in the window that then comes up (Captured Windows Properties), put a check in both the Title + Path in the 'Match by Properties' section, and it's all set up. Really quite nice. Seems Ryan thought of everything here (except the documentation.. ;) ).

@jsbackus
Copy link
Member

Hah! Well I'll be. You're right, there is a tool grab the right properties. I didn't see it because I kept using "Edit" instead of "Add". Yes, seems he did think of everything. 😄

I'll update the wiki. Thanks for finding the Capture Application widget!

@jsbackus jsbackus reopened this Sep 14, 2016
@jsbackus
Copy link
Member

Reopening until I actually update the wiki....

@jsbackus
Copy link
Member

Done! Sorry it took so long. 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants