Anyone here know how to associate a mod with my mod, Ghost?
I want to know, so that I can set the .ght extension to my mod.
(No, setting the ghost.exe to it wont work. So dont even bother.)
Thanks in advance!!
Last edited by bbbeb (2010-10-11 22:49:36)
Offline
Daffy22 wrote:
If if I understand correctly then you can some how add .ght to the registry and it will understand it as a .ght file just like .txt .
![]()
I think your best bet is to google it!![]()
objection -- best bet is me. i'm an expert with registry values now
so. to start the tut.
open the registry
make a new key called .ght or whatever in HKEY-CLASSES or something.
set that key GhostProject or whatever
make a new key in the same place called GhostProject (or whatever)
set that to Ghost Project (or whatever you want the name to be)
add a key inside that called shell and anothr called defaultIcon
set defaultIcon to the pth of an ico file and add ,0 after it.
set shell to open
make a new key inside shell called open
set that to Open File
make a new key inside open called command
set that to the path of the exe, the path of the image AND "%1"
it definitely works
Last edited by LS97 (2010-10-12 08:11:37)
Offline
Daffy22 wrote:
Make sure your though if you follow LS97 that you are carefull because a tiny change in the wrong place can result in mager errors!
![]()
True. I forgot to say that
BE CAREFUL WHEN EDITING REGISTRY VALUES!!!
Offline
LS97 wrote:
Daffy22 wrote:
Make sure your though if you follow LS97 that you are carefull because a tiny change in the wrong place can result in mager errors!
![]()
True. I forgot to say that
BE CAREFUL WHEN EDITING REGISTRY VALUES!!!
lol!
Offline
Daffy22 wrote:
LS97 wrote:
Daffy22 wrote:
Make sure your though if you follow LS97 that you are carefull because a tiny change in the wrong place can result in mager errors!
![]()
True. I forgot to say that
BE CAREFUL WHEN EDITING REGISTRY VALUES!!!
lol!
![]()
TY!!!!
Offline
bbbeb wrote:
It wont work!!!!!!!!!
if you've done what LS97 said and it doesn't work I strongly suggest removing what you have just done and maybe google your question instead. Chances are there is another way to do this!
Offline
im gonna try this for ribbit! .rbt
Offline
Daffy22 wrote:
ProgrammingFreak wrote:
im gonna try this for ribbit! .rbt
that way though you'll need an installer that will edit registry values to do this on a wider scale.
![]()
well you can export regstry keys an run them while installing (maybe as an optional feat) and they should then merge in.
Offline
I have to bring this back up. I don't want to make a new topic.
LS97, I'm sure your still active.
If i'm at this part:
"make a new key in open called command"
and the files are all in program files/Ghost, what should I type?
Offline
bbbeb wrote:
I have to bring this back up. I don't want to make a new topic.
LS97, I'm sure your still active.
If i'm at this part:
"make a new key in open called command"
and the files are all in program files/Ghost, what should I type?
make that key, and set its (default) value to:
ghostEXEpath.exe "ghostIMAGEpath.image" "%1"
Offline
Exactly like that, with the quotations and all?
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.ght] @="Ghost Project" [HKEY_CLASSES_ROOT\.ght\GhostProject] @="Ghost Project" [HKEY_CLASSES_ROOT\.ght\GhostProject\shell] @="open" [HKEY_CLASSES_ROOT\.ght\GhostProject\shell\open] @="Open File" [HKEY_CLASSES_ROOT\.ght\GhostProject\shell\open\command] @="C:/---/ScratchMods/Ghost/GhostLaunch.exe "C:/---/ScratchMods/Ghost/GhostLaunch.image" "%1""
Seems right, right?
Last edited by bbbeb (2011-08-31 17:40:47)
Offline
bbbeb wrote:
Exactly like that, with the quotations and all?
Code:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.ght] @="Ghost Project" [HKEY_CLASSES_ROOT\.ght\GhostProject] @="Ghost Project" [HKEY_CLASSES_ROOT\.ght\GhostProject\shell] @="open" [HKEY_CLASSES_ROOT\.ght\GhostProject\shell\open] @="Open File" [HKEY_CLASSES_ROOT\.ght\GhostProject\shell\open\command] @="C:/---/ScratchMods/Ghost/GhostLaunch.exe "C:/---/ScratchMods/Ghost/GhostLaunch.image" "%1""Seems right, right?
i think the last one is mean't to be "C:\---\ScratchMods\Ghost\GhostLaunch.exe" "C:\---\ScratchMods\Ghost\GhostLaunch.image" %1
(yeah, i mess around with the registry sometimes too
)
Offline
You can do it quickly, it works for Windows.
Before I start - DOWNSIDES:
- This is only for your computer. You have to tell other people what to do.
- You can't set a custom icon. However, what it does come up with should be fine.
- You can't make it say that it's a "Ghost Project". It will still say it's a "GHT File", but it will open with your mod.
What to do:
1. Open control panel.
2. Open Folder Options.
3. Uhh... do you have XP?
Offline
whizzer wrote:
You can do it quickly, it works for Windows.
Before I start - DOWNSIDES:
- This is only for your computer. You have to tell other people what to do.
- You can't set a custom icon. However, what it does come up with should be fine.
- You can't make it say that it's a "Ghost Project". It will still say it's a "GHT File", but it will open with your mod.
What to do:
1. Open control panel.
2. Open Folder Options.
3. Uhh... do you have XP?
3. Windows 7.
Offline
bbbeb wrote:
whizzer wrote:
You can do it quickly, it works for Windows.
Before I start - DOWNSIDES:
- This is only for your computer. You have to tell other people what to do.
- You can't set a custom icon. However, what it does come up with should be fine.
- You can't make it say that it's a "Ghost Project". It will still say it's a "GHT File", but it will open with your mod.
What to do:
1. Open control panel.
2. Open Folder Options.
3. Uhh... do you have XP?3. Windows 7.
windows 7 has a different control panel and folder options does not have that option anymore. you can also right click a project and select open with and set it as default.... also... one.. more... thing.............. you can't associate files like that because it won't find the .image file so you will have to use the registry or an installer.
Offline
Actually, whizzer, your downside about only for your computer is only partially true.
You can write it all to a REG file and the other end can just file it in. Or for compatibility and flexibility, use an installation program to make the installation directory variable and set the key to that.
Offline
LS97 wrote:
Daffy22 wrote:
If if I understand correctly then you can some how add .ght to the registry and it will understand it as a .ght file just like .txt .
![]()
I think your best bet is to google it!![]()
objection -- best bet is me. i'm an expert with registry values now
![]()
so. to start the tut.
open the registry
make a new key called .ght or whatever in HKEY-CLASSES or something.
set that key GhostProject or whatever![]()
make a new key in the same place called GhostProject (or whatever)
set that to Ghost Project (or whatever you want the name to be)
add a key inside that called shell and anothr called defaultIcon
set defaultIcon to the pth of an ico file and add ,0 after it.
set shell to open
make a new key inside shell called open
set that to Open File
make a new key inside open called command
set that to the path of the exe, the path of the image AND "%1"
it definitely works
:S You could also just right click a .ght project, click 'Open with...', 'Select program...', (find your Ghost exe), check the box to remember it, click ok
Although it might act weird because the squeak VM also needs its image file...
Offline