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

Bug: host_map_mount_order_detection sets the wrong asset order. #1245

Open
Badpoolinator opened this issue Oct 25, 2024 · 3 comments
Open

Bug: host_map_mount_order_detection sets the wrong asset order. #1245

Badpoolinator opened this issue Oct 25, 2024 · 3 comments
Labels
Type: Bug This is a problem with something that should be working one way, but isn't.

Comments

@Badpoolinator
Copy link

Describe the bug

Using the command: host_map_mount_order_detection 1 will actually set the wrong asset priority. I used this in P2:CE with Portal 1's maps, and it used the wrong assets order.

I changed the priority in gameinfo.txt to make Portal 1's assets the highest priority, and it still didn't work. Once I disabled the command and restarted the map, the assets set correctly.

To Reproduce

  1. Mount a game's assets (I am using Portal 1 for example.)
  2. Run the command: host_map_mount_order_detection 1
  3. Run a Portal 1 map.

Issue Map

Any Portal 1 map.

Expected Behavior

The asset order should be corrected to have Portal 1 at highest priority.

Operating System

Windows 11

@Badpoolinator Badpoolinator added the Type: Bug This is a problem with something that should be working one way, but isn't. label Oct 25, 2024
@TwoKrazy
Copy link

this is more or less intended behavior, as far as I can tell. According to @SCell555, the convar works by detecting what assets are used the most in any given map. The problem occurs because many assets are shared between Portal 1 and 2, causing the game to detect Portal 2 when the map uses mostly assets that happen to be in both games. Apparently, they made the system to fix HL2 assets overriding TF2 ones, and that system works for that purpose since TF2 has a lot of exclusive assets that aren't shared with HL2.

@TwoKrazy
Copy link

Although, I agree, it's not really a foolproof solution because of the shared assets thing

@Badpoolinator
Copy link
Author

this is more or less intended behavior, the convar works by detecting what assets are used the most in any given map.

It does what it's coded to do, but it doesn't do what it's intended for, so I'd say this is still a bug. Shouldn't detecting what game directory it's from work? If not, a hardcoded list of maps should work fine for the most part. (Except for community-made maps.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug This is a problem with something that should be working one way, but isn't.
Projects
None yet
Development

No branches or pull requests

2 participants