Coder Social home page Coder Social logo

Comments (41)

cetteup avatar cetteup commented on July 30, 2024

What server are you trying to connect to? And does the game show any error messages?

I will build a new standalone version later today, since I made quite a few changes since the last release.

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

Hi tired several servers. I tried our First-Legion server at ip: 5.79.100.144
Bf2 will start with the username and PW and I can see the mouse going to "Multiplayer" and refreshing the server browserlist but i stays there and my CMD screen keeps saying "re-connecting".

BF2Spectator

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

The screenshot is good!

While I set up a new build, could you run the controller once with --debug-log?

And, just to make sure that's not an issue: I tried to send my own spectator to the server and it failed to join (Connection failed error). Can you manually join the servers you tried?

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

I did what you said, putting --debug-log at the end but I dont see a log file

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

I can log in normally whit the same account

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

I did what you said, putting --debug-log at the end but I dont see a log file

It does not log to a file, but should log to stdout (the console) like the logs seen in the screenshot. However, a quick look at the code tells me that not much more is actually logged when debug logging is enabled.

I just released version 0.3.0 which contains many small improvements, some directly related to how the spectator handles the server join. Please test if that works better. If it does not, please let me know if you see anything relevant in the logs when running with --debug-log.

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

I see version 3 is only the "main" version amd not the complete "stand alone" version?

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

It's just a name change. If you download and run the executable, it works just like the old versions did.

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

I noticed the standalone version has a lot more folders

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

As mentioned in the release note, it's just a change in how it is distributed. Instead of building an .exe with a bunch of files around it, it now distributed as a single .exe that contains everything.

All in all, it's just a pyinstaller option, about you which you find more details in the pyinstaller documentation.

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

Used the new exe file "bf2-auto-spectator-0.3.0.exe with the same arguments as before but i got the same problem. Bf2 will start and login to BFHQ but will not connect to gameserver. keeps re-connecting.

BF2Spectator030

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

Alright then, let's try and narrow this down.

  1. What OS are you running?
  2. Is your game set to English without any significant modifications to the locale file?
  3. Have you changed anything else about the game/menu?
  4. Have you checked the hints at the bottom of the readme? (100% scaling in Win10 etc.)
  5. What GPU Brand are you using?

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

I had a quick look into the pythoncode ( I am not familiar with programming ) and it looks like it is not going to "connect_tp_ip_button_present" in gameinstancemanager.py arounf line 354
I can see the mouse moving to BFHQ and Multiplayer but it is stuck in a loop. It will go back to BFHQ and Mulitplayer all the time

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

Update:
When I change my windows grapic settings to 1600 x 900 and add the --game-re 900p argument, I can see the program opening the "connect to ip" button and fill in the ip and port. It comes back with the following error:

BF2Spectator030-2

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

According to the logs/the last screenshot, it is detecting an error message in game (connection lost).

Is that accurate? Does the game show an error message when trying to join now?

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

Since I had similar issues with that server, could you please try with a server I know usually works and is definitely online:

31.186.250.239 (Super@ S2)

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

I will check yiur server in 10 minutes.

That connection problem has to do with PB enabled servers. I always have to login twice to connect to our PB enabled servers.
When I try a server without PB enabled ( just one of the BF2Hub un-ranked servers, it is connecting and loading the map.
The eror i get after laoding the map is:

BF2Spectator030-4

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

Using Super@ server:

BF2Spectator030-5

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

Update: I can connebt to PB enabled servers too ;)
But message about Spawn menu not vissible is still there :(

I noticed BF2 is tarted in windowed mode and it's not fully centered. I have 2 mm offset on the left and top of the BF2 window. Maybe it should start in Fullscreen mode?

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

Ok, so some progress.

The game is intentionally started in windowed mode so you can see the console window.

But it now seems to not detect the spawn menu correctly. In order to be able to troubleshoot this, could you run it once with a working server and --debug-screenshot enabled? That will save all screenshots it takes into a folder as well as log all the OCR results.

Speaking of OCR, kindly let me know which version of Tesseract you have installed.

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

The Tesserac version is v4.1.0.2019.0314 ( 64 bit )

I cant find any logfile?

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

When running with --debug-screenshot, you should see a bunch of "OCR result:" log messages in the console.

I have been using version v5.0.0.20190623 lately, maybe try using that. You download the installer here.

Also, does it still log "game window is incorrect size" at the start?

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

Downloaded and installed v5.0.0.20190623 version but problem still the same.

When i open console with "~" i see this:

IMG_7634

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

You mentioned before that you are using Windows 10, but the window frame in the screenshot looks like Windows 7.

Are you using some sort of skin/theme for Windows 10 that makes it look like Windows 7? If so, try resetting that to the default.

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

Change background from photo to default but still same problem.

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

It's not the background that I suspect is causing the issue, it's the Windows theme. I suspect that the different theme is why the spectator keeps complaining about the window size as it shifts everything by a few pixels, which also messes with the OCR. This is what the window should look like on Windows 10:

2021-05-22_19-23

What does the settings app say is your current theme? The default should look like this.

2021-05-22_19-48

Also, please double check your exact version of Windows via "About your PC".

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

This is my background / theme:

IMG_7635

IMG_7636

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

The windows theme and background are two different things. Please check your theme settings instead of your background settings. I am not sure what "Theme" would be in NL, but it should the 4th option in the menu.

2021-05-23_10-14

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

I changed theme to Windows 10

image

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

Problem is still there, player is not spawning

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

Which theme were you using before? Please try with the "Windows" theme, which is the default.

Also, are you running BF2 with any compatibility options enabled?

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

No change :(
Same problem at my laptop.

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

Hm. There's not much I can do, unfortunately. I am pretty sure that the non-standard Windows 10 theme results in a different window size. The spectator logs something about an "incorrect window size" several times, which it should never do when starting the game itself. And due to the different window size, some of OCR attempts or game state detections in general fail.

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

Windows display settings are 1600 x 900
Theme is "Windows"
I see the same offset left and top at your example picture, so i guess thats okay.
It keeps on drawing the hud and the hud comes up.
But the hud is not showing the complete map picture!

IMG_7642

Maybe the OCR likes to see full Karkand map picture in the HUD?

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

Which version of Windows 10 are you using?

And no, it has nothing to do with the map (it never looks at that). The issues are probably just caused by the different window size, which moves everything my a few pixels and thus messes everything up.

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

WindowsVersion

from bf2autospectator.

Edwin-Sun avatar Edwin-Sun commented on July 30, 2024

I chabged resolution from 900p to 720p.
I get an error message at the console:

IMG_7643

from bf2autospectator.

cetteup avatar cetteup commented on July 30, 2024

It will not work unless you manage to start the game in a normal Windows 10 window. The resolution does not matter.

If you have something like "Classic shell" installed, try removing it. If you are running BF2 in compatibility mode, try without it.

But other than that, I'm afraid I really cannot help you.

from bf2autospectator.

Related Issues (19)

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.