Giter Site home page Giter Site logo

magog's People

Contributors

kevinw avatar rsaarelm 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  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  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  avatar  avatar  avatar  avatar  avatar

magog's Issues

panic when running on mac

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 'called Result::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:729
Process didn't exit successfully: target/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.

Crashes on macOS

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.

problem with glutin on osx

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.

"non-ident macro paths are experimental" when building

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

serde::export::From<std::io::Error> not implemented

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.

The project fails to build because of png crate

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

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.