rsaarelm / magog Goto Github PK
View Code? Open in Web Editor NEWA roguelike game in Rust
License: GNU Affero General Public License v3.0
A roguelike game in Rust
License: GNU Affero General Public License v3.0
I still can't run the game on mac os. I use stable rust 1.0.0 and run the project with 'cargo run'.
Accompanied with --verbose it gives me:
thread '
' panicked at 'calledResult::unwrap()
on an Err
value: CompilationError("ERROR: 0:3: 'attribute' : syntax error: syntax error\n")', /Users/rustbuild/src/rust-buildbot/slave/stable-dist-rustc-mac/build/src/libcore/result.rs:729target/debug/magog
(exit code: 101)
If I run it with --release, then the next error occurs:
error: could not find rlib for: calx_macros
Could not compile magog
.
When trying to build, I get this error:
thread 'main' panicked at 'assertion failed: end <= len', src/libcollections/vec.rs:1113
stack backtrace:
0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
1: std::panicking::default_hook::{{closure}}
2: std::panicking::default_hook
3: std::panicking::rust_panic_with_hook
4: std::panicking::begin_panic
5: std::panicking::begin_panic_fmt
6: rust_begin_unwind
7: core::panicking::panic_fmt
8: core::panicking::panic
9: world::worldgen::Worldgen::gen_caves
10: world::worldgen::Worldgen::new
11: world::world::World::new
12: magog::main
13: __rust_maybe_catch_panic
14: std::rt::lang_start
I am using rust version 1.19.0 on macOS Sierra 10.12.4.
I ran magog with cargo run --release
.
It opens the game window and immediately errors out:
Running `target/release/magog`
Magog v0.1.0-alpha+g2365d6f
rustc 1.0.0-nightly (e2fa53e59 2015-03-20) (built 2015-03-20)
thread '<main>' panicked at 'not yet implemented', /Users/jmitchell/.cargo/registry/src/github.com-1ecc6299db9ec823/glutin-0.0.12/src/cocoa/mod.rs:591
thread '<main>' panicked at 'not yet implemented', /Users/jmitchell/.cargo/registry/src/github.com-1ecc6299db9ec823/glutin-0.0.12/src/cocoa/mod.rs:591
stack backtrace:
1: 0x1082b75df - sys::backtrace::write::hadb1455a57ee2267A7C
2: 0x1082b863d - panicking::on_panic::hb14107ef264d170efXI
3: 0x1082aea59 - rt::unwind::begin_unwind_inner::h8da2f07c00df904aZFI
4: 0x10823976f - rt::unwind::begin_unwind::h15946664856272882207
5: 0x108218262 - backend::Rc<T>.Backend::is_current::h646504145715981977
6: 0x1081f202d - context::Context::make_current::h209a50ce9a80ee6a72u
7: 0x1081f21b9 - DisplayImpl.Drop::drop::hca38c6a63bd351c4t5U
8: 0x1081da0c2 - glium..DisplayImpl::drop.7404::h8481bf0a6cf36476
9: 0x1081d32b9 - canvas::CanvasBuilder::run::ha447817254992976Nda
10: 0x1081c9a2b - main::had79dfd8d394f317PQb
11: 0x1082c9e68 - rust_try_inner
12: 0x1082c9e55 - rust_try
13: 0x1081ccbbe - main
thread panicked while panicking. aborting.
An unknown error occurred
To learn more, run the command again with --verbose.
Ever seen these errors? I don't know enough about Rust to know how to fix them.
error[E0658]: non-ident macro paths are experimental (see issue #35896)
--> world/src/biome.rs:95:17
|
95 | die!("Failed to join map");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error[E0658]: non-ident macro paths are experimental (see issue #35896)
--> world/src/map.rs:147:21
|
147 | die!("Unknown map glyph '{}'", c);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error[E0658]: non-ident macro paths are experimental (see issue #35896)
--> world/src/map.rs:331:13
|
331 | die!("No room left");
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: aborting due to 3 previous errors
When building with nightly rust on Windows, I get the following error:
> rustc --version
rustc 1.22.0-nightly (4502e2aa9 2017-10-03)
> cargo build
error[E0277]: the trait bound `errors::Error: serde::export::From<std::io::Error>` is not satisfied
--> world\src\mapfile.rs:39:5
|
39 | write!(output, "{}", MapSave { map, legend })?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::export::From<std::io::Error>` is not implemented for `errors::Error`
|
= help: the following implementations were found:
<errors::Error as serde::export::From<ron::ser::Error>>
<errors::Error as serde::export::From<ron::de::Error>>
<errors::Error as serde::export::From<errors::ErrorKind>>
<errors::Error as serde::export::From<&'a str>>
<errors::Error as serde::export::From<std::string::String>>
= note: required by `serde::export::From::from`
Is this an easy fix? I'm still learning error_chain
and Rust in general.
I have cloned the repo and cargo run --release
but the crate called png
cannot be downloaded:
Updating git repository `https://github.com/rsaarelm/calx`
Updating git repository `https://github.com/rsaarelm/vitral`
Downloading rand v0.5.1
Downloading glium v0.21.0
Downloading calx-ecs v0.6.1
Downloading euclid v0.17.3
Downloading scancode v0.1.2
Downloading image v0.19.0
Downloading scoped_threadpool v0.1.9
warning: spurious network error (2 tries remaining): failed to get 200 response from `https://crates.io/api/v1/crates/scoped_threadpool/0.1.9/download`, got 500
Downloading png v0.12.0
warning: spurious network error (2 tries remaining): failed to get 200 response from `https://crates.io/api/v1/crates/png/0.12.0/download`, got 500
warning: spurious network error (1 tries remaining): failed to get 200 response from `https://crates.io/api/v1/crates/png/0.12.0/download`, got 500
error: unable to get packages from source
Caused by:
failed to get 200 response from `https://crates.io/api/v1/crates/png/0.12.0/download`, got 500
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.