doukutsu-rs / doukutsu-rs

A faithful and open-source remake of Cave Story's engine written in Rust
Other
942 stars 58 forks source link

Abnormal running, if anyone meet the same thing? #199

Open zhaoqilong123 opened 1 year ago

zhaoqilong123 commented 1 year ago

1)Expectation After git clone https://github.com/doukutsu-rs/doukutsu-rs and Cargo build inside /doukutsu-rs/ I get doukutsu-rs inside /doukutsu-rs/target/debug but when I try to run doukutsu-rs with ./doukutsu-rs, then following message reports:

zhaoqilong@zhaoqilong-virtual-machine:~/桌面/doukutsu-rs/target/debug$ ./doukutsu-rs INFO [doukutsu_rs::game::filesystem_container] Resource directory: "/home/zhaoqilong/桌面/doukutsu-rs/target/debug/data" INFO [doukutsu_rs::game::filesystem_container] Initializing engine... INFO [doukutsu_rs::game::filesystem_container] Mounting built-in FS INFO [doukutsu_rs::sound::wave_bank] Loaded sample: WavFormat { channels: 1, sample_rate: 22050, bit_depth: 8 } INFO [doukutsu_rs::sound::wave_bank] Loaded sample: WavFormat { channels: 1, sample_rate: 22050, bit_depth: 8 } INFO [doukutsu_rs::sound::wave_bank] Loaded sample: WavFormat { channels: 1, sample_rate: 22050, bit_depth: 8 } INFO [doukutsu_rs::sound::wave_bank] Loaded sample: WavFormat { channels: 1, sample_rate: 22050, bit_depth: 8 } INFO [doukutsu_rs::sound::wave_bank] Loaded sample: WavFormat { channels: 1, sample_rate: 22050, bit_depth: 8 } INFO [doukutsu_rs::sound::wave_bank] Loaded sample: WavFormat { channels: 1, sample_rate: 22050, bit_depth: 8 } INFO [doukutsu_rs::sound::wave_bank] Loaded sample: WavFormat { channels: 1, sample_rate: 44100, bit_depth: 16 } INFO [doukutsu_rs::sound::wave_bank] Loaded sample: WavFormat { channels: 1, sample_rate: 44100, bit_depth: 16 } ERROR [doukutsu_rs::sound::wave_bank] Failed to read next sample: failed to fill whole buffer INFO [doukutsu_rs::sound] Audio format: 44100 2 INFO [doukutsu_rs::data::vanilla] Looking for vanilla game executable at "/home/zhaoqilong/桌面/doukutsu-rs/target/debug/Doukutsu.exe" INFO [doukutsu_rs::engine_constants] Loaded locale en (English) INFO [doukutsu_rs::engine_constants] Loaded locale jp (Japanese) WARN [doukutsu_rs::game::shared_game_state] Failed to load font, using built-in: Resource not found: File not found, searched in paths [("/builtin/builtin_data/csfont.fnt", ResourceNotFound("/builtin/builtin_data/csfont.fnt", [("/home/zhaoqilong/桌面/doukutsu-rs/target/debug/data", IOError(Os { code: 2, kind: NotFound, message: "No such file or directory" })), ("", FilesystemError("File not found."))])), ("/csfont.fnt", ResourceNotFound("/csfont.fnt", [("/home/zhaoqilong/桌面/doukutsu-rs/target/debug/data", IOError(Os { code: 2, kind: NotFound, message: "No such file or directory" })), ("", FilesystemError("File not found."))]))] INFO [doukutsu_rs::discord] Starting Discord RPC client... WARN [doukutsu_rs::discord] Failed to start Discord RPC client (maybe Discord is not running?): Couldn't connect to the Discord IPC socket INFO [doukutsu_rs::game] Starting main loop... Initialization error: Window creation error: No available video device

2)Environment OS:ubuntukylin-20.04-pro-sp1-amd64.iso download from https://www.ubuntukylin.com/downloads/osdownload-cn.html maybe current available version is more updated.

Virtual Machine:VMware@ Workstation 15 Pro version:15.5.2 build-15785246

Error

So if anyone meet the same situation?

alula commented 1 year ago

Since you're trying to run it in a VM, are you sure you have 3D acceleration there?