FWGS / xash3d-fwgs

Xash3D FWGS engine
1.57k stars 236 forks source link

"New Game" and "Load Game" options are greyed out on aarch64 #450

Closed benthetechguy closed 3 years ago

benthetechguy commented 3 years ago

I'm running Manjaro ARM on a Pinebook Pro and Raspberry Pi 4. Compiled on both systems, copied the valve directory from a steam installation, and it doesn't launch. I see a window titled "Half-Life" open for a split second then close. No output in the terminal. I tried compiling for both 32 and 64 bit ARM and they have the same issue.

Velaron commented 3 years ago

But did you also compile and install this https://github.com/FWGS/hlsdk-xash3d

benthetechguy commented 3 years ago

Now I have compiled it and it launches. Only there's a new problem: The options to start playing are greyed out and there's white boxes against various things like the FPS counter.

Screenshot_2021-05-10_16-51-24

Velaron commented 3 years ago

https://github.com/FWGS/xash-extras/releases

benthetechguy commented 3 years ago

Nope, still greyed out.

benthetechguy commented 3 years ago

I've used the multiplayer option to test the actual playing of the game, and it works just fine, so the issue isn't that.

Velaron commented 3 years ago

it fixes the missing graphics, not sure about other problem, maybe try removing or fixing gameinfo.txt? probably paths to .so files are broken as aarch64 libraries are named differently iirc

benthetechguy commented 3 years ago

Yes, The gameinfo.txt contained gamedll_linux "dlls/hl_i386.so" and I changed it to gamedll_linux "dlls/hl_arm64.so" (which exists in the dll folders I checked) and the issue persists.

Also I thought it might be the fact that aarch64 development is "in progress" so it might just not be enabled, but I tested on 32 bit arm which is seen as fully supported, and it has the same issue. (The extra.pak fixed the white boxes btw)

Velaron commented 3 years ago

is type set to "Single" inside gameinfo? it should work fine, probably some bug or caveat i don't know about yet

benthetechguy commented 3 years ago

Yes. Here's the whole file if anything else would be of use:

// generated by Xash3D FWGS 0.20-4f31d75 (linux-arm64)

basedir         "valve"
gamedir         "valve"
title           "Half-Life"
startmap                "c0a0"
trainmap                "t0a0"
version         1
type            "Single"
dllpath         "cl_dlls"
gamedll         "dlls/hl.dll"
gamedll_linux           "dlls/hl_arm64.so"
gamedll_osx             "dlls/hl.dylib"
icon            "game.ico"
sp_entity               "info_player_start"
mp_entity               "info_player_deathmatch"
secure          "1"
max_edicts      900
max_tempents    500
max_beams               128
max_particles   4096
Velaron commented 3 years ago

i'm out of ideas, you could try editing liblist.gam too, if that doesn't work then somebody else has to help :/

benthetechguy commented 3 years ago

Didn't work :( Thanks for all your help!

a1batross commented 3 years ago

Run engine with -dev 2 -log and post engine.log here.

On Tue, May 11, 2021, 1:05 AM benthetechguy @.***> wrote:

Didn't work :( Thanks for all your help!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FWGS/xash3d-fwgs/issues/450#issuecomment-837413541, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYQTAKR4G3K6Q2PBN5SC5LTNBKA5ANCNFSM44QF23FA .

Idiot64 commented 3 years ago

same here: image

:c

Velaron commented 3 years ago

You forgot to send the engine.log file, it probably contains a hint to what happened

Velaron commented 3 years ago

Oh wait, you are a different person, sorry. But do the same anyway.

Idiot64 commented 3 years ago

alright, cant even create a local game

but here you go: https://gist.github.com/Idiot64/5673c58bb0492fb8fafa941dfb68f8e7

seems like it cant find gamestartup and some ohter things

Idiot64 commented 3 years ago

oh gamestartup is just music

Velaron commented 3 years ago

oh gamestartup is just music

did you apply the changes to gameinfo.txt? it tries to load hl_i386.so which you clearly dont have

Idiot64 commented 3 years ago

image ye, i'll try, what exactly do i have to do?

Idiot64 commented 3 years ago

image wut

Velaron commented 3 years ago

image wut

You built the hlsdk-xash3d project and installed the libraries after?

Idiot64 commented 3 years ago

uhh, yes i think

i got it from the aur, so if the dependencies are right, i should have everything

Idiot64 commented 3 years ago

image wanna know the solution to this horror?

click change game

image

and choose the one with 'single'

a1batross commented 3 years ago

@Idiot64 @benthetechguy that's not a solution!

We need to know an exact reason that causes this problem.

Do you use RoDir?

Idiot64 commented 3 years ago

rodir?

Idiot64 commented 3 years ago

it couldn't find something, now it loaded something else where that was or so

Idiot64 commented 3 years ago

oh, i had multiple "vavles" with different names and the steam version was the one with "single"

Idiot64 commented 3 years ago

ALRIGHT DOODS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

gamedll_linux "dlls/hl.so"

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

i hope this works for you guys

a1batross commented 3 years ago

ALRIGHT DOODS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

gamedll_linux "dlls/hl.so"

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

i hope this works for you guys

yeah, you should never touch this parameter in gameinfo.txt. Engine appends architecture suffix automatically.

Idiot64 commented 3 years ago

it wasnt 'hl.so' by default

a1batross commented 3 years ago

It is hl.so in Steam version. If you downloaded something else, then it's not our problem.

xstrex commented 2 years ago

I'm not sure who to report this to, figured I'd start here, since it's relevant. Recently got a RG351M, tossed ArkOS on it, and installed Half-Life per these instructions. Ran into the same problem as above.

In the Half-Life folder for ArkOS, they supply a file Copy Contents into valve folder.zip, which contains, among other things, a hl_arm64.so. If I leave the stock gameinfo.txt alone, the new game options are greyed out, just as before. But if I change this line, to use the new library, it works like a charm. gamedll_linux "dlls/hl_arm64.so".

I believe somewhere I read that the engine would append the architecture to the hl.so, that doesn't happen as one might expect. I still had to edit the gameinfo.txt to make it work.

If I need to bring this up to the ArkOS folks, I'll open an PR with them; just wanted to start here.

a1batross commented 2 years ago

@xstrex how old build is? We're not releasing anything at this moment, it may be better to compile latest engine from master branch.

xstrex commented 2 years ago

Couldn't tell ya, it came with the latest arkOS release

a1batross commented 2 years ago

Just screenshot main menu, in the right bottom corner there is all info about build.

вт, 21 дек. 2021 г., 21:14 xstrex @.***>:

Couldn't tell ya, it came with the latest arkOS https://github.com/christianhaitian/arkos/releases/tag/v2.0.11.09.2021 release

— Reply to this email directly, view it on GitHub https://github.com/FWGS/xash3d-fwgs/issues/450#issuecomment-998992566, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYQTAJOQRBCJWLCACQ55QTUSC7ZNANCNFSM44QF23FA . You are receiving this because you modified the open/close state.Message ID: @.***>

xstrex commented 2 years ago

v48/0.19.3 build 2092 725fd84b Linux-aarch64

a1batross commented 2 years ago

Oh it's not even this tree, but so called "Old Engine" which we stopped developing a few years ago.

They either can switch to this fork, either fix gameinfo.txt because it didn't had autodetection back then.

xstrex commented 2 years ago

I'll open an issue with them, thanks for the help.