FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
554 stars 107 forks source link

[Android] Issues with Half-Life: Blue Shift, Half-Life: Opposing Force #169

Closed JORGETECH closed 7 years ago

JORGETECH commented 8 years ago

I recently discovered this project and I feel amazed for the amazing work you've done, but I am having some problems on the Android build with mods and expansions.

Half-Life: Blue Shift does not spawn the armor and helmet neccessary for playing the game normally, everything else seems fine. That was under the normal Xash3D launcher app but then I tried the Half-Life: Blue Shift launcher I found for Xash3D and that solved the armor and helmet spawning issue, however all the animations for weapons were broken (the models are rendered but the weapons do not move under any circunstanches), ignoring that issue the game seemed playable.

Half-Life: Opposing Force is unplayable. The Hazard Couse can't even be started because the NPC that gives you instructions does not spawn and the doors won't open. The intro does not finish because the pñane that is supposed to crash does not crash as it should do. I did not test gameplay after that but I guess it has the same armor issue as Blue Shift.

Lastly I tried Poke646, some kind of total conversion. I tried the WON version. First of all the Hazard Course cannot be completed because the pipe (Crowbar replacement) does not spawn, the HUD graphics are not canged and the custom weapon models were not there, only the Half-Life weapon models could be obtained. I will have to try with the SteamPipe patch if the same happens. (EDIT: The same happens with the steam patch)

If all these issues are caused because I did not configure something properly please feel free to tell me. Otherwise I would this issues with mod/expansions compatibility to be fixed.

Thanks in advance, JORGETECH

a1batross commented 8 years ago

Thanks for your issue! Android version of Xash3D can't work with mods compiled for Windows and Linux. (architecture, OS differences). So mods must be separately ported from it's source code.

Blue Shift is already done as "mod", you can download it from https://github.com/mittorn/BS-android/releases/. Must work flawlessly even with 0.18. :)

Opposing Force requires REALLY big work on it. So it's not available for Android yet :(

Poke646 requires porting too. If there was be a source code, I'd ported it.

fuzun commented 8 years ago

@a1batross Can't this be done with emulation? qemu? without recompiling. Also https://github.com/SamVanheer/HLEnhanced this project soon may have opposing force support, but I am not sure, check it out.

JORGETECH commented 8 years ago

I also think there is a possibility to do it through virtualization.

BTW a1batross the animations for Blue Shift weapons are present when I use the Blue Shift launcher (the same you linked to in your reply). Any fix for that?

a1batross commented 8 years ago

@fuzun @JORGETECH mittorn already did this in separate project: XashDS Android. (https://github.com/FWGS/xashds-android/releases)

It's a linux dedicated server running in QEMU or Exagear.

And yes. animations from Blue Shift Launcher is an old engine bug, which was completely fixed in 0.17. BShift just don't updated. You can workaround this by executing cl_lw 0 in game console.

CrusoeDaWolf commented 8 years ago

@a1batross Actually, the same person who made the SteamPipe patch for Poke646 released the source code. You can find it here: https://github.com/malortie/halflife/tree/mod-hl-poke646

The thing is, the SteamPipe patch of Poke646 uses the 'mp3' command (Which isn't in Xash yet at least) instead of FMOD.

a1batross commented 8 years ago

I think it can be ported easily. :)

CrusoeDaWolf commented 8 years ago

Agreed. :D

Just don't expect me to do it. I have no idea what to do xP

Also, how would porting Deathmatch Classic to Android go about?

a1batross commented 8 years ago

Someone worked on it but not released. Same for Ricochet port. They are multilplayer mods. Without game servers they are useless.

CrusoeDaWolf commented 8 years ago

I'll host one. Speaking of DMC, something weird I noticed.

So, I'm using the WON version and for some reason, when cl_lw is on 0, you can't switch through weapons. When you do, it fires the weapon instead. Not sure if this is a bug with Xash or DMC.

a1batross commented 8 years ago

I launched Steam version of DMC under Xash and... stuck in level. I never opened DMC anymore.

(for using Steam version you need to put some libraries from Steam HL to Xash folder, such as filesystem_stdio.so, libtier0.so, maybe vstdlib)

CrusoeDaWolf commented 8 years ago

Ah. There is a problem with one of the maps where the spawn might get you stuck. I'm guessing that may be a problem with DMC itself.

Also, with cl_lw 1, the lightning gun doesn't have its firing effect.

I'm guessing that a DMC port could be easy though, since it is a small mod.

EDIT: Another problem I noticed is when cl_lw is on 0, the HUD disappears.

a1batross commented 8 years ago

It was my lovely dm6, as I remember.

Do you trying to play with cl_lw 1 on our fork? Uncle Mike's 3366 build have broken local weapons. Also, don't forget to execute cl_predict 1. Otherwise cl_lw 1 wil not work.

CrusoeDaWolf commented 8 years ago

The problem is in both, SDL fork and Uncle Mike's 3366. cl_predict is on 1.

Last Minute Edit: Alright. Apparently, cl_lw 0 in Uncle Mike's 3366 causes HUD to disappear (Except ammo) + cannot switch weapons (But they do not fire when trying to switch).

In SDL fork, cl_lw 0 results in HUD disappearing (except ammo) + cannot switch weapons (Instead fires weapons when trying to switch).

Also, dm6 is the map I was talking about. In two different spawn points, you get stuck and you can't get out unless you respawn. All other spawn points are fine.

Another Edit: Apparently, Steam version of DMC (On Windows) fails to load the client.dll even with the VGUI.dll from Steam. :c

JORGETECH commented 8 years ago

"cl_lw 0" fixes all the animation issues with Blue Shift.

I hope we get a Poke646 port because I think it is one of the best mods for Half-Life.

I suggest you start to experiment with qemu, I think it is a very good way to work around the DLLs or SOs issues instead of rewriting every mod (very exhaustive proccess).

CrusoeDaWolf commented 8 years ago

I don't believe you entirely rewrite a mod. Take a look at this section in the wiki:https://github.com/FWGS/xash3d/wiki/Mod-Porting-Guide

JORGETECH commented 8 years ago

Yeah but it also should have the option to have qemu emulation, maybe in a separate package.

CrusoeDaWolf commented 8 years ago

A separate package would be nice, but would about lower end devices? They may not handle it as well.

a1batross commented 8 years ago

I am saying this again.

Mittorn did XashDS Android with QEMU/Exagear support. This app can run almost any mod in background server.

BTW there is no documentation in English for XashDS. 26.08.2016 3:55 пользователь "CrusoeDaWolf" notifications@github.com написал:

A separate package would be nice, but would about lower end devices? They may not handle it as well.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FWGS/xash3d/issues/169#issuecomment-242554635, or mute the thread https://github.com/notifications/unsubscribe-auth/ADEJgWb1uhjh5Dd8Gl0Rq2ACvFJz5na_ks5qjg9RgaJpZM4Jr5bN .

CrusoeDaWolf commented 8 years ago

Isn't XashDS just a dedicated server for Android though? Or does it allow you to play said mod?

nekonomicon commented 8 years ago

Dedicated server with dll loader(winewrapper). You can use rcon with xashds for some singleplayer mods.

hathlife commented 8 years ago

Is it possible to port Condition Zero:Deleted Scenes to android?

a1batross commented 8 years ago

@hathlife Nope.

On 26 Aug 2016 20:31, "hathlife" notifications@github.com wrote:

Is it possible to port Condition Zero:Deleted Scenes to android?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FWGS/xash3d/issues/169#issuecomment-242751745, or mute the thread https://github.com/notifications/unsubscribe-auth/ADEJgZdzZWNHy6WO7DE8bIACpqIr8Aioks5qjvjQgaJpZM4Jr5bN .

nekonomicon commented 8 years ago

I tried merge poke646(without vendetta) to hlsdk-xash3d. It works fine for me on FreeBSD, but I not tested on Android yet. https://github.com/nekonomicon/hlsdk-xash3d/tree/poke646

CrusoeDaWolf commented 8 years ago

:D Awesome! Progress!

CrusoeDaWolf commented 8 years ago

@nekonomicon I compiled the libraries and tested them. Everything seems to work, however I've only tried the hazard course so I'm unsure if the in-game sound track will work under Xash.

nekonomicon commented 8 years ago

Vendetta: https://github.com/nekonomicon/hlsdk-xash3d/tree/poke646_vendetta I replaced "mp3" on "play". Is it good solution?

CrusoeDaWolf commented 8 years ago

I saw. Probably should be.

mittorn commented 8 years ago

@nekonomicon it is better to add alias for it in xash3d ofcause.

nekonomicon commented 8 years ago

@mittorn, revert then?

mittorn commented 8 years ago

No. Wait before it fixed in engine.

fuzun commented 7 years ago

@a1batross Did not mittorn port opposing force to xash3d? I saw this but did not understand:

http://4pda.ru/forum/index.php?showtopic=650049&st=4280

nekonomicon commented 7 years ago

@fuzun, client only. It's required xashds. Restored server implementation not finished. https://github.com/FWGS/halflife/tree/branch-malortie-op4

fuzun commented 7 years ago

@nekonomicon Why is not that in https://github.com/FWGS/hlsdk-xash3d ? What do you mean by server? hlsdk-xash3d contains server (hl). If I make a mod, should I work both for hlsdk-xash3d and halflife ? halflife only required for engine compatibility ?

nekonomicon commented 7 years ago

@fuzun, first xash3d sdl releases used xashxt client and hlsdk2.4 server.

What do you mean by server?

opfor.dll reimplementation not finished.

nekonomicon commented 7 years ago

@JORGETECH, Poke646 android port ready!

https://github.com/nekonomicon/Poke646-android/releases/tag/1.0

https://github.com/nekonomicon/Poke646_Vendetta-android/releases/tag/1.0

a1batross commented 7 years ago

@nekonomicon, incredible!

2016-09-28 1:11 GMT+03:00 Andrey Akhmichin notifications@github.com:

@JORGETECH https://github.com/JORGETECH, Poke646 android port ready!

https://github.com/nekonomicon/Poke646-android/releases/tag/1.0

https://github.com/nekonomicon/Poke646_Vendetta-android/releases/tag/1.0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FWGS/xash3d/issues/169#issuecomment-250014416, or mute the thread https://github.com/notifications/unsubscribe-auth/ADEJgROlZr9JAQJOsf39bDWApam1SzRiks5quZSHgaJpZM4Jr5bN .

JORGETECH commented 7 years ago

@JORGETECH, Poke646 android port ready! https://github.com/nekonomicon/Poke646-android/releases/tag/1.0 https://github.com/nekonomicon/Poke646_Vendetta-android/releases/tag/1.0

@nekonomicon Good job! I will try it when I can.

a1batross commented 7 years ago

Not a bug.