Comments (41)
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.
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".
from bf2autospectator.
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.
I did what you said, putting --debug-log at the end but I dont see a log file
from bf2autospectator.
I can log in normally whit the same account
from bf2autospectator.
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.
I see version 3 is only the "main" version amd not the complete "stand alone" version?
from bf2autospectator.
It's just a name change. If you download and run the executable, it works just like the old versions did.
from bf2autospectator.
I noticed the standalone version has a lot more folders
from bf2autospectator.
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.
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.
from bf2autospectator.
Alright then, let's try and narrow this down.
- What OS are you running?
- Is your game set to English without any significant modifications to the locale file?
- Have you changed anything else about the game/menu?
- Have you checked the hints at the bottom of the readme? (100% scaling in Win10 etc.)
- What GPU Brand are you using?
from bf2autospectator.
from bf2autospectator.
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.
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:
from bf2autospectator.
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.
from bf2autospectator.
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.
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:
from bf2autospectator.
Using Super@ server:
from bf2autospectator.
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.
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.
The Tesserac version is v4.1.0.2019.0314 ( 64 bit )
I cant find any logfile?
from bf2autospectator.
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.
Downloaded and installed v5.0.0.20190623 version but problem still the same.
When i open console with "~" i see this:
from bf2autospectator.
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.
from bf2autospectator.
Change background from photo to default but still same problem.
from bf2autospectator.
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:
What does the settings app say is your current theme? The default should look like this.
Also, please double check your exact version of Windows via "About your PC".
from bf2autospectator.
This is my background / theme:
from bf2autospectator.
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.
from bf2autospectator.
I changed theme to Windows 10
from bf2autospectator.
Problem is still there, player is not spawning
from bf2autospectator.
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.
No change :(
Same problem at my laptop.
from bf2autospectator.
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.
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!
Maybe the OCR likes to see full Karkand map picture in the HUD?
from bf2autospectator.
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.
from bf2autospectator.
I chabged resolution from 900p to 720p.
I get an error message at the console:
from bf2autospectator.
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)
- Mouse cursor sometimes freezes on spawn menu HOT 1
- Bot sometimes clicks outside the game window
- Dependency Dashboard
- Round end screen is sometimes detected as map loading
- Add command to say something in game
- Send details about current state to controller
- Bot gets stuck if server disconnect fails
- Map loading detection sometimes misses during map rotation loads
- Bot randomly detects map loads/end of round during the game
- Game freezes are not detected
- Bot falls back to random spawn when map rotation stays on same map HOT 1
- Randomize spawn flag is not reset if bot never fully entered the map
- Normal gameplay is detected as default camera view
- Unhandled exception when conman is not found
- Never stops trying to join server given by controller
- Stays in halted phase even when controller sent a different server to join HOT 1
- Does not active join when rotating on same map
- Bot stays on itself after respawn if player rotation is paused
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bf2autospectator.