Skip to content

Commit

Permalink
fix rehlds (#20)
Browse files Browse the repository at this point in the history
* fix cstrike gamedll for rehlds test

* rename test script

* Dockerfile: copy chmod too & fix chmod for files

* remove unused test.sh

---------

Co-authored-by: s1lentq <[email protected]>
  • Loading branch information
wopox1337 and s1lentq authored Oct 16, 2024
1 parent 11095d8 commit e5c562f
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 56 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,4 @@ COPY --from=download_hlds_windows /opt/hlds /opt/HLDS

WORKDIR /opt/HLDS
# Add test depend files
COPY testdemos_files .

# CMD [ "./test.sh" ]
# CMD wine hlds.exe --rehlds-enable-all-hooks --rehlds-test-play "testdemos/cstrike-basic-1.bin" -game cstrike -console -port 27039 +map regamedll_test_map_v5
COPY --chmod=755 testdemos_files .
Binary file not shown.
Binary file added testdemos_files/deps/rehlds/valve/dlls/hl.dll
Binary file not shown.
28 changes: 28 additions & 0 deletions testdemos_files/deps/rehlds/valve/server.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Use this file to configure your DEDICATED server.
// This config file is executed on server startup.

// disable autoaim
sv_aim 0

// player bounding boxes (collisions, not clipping)
sv_clienttrace 3.5

// disable clients' ability to pause the server
pausable 0
// default server name. Change to "Bob's Server", etc.
hostname "Half-Life Test Server [Steam]"
rcon_password "vH9.ChfusK"
sv_minupdaterate 30
sv_maxupdaterate 101
sv_minrate 10000
sv_maxupdaterate 50000
// maximum client movement speed
sv_maxspeed 270
// load ban files
exec listip.cfg
exec banned.cfg
7 changes: 7 additions & 0 deletions testdemos_files/runRegamedll.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

echo " - Testing ReGameDLL -"
rsync -a deps/regamedll/* .

demo=cstrike-basic-1 desc="CS: Testing jumping, scenarios, shooting etc" ./runTest.sh

10 changes: 10 additions & 0 deletions testdemos_files/runRehlds.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

echo " - Testing rehlds -"
rsync -a deps/rehlds/* .

demo=cstrike-muliplayer-1 desc="CS: Multiplayer" ./runTest.sh
demo=rehlds-phys-single1 desc="Half-Life: Physics singleplayer" ./runTest.sh
demo=crossfire-1-multiplayer-1 desc="Half-Life: Multiplayer on crossfire map" ./runTest.sh
demo=shooting-hl-1 desc="Half-Life: Shooting with several weapons" ./runTest.sh

Empty file modified testdemos_files/runTest.sh
100644 → 100755
Empty file.
52 changes: 0 additions & 52 deletions testdemos_files/test.sh

This file was deleted.

0 comments on commit e5c562f

Please sign in to comment.