Git Product home page Git Product logo

xash3d's Introduction

Xash3D FWGS Engine (Fork) Coverity Scan Build Status Windows Build Status

Original project: Xash3D Engine on ModDB
Original codebase we're based on: Xash3d FWGS (Old) on GitHub

Xash3D Engine is a custom game engine rewritten from scratch.
Xash3D is compatible with many of the GoldSource games and mods
and should be able to run most of existing singleplayer Half-Life mods without a hitch.
The multiplayer is working, but network protocol isn't compatiable with the GoldSource Engine
multiplayer mods should work just fine, but keep in mind that some features may not work at all
or work not exactly the way they do in the GoldSource Engine.

Xash3D-NG is a fork of Xash3D FWGS Engine (Old one) which itself is based on Xash3D by Uncle Mike, this fork aims on improving and bugfixing the original FWGS codebase.

License

The library is licensed under GPLv3 license, see COPYING for details. CMakeLists.txt files are licensed under MIT license, you will find it's text in every CMakeLists.txt header.

xash3d's People

Contributors

a1batross avatar duendeinexistente avatar emileb avatar exl avatar freeslave avatar fuzun avatar jeefo avatar joeltroch avatar lewa-j avatar ma-choo avatar metalheadsanya avatar mittorn avatar moemod avatar mr0maks avatar mryadro avatar nekonomicon avatar nicknekit avatar nillerusr avatar ptitseb avatar samzanemesis avatar santa01 avatar sanyasho avatar sballu avatar solexid avatar the-swank avatar theevolk avatar troll338cz avatar tyabus avatar ucyborg avatar weimzh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xash3d's Issues

hud messages and utf8

utf8 (russian and other) text draw on hud messages not correctly, even if hud_utf8 is 1. this problem has not been solved even now in the new fork from fwgs. russian community has been waiting for this for a long time

linux server console

i would like to have a separate line for entering commands in the server console on linux to make it more convenient write text. thanks in advance

Win32 mingw build fails, typo in engine/CMakeLists.txt

Describe the bug
When compiling the win32 dedicated server executable, the build fails with cannot find -lWs2_32

$ mkdir -p mingw-build
$ cd mingw-build
$ export CC="ccache i686-w64-mingw32-gcc"
$ export CXX="ccache i686-w64-mingw32-g++"
$ export CFLAGS="-static-libgcc -no-pthread"
$ export CXXFLAGS="-static-libgcc -static-libstdc++"
$ cmake -DXASH_DEDICATED=ON -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="-m32" -DCMAKE_C_FLAGS="-m32" ../
$ make -j2 VERBOSE=1
.... output ...

/usr/bin/ccache  i686-w64-mingw32-gcc -m32 -O2 -g -DNDEBUG   -Wl,--whole-archive CMakeFiles/xash.dir/objects.a -Wl,--no-whole-archive  -o xash_dedicated.exe -Wl,--out-implib,libxash_dedicated.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles/xash.dir/linklibs.rsp
/usr/bin/i686-w64-mingw32-ld: cannot find -lWs2_32
collect2: error: ld returned 1 exit status
make[2]: *** [engine/CMakeFiles/xash.dir/build.make:1182: engine/xash_dedicated.exe] Error 1
make[2]: Leaving directory '/home/la10cy/xash3d/mingw-build'
make[1]: *** [CMakeFiles/Makefile2:91: engine/CMakeFiles/xash.dir/all] Error 2
make[1]: Leaving directory '/home/la10cy/xash3d/mingw-build'
make: *** [Makefile:152: all] Error 2
[  1%] Linking C executable xash_dedicated.exe
/usr/bin/i686-w64-mingw32-ld: cannot find -lWs2_32
collect2: error: ld returned 1 exit status
make[2]: *** [engine/CMakeFiles/xash.dir/build.make:1182: engine/xash_dedicated.exe] Error 1
make[1]: *** [CMakeFiles/Makefile2:91: engine/CMakeFiles/xash.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

Please complete the following information:

  • OS and Arch: Debian 12 amd 64 / Debian 10 amd64
  • Engine version: latest master branch, commit 3589a50

solution
looks like Ws2_32 has to be lower case in engine/CMakeLists.txt:

diff --git a/engine/CMakeLists.txt b/engine/CMakeLists.txt
index 7196ab7d..8bd6aafa 100644
--- a/engine/CMakeLists.txt
+++ b/engine/CMakeLists.txt
@@ -125,7 +125,7 @@ endif()
 if(WIN32 AND NOT XASH_64BIT)
        add_definitions( -DDBGHELP -DXASH_W32CON) # dbghelp crashhandler
        if(MINGW)
-               target_link_libraries(${XASH_ENGINE} -luser32 -lkernel32 -lgdi32 -lWs2_32 -ldbghelp -lpsapi)
+               target_link_libraries(${XASH_ENGINE} -luser32 -lkernel32 -lgdi32 -lws2_32 -ldbghelp -lpsapi)
        elseif(MSVC)
                target_link_libraries(${XASH_ENGINE} user32.lib kernel32.lib gdi32.lib Ws2_32.lib dbghelp.lib psapi.lib)
        endif()
@@ -134,7 +134,7 @@ else()
                add_definitions(-DUSE_SELECT)
        endif()
         if(MINGW)
-                target_link_libraries(${XASH_ENGINE} -luser32 -lkernel32 -lgdi32 -lWs2_32)
+                target_link_libraries(${XASH_ENGINE} -luser32 -lkernel32 -lgdi32 -lws2_32)
         elseif(MSVC)
                 target_link_libraries(${XASH_ENGINE} user32.lib kernel32.lib gdi32.lib Ws2_32.lib)
         endif()

I wrote a blogpost about this to document it for myself and others, in case you need some more information :) : https://deltalima.org/blog/index.php/2024/01/17/howto-xcompile-xash3d-ng-for-reactos-on-linux/

People who have crashes scripts

There is new script is called the crash script that some uses it to their advantage to either boost their servers or eliminate their haters and rivals on the xash servers community, our server recently have been facing multiple attacks by some people who hate us, we contacted some people and they said use tyabus files but our server runs with temiz files so it doesn't work and converting it would take a long time and sacrifice some plugins such as (nademodes) which is important to our ze server, even if we did they also have more scripts such as (High ping script) also blocking their ip doesn't work because they keep on changing it and would also leads the server to straight death, this script have been around for long time but surprised no one talks about it, all what i am asking for is for xash devs to update their servers and make it more secure and safe environment for others creators to be creative and create their own server safely without any threats facing them, because this is cs1.6 the game we love, some can't afford pc to play it, that's why xash was an idea or ported in the first place.

Lots of server message indices are wrong

This is usually not a problem, but for example when using amxmodx with gungame, it tries to send a "svc_finale" message with index 31, while in xash3d index 31 is "svc_modelindex" causing a crash.

A name for our fork

I couldn't come up with somewhat decent name for our fork, so, i've decided to create issue to see if anyone can suggest anything decent.

Where Xash3d 0.19.4

Is your feature request related to a problem? Please describe.
A description of what the problem is. E.g: I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want us to add/improve/etc.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

xash security problem

This server attacks other people's main servers, stealing and modifying their information:
OLD SCHOOL XG - PUB

[Request] Make a roadmap

Make a roadmap in order to structure this project.
Define what it is about, make documentation and issues guides, so people know what will or not be taken into account, when they point out enhancements, feature requests, or encounter bugs.

Problem on building

-- Target architecture: i386
-- Building for 32 Bit
-- Target architecture: i386
-- Disabled PIE for xashmenu
-- <FindVGUI.cmake> ../hlsdk
-- </FindVGUI.cmake> /home/arturo/xash3d/hlsdk/linux/vgui.so
-- Disabled PIE for vgui_support
-- <FindSDL2.cmake>
CMake Error at cmake/FindSDL2.cmake:107 (message):
sdl2-config --libs returned code No such file or directory. Check that
sdl2-config is working.
Call Stack (most recent call first):
cmake/FWGSLib.cmake:223 (find_package)
cmake/FWGSLib.cmake:320 (fwgs_library_dependency)
game_launch/CMakeLists.txt:40 (xash_link_sdl2)

CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
cmake/FindSDL2.cmake:179 (find_package_handle_standard_args)
cmake/FWGSLib.cmake:223 (find_package)
cmake/FWGSLib.cmake:320 (fwgs_library_dependency)
game_launch/CMakeLists.txt:40 (xash_link_sdl2)

That appears in the terminal. What am I doing wrong?

xashds crash problem

After starting the server everything works fine. But after changing the map, the server crashes when the player leaves the server. I have this problem only with this engine.

(xash3d.sh engine has no write permission)

xash3d Building Problem

-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Target architecture: i386
-- Building for 64 Bit
CMake Error at cmake/FWGSLib.cmake:84 (add_subdirectory):
The source directory

/opt/xash3d/mainui

does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
CMakeLists.txt:132 (fwgs_conditional_subproject)

CMake Deprecation Warning at game_launch/CMakeLists.txt:23 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- <FindSDL2.cmake>
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found SDL2: /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.so;-lpthread
-- </FindSDL2.cmake> /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.so;-lpthread
CMake Deprecation Warning at engine/CMakeLists.txt:22 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- looking for liblzma
-- Could not find libunwind (missing: LIBUNWIND_INCLUDE_DIR LIBUNWIND_LIBRARIES)
-- libunwind not found
-- <FindSDL2.cmake>
-- </FindSDL2.cmake> /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.so;-lpthread
-- git hash: 3589a50
-- Disabled PIE for xash
-- Configuring incomplete, errors occurred!

I have installed all the necessary packages, the build gives an error.
What am I doing wrong?

Error when starting the build.

Hello. When using the xashds -game cstrike command, this error appears - Error: Unknown option -game. How do I fix it?
Screenshot_20220806-234924_Termux
Screenshot_20220806-234928_Termux

xash assembly

Screenshot_20220307-160307_Termux
Help. An error occurs while compiling the xash. See the screenshot for the error.

Bug touch

2022_05_29_13_26_46.mp4

баг с тачем смена строн и тач профилем, кнопки которые на смене сторон не кликабельные есть переменые setcolor и все.

Can't run xash build

Hello. I need your help. The assembly of xash does not start. I threw your assembly into usr/bin, but it still does not respond to the xashds -game cstrike command. Please help me solve this problem.
Screenshot_20220802-181324_Termux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.