Git Product home page Git Product logo

Comments (6)

cristicbz avatar cristicbz commented on May 14, 2024

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.

jadbox avatar jadbox commented on May 14, 2024

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 '

' failed at 'called Result::unwrap() on an Err value: couldn't open file', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libcore/result.rs:808
stack 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.

cristicbz avatar cristicbz commented on May 14, 2024

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.

Sekhmet avatar Sekhmet commented on May 14, 2024

I've had the same problem. When runing from root not target folder it's working.

from rust-doom.

cristicbz avatar cristicbz commented on May 14, 2024

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.

jadbox avatar jadbox commented on May 14, 2024

Yep, running from the repo root fixed this issue.

from rust-doom.

Related Issues (20)

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.