kvark / claymore

Just another tactical RPG in dark fantasy setting
Apache License 2.0
54 stars 3 forks source link

Error when trying to build viewer example #14

Closed bvssvni closed 9 years ago

bvssvni commented 9 years ago

rustc 1.0.0-nightly (d754722a0 2015-03-31) (built 2015-03-31)

$ cargo run --example viewer
    Updating git repository `https://github.com/bjz/cgmath-rs`
    Updating git repository `https://github.com/kvark/gfx_pipeline`
    Updating git repository `https://github.com/PistonDevelopers/gfx-debug-draw`
no matching package named `cgmath` found (required by `claymore-scene`)
location searched: https://github.com/bjz/cgmath-rs#c8db595e
version required: = 0.1.1
versions found: 0.1.2
kvark commented 9 years ago

Weird. Thanks for the report!

kvark commented 9 years ago

@bvssvni could you try again?

bvssvni commented 9 years ago

I'm getting a new error message:

rustc 1.0.0-nightly (d9146bf8b 2015-04-07) (built 2015-04-07)

reating the window...
Initializing the graphics...
thread '<main>' panicked at 'index out of bounds: the len is 0 but the index is 0', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcollections/vec.rs:1347
stack backtrace:
   1:        0x10b2e1517 - sys::backtrace::write::h34d2a531b866f569DJC
   2:        0x10b2e54ac - panicking::on_panic::h25a704687865f7d0PxI
   3:        0x10b2d3dfe - rt::unwind::begin_unwind_inner::had28b4096229228fqfI
   4:        0x10b2d42c6 - rt::unwind::begin_unwind_fmt::h6c223217ba1823874dI
   5:        0x10b2e4d6d - rust_begin_unwind
   6:        0x10b305ac5 - panicking::panic_fmt::h8f9545e02619b9e55jC
   7:        0x10b307868 - panicking::panic_bounds_check::h031847e5ccef29ccbjC
   8:        0x10b0f9366 - vec::Vec<T>.Index<usize>::index::h9681540786737762984
   9:        0x10af5bcdc - main::h796e0afe35719556ufa
  10:        0x10b2e6758 - rust_try_inner
  11:        0x10b2e6745 - rust_try
  12:        0x10b2e5e8a - rt::lang_start::h2c4ea1cbe019bddcisI
  13:        0x10af5cb5e - main
An unknown error occurred
kvark commented 9 years ago

Haha, right. So the viewer treats every parameter as a path to a scene, and loads all of them into the same space. Then, when it tries to render it, it takes the first camera, which is obviously not existent in your case. I'll patch it up ;)

kvark commented 9 years ago

I was thinking about making releases with data included, but then - what is the point if the code would stop compile quickly due to Rust changes? I'm using the nightly, so I need to think accordingly.

kvark commented 9 years ago

Considering this closed now. The proper error was added, and the data is distributed with releases.