View topic - Howto: Make scriptor open files correctly



All times are UTC + 1 hour


Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 19 Dec 2009, 17:23 
Imperial Winter Developer

Joined: 06 Feb 2005, 13:42
Location: Indianapolis
Simply telling windows to open .bos files in Scriptor doesn't work right (at least, it never has for me). When set up that way, you'll commonly get a window that looks something like this:

Image

And each successive bos file you open comes up in a new scriptor process instead of the same one. Scriptor needs to use dde to properly open files on double click, which is why it's fucking up. Fixing it varies on your OS, though:

Windows XP (bear with me, I'm using 7 now. I'll have Flozi correct me if necessary)
In an explorer window, go to Tools->Folder Options. Click the File Types tab. Find bos in the list and edit it. You should get a window looking vaguely like this:

Image

Edit the 'open' command, and check the 'Use DDE' checkbox so you get a window something like this:

Image

Just make sure the fields are filled out as such:
Application: "C:\Path\To\Scriptor.exe" /dde
DDE Message: [open("%1")]
Leave all the other DDE fields blank.

If you did it right, once you click OK and apply those settings it should work properly now.



Windows 7 (and probably Vista)
In their infinite wisdom, Microsoft removed the part of the file type editor used above from Vista and 7, so you're going to have to go registry diving here.

Go ahead and create a broken file association here so we can edit. Double click any bos file, choose scriptor.exe to always open it, and watch it screw up.

Open regedit and first browse to:
HKEY_CLASSES_ROOT\.bos
Make sure (Default) is set to bos_auto_file

Now, go to:
HKEY_CLASSES_ROOT\bos_auto_file
Expand it until it looks something like this:
Image

Edit the (Default) field to read:
"C:\Games\Spring\Tools\Scriptor\Scriptor.exe" /dde
(change the path as necessary)

Now, right click the "open" folder in the left tree view and go to New->Key. Name the key ddeexec. Change its (Default) value to the following:
[open("%1")]
It should look like this:
Image

Assuming you did it right, it should work correctly now.

Hopefully this will help people in the future. At the very least, it'll help me, since I run into this problem every time I reinstall windows, and 7 was certainly a new adventure in making it work right


Top
 Offline Profile  
 
PostPosted: 19 Dec 2009, 22:35 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
library to scripts directory (win7), in scriptor file>open... Profit?


Top
 Offline Profile  
 
PostPosted: 19 Dec 2009, 23:09 
Modeler
User avatar

Joined: 02 Sep 2006, 00:15
Location: ┬® Wolfe Games
workarounds != solutions


Top
 Offline Profile  
 
PostPosted: 20 Dec 2009, 19:18 
A.N.T.S. Developer
User avatar

Joined: 26 Sep 2009, 20:26
Location: Ukraine
overkill wrote:
workarounds != solutions

well you didnt read this its a solution.


Top
 Offline Profile  
 
PostPosted: 20 Dec 2009, 20:16 
Redacted
User avatar

Joined: 08 Jan 2007, 06:13
Location: Don't be silly. If there's no machine heaven, where do all the toasters go?
d_b wrote:
overkill wrote:
workarounds != solutions

well you didnt read this its a solution.
Is it so hard to figure out he's replying to the post immediately above his?


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.