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
553 stars 108 forks source link

Running a half-life expansion pack #372

Closed ghost closed 6 years ago

ghost commented 6 years ago

How to run a half-life mod?

I have installed bshift mod, i copied bshift directory and put inside xash3d directory, next to the valve directory with half-life. Then, i opened a terminal and wrote "./xash3d -game bshift" without quotes. The game menu works but "New game", "Load Game" and "Multiplayer" options are not selectable.

a1batross commented 6 years ago

Blue Shift isn't a mod.

To run a game, you need game libraries. For Linux 32 bit you can take them from Steam release of Half-Life:Blue Shift.

ghost commented 6 years ago

Which game libraries do i need?

ghost commented 6 years ago

http://www.indiedb.com/engines/xash3d-engine/features/running-half-life-under-xash3d-users-manual-english

I have followed this guide. Blue Shift depends of the main game.

nekonomicon commented 6 years ago

Half-Life was ported on linux in 2013. Blue shift too. Check string "gamedll_linux" in your liblist.gam.

ghost commented 6 years ago

nekonomicon: which liblist.gam? I have not idea what are you talking about.

ghost commented 6 years ago

https://wiki.alliedmods.net/Liblist.gam this?

ghost commented 6 years ago

Yes. You can find it in your Valve folder.

ghost commented 6 years ago

I think I should set it to the linux libraries but some expansions pack has not the correct libraries on the "dlls" directory but "valve" directory has them. Then, should i copy the missing libraries from "valve" directory?.

ghost commented 6 years ago

Okay it works but... "Multiplayer" option is not selectable yet... :(

ghost commented 6 years ago

Okay i think it is normal. On liblist game shows single player only.

ghost commented 6 years ago

Okay, the problem now is "gearbox" expansion, on his "dlls" directory does not exist a linux library version of "opfor.dll" and does not exist the same library on other expansion directory.

fuzun commented 6 years ago

For blue shift; https://github.com/malortie/halflife/tree/branch-malortie-bshift

ghost commented 6 years ago

Okay, the problem now is "gearbox" expansion, on his "dlls" directory does not exist a linux library version of "opfor.dll" and does not exist the same library on other expansion directory.

fuzun commented 6 years ago

You need to look into the liblist.gam file and find the linux library in the Steam version of the game. There must be the library in Steam game files.

I mean if you can not or if you are not on PC, you can use malortie's open source ports instead and compile it yourself according to your needs.

https://github.com/malortie/halflife/tree/branch-malortie-op4

nekonomicon commented 6 years ago

@fuzun malortie's opposing force implementation not playable at all. You can find reverse-engineered opposing force in this branch: https://github.com/H-I-N-G/hlsdk-xash3d/commits/opfor Reverse-engineered blue shift here: https://github.com/nekonomicon/hlsdk-xash3d/tree/bshift

ghost commented 6 years ago

echedey@echedey-500-500ns:~/Descargas/halflife-branch-malortie-op4/linux$ make /bin/sh: 1: /valve/bin/g++-4.6: not found

Makefile specific errors ??? very bad

ghost commented 6 years ago

echedey@echedey-500-500ns:~/Descargas/hlsdk-xash3d-opfor/build$ cmake ../ -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done CMake Error at dlls/CMakeLists.txt:193 (add_library): Cannot find source file:

gearbox/grapple_tonguetip.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

CMake Error: CMake can not determine linker language for target: server CMake Error: Cannot determine link language for target "server". -- Generating done -- Build files have been written to: /home/echedey/Descargas/hlsdk-xash3d-opfor/build

Really??

FreeSlave commented 6 years ago

H-I-N-G does not keep CMakeLists.txt actual. I think they use microndk and makefiles. You can fix dlls/CMakeLists.txt yourself. And anyway even this version is incomplete and has bugs.

Okay, the problem now is "gearbox" expansion, on his "dlls" directory does not exist a linux library version of "opfor.dll" and does not exist the same library on other expansion directory.

I don't see what you mean. Opposing Force from Steam definitely has opfor.so (which is linux library). I've never tested if it works with xash though.

ghost commented 6 years ago

Opposing Force from Steam definitely has opfor.so (which is linux library).

I have not the Steam version. I bought the expansion in a game market on my city some years ago.

If you have it then, could you send me the linux library version?

You can fix dlls/CMakeLists.txt yourself. And anyway even this version is incomplete and has bugs.

I have not idea.

FreeSlave commented 6 years ago

You can legally get game libraries for free and without having a steam account via steamcmd

Example of usage:

./steamcmd.sh +login anonymous +force_install_dir ./halflife +app_set_config 90 mod gearbox +app_update 90 validate +quit

ghost commented 6 years ago

It does not download opfor linux library.

FreeSlave commented 6 years ago

It should download all resources and libraries. Try running it again. Sometimes steamcmd does not download everything it should. Did you get halflife/gearbox directory at least?

ghost commented 6 years ago

HLDS (appid 90) currently requires multiple runs of the app_update command before all the required files are successfully installed. Simply run app_update 90 validate multiple times until no more updates take place.

Okay it is a bug.

ghost commented 6 years ago

It shows "Success! App '90' fully installed." and i don't see the opfor linux library on any directory.

FreeSlave commented 6 years ago

Libraries are located in gearbox/dlls and gearbox/cl_dlls. gearbox directory is located in whatever you passed as force_install_dir

ghost commented 6 years ago

The directory gearbox does not exist on halflife directory then, i have been searching on all directories.

FreeSlave commented 6 years ago

Did you pass app_set_config 90 mod gearbox to steamcmd?

ghost commented 6 years ago

i copied your script.

FreeSlave commented 6 years ago

Maybe it needs an another run to get mod resources.

nekonomicon commented 6 years ago

I have not the Steam version. I bought the expansion in a game market on my city some years ago.

You can use WON cd-key in steam to take half-life and all expansions for free.

ghost commented 6 years ago

The cd-key was used years ago. It's currently required to pay.

ghost commented 6 years ago

And honestly, I am not going to install full steam client for that. For this I play steam and now.

In addition, i am using Trisquel 7 which is based on Ubuntu Trusty, steam is not on repositories and will give me some dependences error if i tried to install it from last official build or another distro.

nekonomicon commented 6 years ago

Yet another solution( not panacea, but works ): https://github.com/FWGS/xash3d/wiki/Building-and-running#using-dll-loader

ghost commented 6 years ago

I think it would be better use the full windows build through wine.

ghost commented 6 years ago

The windows build has some problems to solve. I will wait for an update to steam that i could download by steamcmd.

necros2k7 commented 6 years ago

so any chance to run Blue shift with Xash3d?

a1batross commented 6 years ago

Just run it and it works.

nekonomicon commented 6 years ago

@necros2k7, Blue Shift retail release on linux?

necros2k7 commented 6 years ago

win on win