Steam Broken file association from Explorer launch

Report Construct 2 bugs here.

Post » Sat Oct 05, 2013 2:07 pm

I'm not sure :). Script is the same but I've compiled it on newer version of AutoIt without UPX compression to avoid possible bugs.
B
9
S
1
Posts: 17
Reputation: 459

Post » Sat Oct 05, 2013 2:10 pm

okay, if script is same then that is fine.

It's working perfectly again - thank you once again. Still don't know why it wouldn't with beta's.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
61
S
16
G
9
Posts: 1,429
Reputation: 12,474

Post » Sat Oct 05, 2013 4:46 pm

win-7 64 bit, steam 32bit, no background apps other than Steam and Desura (both are node-webkit if this is helpful).

Script works right after install, but after I reboot, and re-launch steam, it acts as it did before.

Running as admin did not help either. UAC has been welded OFF since 10 minutes after my first boot on this system.

Maybe you can make a version that launches from the startup folder. Have the application uninstall, then reinstall. Maybe this will help?
B
28
S
8
G
4
Posts: 767
Reputation: 5,940

Post » Sat Oct 05, 2013 5:34 pm

Hmm, try this version https://copy.com/OUgf4qqce9JO - it should reinstall itself (in silent mode) every time Windows starts.bug_fixer2013-12-24 19:00:58
B
9
S
1
Posts: 17
Reputation: 459

Post » Tue Oct 29, 2013 5:59 pm

New version (fixed bug with beta's) http://www46.zippyshare.com/v/25117040/file.html
B
9
S
1
Posts: 17
Reputation: 459

Post » Tue Oct 29, 2013 8:36 pm

The reason opening the capx doesn't work with Steam is because the Steam version checks your account for if it owns a license. The Steam version doesn't use a license file at all so when you associate the capx file type with te executable, it opens the project but doesn't go through steam meaning it can't check your account for ownership. I don't think this is really fixable by Scirra unless they change the Steam version to also use the license file.
B
40
S
12
G
7
Posts: 603
Reputation: 7,646

Post » Thu Nov 28, 2013 11:13 pm

Hmm the fix only opens Construct 2 for me and starts the open file dialog.

So I've created my own bugfix.
What you need:
http://www.autohotkey.com/ (free macro program)

After you've installed authotkey:
- rightclick in explorer -> new -> autohotkey script
- name it how you want, remember the file location (for me it is D:\Games\Steam\construct2.ahk)
- rightclick on the script, edit the script

paste the following below the default first lines:

IfWinNotExist, Construct 2
{
run, steam://rungameid/227980
WinWait Construct 2,, 120
}
WinActivate Construct 2
WinWaitActive Construct 2
sleep 1000
send ^o
sleep 400
send %1%
send {Enter}


- save it
- open a text editor of your choice (like notepad)

pase the following

"D:\Games\Steam\construct2.ahk" %1

Note that D:\Games\Steam\construct2.ahk needs to be the location of your autohotkey script I told you to remember earlier.

-Save it as something like construct2.bat
- next time you want to open a .capx or .caproj, select "open with" and use the construct2.bat you've created.

What it does:
If Construct 2 is not open yet, it runs steam://rungameid/227980 (it is the command for steam to launch construct 2, you can find that out when you create a shortcut of the program on the desktop via steam). It waits at most 120 seconds for the Construct 2 to start.

After that it sets the Construct 2 window as active (in foreground), opens the "open file" dialog, pastes the file location into the field and confirms it. If it is not working as expected for you, try to adjust the sleep lenghts.

Hope it helps if someone wanted to do something like that for himself.
If you want icons for your .capx-files in the explorer, look up Bat To Exe Converter and convert/compile the .bat into an .exe-file and set the icon file to one of those in the Construct 2 directory.
mindfaQ2013-11-28 23:15:48
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
20
S
9
G
1
Posts: 785
Reputation: 3,725

Post » Fri Nov 29, 2013 7:39 am

Thanks, looks good. However I gave up and purchased business license here, was the best feeling uninstalling the steam version.
Seriously, I went from multiple crashes every couple hours to ZERO issues since I moved away from steam version.
Best money spent... seriously.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
61
S
16
G
9
Posts: 1,429
Reputation: 12,474

Post » Fri Nov 29, 2013 11:09 am

@mindfaQ
What Windows version does you have? UAC on or off?
Your fix doesn't differ much from mine. But alternatives is always good.
Maybe I'll make an installer (like I've made for mine) for it if somebody asks.bug_fixer2013-11-29 11:13:41
B
9
S
1
Posts: 17
Reputation: 459

Post » Fri Nov 29, 2013 11:41 am

I just noticed my error, used c2_fix exe instead of start.bat. Sorry for the commotion ^^. Works like a charm as well.

edit: no, it doesn't (I tested it on another pc where it worked, but now back to the first PC it is still not working even when I use start.bat)mindfaQ2013-11-29 16:52:36
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
20
S
9
G
1
Posts: 785
Reputation: 3,725

PreviousNext

Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests