Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux From-Source-Build: Cannot Open Maps #65

Open
DisruptionSystemsINC opened this issue Jun 16, 2023 · 7 comments
Open

Linux From-Source-Build: Cannot Open Maps #65

DisruptionSystemsINC opened this issue Jun 16, 2023 · 7 comments

Comments

@DisruptionSystemsINC
Copy link

DisruptionSystemsINC commented Jun 16, 2023

Describe the bug
On Ubuntu 22.04 LTS, and when built from source, the main menu will not work correctly i.e The "New game" menu will pop up, but upon selecting the map it will close and the map will not load

To Reproduce
Steps to reproduce the behavior:

  1. Build the chaos mod from source (V1.2.9) according to the instructions
  2. Start the mod
  3. Start a new game
  4. Upon selecting a map, nothing happens

Expected behavior
Start the selected chapter

Additional context

V1.2.9
Ubuntu 22.04 LTS

@acuifex
Copy link
Contributor

acuifex commented Jun 16, 2023

this is due to missing map files.
since i haven't really played the campaign and don't even have the base game downloaded, i don't know how the map searching works.

if you have hl2 downloaded, you can either ln -s the entire maps folder or copy all .bsp files from hl2.
if you don't have it downloaded, you can use something like DepotDownloader to download only map files like this:

# add a regex to match only map files
echo "regex:.+\.bsp" > /tmp/filelist.txt

# download maps into "/tmp/hl2/hl2/maps/*.bsp". the total size is 778M
depotdownloader -app 220 -depot 221 -filelist /tmp/filelist.txt -dir /tmp/hl2 -username <USERNAME>

@DisruptionSystemsINC
Copy link
Author

Thank you very much, that fixed it!

@acuifex
Copy link
Contributor

acuifex commented Jun 16, 2023

please keep the issue open. the mod is supposed to find map files by itself.

@Pinsplash
Copy link
Owner

Pinsplash commented Jun 19, 2023

do you have hl2 installed? it's supposed to pull the maps from HL2

there should also be three lines in the console that look like this upon loading the mod:

pGameDir hl2chaos
szPath C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2
C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\hl2

i'm curious what they are in your case

@DisruptionSystemsINC
Copy link
Author

Half life 2 is installed.
The log output is:

pGameDir hl2chaos
szPath /home/disruption/.steam/debian-installation/steamapps/common/Half-Life 2
\hl2

@acuifex
Copy link
Contributor

acuifex commented Jun 19, 2023

i think this is due to this https://stackoverflow.com/a/19490200

change it to what the code for HL1MP does:

V_AppendSlash( szPath, sizeof(szPath) );
V_strncat( szPath, "hl2", sizeof( szPath ) );

Pinsplash added a commit that referenced this issue Apr 14, 2024
@Pinsplash
Copy link
Owner

hopefully the latest release fixed this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants