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

Display problem after connecting to the server (Ubuntu Arm64) #169

Open
ArtemS2 opened this issue Jan 8, 2024 · 13 comments
Open

Display problem after connecting to the server (Ubuntu Arm64) #169

ArtemS2 opened this issue Jan 8, 2024 · 13 comments

Comments

@ArtemS2
Copy link

ArtemS2 commented Jan 8, 2024

After connecting to the server, the image breaks, but you can hear from the sounds that the game is working.
Снимок экрана от 2024-01-08 11-53-25

@ArtemS2
Copy link
Author

ArtemS2 commented Jan 8, 2024

game_start.log

@aufau
Copy link
Member

aufau commented Jan 8, 2024

Are you sure your opengl drivers are up to the task?

There is a few cvars you could try to pinpoint the problem:

  • r_ignoreglerrors 0
  • r_gammamethod 1
  • r_finish 1
  • you could also try disabling all r_ext_* cvars one by one

changing any of these cvars will require /vid_restart command for changes to take effect.

I don't see anything unusual in the log file.
You could create a log file with /developer 1 next time, maybe there would be more info.

@aufau
Copy link
Member

aufau commented Jan 8, 2024

What I do see though is that some UI elements are in incorrect places. Perhaps it indicates a problem with QVM interpreter on arm rather than renderer itself?
You could copy cgame_arm64.so, jk2mpgame_arm64.so, ui_arm64.so that should have been created during compilation to base/ directory of the game and launch it with following parameters:

./jk2mvmp +set vm_game 0 +set vm_cgame 0 +set vm_ui 0

@ArtemS2
Copy link
Author

ArtemS2 commented Jan 8, 2024

Thanks a lot! Moving libraries and running ./jk2mvmp +set vm_game 0 +set vm_cgame 0 +set vm_ui 0 helped.

@ArtemS2
Copy link
Author

ArtemS2 commented Jan 8, 2024

re

@aufau
Copy link
Member

aufau commented Jan 8, 2024

I'm glad it worked for you. what is your cpu model exactly? There is a bug to be fixed somewhere.

@ArtemS2
Copy link
Author

ArtemS2 commented Jan 8, 2024

Cpu model - Rockchip RK3588S

@DaemonSlayerZero
Copy link

Wait @aufau i have same/similar problem (and still), jk2mv compiled fine with the latest fixes, there are no errors or warnings on launch, but when i join the server (no mods, just basejk) i get stuck and cannot move, i had the same "screen" issue from above but in my case it happens when i press a movement key during spectator mode (like when you go outside the map with noclip), nothing happens if i dont move. also when i join the game i still cannot move and projectiles doesnt appears.

I recorded a video: https://streamable.com/dgwu6t

PS: I just compiled it for the server (rpi) but im not playing there, im joining from another pc (windows) where i never had problems, is just the server compiled on arm64 the one with problems. ive also tried to set +vm_xxx 0 on launch but is the same result.

@aufau
Copy link
Member

aufau commented Jan 10, 2024

@DaemonSlayerZero what version of rpi? can you check if system clock on your rpi works correctly (set to proper time and does not speed up or slow down significantly).

@DaemonSlayerZero
Copy link

thanks for your reply @aufau i have a rpi4b, ive noticed i forgot to move the .so files into base... now it works "fine" with the basejk stuff, but im still not able to use qvm from basejk assets pk3, i think the qvms are the problem because ive tried other qvm mods like sabermod and jkplus and i got the same issue.

@ArtemS2
Copy link
Author

ArtemS2 commented Feb 15, 2024

@aufau For some reason, in the demo show and on the local server the render is normal, but when I try to go to some server, it breaks(
Снимок экрана от 2024-02-15 17-39-40

@ArtemS2
Copy link
Author

ArtemS2 commented Feb 15, 2024

start2.log

@aufau
Copy link
Member

aufau commented Feb 19, 2024

well I don't have a fix for qvms not working on rpi for you because I don't have rpi to try out and setting up some virtual machine took me too much time which I don't have a lot also :)

For your problem - it's because you joined dcmod server and it tried to load dcmod qvms from dcmod pk3 file.
Try fs_forcegame base cvar or copy your cgame_arm64.so, jk2mpgame_arm64.so, ui_arm64.so to dcmod directory. And launch with vm_cgame 0 etc. options.

This is merely a workaround as you won't be able to use dcmod features and cvars this way.

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

3 participants