Working on a protection...

Everything about HD, MD, and their mods.

Moderator: Halo Moderators

Sparky
Delta Force
Posts: 4194
Joined: Wed Mar 31, 2004 8:59 pm
Location: New Jersey, USA
Contact:

Re: Working on a protection...

Post by Sparky » Thu Jul 25, 2013 12:47 pm

Either you are groping for answers, or you are asking God and listening to Jesus.

002
Ranger
Posts: 944
Joined: Wed Aug 16, 2006 5:48 pm
Location: ::1

Re: Working on a protection...

Post by 002 » Wed Jul 31, 2013 8:03 am

I've had no internet connection for the past 3 days, so I decided to work on a little project to see if I can destroy my protection. Some progress has been made. Here's deagle_1, which can be obtained in the mod database of HaloMD.

Image
Image

It's incomplete, and I haven't accounted for a few things just yet. Vehicles are screwy on certain maps. Certain, though. Here's claustrophobia.

Image

I mainly used Dirk's Halo Map Loader for this job. It's fast.

WaeV
Peon
Posts: 126
Joined: Tue Aug 28, 2012 11:21 pm
Contact:

Re: Working on a protection...

Post by WaeV » Wed Jul 31, 2013 8:18 am

Wow, nice work 002!
Image

002
Ranger
Posts: 944
Joined: Wed Aug 16, 2006 5:48 pm
Location: ::1

Re: Working on a protection...

Post by 002 » Wed Jul 31, 2013 10:56 pm

Thanks. About 80% of the work is done by Dirk's map loader, and iterating through the tens of thousands of tags of every Halo retail map is done in only 15 seconds on my MacBook Air.

Here's the program in action. While ripping tags isn't the only use for it, it's the easiest way to show that it works. For example, I'll be testing it with Claustrophobia, and I'm going to attempt to remove the pistol tag from the map and put it in Blood Gulch.

http://www.youtube.com/watch?v=sMD0Km1uCgY

Sparky
Delta Force
Posts: 4194
Joined: Wed Mar 31, 2004 8:59 pm
Location: New Jersey, USA
Contact:

Re: Working on a protection...

Post by Sparky » Fri Aug 02, 2013 10:38 am

A fifteen-second task is too long by my standards. You will need a better library of tag data, perhaps one the INCY can offer, or an old version of the Incyclopedia, which is a single map containing every Halo tag. What you are doing is wasting CPU time on duplicate tag names otherwise. It would probably take 1 or 2 seconds this way.

Also, your video isn't playing for some reason.

http://www.blamdevcom.net/incy/map_file ... _1_map.zip

Try that instead. It only contains one sbsp and matg tag, though.
Either you are groping for answers, or you are asking God and listening to Jesus.

Modzy
Green Beret
Posts: 3058
Joined: Fri Feb 22, 2008 11:06 pm
Location: Portland, OR

Re: Working on a protection...

Post by Modzy » Fri Aug 02, 2013 3:26 pm

I highly doubt he iterates through duplicate tags.

WaeV
Peon
Posts: 126
Joined: Tue Aug 28, 2012 11:21 pm
Contact:

Re: Working on a protection...

Post by WaeV » Sat Aug 03, 2013 12:14 am

002 wrote:iterating through the tens of thousands of tags of every Halo retail map is done in only 15 seconds on my MacBook Air.
Sparky wrote:A fifteen-second task is too long by my standards.

What you are doing is wasting CPU time on duplicate tag names otherwise.
It's not taking 15 seconds to do one map, it's taking fifteen seconds to do all maps.

I wonder though - how do you get the original "vehicles\ghost\mp_ghost" names back? Do you cross-reference with original maps and see if the meta is the same, or what?
Image

002
Ranger
Posts: 944
Joined: Wed Aug 16, 2006 5:48 pm
Location: ::1

Re: Working on a protection...

Post by 002 » Sat Aug 03, 2013 6:10 am

I made that video a long time ago... Now it takes much much less than that. I've reduced the time to only 5 seconds over the past couple of days.

http://www.youtube.com/watch?v=PXMmbMxThJw

Sparky
Delta Force
Posts: 4194
Joined: Wed Mar 31, 2004 8:59 pm
Location: New Jersey, USA
Contact:

Re: Working on a protection...

Post by Sparky » Sun Aug 04, 2013 9:26 pm

Well, thanks for trying the INCY map. Took just over a second with it. Hmm... at that speed, what could you do with this.... hmmm....... (thinks dynamic protecting/unprotecting).
Either you are groping for answers, or you are asking God and listening to Jesus.

002
Ranger
Posts: 944
Joined: Wed Aug 16, 2006 5:48 pm
Location: ::1

Re: Working on a protection...

Post by 002 » Sun Aug 04, 2013 10:34 pm

I could probably reduce the time even more if it looked for one map, the Incyclopedia, versus searching a folder for any maps.

WaeV
Peon
Posts: 126
Joined: Tue Aug 28, 2012 11:21 pm
Contact:

Re: Working on a protection...

Post by WaeV » Mon Aug 05, 2013 9:11 am

Oh, is THAT what Incyclopedia is? A gigantic map with lots of tags in it?
Image

002
Ranger
Posts: 944
Joined: Wed Aug 16, 2006 5:48 pm
Location: ::1

Re: Working on a protection...

Post by 002 » Mon Aug 05, 2013 12:54 pm

Added a debug function and now made it use only look for Incyclopedia rather than all of the maps in a folder.
Map Name: deagle_1
Demo: No

Total Time: 0.378534 seconds

Map Opening: 0.064110 seconds
Map Loading: 0.047895 seconds
Map Version Verification: 0.000000 seconds
User Verification Time: 0.000000 seconds

Incyclopedia Loading: 0.093178 seconds

Name Purging: 0.000457 seconds
Tag Unprotection: 0.116593 seconds
Tag Count: 2246
Mean Unprotection Time: 0.000052 sec/tag

Map Saving: 0.040813 seconds
free(): 0.015487 seconds

Percent of time accounted for: 99.999732 percent

Sparky
Delta Force
Posts: 4194
Joined: Wed Mar 31, 2004 8:59 pm
Location: New Jersey, USA
Contact:

Re: Working on a protection...

Post by Sparky » Wed Aug 07, 2013 4:53 am

002 wrote:Added a debug function and now made it use only look for Incyclopedia rather than all of the maps in a folder.
Map Name: deagle_1
Demo: No

Total Time: 0.378534 seconds

Map Opening: 0.064110 seconds
Map Loading: 0.047895 seconds
Map Version Verification: 0.000000 seconds
User Verification Time: 0.000000 seconds

Incyclopedia Loading: 0.093178 seconds

Name Purging: 0.000457 seconds
Tag Unprotection: 0.116593 seconds
Tag Count: 2246
Mean Unprotection Time: 0.000052 sec/tag

Map Saving: 0.040813 seconds
free(): 0.015487 seconds

Percent of time accounted for: 99.999732 percent
And in that time, you could save 0.000420593333333 % or more on car insurance by switching to Geico. Much improved!

EDIT: My math logic is pretty crummy. I did the total time, divided by 900 seconds (for 15 minutes which is 15% or more).

Can you send me a download link to this so I can mess with it, please?
Either you are groping for answers, or you are asking God and listening to Jesus.

WaeV
Peon
Posts: 126
Joined: Tue Aug 28, 2012 11:21 pm
Contact:

Re: Working on a protection...

Post by WaeV » Wed Aug 07, 2013 6:42 am

I keep telling Zero2 to post it on Github, but he says Dirk's eyes will bleed. ;p

Post it anyways! :)
Image

002
Ranger
Posts: 944
Joined: Wed Aug 16, 2006 5:48 pm
Location: ::1

Re: Working on a protection...

Post by 002 » Wed Aug 07, 2013 6:50 pm

Phantom will be ready to be released tomorrow as a beta. It currently has:
  • Support for retail, HaloMD, and demo mods on low-level protections where only tag names are modified.
  • Uses entity plugins (Sparky's plugins) and the Incyclopedia for precise deprotection.
  • Uses Sam Marshall's SDMHaloMapLoader for near-instantaneous deprotection. (0.25 seconds for bloodgulch)
  • 100% functionality. Every button on the window will work as intended.
  • Unknown tags are renamed to whatever tag number they are.
  • Debug mode. You can see how fast it deprotected a map.
To-do list:
  • The ability to bypass Illusion's protections and Z-Team protections.
  • EOF tag renaming instead of overwriting tag names.
  • Reflexive reading. It currently does not read reflexives.
  • Byte-by-byte reading option.
  • Batch deprotection. If it can deprotect one map in 0.35 seconds, it should be able to deprotect a hundred maps in half a minute.
  • Increase overall stability. Older versions crashed for no reason. I may have accidentally fixed this, though, while going over efficiency.
  • Plug memory leaks (if any).
Meanwhile, more teasers!

Snow Gulch. Somehow, I managed to get 100% and I don't even know how. https://dl.dropboxusercontent.com/u/302 ... 0%20AM.png
Deagle6 revisited. I've reduced the mean time by 2 microseconds. https://dl.dropboxusercontent.com/u/302 ... 1%20PM.png
Blood Gulch. This map isn't protected. Who cares? More numbers, huh? https://dl.dropboxusercontent.com/u/302 ... 5%20PM.png

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 51 guests