System Ultimaprotect

Sim

Forum Administrator
Staff member
Reaction score
534
> I thought of the workings and assembled it .

We worked on that together, unless you haven't noticed.

I do remember my last 3 days spent telling everybody there must be a way to make such a system. Now it's been created, much to my delight, and thanks to you, after numerous hours spent in the chat.
 

Azlier

Old World Ghost
Reaction score
461
You've been working on it for three days :eek:?

Huh. And I just had a crazy idea with ExecuteFunc and assembled it :eek:.
 

Sim

Forum Administrator
Staff member
Reaction score
534
Actually, the only thing that prevented me from coming up with something was a way to detect MapLock was gone without compiling an error when saving.

ANS: ExecuteFunc.
 

SerraAvenger

Cuz I can
Reaction score
234
If maplock counts the lines, can't you just edit the lines (replacing them with local integer iadf and local integer jadf)
 

Sim

Forum Administrator
Staff member
Reaction score
534
And UltimaProtect protects MapLock with all kinds of deadly traps. :)
 

Azlier

Old World Ghost
Reaction score
461
I found something to replace Ultimaprotect!

JASS:
call ExecuteFunc("M"+"a"+"p"+"L"+"o"+"c"+"k"+"N"+"o"+"r"+"t"+"h"+"_"+"G"+"e"+"t"+"I"+"n"+"d"+"e"+"x")


Yes. Place this in some random initializer, anywhere.
 

Sim

Forum Administrator
Staff member
Reaction score
534
> PS. Another way to make the optimizer fail. <_<

What do you mean?

Good find Azlier :p
 

Romek

Super Moderator
Reaction score
964
There are even better ways.
Open your map with an MPQ editor, and open war3map.wts, or w/e the file is called.
The one which holds all the TRIG_STRs.
Then add a few, which are parts of the function name, and when executing, use for example:
JASS:
call ExecuteFunc(&quot;TRIG_STR_005&quot; + &quot;a&quot; + &quot;TRIG_STR_001&quot; + &quot;fun&quot;)

I made quite a detailed post (more like a mini-tutorial) about doing this a while ago, I can't find it though. :D
 

WastedSavior

A day without sunshine is like, well, night.
Reaction score
217
Thanks to Jesus4Lyf for MapLock and Daxtreme for testing it.

And WastedSavior, the innocent bystander to this madness.

Now, we pray to (insert deity here) that Blizzard doesn't fix the return bug. Or C2I.

:cool: Honorable Mention

I have a question, if blizzard does fix it, what would happen to maps implementing this? Would they constantly crash? or would they just no longer protect?
 

dare2care

New Member
Reaction score
3
Frankly, MapLock is easy to remove. Scroll to map top, remove. Scroll to map bottom, remove. Done. Ultimaprotect makes removing MapLock a nightmare.
Small note - You only have to remove the bottom trigger.
 

Strilanc

Veteran Scripter
Reaction score
42
The ProtectChainFunc thing is pointless. It adds no benefits besides renaming some of the functions. You still require the last name (this) to be the same, which means I can find who's calling this, and who's calling who's calling this, and so forth.

ExecuteFunc makes the system conspicuous. Not to mention you're calling ExecuteFunc recursively or on non-trivial expressions, which makes the system easy to find. People don't use ExecuteFunc that way.

But the main problem with this system is it does nothing if MapLockNorth_GetIndex exists. That's not the easiest way to disable protection systems like maplock. If I was trying to disable map lock, I would change the getindex function to return a constant, or find where the function is called and replace THAT with a constant, or look for typical crash methods and remove them.

I'm not just being theoretical here, either. I took the example map, inserted functions which caused map lock to fire (tested to make sure), then commented out map lock's crash line. The map started just fine after that.
 

Strilanc

Veteran Scripter
Reaction score
42
@strilanc:...

Think about that for a second.

Maplock only protects against people who don't know how to remove it.
This system tries to detect when maplock is removed in a particular way.
What is the purpose of this system?

I think you just made an argument against this system, not for it.
 

perkeyone

something clever
Reaction score
71
i think it works like this
maplock protects your map from people who dont know about maplock
ultimaprotect protects your maplock from people who dont know about ultimaprotect
its a maplock-lock
 

Strilanc

Veteran Scripter
Reaction score
42
i think it works like this
maplock protects your map from people who dont know about maplock
ultimaprotect protects your maplock from people who dont know about ultimaprotect
its a maplock-lock

If they know enough to unprotect the map and remove maplock, this is not going to be an obstacle. Not even close. Particularly because it uses ExecuteFunc.
 

Azlier

Old World Ghost
Reaction score
461
Why must the necromancers find this? Is it alright if I send this to the Graveyard?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/
  • The Helper The Helper:
    I think we need to add something to the bottom of the front page that shows the Headline News forum that has a link to go to the News Forum Index so people can see there is more news. Do you guys see what I am saying, lets say you read all the articles on the front page and you get to the end and it just ends, no kind of link for MOAR!
  • The Helper The Helper:
    Happy Wednesday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top