Giter VIP home page Giter VIP logo

ds3os-loader-rs's Introduction

ds3os-loader-rs

Another ds3os loader

Usage

This program only patch memory of the running process, so you need launch game from steam first.

You may need some dev packages in debian-based distro or you cannot launch, for example: libexpat-dev libfreetype-dev libssl-dev.

Build

First you need to install rust compiler, you can set up compile environment by using the rustup.

Then clone this repo in your file system and run

cargo build --release

ds3os-loader-rs's People

Contributors

clague avatar

Stargazers

owmeowo avatar  avatar Pheidologeton avatar  avatar JongWasTaken avatar Jrson avatar Tony Gonzales avatar  avatar Rain avatar  avatar Ren Silin avatar Zhwt avatar NullDev // Chris avatar Dominik avatar  avatar

Watchers

 avatar  avatar

ds3os-loader-rs's Issues

Cannot launch loader

Launching the loader brings up a blank window, seems to be an issue with fontconfig versions. See attached for log.

Let me know if you need any additional debugging information.

Thanks for the project, keep up the great work!

Using Pop!_OS 21.10

$ lsb_release -a
No LSB modules are available.
Distributor ID: Pop
Description: Pop!_OS 21.10
Release: 21.10
Codename: impish

See attached for log:

ds3os.log

Errors during compilation

When compiling some of the late libraries fail to compile.

```error[E0277]: expected a Fn<(char,)> closure, found `[char; 2]`
--> /home/artyom/.cargo/registry/src/github.com-1ecc6299db9ec823/native-dialog-0.6.3/src/dialog_impl/gnu/message.rs:62:18
|
62 | .replace(&[' ', '\t'], "ย ")
| ------- ^^^^^^^^^^^^ expected an `Fn<(char,)>` closure, found `[char; 2]`
| |
| required by a bound introduced by this call
|
= help: the trait `Fn<(char,)>` is not implemented for `[char; 2]`
= note: required because of the requirements on the impl of `FnOnce<(char,)>` for `&[char; 2]`
= note: required because of the requirements on the impl of `Pattern<'_>` for `&[char; 2]`

Doesn't build after last update

First off: Thank you for this amazing project!

Now my issue:
I cloned both iced and iced_aw but I receive build errors:

Log
warning: unused import: `Pid`
--> src/patch.rs:3:66
|
3 | use sysinfo::{ProcessExt, System, SystemExt, ProcessRefreshKind, Pid, PidExt};
|                                                                  ^^^
|
= note: `#[warn(unused_imports)]` on by default

warning: unused imports: `MasterServerApi`, `Server`
--> src/patch.rs:9:18
|
9 | use crate::api::{Server, MasterServerApi};
|                  ^^^^^^  ^^^^^^^^^^^^^^^

warning: unused import: `crate::gui::FailReason`
--> src/patch.rs:10:5
 |
10 | use crate::gui::FailReason;
 |     ^^^^^^^^^^^^^^^^^^^^^^

warning: unused imports: `ops::DerefMut`, `sync::Mutex`
--> src/localize.rs:1:45
|
1 | use std::{collections::HashMap, hash::Hash, sync::Mutex, ops::DerefMut};
|                                             ^^^^^^^^^^^  ^^^^^^^^^^^^^

warning: unused import: `anyhow`
--> src/localize.rs:6:22
|
6 | use anyhow::{Result, anyhow};
|                      ^^^^^^

warning: unused import: `Radio`
--> src/widgets/list.rs:8:54
|
8 |         Command, Element, button, Button, Alignment, Radio
|                                                      ^^^^^

error[E0277]: the trait bound `iced_native::element::Element<'_, _, iced_graphics::renderer::Renderer<_>>: From<iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>>` is not satisfied
 --> src/gui.rs:190:17
  |
188 |             let split = Split::new(
  |                         ---------- required by a bound introduced by this call
189 |                 &mut self.split_pane, 
190 |                 self.server_list.view(heads).map(map_list_message),
  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>>` is not implemented for `iced_native::element::Element<'_, _, iced_graphics::renderer::Renderer<_>>`
  |
  = help: the following implementations were found:
            <iced_native::element::Element<'a, Message, Renderer> as From<FloatingButton<'a, B, Message, Renderer>>>
            <iced_native::element::Element<'a, Message, Renderer> as From<iced_aw::native::Split<'a, Message, Renderer>>>
            <iced_native::element::Element<'a, Message, Renderer> as From<iced_native::widget::button::Button<'a, Message, Renderer>>>
            <iced_native::element::Element<'a, Message, Renderer> as From<iced_native::widget::checkbox::Checkbox<Message, Renderer>>>
          and 16 others
  = note: required because of the requirements on the impl of `Into<iced_native::element::Element<'_, _, iced_graphics::renderer::Renderer<_>>>` for `iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>`
note: required by a bound in `iced_aw::native::Split::<'a, Message, Renderer>::new`
 --> /home/neko/Downloads/loader/iced_aw/src/native/split.rs:73:12
  |
73  |         A: Into<Element<'a, Message, Renderer>>,
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `iced_aw::native::Split::<'a, Message, Renderer>::new`

error[E0277]: the trait bound `iced_native::element::Element<'_, _, iced_graphics::renderer::Renderer<_>>: From<iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>>` is not satisfied
 --> src/gui.rs:191:17
  |
188 |             let split = Split::new(
  |                         ---------- required by a bound introduced by this call
...
191 |                 detail_panel,
  |                 ^^^^^^^^^^^^ the trait `From<iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>>` is not implemented for `iced_native::element::Element<'_, _, iced_graphics::renderer::Renderer<_>>`
  |
  = help: the following implementations were found:
            <iced_native::element::Element<'a, Message, Renderer> as From<FloatingButton<'a, B, Message, Renderer>>>
            <iced_native::element::Element<'a, Message, Renderer> as From<iced_aw::native::Split<'a, Message, Renderer>>>
            <iced_native::element::Element<'a, Message, Renderer> as From<iced_native::widget::button::Button<'a, Message, Renderer>>>
            <iced_native::element::Element<'a, Message, Renderer> as From<iced_native::widget::checkbox::Checkbox<Message, Renderer>>>
          and 16 others
  = note: required because of the requirements on the impl of `Into<iced_native::element::Element<'_, _, iced_graphics::renderer::Renderer<_>>>` for `iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>`
note: required by a bound in `iced_aw::native::Split::<'a, Message, Renderer>::new`
 --> /home/neko/Downloads/loader/iced_aw/src/native/split.rs:74:12
  |
74  |         B: Into<Element<'a, Message, Renderer>>,
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `iced_aw::native::Split::<'a, Message, Renderer>::new`

error[E0277]: the trait bound `iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>: From<iced_aw::native::Split<'_, Message, iced_graphics::renderer::Renderer<_>>>` is not satisfied
 --> src/gui.rs:194:28
  |
194 |             col = col.push(split);
  |                       ---- ^^^^^ the trait `From<iced_aw::native::Split<'_, Message, iced_graphics::renderer::Renderer<_>>>` is not implemented for `iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>`
  |                       |
  |                       required by a bound introduced by this call
  |
  = help: the following implementations were found:
            <iced_native::element::Element<'a, Message, Renderer> as From<ProgressBar<'a>>>
            <iced_native::element::Element<'a, Message, Renderer> as From<Rule<'a>>>
            <iced_native::element::Element<'a, Message, Renderer> as From<Slider<'a, T, Message>>>
            <iced_native::element::Element<'a, Message, Renderer> as From<iced::Space>>
          and 15 others
  = note: required because of the requirements on the impl of `Into<iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>>` for `iced_aw::native::Split<'_, Message, iced_graphics::renderer::Renderer<_>>`
note: required by a bound in `iced_native::widget::column::Column::<'a, Message, Renderer>::push`
 --> /home/neko/Downloads/loader/iced/native/src/widget/column.rs:98:12
  |
98  |         E: Into<Element<'a, Message, Renderer>>,
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `iced_native::widget::column::Column::<'a, Message, Renderer>::push`

error[E0308]: mismatched types
--> src/widgets/detail_panel.rs:67:29
 |
67 |         FloatingButton::new(&mut self.patch_btn, underlay, |state| {
 |                             ^^^^^^^^^^^^^^^^^^^ expected struct `iced_native::widget::button::State`, found struct `iced::button::State`
 |
 = note: expected mutable reference `&mut iced_native::widget::button::State`
            found mutable reference `&mut iced::button::State`
 = note: perhaps two different versions of crate `iced_native` are being used?

error[E0277]: the trait bound `iced_native::element::Element<'_, _, iced_graphics::renderer::Renderer<_>>: From<iced_native::widget::column::Column<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>>` is not satisfied
--> src/widgets/detail_panel.rs:67:50
 |
67 |         FloatingButton::new(&mut self.patch_btn, underlay, |state| {
 |         -------------------                      ^^^^^^^^ the trait `From<iced_native::widget::column::Column<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>>` is not implemented for `iced_native::element::Element<'_, _, iced_graphics::renderer::Renderer<_>>`
 |         |
 |         required by a bound introduced by this call
 |
 = help: the following implementations were found:
           <iced_native::element::Element<'a, Message, Renderer> as From<FloatingButton<'a, B, Message, Renderer>>>
           <iced_native::element::Element<'a, Message, Renderer> as From<iced_aw::native::Split<'a, Message, Renderer>>>
           <iced_native::element::Element<'a, Message, Renderer> as From<iced_native::widget::button::Button<'a, Message, Renderer>>>
           <iced_native::element::Element<'a, Message, Renderer> as From<iced_native::widget::checkbox::Checkbox<Message, Renderer>>>
         and 16 others
 = note: required because of the requirements on the impl of `Into<iced_native::element::Element<'_, _, iced_graphics::renderer::Renderer<_>>>` for `iced_native::widget::column::Column<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>`
note: required by a bound in `FloatingButton::<'a, B, Message, Renderer>::new`
--> /home/neko/Downloads/loader/iced_aw/src/native/floating_button.rs:79:12
 |
79 |         U: Into<Element<'a, Message, Renderer>>,
 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FloatingButton::<'a, B, Message, Renderer>::new`

error[E0308]: mismatched types
--> src/widgets/detail_panel.rs:69:21
 |
69 |                     state,
 |                     ^^^^^ expected struct `iced::button::State`, found struct `iced_native::widget::button::State`
 |
 = note: expected mutable reference `&mut iced::button::State`
            found mutable reference `&mut iced_native::widget::button::State`
 = note: perhaps two different versions of crate `iced_native` are being used?

error[E0308]: mismatched types
--> src/widgets/detail_panel.rs:68:17
 |
68 | /                 Button::new(
69 | |                     state,
70 | |                     Text::new(Icon::PlayLight)
71 | |                         .width(Length::Shrink)
...  |
77 | |                 .on_press(crate::gui::Message::Patch)
78 | |                 .padding(5)
 | |___________________________^ expected struct `iced_native::widget::button::Button`, found a different struct `iced_native::widget::button::Button`
 |
 = note: expected struct `iced_native::widget::button::Button<'_, _, iced_graphics::renderer::Renderer<_>>`
            found struct `iced_native::widget::button::Button<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>`
 = note: perhaps two different versions of crate `iced_native` are being used?

error[E0277]: the trait bound `iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>: From<FloatingButton<'_, [closure@src/widgets/detail_panel.rs:67:60: 79:14], _, iced_graphics::renderer::Renderer<_>>>` is not satisfied
--> src/widgets/detail_panel.rs:79:16
 |
79 |             }).into()
 |                ^^^^ the trait `From<FloatingButton<'_, [closure@src/widgets/detail_panel.rs:67:60: 79:14], _, iced_graphics::renderer::Renderer<_>>>` is not implemented for `iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>`
 |
 = help: the following implementations were found:
           <iced_native::element::Element<'a, Message, Renderer> as From<ProgressBar<'a>>>
           <iced_native::element::Element<'a, Message, Renderer> as From<Rule<'a>>>
           <iced_native::element::Element<'a, Message, Renderer> as From<Slider<'a, T, Message>>>
           <iced_native::element::Element<'a, Message, Renderer> as From<iced::Space>>
         and 15 others
 = note: required because of the requirements on the impl of `Into<iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_glow::backend::Backend>>>` for `FloatingButton<'_, [closure@src/widgets/detail_panel.rs:67:60: 79:14], _, iced_graphics::renderer::Renderer<_>>`

Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
warning: `ds3os-loader` (bin "ds3os-loader") generated 6 warnings
error: could not compile `ds3os-loader` due to 8 previous errors; 6 warnings emitted

Then I tried your custom fork of iced_aw + iced_web but sadly I still get the exact same error output.

I'm on KDE Neon (Ubuntu/Debian) and the previous release worked for me without a problem.

Unable to run loader

Hello! I'll be blunt, I'm still a noob in regards to Linux so I hope you can forgive me if the answer here is obvious.

I was able to build the [ds3os-loader] from source after installing all the packages listed in the first issue and rusting up my machine, but it still pops up as an "Unknown File Type" when I try to run it.
Any help would be appreciated! Thank you for your time!

I'm running: Linux Mint 20.3 x86_64

Loader Doesn't Patch

Maybe I'm using this incorrectly, but I don't believe I am.

Selecting my server in the list and clicking the "Play" button shows the PID for the game in terminal, but otherwise does nothing.
I've tried patching at different points in the game's startup sequence but still nothing.

I get no response on the server in logs saying anyone has connected - and on the web panel, there are no players.

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.