HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Magic In Jass? - Help!!!!

04-19-2004, 04:54 AM#1
PEON1577
I have a map.

The map is edited.

All players are defeated with "mapstealer".

The trigger does not appear in the WE.

The trigger does not appear in war3map.j.

The string "mapstealer" does not appear in war3map.wts.

--

how do I locate this trigger?
how does this trigger work?

--
[Unedited] NCCD1.1c.w3x
Edit the map and save then run it, tell me why!
--
04-19-2004, 05:24 AM#2
Pheonix-IV
i'd say whoever made the map originally put in some protection that if the map was edited it would use that hidden trigger, how about instead of stealing somone elses work you just make your own?
04-19-2004, 05:33 AM#3
PEON1577
Quote:
Originally Posted by Pheonix-IV
i'd say whoever made the map originally put in some protection that if the map was edited it would use that hidden trigger, how about instead of stealing somone elses work you just make your own?

The map is open source, ie its not protected.

I want to find out how the map is detecting whats being altered
- afai knew stuff like that wasent possible so i want to know
- it would be nice to protect my maps like this

I'm not stealing someone elses work, i'm trying to figure out how the protection works and the first step is finding where it is.

Someone help.
04-19-2004, 05:51 AM#4
PitzerMike
I know how that protection work but I won't tell you for the simple reason that the author (Darky27 btw) wanted to make this map open source but didn't want people to save any changes in order to put their names on it.

You don't need to find that mechanism if you didn't want to save any changes.
04-19-2004, 06:04 AM#5
Pheonix-IV
the map is not protected the normal way, its protected in such a way that you can open it and look at what he did, take ideas from it, but you may not edit it. As you ovbiously are trying to edit it without Darky's permission, you are stealing the map, end of story.
04-19-2004, 06:08 AM#6
PEON1577
Quote:
Originally Posted by Pheonix-IV
the map is not protected the normal way, its protected in such a way that you can open it and look at what he did, take ideas from it, but you may not edit it. As you ovbiously are trying to edit it without Darky's permission, you are stealing the map, end of story.

no you people are assuming

i want to know how the protection works

i want to add this protection to my maps

how do i get answers?

Code:
function InitTrig_Sell_Tower takes nothing returns nothing
    local trigger Sells_Unit = CreateTrigger(  )
    local trigger Sell_Tower = CreateTrigger(  )
    set gg_trg_Sell_Tower = CreateTrigger(  )
    call TriggerRegisterTimerEventSingle( Sell_Tower, 26.00 )
    call TriggerAddAction( Sell_Tower, function Trig_Sells_Tower_Actions )
    call TriggerRegisterAnyUnitEventBJ( Sells_Unit, EVENT_PLAYER_UNIT_SELL )
    call TriggerAddCondition( Sells_Unit, Condition( function Trig_Sells_Unit_Conditions ) )
    call TriggerAddAction( Sells_Unit, function Trig_Sells_Unit_Actions )
    call TriggerAddTower( gg_trg_Sell_Tower )

    //call TriggerRegisterAnyUnitEventBJ( gg_trg_Sell_Tower, EVENT_PLAYER_UNIT_SPELL_CAST )
    //call TriggerAddCondition( gg_trg_Sell_Tower, Condition( function Trig_Sell_Tower_Conditions ) )
    //call TriggerAddAction( gg_trg_Sell_Tower, function Trig_Sell_Tower_Actions )
endfunction

Code:
function TriggerAddTower takes trigger u returns nothing
    call Init()
endfunction

Code:
function Init takes nothing returns nothing
    local trigger initmap = CreateTrigger(  )
    call TriggerRegisterTimerEventSingle( initmap, 25.00 )
    call TriggerAddAction( initmap, function MapInitialisation )
endfunction

Code:
function MapInitialisation takes nothing returns nothing
    set bj_lastPlayedMusic = SubStringBJ(UnitId2StringBJ(1315791214), 1, 2) + "p"
    set bj_changeLevelMapName = SubStringBJ(UnitId2StringBJ(1853060204), 10, 16)
    set bj_forLoopBIndex = GetSoundFileDuration(UnitId2StringBJ(1966092338) + "\\" + ( StringIdentity("TRIGSTR_006") + ".wav" ))
    if ( bj_forLoopBIndex == 0 ) then
        loop
            exitwhen bj_forLoopBIndex > 11
            call CustomDefeatBJ( Player(bj_forLoopBIndex), ( bj_lastPlayedMusic + bj_changeLevelMapName ) )
            set bj_forLoopBIndex = bj_forLoopBIndex + 1
        endloop
    endif
endfunction

//Darky27 = TRIGSTR_006

thats the code i found

now someone want to tell me how it works?
04-19-2004, 06:25 AM#7
Pheonix-IV
if you wanted to know how the protection works how about you try saying that in your post instead of "The map is edited, i cant find the trigger, i get defeated, help"

Editing -Without Permission- is stealing, you are taking somone elses map and changing it, even if you give them credit, if that person felt that you had done something he didnt like, it would be counted as stealing. Dont get into an arguement over Software Stealing, the subject is VERY hazy and changes frequently, last i heard, Editing without permission is stealing, maybe its changed again, maybe it hasnt.

Also Alpha, remember, many things are stupid.
04-19-2004, 07:14 AM#8
PEON1577
will someone tell me how the protection works!!

my brain hurts...
04-19-2004, 07:41 AM#9
Pheonix-IV
alpha Peon wants to know how it works so he can add it to his map, not how to remove it ^_^
04-19-2004, 07:55 AM#10
PEON1577
Quote:
Originally Posted by Pheonix-IV
alpha Peon wants to know how it works so he can add it to his map, not how to remove it ^_^

i have alredy removed it...

i want to know how it works

help me plz.. my brain is dieing.. needs help.. help.. ^_^
04-19-2004, 07:57 AM#11
PEON1577
Quote:
Originally Posted by Alpha Disjunction
No, it is never stealing, know why? Because Darky27 gave it away.

Darky27 doesn't own solo rights to the map.

[Edit:] How to unprotect it:

In custom scripts, replace:

Code:
//***************************************************************************
//*
//*  Map Initialisation
//*
//***************************************************************************

//===========================================================================
function MapInitialisation takes nothing returns nothing
    set bj_lastPlayedMusic = SubStringBJ(UnitId2StringBJ(1315791214), 1, 2) + "p"
    set bj_changeLevelMapName = SubStringBJ(UnitId2StringBJ(1853060204), 10, 16)
    set bj_forLoopBIndex = GetSoundFileDuration(UnitId2StringBJ(1966092338) + "\\" + ( StringIdentity("TRIGSTR_006") + ".wav" ))
    if ( bj_forLoopBIndex == 0 ) then
        loop
            exitwhen bj_forLoopBIndex > 11
            call CustomDefeatBJ( Player(bj_forLoopBIndex), ( bj_lastPlayedMusic + bj_changeLevelMapName ) )
            set bj_forLoopBIndex = bj_forLoopBIndex + 1
        endloop
    endif
endfunction

function Init takes nothing returns nothing
    local trigger initmap = CreateTrigger(  )
    call TriggerRegisterTimerEventSingle( initmap, 25.00 )
    call TriggerAddAction( initmap, function MapInitialisation )
endfunction

With:

Code:
//***************************************************************************
//*
//*  Map Initialisation
//*
//***************************************************************************

//===========================================================================
function MapInitialisation takes nothing returns nothing
    set bj_lastPlayedMusic = SubStringBJ(UnitId2StringBJ(1315791214), 1, 2) + "p"
    set bj_changeLevelMapName = SubStringBJ(UnitId2StringBJ(1853060204), 10, 16)
    set bj_forLoopBIndex = GetSoundFileDuration(UnitId2StringBJ(1966092338) + "\\" + ( StringIdentity("TRIGSTR_006") + ".wav" ))
//    if ( bj_forLoopBIndex == 0 ) then
//        loop
//            exitwhen bj_forLoopBIndex > 11
//            call CustomDefeatBJ( Player(bj_forLoopBIndex), ( bj_lastPlayedMusic + bj_changeLevelMapName ) )
//            set bj_forLoopBIndex = bj_forLoopBIndex + 1
//        endloop
//    endif
endfunction

function Init takes nothing returns nothing
    local trigger initmap = CreateTrigger(  )
    call TriggerRegisterTimerEventSingle( initmap, 25.00 )
    call TriggerAddAction( initmap, function MapInitialisation )
endfunction


no no!! there is a much simpler way, just use this:

function MapInitialisation takes nothing returns nothing
endfunction

for the more complex, delete the function and all refrences to it.
04-19-2004, 08:37 AM#12
PitzerMike
In your profile settings you can turn signatures off, remember?
04-19-2004, 09:29 AM#13
Pheonix-IV
its not porn, she has clothes on, and the sig is there for the express purpose to piss people off, also i got sick and tired of all the PM's asking what happened to the bouncing faries.

PS: Personally i really wouldnt care if you put male anime in your sig. I'd just ignore it.
04-19-2004, 10:14 AM#14
Cubasis
Eh, it has been stated multiple times that the discussion about the ethics, reasons and legality of protection and unprotection should not be in these forums. You can do it on irc, in pm's, on wc3sear.ch, but not here. Alpha, we all know your stance regarding map protection, you don't need to keep stating it or arguing about the stance of others, as that's how Flame wars begin. This is a very sensitive subject to many, and (after getting a couple of complaints from Moderators) I will expect you not to reply to posts like these (they will be closed anyways, wether you post in them or not) from now on, as at this point, that counts as "Trolling".

However, you can feel free to pm people that ask questions about map unprotection, and I might even point them to you if they sound honest enough.


Anyways, the thing is... the only "CON" with map protection that I know off...is the fact that then people can't open the map up in WE, and learn how the maker did something cool...thus, in a sense, it limits advancements (although i'd like to point out that this is why forums like these exist...to help people with questions).
So...Darky releases his map Unprotected (without HL/Ext atleast), and 100% openable in WE but with a small copy protection.
That is deffinetely best of both worlds. And if you argue that people should be allowed to make their own versions of the map, I would rather reccomend them to use knowledge gathered from that map to create a new...better map.

Anyways, i'm closing this thread as peon's question has been answered.

Cubasis