Misery 2.2.1 mod on Linux
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- Over a week
- Newbie friendliness
- 15/100
Research direction
The report proposes an untested change to NET_PacketSizeLimit in src/xrCore/net_utils.h and a Python script that edits DDS headers under gamedata/textures, both unverified by the author. Start by reproducing one listed bug, such as the assaulter fence script or the class-switching failure, against the engine source. Done means each claimed fix is confirmed or rejected and the three bugs are triaged into separate issues.
Written by the indexing model from the issue text.
Description
Got the misery mod running natively on Linux Wayland(no X11) and thought it might be useful to share how to run it.
Here's an exact installation order:
- Extract vanilla COP 1.6.02 into the game directory
- Download and apply this fix to the engine:
diff --git a/src/xrCore/net_utils.h b/src/xrCore/net_utils.h
index 9aa23ac7b..3a20b1098 100644
--- a/src/xrCore/net_utils.h
+++ b/src/xrCore/net_utils.h
@@ -16,7 +16,7 @@ class shared_str;
#pragma pack(push, 1)
-const u32 NET_PacketSizeLimit = 16 * 1024;
+const u32 NET_PacketSizeLimit = 128 * 1024;
struct XRCORE_API IIniFileStream
{
- Compile xr_3da with above fix and put it into bin/ directory of the game
- Extract misery's gamedata into the game directory
- Copy res/fsgame.ltx and res/gamedata/shaders from openxray into the game directory
- Run this script that renames all files to lowercase:
python3 -c 'import os, sys; [print(f, "->", f.lower()) or os.rename(os.path.join(r, f), os.path.join(r, f.lower())) for r, d, fs in os.walk(sys.argv[1], topdown=False) for f in fs + d if f != f.lower()]' path/to/game - Run this script that fixes freezing during the texture load(maybe it's just an intel arc quirk, dunno):
python3 -c '
import os, shutil, struct
os.makedirs("_dds_bak", exist_ok=True)
for r, _, fs in os.walk("gamedata/textures"):
for f in fs:
if not f.endswith(".dds"):
continue
p = os.path.join(r, f)
with open(p, "r+b") as fp:
hdr = bytearray(fp.read(128))
if len(hdr) >= 128 and hdr[:4] == b"DDS ":
flags, h, w, pitch, depth, mips = struct.unpack("<IIIIII", hdr[8:32])
if (flags & 0x20000) and mips == 0:
shutil.copy2(p, os.path.join("_dds_bak", f))
caps = struct.unpack("<I", hdr[108:112])[0]
flags &= ~0x20000
caps &= ~(0x400000 | 0x8)
struct.pack_into("<I", hdr, 8, flags)
struct.pack_into("<I", hdr, 108, caps)
fp.seek(0)
fp.write(hdr)
print("Repaired:", p)
'
- Run the game:
./bin/xr_3da -fsltx ./fsgame.ltx
Note: an engine and texture fixes are developed by llm. I have not really investigated whether they are correct, but at least I got the game working
Some bugs I noticed almost immediately:
- When you start playing as assaulter, a script that triggers animation that should get you over the fence does not work at all, so you have to go around of the building and find exit somewhere else.
- Fonts are blurry on HiDPI monitor(with scaling of 2). I guess that's a more general bug, not really related to the mod
- In-game class switching does not work at all. You can change class only by manually swapping gamedata files
I'll keep playing for now and check if there are more bugs
- Dominant language
- C++
- Stars
- 3.6k
- Forks
- 565
- Avg merge
- 9h 54m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenXRay/xray-16
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Bug
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
Bug Linux OpenGL
Difficulty 4/5 3-5 days Newbie friendliness 35/100
OpenXRay/xray-16#2197 · 5 comments ·
Maintainers usually reply within 1 day
-
Enhancement Portability
Difficulty 5/5 Over a week Newbie friendliness 10/100
Maintainers usually reply within 1 day
All issues in OpenXRay/xray-16
Similar issues
-
Invalid-MissingHash/Commit/NotAC
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
azerothcore/azerothcore-wotlk#28636 ·
Maintainers usually reply within 1 day
-
(S1 - Need confirmation)
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
CleverRaven/Cataclysm-DDA#89829 ·
Maintainers usually reply within 1 day
-
comp-documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ClickHouse/ClickHouse#136277 ·
Maintainers usually reply within 1 day
-
Flow Needs: Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
react/react-native#60447 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day