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

Missing libofflinemod.so #2

Open
MastroCaleb opened this issue Sep 21, 2024 · 27 comments
Open

Missing libofflinemod.so #2

MastroCaleb opened this issue Sep 21, 2024 · 27 comments

Comments

@MastroCaleb
Copy link

When setting OFFLINE_MODE to true the game instantly crashes.

Is it because libofflinemod.so hasn't been made yet or is it just missing?

If it is in fact missing, i would i go on about making it?

@arves100
Copy link
Member

arves100 commented Sep 21, 2024 via email

@MastroCaleb
Copy link
Author

Hello, you are supposed to build the server with the offline mode enabled but the offline mode server is not ready at the moment

On Sat, Sep 21, 2024, 19:49 MastroCaleb @.> wrote: When setting OFFLINE_MODE to true the game instantly crashes. Is it because libofflinemod.so hasn't been made yet or is it just missing? If it is in fact missing, i would i go on about making it? — Reply to this email directly, view it on GitHub <#2>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABE7QE2A42HZDSCEQR5GLDTZXWWUPAVCNFSM6AAAAABOTYYE6GVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DANBTG44TKNY . You are receiving this because you are subscribed to this thread.Message ID: @.>

So the screenshots you provided on reddit where you are in the menu are from the non-complete offline server, or you can setup a local server and connect the client to that?

@arves100
Copy link
Member

arves100 commented Sep 21, 2024 via email

@MastroCaleb
Copy link
Author

I have the c++ server working i think (its not crashing and is listening) is that the server you are speaking about?

@arves100
Copy link
Member

arves100 commented Sep 21, 2024 via email

@MastroCaleb
Copy link
Author

The client doesnt seem to connect though. After the app is loaded and after giving permissions it just keeps sitting in a black screen and eventually the loading icon appears, but it doesnt load.

@arves100
Copy link
Member

arves100 commented Sep 21, 2024 via email

@MastroCaleb
Copy link
Author

Oh alright! Thanks, i'll try to set that up. Can i keep the issue open if i get stuck somewhere?

@arves100
Copy link
Member

arves100 commented Sep 21, 2024 via email

@MastroCaleb
Copy link
Author

MastroCaleb commented Sep 21, 2024

Hey sorry if this was pretty quick, it seems a lot of methods are of type "unk" which VS finds as "error-type", is this due to a missing dependency?

Also how do i use the Offline-Proxy source code?

Im sorry by the many requests but im trying to learn something out of my "comfort zone" and im kinda clueless ahah

image

@arves100
Copy link
Member

arves100 commented Sep 21, 2024 via email

@MastroCaleb
Copy link
Author

This is in the proxy project. I feel like i havent setup some stuff with visual studio and im missing dependencies. Im kinda lost.

I dont think i have the brain capacity to understand what is going on lol

image
image

@MastroCaleb
Copy link
Author

MastroCaleb commented Sep 21, 2024

Is that even a file a should be looking at? It wont let me build the main.cpp without fixing those first (windows client)

@arves100
Copy link
Member

arves100 commented Sep 21, 2024 via email

@MastroCaleb
Copy link
Author

I did it doesnt find the dependency

image

@arves100
Copy link
Member

arves100 commented Sep 22, 2024 via email

@MastroCaleb
Copy link
Author

Im sorry for my lack of knowledge, but i actually have no idea how to set all of this up. Vcpkg wont let me download x86-windows-static.

@MastroCaleb
Copy link
Author

The proxy project is now loaded correctly with all dependencies. Although when i build it, it fails.

"Couldn't start the program .../libcurl.dll"

".../libcurl.dll isnt a valid win32 application"

image

@MastroCaleb
Copy link
Author

Now i get that i can't open a ".dll" file, but is that the file i need to inject the offline mod in the windows client?

Also i still have problems with the windows client. There's 104 errors, and when i build it can't find the "BraveFrontier.exe"

Please, help me out.

@MastroCaleb
Copy link
Author

Tried to "fix" the errors, 500 more showed up. There is actually no way that "proj.win32" is the correct client. Most of the decompiled libraries arent fully decompiled and there are lots of missing types.

How did you even make the game start, which client did you use?

@arves100
Copy link
Member

you are not supposed to run libcurl but to unpack the bf appx, replace the dll of curl, repack and install.

decomp client is not ready to use.

@MastroCaleb
Copy link
Author

MastroCaleb commented Sep 23, 2024

wait where do i find the bf appx and how do i unpack/repack?

i got the project completely wrong i thought a custom client was already in place

@arves100
Copy link
Member

arves100 commented Sep 23, 2024 via email

@MastroCaleb
Copy link
Author

Fair i will legally download it somewhere

@MastroCaleb
Copy link
Author

I have no idea how but i am not able to find any kind of version of the game for windows online.

Google ran out so quick of available links that I was able to find an Elder Scrolls 3 open source engine link before finding anything related to BF

image

Maybe you could help me with the gathering of the windows app package in private on Discord? (username: mastrocaleb)
If not it is totally understandable and i hope your work on this project will be able to bring us a tiny bit of the game we used to love :)

@MastroCaleb
Copy link
Author

Hello! I got some news.

As i dont have much experience in C++ and have absolutely no idea how to procure myself the windows app package, i started thinking about trying to connect to the server from the Android version. From what i understood of the project what we want is to change the ip the game sends packets to.

So i came up with a way to redirect packets to another ip using a VpnService, although when the java client socket connects to the server, the server just disconnects the client.

Do you think this approach could work?

@arves100
Copy link
Member

arves100 commented Sep 25, 2024

As far as I remember, the Android version wasn't working properly because I haven't found a way to properly disable the SSL verification in libcurl packages, which is what the offline proxy does (along with an IP change). The original way of sniffing the packets was with an IP change and a MITM proxy that used a custom certificate, something that I do not wish to replicate for an offline mod environment.

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