• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

How does the model uploader detects custom texture?

Hello,

A bit of context — my question is below:

I'm writing a desktop application to facilitate importing custom 3D models into a map.
The workflow is:
Launch the application → select a folder containing multiple models and textures → select a map → click import.

During the import process, I want to fix the usual texture path issue (removing war3imported, etc...) and to create one unit per model and place it on the terrain.
This way, I can import a folder containing hundreds of models and view them in the world editor without manually creating units and assigning models.

I'd also like to highlight conflicts that may arise — for example, two models sharing the same custom texture path.
To handle this, I'll need to parse the .mdx files to inspect their texture paths.

I don't want the user to have to link a game folder, MPQ, or CASC archive to use the application — which would otherwise be necessary to detect whether a texture path belongs to the base game.


Question:

When you upload a model to this website, if I remember correctly, it detects and prompts you to upload a custom texture if needed.
How does the website determine which textures aren't part of the base game?
 
Top