Save file association

GoodMorning · 2877

GoodMorning

  • Community Guild
  • *****
    • Posts: 3412
  • (Pusillanimous)
on: July 25, 2016, 12:46:44 am
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

  • Sr. Member
  • ****
    • Posts: 1046
  • In radians may we find vectory!
Reply #1 on: July 25, 2016, 01:02:53 am
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.

The nap takers are here to... welp.

"Build a ladder to the moon" is simple as a sentence, but actually doing it is not.


GoodMorning

  • Community Guild
  • *****
    • Posts: 3412
  • (Pusillanimous)
Reply #2 on: July 25, 2016, 01:33:53 am
The 5s saved is far from worthwhile if it's not already there.

A narrative is a lightly-marked path to another reality.


chwooly

  • Full Member
  • ***
    • Posts: 522
Reply #3 on: July 25, 2016, 05:48:52 am
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.

“Always listen to experts. They'll tell you what can't be done, and why. Then do it.”
― Robert A. Heinlein, Time Enough for Love


J

  • Community Guild
  • *****
    • Posts: 2603
  • Smile! =J
Reply #4 on: July 25, 2016, 06:59:58 am
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

  • Community Guild
  • *****
    • Posts: 3412
  • (Pusillanimous)
Reply #5 on: July 25, 2016, 07:02:36 am
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.