Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with the resources folder and some errors #1

Open
ghost opened this issue Apr 4, 2021 · 3 comments
Open

Problems with the resources folder and some errors #1

ghost opened this issue Apr 4, 2021 · 3 comments
Assignees

Comments

@ghost
Copy link

ghost commented Apr 4, 2021

Hey, I just made a GitHub account for the sole reason of making this issue. I tried compiling your game, but I've ran into some problems, some solved, some unsolved.

Zero documentation on how to install this game

I probably wouldn't have made this issue if it weren't for the absence of any documentation on how to build this game from source. So I assumed cargo install --path . is what I had to run to get this game installed.

The resources directory

Why is it when I compile this game, multiple instances of the resources folder are scattered across my filesystem? This game should just install the binary and the resources into one directory. For example, you could put the binary in /usr/local/bin and have the resources in ~/.config/callofferris. To make matters worse, all the instances of the resources folder are empty.

Errors

Even if I copy the contents of the resources directory from this Git repo unto ~/.cargo/bin/resources, I still get this error:

Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }

And if I run target/release/call_of_ferris:

thread 'main' panicked at 'attempted to leave type `platform::platform::x11::util::input::PointerState` uninitialized, which is invalid', /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/mem/mod.rs:659:9
@Andy-Python-Programmer Andy-Python-Programmer self-assigned this Apr 5, 2021
@Andy-Python-Programmer
Copy link
Owner

Thanks for reporting the issue! I will try to document things better but cargo install --path . is how one should be able to install CallOfFerris.

Issues about the resources directory: Appears that this issue is in ggez and its not very actively developed. I am looking forward for porting this to either amethyst or bevy. RFC for the engine as they both are a lot actively developed. I am just waiting for amethyst port to finish. Other then that you can run the game using cargo run in the project directory.

Let me know if the game also does not work using cargo run

@ghost
Copy link
Author

ghost commented Apr 6, 2021

Let me know if the game also does not work using cargo run

Nope. Same X11 error as before.

@Tarnadas
Copy link

Tarnadas commented Apr 7, 2021

see ggez/ggez#843 and rust-windowing/winit#1773

It's an issue with winit dependency and ggez needs to update to that. It's already working on ggez' devel branch, but devel is currently not compiling and also this crate needs to be updated to be compatible with new ggez version.

As long as it is not fixed, you can use rustc 1.47

rustup install 1.47
cargo +1.47 install --path .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants