mejrs / rs3cache

Tools and api for reading and interpreting the RuneScape 3 game cache.
https://mejrs.github.io/rs3cache
MIT License
29 stars 3 forks source link

Problem WITH Cli installetion #6

Open Mobinkh opened 7 months ago

Mobinkh commented 7 months ago

hi first of all thanks for this awesome tool! second I have a problem I want to generate a PNG from the map with tiles but sadly I was not able to do that with Python now I tried CLI but when I install I get this error

cargo +nightly install --git https://github.com/mejrs/rs3cache/ rs3 --features=rs3 Updating git repository https://github.com/mejrs/rs3cache/ error: there is nothing to install in rs3 v0.1.0 (https://github.com/mejrs/rs3cache/#83c0db0d), because it has no binaries cargo install is only for installing programs, and can't be used with libraries. To use a library crate, add it as a dependency to a Cargo project with cargo add.

how can I fix this ?! is it expected ?!

mejrs commented 7 months ago

Can you try cargo +nightly install --git https://github.com/mejrs/rs3cache/ rs3 --bin=rs3 --features=rs3?

Mobinkh commented 7 months ago

thanks for response ye sure its what I got

Updating git repository `https://github.com/mejrs/rs3cache/`

Installing rs3 v0.1.0 (https://github.com/mejrs/rs3cache/#83c0db0d) error: failed to compile rs3 v0.1.0 (https://github.com/mejrs/rs3cache/#83c0db0d), intermediate artifacts can be found at C:\Users\TGR.H\AppData\Local\Temp\cargo-installMwR9AX. To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

Caused by: none of the selected packages contains these features: rs3

the path is already defined

Mobinkh commented 7 months ago

im using windows 11 if it helps in anyway !

btw do you know a better way so I can generate the map using python itself ?! because everything works perfectly in python but I didn't find any useful functions related to rendering the map so I decided to use the CLI tool

mejrs commented 7 months ago

I just tried, cargo +nightly install --git https://github.com/mejrs/rs3cache rs3cache --bin=rs3 --features=rs3 should work.

btw do you know a better way so I can generate the map using python itself ?! because everything works perfectly in python but I didn't find any useful functions related to rendering the map so I decided to use the CLI tool

No, that is not exposed to python

Mobinkh commented 7 months ago

thats so wierd im recieving new kind of errors !

error[E0635]: unknown featureprovide_any` --> rs3cache_backend\src\lib.rs:5:5 | 5 | provide_any, | ^^^^^^^^^^^

error[E0599]: no method named request_value found for reference &dyn StdError in the current scope --> rs3cache_backend\src\error.rs:12:10 12 #[derive(error::Error)] ^^^^^^^^^^^^ method not found in &dyn Error

= note: this error originates in the derive macro error::Error (in Nightly builds, run with -Z macro-backtrace for more info)

Some errors have detailed explanations: E0412, E0599, E0635. For more information about an error, try rustc --explain E0412. warning: rs3cache_backend (lib) generated 5 warnings error: could not compile rs3cache_backend (lib) due to 6 previous errors; 5 warnings emitted warning: build failed, waiting for other jobs to finish... error: failed to compile rs3cache v0.1.0 (https://github.com/mejrs/rs3cache#83c0db0d), intermediate artifacts can be found at C:\Users\TGR.H\AppData\Local\Temp\cargo-installYOtTA0. To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path. `

can it be any rust version problem or cache problem from my old cmd I ran ?!

Mobinkh commented 7 months ago

ill try to list all i can

error[E0412]: cannot find type Demand in module core::any error[E0412]: cannot find type Demand in module core::any --> rs3cache_backend\src\index.rs:249:10

error[E0635]: unknown feature provide_any --> rs3cache_backend\src\lib.rs:5:5

error[E0599]: no method named request_value found for reference &dyn StdError in the current scope --> rs3cache_backend\src\error.rs:12:10

Mobinkh commented 7 months ago

my rust version

rustc 1.76.0 (07dca489a 2024-02-04)

my cargo version

cargo 1.76.0 (c84b36747 2024-01-18)

Mobinkh commented 7 months ago

and i built the app from the github repo cloning and now when I run the map render I see this error !

.\rs3.exe --render map Error: something went wrong when parsing sprite frames (at src\definitions\sprites.rs:220:44) Caused by: reached the end of the file unexpectedly (at src\definitions\sprites.rs:254:45) Caused by: invalid seek to a negative or overflowing position

.\rs3.exe --assert-coherence

shows all is coherent

so sorry for your time btw :(

mejrs commented 7 months ago

What cache are you using? Both today's and last week's cache work for me. Try deleting the js5-8 file and leaving the client open for a while so it can redownload it. Hopefully that will fix it.

in your cache can it be any rust version problem or cache problem from my old cmd I ran ?!

The repo has the rustc version pinned, which is why it works if you git clone and install it locally.

Mobinkh commented 7 months ago

that fixed the issue! thanks a lot for your help btw cache was updated yesterday but somehow after removing and downloading cache again it fixed that error

Mobinkh commented 7 months ago

thanks for your help mate