• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[JASS] Something really cool in Lua...

Status
Not open for further replies.
Level 31
Joined
Jul 10, 2007
Messages
6,306
Like omg
JASS:
//! externalblock extension=lua ObjectMerger $FILENAME$
//! externalblock extension=lua FileExporter $FILENAME$
    //! i exportgroup(objects,"exports\\")
    //parse the stuff... :O
    //I didn't know you could do this!! EPIC :D
//! endexternalblock

Anyone know you could do that? I was getting hella frustrated and was like, SCREW IT, PUTTING EXTERNAL BLOCKS IN EXTERNAL BLOCKS. I hit save not expecting it to run, but it ran perfectly : O.

LIKE OMIGOD!


But for some reason, I'm not seeing all of the objects popping up in exporter... weird

edit
bleh, file exporter tool is bugged ; |


Archive:
Code:
          nfr2n!!!   usca   
×#<n!!!ushb    n!!!ussc   
×#<n!!!usnd    n!!!uine        n!!!unsf   TRIGSTR_065 n!!!ubdg        n!!!uabi   Aloc,A!!! n!!!umdl    n!!!unam   TRIGSTR_066 n!!!uico    n!!!udro        n!!!utip    n!!!uubs    n!!!ides    n!!!hdhwh000

Export:
Code:
          nfr2n!!!   usca   
×#<n!!!ushb    n!!!ussc   
×#<n!!!usnd    n!!!uine        n!!!unsf   (Unit Event) n!!!ubdg        n!!!uabi   Aloc,A!!! n!!!umdl    n!!!unam   Unit Event n!!!uico    n!!!udro        n!!!utip    n!!!uubs    n!!!ides    n!!!

Conclusion: Fail.

Export is missing hdhwh000. hdhw is base id, h000 is custom id.


With another id
Code:
          nfr2n!!!   usca   
×#<n!!!ushb    n!!!ussc   
×#<n!!!usnd    n!!!uine        n!!!unsf   TRIGSTR_065 n!!!ubdg        n!!!uabi   Aloc,A!!! n!!!umdl    n!!!unam   TRIGSTR_066 n!!!uico    n!!!udro        n!!!utip    n!!!uubs    n!!!ides    n!!!hdhwh000    hspth001


Honestly, I have no idea how I would even parse over this to get the objects out ; |.

edit
nvm, I do... but retrieving the property values is a no, haha.

edit
Now know how to retrieve values, but the w3u export is still wrong ; |. Prob just have to rely on the tool by Pooty ;D.

edit
Officially writing SetUnitTypeId >: O, and it will have bugs, if the unit has no custom data on it, rofl >: D.
 
Last edited:
Status
Not open for further replies.
Top