
Volohnix
Hands-on Rust: Can't make executable work
Hello, first post in this platform.. so if I posting in the wrong place, forgive me.
I’m finishing my journey with the book but I cannot make my executable to work:
thread 'main' panicked at /Users/miname/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bracket-terminal-0.8.7/src/hal/gl_common/font.rs:45:18:
Failed to load texture: IoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I’ve already checked the folder arrangement and looks ok:
mygame folder is also following this:
.
├── Cargo.lock
├── Cargo.toml
├── readme.md
├── resources
│ ├── dungeonfont.png
│ ├── template.ron
│ └── terminal8x8.png
└── src
├── camera.rs
├── components.rs
├── main.rs
├── map_builder
│ ├── automata.rs
│ ├── drunkard.rs
│ ├── empty.rs
│ ├── mod.rs
│ ├── prefab.rs
│ ├── rooms.rs
│ └── themes.rs
├── map.rs
├── spawner
│ ├── mod.rs
│ └── template.rs
├── systems
│ ├── chasing.rs
│ ├── combat.rs
│ ├── end_turn.rs
│ ├── entity_render.rs
│ ├── fov.rs
│ ├── hud.rs
│ ├── map_render.rs
│ ├── mod.rs
│ ├── movement.rs
│ ├── player_input.rs
│ ├── random_move.rs
│ ├── tooltips.rs
│ ├── use_item.rs
│ └── use_items.rs
└── turn_state.rs
fn main() -> BError {
let context = BTermBuilder::new()
.with_title("Dungeon Crawler")
.with_fps_cap(30.0)
.with_dimensions(DISPLAY_WIDTH, DISPLAY_HEIGHT)
.with_tile_dimensions(32, 32)
.with_resource_path("resources/")
.with_font("dungeonfont.png", 32, 32)
.with_font("terminal8x8.png", 8, 8)
.with_simple_console(
DISPLAY_WIDTH,
DISPLAY_HEIGHT,
"dungeonfont.png",
)
.with_simple_console_no_bg(
DISPLAY_WIDTH,
DISPLAY_HEIGHT,
"dungeonfont.png",
)
.with_simple_console_no_bg(
SCREEN_WIDTH * 2,
SCREEN_HEIGHT * 2,
"terminal8x8.png",
)
.build()?;
main_loop(context, State::new())
}
When I run the game with cargo run it works perfectly. The issue is only with the build --release
Popular Pragmatic Bookshelf topics

Python Testing With Pytest - Chapter 2, warnings for “unregistered custom marks”
While running the smoke tests in Chapter 2, I get these...
New

The following is cross-posted from the original Ray Tracer Challenge forum, from a post by garfieldnate. I’m cross-posting it so that the...
New

Hi! I know not the intentions behind this narrative when called, on page XI:
mount() |> handle_event() |> render()
but the correc...
New

Title: Intuitive Python: docker run… denied error (page 2)
Attempted to run the docker command in both CLI and Powershell
PS C:\Users\r...
New

The book has the same “Problem space/Solution space” diagram on page 18 as is on page 17. The correct Problem/Solution space diagrams ar...
New

When trying to generate the protobuf .go file, I receive this error:
Unknown flag: --go_opt
libprotoc 3.12.3
MacOS 11.3.1
Googling ...
New

“The ProductLive.Index template calls a helper function, live_component/3, that in turn calls on the modal component. ”
Excerpt From: Br...
New

I’m under the impression that when the reader gets to page 136 (“View Data with the Database Inspector”), the code SHOULD be able to buil...
New

When installing Cards as an editable package, I get the following error:
ERROR: File “setup.py” not found. Directory cannot be installe...
New

Modern Front-End Development for Rails - application does not start after run bin/setup (page xviii)
After some hassle, I was able to finally run bin/setup, now I have started the rails server but I get this error message right when I vis...
New
Other popular topics

Design and develop sophisticated 2D games that are as much fun to make as they are to play. From particle effects and pathfinding to soci...
New

My first contact with Erlang was about 2 years ago when I used RabbitMQ, which is written in Erlang, for my job. This made me curious and...
New
New

Learn different ways of writing concurrent code in Elixir and increase your application's performance, without sacrificing scalability or...
New

The V Programming Language
Simple language for building maintainable programs
V is already mentioned couple of times in the forum, but I...
New

Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New

API 4
Path:
/user/following/
Method:
GET
Description:
Returns the list of all names of people whom the user follows
Response
[
{ ...
New

Intensively researching Erlang books and additional resources on it, I have found that the topic of using Regular Expressions is either c...
New
New

Hello,
I’m a beginner in Android development and I’m facing an issue with my project setup. In my build.gradle.kts file, I have the foll...
New
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /rails
- /js
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /emacs
- /haskell
- /java
- /onivim
- /svelte
- /typescript
- /crystal
- /kotlin
- /c-plus-plus
- /tailwind
- /gleam
- /ocaml
- /react
- /elm
- /flutter
- /vscode
- /ash
- /opensuse
- /centos
- /html
- /php
- /deepseek
- /zig
- /scala
- /lisp
- /sublime-text
- /textmate
- /debian
- /nixos
- /react-native
- /agda
- /kubuntu
- /arch-linux
- /django
- /revery
- /ubuntu
- /spring
- /manjaro
- /nodejs
- /diversity
- /lua
- /c
- /slackware
- /julia
- /markdown