Git Product home page Git Product logo

Comments (12)

DreadKnight avatar DreadKnight commented on June 17, 2024 1

On Windows/Chrome I was not able to use Ctrl+Shift+Meta+X to save a file. The hotkeys file from master shows that the hotkey is shift+ctrl+X.

pressX(event) {
if (event.shiftKey && event.ctrlKey) {
this.ui.game.gamelog.save();
} else {
this.ui.btnExit.triggerClick();
}
}

In any case, I was able to find another shortcut for ctrl+s to save and this worked for me. To have two different shortcuts for the same action seems a bit redundant to me, though. I'm not sure why the other shortcut did not work.

pressS(event) {
if (event.shiftKey) {
this.ui.btnToggleScore.triggerClick();
} else if (event.ctrlKey) {
this.ui.game.gamelog.save();
} else {

I now have a save log file, but am still unable to replicate your bug.

  1. I hold ctrl+meta+L for a few seconds and select my save file.
  2. I press "Open" to open this save file.
  3. The game loads successfully and there are no further "leftover" file selectors.

In your bug scenario, how does the process differ?

Seems I got stuck on another fork when looking at the hotkey. We have 2 because browsers. Once more testing is done might as well stick to just one and document it or showcase it in some hotkey page in-game eventually.

I'm on Linux and using Brave, so it might be a specific bug that won't affect most people, will make sure to specify this stuff in OP. You're free to pick another issue if you want, plenty labeled 'easy'.

from ancientbeast.

andretchen0 avatar andretchen0 commented on June 17, 2024

Trying to recreate. Using FF/Edge on Windows, I only get a single window to pop up at any time.

What's your OS/browser?

from ancientbeast.

DreadKnight avatar DreadKnight commented on June 17, 2024

Trying to recreate. Using FF/Edge on Windows, I only get a single window to pop up at any time.

What's your OS/browser?

@andretchen0 I'm on Linux/Brave.

from ancientbeast.

tykm avatar tykm commented on June 17, 2024

Can I contribute to this? I have not played this game before but I enjoy games and would like to try committing to open source and this looks simple enough to tackle.

from ancientbeast.

DreadKnight avatar DreadKnight commented on June 17, 2024

@tykm Sure, go for it. Assigning you in a bit.

from ancientbeast.

tykm avatar tykm commented on June 17, 2024

@DreadKnight I am unfamiliar with this codebase and the functionality behind logging, but from my understanding:

  • When I am on this pre-match screen, I can press ctrl+win+L to load a log file
    image

  • And doing so will prompt this screen:
    image

And in your case, holding the shortcut will open multiple file selectors, as opposed to my screenshot where there is only one open?

from ancientbeast.

DreadKnight avatar DreadKnight commented on June 17, 2024

@tykm It only opens multiple files if I open a save file in the picker, provided I've held the load hotkey a little longer.
You can get a save (log) file by playing and pressing Ctrl+Shift+X and then you use that back in a pre-match screen.

from ancientbeast.

tykm avatar tykm commented on June 17, 2024

I am unable to use the ctrl+shift+X hotkey to save a log file. Do I need to progress past a certain num of turns to save or am I in the wrong mode? I am using Windows and Chrome.

image

from ancientbeast.

DreadKnight avatar DreadKnight commented on June 17, 2024

I am unable to use the ctrl+shift+X hotkey to save a log file. Do I need to progress past a certain num of turns to save or am I in the wrong mode? I am using Windows and Chrome.

image

It should work instantly. Hotkey was remapped recently, but checking the file it seems it's Ctrl+Shift+Meta+X, though the idea was to drop Meta and it works even without Meta for me xD

https://github.com/CyberBishop/AncientBeast/blob/master/src/ui/hotkeys.js#L65

from ancientbeast.

DreadKnight avatar DreadKnight commented on June 17, 2024

Seems from conversation I opposed dropping the Meta, just went for a more suitable letter instead, my bad; #2160

from ancientbeast.

tykm avatar tykm commented on June 17, 2024

On Windows/Chrome I was not able to use Ctrl+Shift+Meta+X to save a file. The hotkeys file from master shows that the hotkey is shift+ctrl+X.

pressX(event) {
if (event.shiftKey && event.ctrlKey) {
this.ui.game.gamelog.save();
} else {
this.ui.btnExit.triggerClick();
}
}

In any case, I was able to find another shortcut for ctrl+s to save and this worked for me. To have two different shortcuts for the same action seems a bit redundant to me, though. I'm not sure why the other shortcut did not work.

pressS(event) {
if (event.shiftKey) {
this.ui.btnToggleScore.triggerClick();
} else if (event.ctrlKey) {
this.ui.game.gamelog.save();
} else {

I now have a save log file, but am still unable to replicate your bug.

  1. I hold ctrl+meta+L for a few seconds and select my save file.
  2. I press "Open" to open this save file.
  3. The game loads successfully and there are no further "leftover" file selectors.

In your bug scenario, how does the process differ?

from ancientbeast.

tykm avatar tykm commented on June 17, 2024

Sounds good

from ancientbeast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.