Comments (6)
The filenames are case sensitive (unless you're on windows). Therefore you should either rename the wad file to "doom1.wad" or use --iwad DOOM1.WAD.
Or, if that's fine, it might not be the WAD, could you build in non release mode and run with RUST_LOG and RUST_BACKTRACE set as follows
cargo build
RUST_LOG=debug RUST_BACKTRACE=1 target/rs-doom --iwad doom1.wad
To see where the issue stems from? The only other thing I can think of is that you're not running rs-doom from the right folder (its should be the repo's root, where Cargo.toml is).
from rust-doom.
Yep, I'm using the correct file casing.
rust-doom/target$ ls -la
total 9008
drwx------ 6 jdunlap jdunlap 4096 Oct 15 01:01 .
drwxr-xr-x 6 jdunlap jdunlap 4096 Oct 13 03:55 ..
drwx------ 9 jdunlap jdunlap 4096 Oct 15 01:01 .fingerprint
drwx------ 2 jdunlap jdunlap 4096 Oct 15 01:01 deps
-rw-r--r-- 1 jdunlap jdunlap 4196020 Oct 15 01:01 doom1.wad
drwx------ 2 jdunlap jdunlap 4096 Oct 15 01:00 native
drwx------ 5 jdunlap jdunlap 4096 Oct 14 05:58 release
-rwxr-xr-x 1 jdunlap jdunlap 4998760 Oct 15 01:01 rs-doom
Here's the debug statement:
RUST_LOG=debug RUST_BACKTRACE=1 ./rs-doom --iwad doom1.wad
INFO:rs-doom::wad::archive: Loading wad file 'doom1.wad'...
task '
Result::unwrap()
on an Err
value: couldn't open file', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libcore/result.rs:808stack backtrace:
1: 0x7f57fa8737e0 - rt::backtrace:👿:write::hdbb48f4c53a7cc60gDq
2: 0x7f57fa876770 - failure::on_fail::h664e14eeb2ff8c0bDYq
3: 0x7f57fa885720 - unwind::begin_unwind_inner::h46eb6d3df9093f27Gxd
4: 0x7f57fa885260 - unwind::begin_unwind_fmt::h39c3423b9e1f02ab8ud
5: 0x7f57fa885220 - rust_begin_unwind
6: 0x7f57fa8baf80 - failure::fail_fmt::hb781b41de6c01533iqk
7: 0x7f57fa7c2d00 - result::Result<T, E>::unwrap::h4834338452704792839
8: 0x7f57fa7c26a0 - Game:🆕:hfbbbccc1064d761aLsE
9: 0x7f57fa7c48c0 - main::he89110b84eb07809BBE
10: 0x7f57fa824750 - start::closure.8522
11: 0x7f57fa8862e0 - rust_try_inner
12: 0x7f57fa8862d0 - rust_try
13: 0x7f57fa883b80 - unwind::try::h3d43641284f9183bomd
14: 0x7f57fa883a10 - task::Task::run::h280134ab570169c32Bc
15: 0x7f57fa824470 - start::h6fd65e736c2637fdIhe
16: 0x7f57fa8243d0 - lang_start::h9c26c012b0091d5b1ge
17: 0x7f57fa7c6590 - main
18: 0x7f57f95d6a50 - __libc_start_main
19: 0x7f57fa6dcf9f -
20: 0x0 -
from rust-doom.
Again, you have to run the binary from the repo's root i.e. where the Cargo.toml
file is, not from the target
directory. That's also where the doom1.wad
file should be too:
rust-doom$ ls
screenshots src target Cargo.toml doom1.wad doom.toml LICENSE README.md
rust-doom$ RUST_LOG=info RUST_BACKTRACE=1 target/rs-doom --iwad doom1.wad
...
...
from rust-doom.
I've had the same problem. When runing from root not target folder it's working.
from rust-doom.
Interesting. Could you please send me the output of running ls -lR
in the repo's root so I can see all the files under that. Also could you attach the output of RUST_LOG=debug RUST_BACKTRACE=1 target/rs-doom --iwad=doom1.wad
as well (essentially what @jadbox attached).
Thanks!
Gah! Sorry @Sekhmet, I misread your comment as "it doesn't work when running from root".
from rust-doom.
Yep, running from the repo root fixed this issue.
from rust-doom.
Related Issues (20)
- How easy would it be to turn this into a proper DooM source port? HOT 2
- clippy warnings (more) HOT 2
- Use of unstable library feature 'ord_max_min' HOT 2
- Cannot move (mouse on mac) HOT 4
- Illegal hardware instruction HOT 2
- Mark `Id` as thread-safe HOT 1
- Keyboard input does not work on Mac
- Dependency Does Not Compile HOT 1
- Can't start doom HOT 3
- Signed distance of Line2 HOT 4
- SIGABRT when using Wayland
- cargo crate registry error: 'SDL' linked with two different versions. HOT 5
- Typo in Cargo.toml HOT 1
- Rare jumpy view rotation with left-right keyboard HOT 2
- Build fails on OS X 10.11.4 HOT 2
- Unreachable code branch HOT 3
- [meta] clippy warnings HOT 3
- Feature: "screenshot map" command HOT 1
- Cargo: Compilation warnings
- Game Crash when hitting any key HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-doom.