United Warcraft 3 map hacking!
It is currently May 24th, 2019, 2:51 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: July 18th, 2018, 2:47 pm 

Joined: June 23rd, 2018, 11:27 am
Posts: 10
So, thanks to your help (devoltz and nuzamacuxe), I've made significant progress understanding how to deprotect maps

I believe I'm only 1 step away from getting what I want - an openable, saveable, and runnable map.

(The reason I want all of this is that the debugging tool I found uses the world editor. I really need a debugging tool since the code is obfuscated)

My only current problem is that xdep isn't doing the job - I can't enable the script in world editor due to some code problems.

I've extracted the .j file from the original map, and I wanted to use it, but I have one problem: the global variables.

After using xdep, all the global variables are stored in the .wtg file, it seems, but I can't use that because it seems to change the names of the variables even though I tell it not to in the .ini (it does make a difference, but the names still change)

in the .j file I extracted using Ladik's MPQ editor (without deprotection), all the globals are declared at the beginning of the file, and that won't work. when the world editor compiles everything, the code it shows me in the error message includes and automatically-generated globals declaration, followed by the globals declaration in the .j file.

I'm looking for a way to either import the globals automatically (only option I see atm is doing it by hand...),
or to make the world editor use the declaration in the .j file and not generate it's own
scope in addition to the already existing one

attached is the code I'm trying to fix if you wanna have a look
but I'd love a brief explanation if all it takes is some small changes to it :)

One I got it working I'll publish a tutorial/my journey deprotecting the specific map, and hope that some members of this community would be willing to fix/expand it into something more comprehensive than what's available atm :)

Edit: So I can't delete this thread I think, but I found the problem: all global variables have to have their name begin with udg_ in the script...

You do not have the required permissions to view the files attached to this post.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group


Privacy Policy Statement
Impressum (German)