Skip to content

Conversation

@schell244
Copy link
Contributor

@schell244 schell244 commented Jan 2, 2026

🍰 Pullrequest

The extractor was logging warnings for models referenced in DBC files
that don't actually exist in MPQ archives.
Added MPQFileExists() check before attempting to open model files,
so only actual extraction failures are reported.

Also removed the misleading "A few of these warnings are expected"
message since warnings now indicate real problems.

  • Add MPQFileExists to prevent false warning messages
  • Improve single tile mmap building
  • Add fallback logic for model paths with space/underscore variants
  • Add interactive prompts for vmap resolution
  • Add "Press enter to close" prompts to prevent console from closing on error

Proof

  • None

Issues

  • None

How2Test

  • None

Todo / Checklist

  • None

@schell244 schell244 changed the title Restore fixedName assignment in ExtractSingleModel Improve vmap extraction tool Jan 3, 2026
@mserajnik
Copy link
Contributor

Add interactive prompts for vmap resolution
Add "Press enter to close" prompts to prevent console from closing on error

Will this still allow for running the extraction unsupervised/without manual input? That's important to me for scripting purposes. 😄

Comment on lines 434 to 446
bool highRes = preciseVectorData;
std::string userInput;
std::cout << "Extract vmaps with high resolution? [y/n]" << std::endl;
std::getline(std::cin, userInput);
highRes = userInput.empty() || userInput.compare("y") == 0;
std::cout << "High resolution = " << highRes << std::endl;
std::cout << "Press enter to start extracting vmaps." << std::endl;
std::cout << "=====================================" << std::endl;
std::cin.get();

// Overwrite due to user input
preciseVectorData = highRes;

Copy link
Contributor

Choose a reason for hiding this comment

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

If you want to keep the prompts, to me it would also be fine to introduce a flag --non-interactive or something instead to be able to skip them.

Copy link
Contributor Author

@schell244 schell244 Jan 3, 2026

Choose a reason for hiding this comment

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

Thanks for pointing that out. I might just open a second PR, adding promts for both maps/vmaps similar to how it's currently done in the mmap tool 👍 (diff is already big enough here 😅)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would be very much appreciated if you want to give it a try 😇. A good point to check is .go c Glutton and see if he manages to walk through his 'narrow passage' – when Razorfen Leanto03 was broken, he just disappeared in the walls instead.

@schell244 schell244 changed the title Improve vmap extraction tool Improvements for extraction tools (vmap/mmap) Jan 3, 2026
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.

2 participants