Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't prompt to save the game #35802

Closed
wants to merge 1 commit into from

Conversation

Kodiologist
Copy link
Contributor

Summary

SUMMARY: None

Purpose of change

This prompt seems pointless, because if you hit "S" by accident, you can reload your game immediately with nothing lost. Saving overrwites your old save, of course, but because Cata is a roguelike, the expectation is that you regard every turn as permanent.

@Zireael07
Copy link
Contributor

I don't know any game that allows you to save with a single key press and doesn't prompt.
Either the process to save is more convoluted (several menus/several keys) or there's a prompt. Or both, sometimes.

@Kodiologist
Copy link
Contributor Author

Hitting "S" should require hitting the "S" key while holding the Shift key, unless you have Caps Lock on, which is asking for trouble.

@Kodiologist
Copy link
Contributor Author

I suppose there's no reason it couldn't be Control-S like most programs these days. Shift-S is just a roguelike tradition.

@mkikt4743
Copy link

Nah, I'd say just leave it in, works fine as is. Plus, some people enjoy save scumming to test new features or fight new enemies. I think everyone is fine with pressing Y, and if not, just bind quick save

@ZhilkinSerg
Copy link
Contributor

That is bad UX.

@ZhilkinSerg ZhilkinSerg closed this Dec 1, 2019
@kevingranade
Copy link
Member

This is such a small function that it seems pretty reasonable to add a default-unbound SAVE_NO_PROMPT action for people that prefer it.

@Kodiologist
Copy link
Contributor Author

@kevingranade I think ACTION_QUICKSAVE might already be that, but I'm not sure.

@kevingranade
Copy link
Member

Yea it's very nearly the same, but a bit more involved

Cataclysm-DDA/src/game.cpp

Lines 11251 to 11267 in c238070

void game::quicksave()
{
//Don't autosave if the player hasn't done anything since the last autosave/quicksave,
if( !moves_since_last_save ) {
return;
}
add_msg( m_info, _( "Saving game, this may take a while" ) );
popup_nowait( _( "Saving game, this may take a while" ) );
time_t now = time( nullptr ); //timestamp for start of saving procedure
//perform save
save();
//Now reset counters for autosaving, so we don't immediately autosave after a quicksave or autosave.
moves_since_last_save = 0;
last_save_timestamp = now;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants