• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Recreating War3mapunits.doo ?

Status
Not open for further replies.
Level 9
Joined
Apr 28, 2006
Messages
187
Hello people, I suppose technically speaking this topic is about map prtection (yes I read the sticky) but its more a curoristy thing.

Even on protected maps its very easy to simply extract the war3map.j file/move it whatever to gain access to any protected map (as Darky proudly states)
and protection works by corrupting several of the files that WE uses to load the map. The maps can then be loaded by basically making duds of these files etc. (this much ive figured out on my own)
However, My question is that if you look into a .jass file of a map u can clearly see where all the unit position data/statistics are...

===============
set p=Player(15)
set u=CreateUnit(p,'ngol',-4416.,2368.,270.)
call SetResourceAmount(u,15000)
set u=CreateUnit(p,'ngol',4288.,-2752.,270.)
call SetResourceAmount(u,15000)
set u=CreateUnit(p,'nsnp',-2584.3,-2330.,338.126)
call SetUnitAcquireRange(u,200.)
set u=CreateUnit(p,'nsnp',-2317.8,-2582.6,58.691)
call SetUnitAcquireRange(u,200.)
set u=CreateUnit(p,'nsnp',1753.,-533.5,280.907)
call SetUnitAcquireRange(u,200.)
set u=CreateUnit(p,'nsnp',-1344.1,392.2,222.56)
call SetUnitAcquireRange(u,200.)
set t=CreateTrigger()
================
etc etc etc...

being as most maps that are protected have corrupted the war3mapunits.doo file, isnt it possible to just recreate it from the jass file?
Darky mentioned he had scripts capable but im wondering if someone could elborate on this. Being able to break into it means nothing if none of the units are there!

(If your wondering why i wanted to know its because embaressingly enough i locked myself out of one of my maps and have spent about a week trying to break back into it, last time i ever "protect" anything. lol)
P.s I am an advocate of open source and indeed have released several of my own models onto this site. I though i'd try the darn thing out and poof. opps.

Now im more intrested in the tachnical side of it as im certain it must be possible to rebuild those damaged files from the .j one as the .j one isnt damaged by protection and they all spawn from that anyway.

Your thoughts are appreciated.
 
Status
Not open for further replies.
Top