• 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!

[Lua] Script for importing files?

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,342
Hi,

Is there a way to use a Lua script to import files (e.g. models, icons, etc.)?

I would like it to be similar to the way the Lua object generation scripts work (these are very helpful).
 
Level 15
Joined
Aug 7, 2013
Messages
1,342
You can use FileImporter, included by GrimExt. You can call it through an external command:
JASS:
//! external FileImporter F:\Files\AbilityData.slk Units\AbilityData.slk

For more information, you should look at the GrimEx manual. Open the JNGP folder, open "grimext", and open "GrimexManual.html".

Is there a tutorial on this, like for object generation?

Could you show how I would import a model and its textures (along with changing the custom path so the model finds the textures?)?
 
Status
Not open for further replies.
Top