Save file association

Started by GoodMorning, July 25, 2016, 12:46:44 AM

Previous topic - Next topic

GoodMorning

When debugging worlds, I occasionally find that I want to open a save from outside CW3, as one would a script for editing or a more normal document.

Is it possible to associate the file extension ".cw3" with CW3?

If not, it's a footnote. If so, it's mildly useful.

My best guess is "No", followed by "It wasn't worth doing", or (just) possibly "Yes, it was useful while creating the game".
A narrative is a lightly-marked path to another reality.

planetfall

I don't think it's possible. As for whether it could be implemented in theory... Making it load the save to play could be possible if Virgil had the time to add this (though I question whether the 5 seconds it would save players would be worth it). Making it open in the editor would be a massive can of worms.
Pretty sure I'm supposed to be banned, someone might want to get on that.

Quote from: GoodMorning on December 01, 2016, 05:58:30 PM"Build a ladder to the moon" is simple as a sentence, but actually doing it is not.

GoodMorning

The 5s saved is far from worthwhile if it's not already there.
A narrative is a lightly-marked path to another reality.

chwooly

It should work just like any file association in Winders. If you do a search for files with the extension cw3 you get a lot of files, Then you can select the file, Right click, Open With, More apps, scroll to the bottom, click on Look for another app on this PC and then search for the CW3 executable. The only problem I can see is that if you have steam, the CW3 Icon points to "steam://rungameid/280220" so I am not sure if there is a CW3 exe file on any pc that is bought CW3 from Steam.
I am free, no matter what rules surround me. If I find them tolerable, I tolerate them; if I find them too obnoxious, I break them. I am free because I know that I alone am morally responsible for everything I do."
― Robert A. Heinlein

J

The steam version also has a CW3.exe. Still there would be the choice of opening the map in the editor or not (I'd rather have it in the editor), and I have seen occurances where it isn't as easy as it seems for a developer to implement this. Not only does clicking the save have to open the game, it also has to load the save.

Note that it could be more than 5s in case someone downloads a map from the internet and just clicks 'open'.

GoodMorning

Well, CW3 has on option to load from the main menu, which was why I asked.

I asked more from interest than need.
A narrative is a lightly-marked path to another reality.