wc3edit.net

United Warcraft 3 map hacking!
It is currently April 27th, 2024, 10:10 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Different Protection?
PostPosted: November 18th, 2009, 11:28 am 
Offline
Forum Staff
User avatar

Joined: November 17th, 2008, 3:49 pm
Posts: 610
Alright..ive just played a maze and the units in it, couldent be clicked on yet they could still be selected by making a box over em and i wanted to know how it worked. So i thought i'd try to open it up..i was able to load the map just fine in worldedit, however every trigger and pre-placed unit in the game werent shown in the map (units still in object editor though)....After opening the map in mpq master and extracting the jass file all the triggers were there...So for what reason was i able to open the map, yet not be able to view the triggers? If it was an deprotected map, there would have at least been one trigger inside there containing all the jass..and if it was protected i wouldent have been able to open the map at all...Can someone shed some light on this for me?

Heres the map incase you want to take a look...


You do not have the required permissions to view the files attached to this post.

_________________
Image


Top
 Profile  
 
PostPosted: November 21st, 2009, 7:50 am 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
i gotta say it does sound interesting... coz deprotected maps dont have a "Scripts" folder... and it looks like the triggers are in GUI (from the .j file)

is importing triggers possible?

well tho i have no idea how the maker did it... i just overided the protection thx to unprotect 1.04.

triggers are in jass but they are seperated. not all in 1 trigger...


You do not have the required permissions to view the files attached to this post.

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
PostPosted: November 21st, 2009, 8:49 am 
Offline
Forum Staff
User avatar

Joined: November 17th, 2008, 3:49 pm
Posts: 610
Thanks ;D Finally found what i was looking for..but im completely clueless about jass ;x This should probably be asked in the jass section but i dont really wanna make another thread just for it...If someone can take a look at this and tell me what it means i'd be grateful.
Code:
function Trig_Locust_Func001A takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'Aloc')
call ShowUnitHide(GetEnumUnit())
call ShowUnitShow(GetEnumUnit())
call UnitRemoveAbility(GetEnumUnit(),'Aloc')
call SelectUnitForPlayerSingle(GetEnumUnit(),GetOwningPlayer(GetEnumUnit()))
call SetUnitPathing(GetEnumUnit(),false)
endfunction

function Trig_Locust_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectAll(bj_mapInitialPlayableArea),function Trig_Locust_Func001A)
endfunction

function InitTrig_Locust takes nothing returns nothing
set gg_trg_Locust=CreateTrigger()
call TriggerAddAction(gg_trg_Locust,function Trig_Locust_Actions)
endfunction
For..my limited amount of knowledge it seems like it selects all units in the map, then adds the locust ability, hides the unit, shows the unit, removes the ability, selects the hero for each player...although this seems to not make much sense to me, its the only trigger that looks like it has something to do with the selection.

Anyways, about importing triggers, you can..however you cant import a jass file..so the only way to import triggers it by first exporting it from the map itself..and when most maps are protected..or in this case the triggers arent even there..it doesnt help much..

_________________
Image


Top
 Profile  
 
PostPosted: November 21st, 2009, 9:49 am 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
i translated to GUI manually. checked the Convert and its the same. besides 1 problem

call ForGroupBJ(GetUnitsInRectAll(bj_mapInitialPlayableArea),function Trig_Locust_Func001A)

i couldnt get to that... maybe u can.. i just did it for Playeble Map Area... or smthing...
and i couldnt find what ability "Aloc" is... even with RMPQEx so i just used a random spell on the GUI..

here is the RMPQEx result for the ability
Spoiler:
Code:
[Aloc]
code=Aloc
comments=Locust
version=1
useInEditor=0
hero=0
item=0
sort=unit
race=undead
checkDep=0
levels=1
reqLevel=0
levelSkip=0
priority=0
targs1=_
Cast1=0
Dur1=0
HeroDur1=0
Cool1=0
Cost1=0
Area1=-
Rng1=-
DataA1=-
DataB1=-
DataC1=-
DataD1=-
DataE1=-
DataF1=-
DataG1=-
DataH1=-
DataI1=-
targs2=_
Cast2=-
Dur2=-
HeroDur2=-
Cool2=-
Cost2=-
Area2=-
Rng2=-
DataA2=-
DataB2=-
DataC2=-
DataD2=-
DataE2=-
DataF2=-
DataG2=-
DataH2=-
DataI2=-
targs3=_
Cast3=-
Dur3=-
HeroDur3=-
Cool3=-
Cost3=-
Area3=-
Rng3=-
DataA3=-
DataB3=-
DataC3=-
DataD3=-
DataE3=-
DataF3=-
DataG3=-
DataH3=-
DataI3=-
targs4=_
Cast4=-
Dur4=-
HeroDur4=-
Cool4=-
Cost4=-
Area4=-
Rng4=-
DataA4=-
DataB4=-
DataC4=-
DataD4=-
DataE4=-
DataF4=-
DataG4=-
DataH4=-
DataI4=-
InBeta=1

here is the GUI code
Spoiler:
Image


so i converted it and changed the spell back to Aloc... here is how it looks

Spoiler:
Code:
function Trig_aaaaaa_Func001A takes nothing returns nothing
    call UnitAddAbilityBJ( 'Aloc', GetEnumUnit() )
    call ShowUnitHide( GetEnumUnit() )
    call ShowUnitShow( GetEnumUnit() )
    call UnitRemoveAbilityBJ( 'Aloc', GetEnumUnit() )
    call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
    call SetUnitPathing( GetEnumUnit(), false )
endfunction

function Trig_aaaaaa_Actions takes nothing returns nothing
    call ForGroupBJ( GetUnitsInRectAll(GetPlayableMapRect()), function Trig_aaaaaa_Func001A )
endfunction

//===========================================================================
function InitTrig_aaaaaa takes nothing returns nothing
    set gg_trg_aaaaaa = CreateTrigger(  )
    call TriggerAddAction( gg_trg_aaaaaa, function Trig_aaaaaa_Actions )
endfunction



sry its not 100% but i did my best :)

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
PostPosted: November 21st, 2009, 10:29 am 
Offline
Forum Staff
User avatar

Joined: November 17th, 2008, 3:49 pm
Posts: 610
Tyvm ;D The thing that i was dident know about was the "turn collision off" It worked perfectly. Its kinda anoying since "Locust" doesnt appear in the ability list (unless i made a big oversight).. so i had to use a custom script for that part..

Besides that the only drawback to this trigger is that because the units cant be clicked normally you cant cast target-specific spells. ;x Ah well. Ty for the work ;D

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)