• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Lua] Script for importing files?

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,337
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,337
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