Path of an imported file?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

gameguard007
Member
Posts: 59
Joined: September 9th, 2008, 8:27 am

Path of an imported file?

Post by gameguard007 »

Custom model skills have path like this:
"Abilities\\Spells\\Human\\FlameStrike\\FlameStrikeTarget.mdl"

May I know the path for an imported file?

Hoping for an immediate reply. Thanks in advance.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Path of an imported file?

Post by Arabidnun »

There is a program we have called Pather, which when you open the file in the program, it tells you the name + other file relationships to that file.

I believe it is located in tools, If not repost, I can try and find it.

Basically when you import it into your map, change the name to whatever the Porgram tells you to.
gameguard007
Member
Posts: 59
Joined: September 9th, 2008, 8:27 am

Re: Path of an imported file?

Post by gameguard007 »

Hello there Arabidnun, I have a spell that is Jass triggered, I tried finding its dummies and found no flamestrike.mdl in all the dummies. I later searched for the jass script and found the path:
"Abilities\\Spells\\Human\\FlameStrike\\FlameStrikeTarget.mdl"

I figured out that the flame strike model can't be replaced with dummies but i have to replace it in the jass script iteslf.

This is my question:
What are the usual paths of imported files?
Is it "war3Imported\<file name>??

I really want to replace those default skill with my imported model.
Thanks in advance. :)
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Path of an imported file?

Post by Arabidnun »

What I would suggest, is creating the create .mdl file in GUI, using the imported file you have, and then convert it to script to see what exactly what the pathway would suggest.

Code: Select all

Mdl Trigger
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Special Effect - Create a special effect at (Center of (Playable map area)) using HolyExplosion.mdx
This is a GUI trigger, that creates the HolyExplosion.mdx file at X point...Now if we convert it, it looks like this:

Code: Select all

function Trig_Mdl_Trigger_Actions takes nothing returns nothing
    call AddSpecialEffectLocBJ( GetRectCenter(GetPlayableMapRect()), "HolyExplosion.mdx" )
endfunction

//===========================================================================
function InitTrig_Mdl_Trigger takes nothing returns nothing
    set gg_trg_Mdl_Trigger = CreateTrigger(  )
    call TriggerRegisterTimerEventSingle( gg_trg_Mdl_Trigger, 5 )
    call TriggerAddAction( gg_trg_Mdl_Trigger, function Trig_Mdl_Trigger_Actions )
endfunction
So basically, just replace whatever the original pathway is to whatever you have in the import manager, and it should work.