Git Product home page Git Product logo

mist's Introduction

hello

i'm moving all of my active development to codeberg, at codeberg.org/periwinkle. i will keep all existing projects on this account, and likely continue to use it to contribute to other github-hosted projects.

see why i decided to make the hop at GiveUpGithub.org.

mist's People

Contributors

hairyotter07 avatar ltperiwinkle avatar savage13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mist's Issues

Numberpad Keybindings?

Hi, do numberpad keys work for keybindings? I've tried KP_1 and it does not work. Perhaps they go by a different name? Sorry I have no idea how to check :P

Requirements Ubuntu 20.04

Hiya,
correct aptitude packages for Ubuntu 20.4 would be:

sudo apt-get install libsdl2-2.0-0 libsdl2-ttf-2.0-0 libsdl2-image-2.0-0 libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev

Compiled with cargo.

Running it gave me this error:

thread 'main' panicked at 'could not load icon: "Couldn\'t open assets/MIST.png"', src/app.rs:46:20

Changed the line to ../assets/MIST.png. Works.
After cancelling the optional "choose a config file", it gave me another prompt to get the default one which seems kinda counterintuitive tbh. ๐Ÿ˜„

Thanks for this project.

Sample any.msf file can't be parsed because of the slash comments

I pulled and compiled today and the any.msf file from the release.zip does not parse with "File parse failed. Do you want to try another?"

Inserting some debug information reveals that I get an "1:1658: Unexpected end of file" in mist-core in msf.rs on line 81 for the from_str(&data).

Playing around a bit it seems to be the // comments, since a file with /* */ comments parses well.

I'm afraid I'm not rustacean enough to propose a good fix or find the root cause (didn't find the string in ron), but I might dig in some more when I have time later.

Fixed: any.txt
From release.zip: broken.txt

System is a MacOS 11.6, but was also observed on Debian Linux. Let me know if you need more information.

Run it on Ubuntu

I don't get it how to run the program on Ubuntu. Can somebody help me?

panic on empty pb_times or gold_times

Opening an empty msf file (created from mist-split-tool) results in:

panicked at index out of bounds: the len is 0 but the index is 0, src/app.rs:353:26

Adding the following before at around src/app.rs:317, sets the length of gold and pb times to be the same length as the splits name.

       let n = self.run.splits().len();

       let mut v = self.run.gold_times().to_owned();
       v.resize_with(n, Default::default);
       self.run.set_gold_times(&v);
 
       let mut v = self.run.pb_times().to_owned();
       v.resize_with(n, Default::default);
       self.run.set_pb_times(&v);

This probably belongs in mist-core instead of the mist app.

Crash on fullscreen with no split file.

What

mist crashes if you attempt to enter fullscreen with a no-split file, or no loaded file (which defaults to no-split).

Log

$ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.14s
     Running `target\debug\mist.exe`
Window { timestamp: 18, window_id: 1, win_event: Shown }
Window { timestamp: 25, window_id: 1, win_event: FocusGained }
TextEditing { timestamp: 68, window_id: 1, text: "", start: 0, length: 0 }
Window { timestamp: 462, window_id: 1, win_event: FocusLost }
TextEditing { timestamp: 462, window_id: 1, text: "", start: 0, length: 0 }
Window { timestamp: 3200, window_id: 1, win_event: FocusGained }
Window { timestamp: 3249, window_id: 1, win_event: Exposed }
Window { timestamp: 7074, window_id: 1, win_event: Moved(0, 23) }
Window { timestamp: 7074, window_id: 1, win_event: SizeChanged(1536, 841) }
Window { timestamp: 7074, window_id: 1, win_event: Resized(1536, 841) }
thread 'main' panicked at 'attempt to subtract with overflow', src\app.rs:860:53
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\mist.exe` (exit code: 101)

Specification

OS: Windows
Cargo: 1.52.0 (69767412a 2021-04-21)
Mist: Commit e8ae3e1

Steps to Reproduce

  1. Make sure in mist.cfg, def_file is set to None
  2. Do cargo run
  3. When prompted to open a split file, press Cancel
  4. Attempt to enter fullscreen

background key inputs

hi,

absolutely know nothing about rust, but i'm running this on arch and struggling to identify a way to make mist accept key inputs when it's not currently the focussed window?

this is an issue when running e.g. unity games which need to be be the focussed window to accept inputs. this is obviously an issue for speedrunning as you need to alt+tab out of the game to make your split

is there anyway to make mist accept keystrokes when it's running in the background?

i'm not sure if this is handy but livesplit have a crate to handle this apparently? https://github.com/LiveSplit/livesplit-core/tree/master/crates/livesplit-hotkey

thanks for writing this, i've been using it almost daily!

`Instant` is not suitable for measuring time

A couple of hours ago the libs team decided that the time that the PC is suspended should not be counted, meaning that Instant as they decided is not entirely suitable anymore for measuring speedrun times (maybe your PC goes to sleep during some long segment while doing a speedrun on a console for example). I'm looking into forking it atm.

rust-lang/rust#87907 (comment)

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.