Different Protection?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Different Protection?

Post by Syre »

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
User avatar
haxorico
Super Moderator
Posts: 3190
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: Different Protection?

Post by haxorico »

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: Select all

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: Select all


(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: Select all

(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: Select all

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

Code: Select all

(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: Select all

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

Code: Select all

(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: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Different Protection?

Post by Syre »

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: Select all

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
User avatar
haxorico
Super Moderator
Posts: 3190
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: Different Protection?

Post by haxorico »

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: Select all

[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: Select all

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: Select all

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: Select all


(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: Select all

(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: Select all

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

Code: Select all

(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: Select all

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

Code: Select all

(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: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Different Protection?

Post by Syre »

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