-
Notifications
You must be signed in to change notification settings - Fork 30
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
tcod version 5 is broken #64
Comments
Greetings @HarrisonHemstreet. Thanks for the bug report, but that's little to go on. It would be helpful to know what/how exactly is broken. At the minimum describe what you're doing (what commands you run etc.) and paste the error messages you see here. I found this project and tried to run it locally: https://github.com/HarrisonHemstreet/RougueLike-Rust And while it built correctly, when I pressed a key, it panicked with:
This has been fixed in the master branch of tcod-rs, so updating your [package]
name = "rouguelike-rust"
version = "0.1.0"
authors = ["Harrison <[email protected]>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
tcod = { git = "https://github.com/tomassedovic/tcod-rs.git", features = ["serialization"] }
rand = "0.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[dependencies.tcod-sys]
git = "https://github.com/tomassedovic/tcod-rs.git"
features = ["dynlib"] (it changes the But both tcod (the Rust bindings, not the original libtcod C/C++ library) and this tutorial are no longer maintained. I recommend you check out this tutorial instead: http://bfnightly.bracketproductions.com/rustbook/ It is maintained and uses the bracket-lib crate which is written in pure Rust and again, is maintained. |
I am not sure if this is related or not, but I made it to the end of part 7 before I experienced an issue. In part 7, when we get to the part where we have to change the way we check for input to this: // Check for Input.
match input::check_for_event(input::MOUSE | input::KEY_PRESS) {
Some((_, Event::Mouse(m))) => tcod.mouse = m,
Some((_, Event::Key(k))) => tcod.key = k,
_ => tcod.key = Default::default(),
} Then I could not find any problems or differences between my code against the code on github. Sorry, I don't have the error handy to copy and paste, I changed my |
No description provided.
The text was updated successfully, but these errors were encountered: