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

Correctly load mercenary assets (extra.hog) #254

Closed
wants to merge 7 commits into from
Closed

Conversation

JeodC
Copy link
Collaborator

@JeodC JeodC commented May 1, 2024

Pull Request Type

  • GitHub Workflow changes
  • Documentation or Wiki changes
  • Build and Dependency changes
  • Runtime changes
    • Render changes
    • Audio changes
    • Input changes
    • Network changes
    • Other changes

Description

Some mercenary assets are not loaded properly since merc.hog is named extra.hog in digital releases. Adjust the check here. Resolves #255 and enables mercenary stuff for other platforms.

Some mercenary assets are not loaded properly since merc.hog is named extra.hog in digital releases. Adjust the check here.
@JeodC JeodC marked this pull request as draft May 1, 2024 11:19
Descent3/init.cpp Outdated Show resolved Hide resolved
@JeodC JeodC marked this pull request as ready for review May 1, 2024 14:56
@JeodC JeodC marked this pull request as draft May 1, 2024 14:58
@JeodC JeodC marked this pull request as ready for review May 1, 2024 16:08
@JeodC
Copy link
Collaborator Author

JeodC commented May 1, 2024

Verified working with both combinations on windows.

@JeodC JeodC requested review from Arcnor and jcoby May 1, 2024 16:08
@JeodC JeodC force-pushed the JeodC-patch-1 branch 3 times, most recently from 56f76b1 to 753cb37 Compare May 1, 2024 16:49
@JeodC
Copy link
Collaborator Author

JeodC commented May 1, 2024

Tested and verified working in windows. Red guidebot is back!

@JeodC JeodC linked an issue May 1, 2024 that may be closed by this pull request
4 tasks
@JeodC
Copy link
Collaborator Author

JeodC commented May 1, 2024

This will make an access violation crash if the player attempts to use the black pyro in multiplayer without mercenary hog assets present (missing cockpit graphic for the ship).

@@ -1548,40 +1548,6 @@ tTempFileInfo temp_file_wildcards[] = {{"d3s*.tmp"}, {"d3m*.tmp"}, {"d3o*.tmp"},
{"d3c*.tmp"}, {"d3t*.tmp"}, {"d3i*.tmp"}};
int num_temp_file_wildcards = sizeof(temp_file_wildcards) / sizeof(tTempFileInfo);

// Returns true if Mercenary is installed
bool MercInstalled() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of blowing this away, how about looking for merc_hid > 0? that'll support CD installs without the merc expansion.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's way more elegant. I think I'll do this all locally when I have time to keep from so many commits in the history.

@JeodC JeodC closed this May 1, 2024
@JeodC JeodC deleted the JeodC-patch-1 branch May 1, 2024 21:40
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

Successfully merging this pull request may close these issues.

[Runtime Issue]: Mercenary game assets confusion
3 participants