wc3edit.net

United Warcraft 3 map hacking!
It is currently March 28th, 2024, 3:46 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: April 10th, 2020, 7:44 am 
Offline
Newcomer

Joined: April 9th, 2020, 10:48 am
Posts: 6
Map Name: War Of The Ring 1.6

Map Link: https://www.epicwar.com/maps/65814/

Request: Can anyone here please help with my map. I don't have the original copy and I've tried for hours to rebuild the MPQ to try and get my map back but im not having much luck. I made this map with another played who did all the trigger work (triggers were never my strong point) but i got told all the triggers would be obfuscated and unreadable even if I deprotected it. I was then told too open up the map in an MPQ editor, extract the war3map.j (script file) and fix the return bug in each of the places where it occurs by replacing it with HashTable functions. I have no idea how to do that.. any help would be really appreciated.

Thankyou.


Top
 Profile  
 
PostPosted: April 11th, 2020, 4:44 am 
Offline
Also Not an Admin, but closer than devoltz
User avatar

Joined: February 14th, 2018, 5:35 am
Posts: 1791
Title: Just Another S.Mod
You guys never learn. There's no necessity to DEPROTECT a map in order to edit its war3map.j. About the return bug a simple search on Google and I found the answer to your problem:
https://www.hiveworkshop.com/threads/ma ... 24.165482/

By the way, I did that for you since it looked no time consuming. These were the functions which used the return bug:
Code:
function JU takes rect R returns unit
return R
return null
endfunction
function MU takes integer I returns group
if I!=0 then
return I
endif
return null
endfunction


If you get into the code, there are two functions which use them but there's no function that call those two ones. So I just removed them.


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


Top
 Profile  
 
PostPosted: April 11th, 2020, 9:28 am 
Offline
Newcomer

Joined: April 9th, 2020, 10:48 am
Posts: 6
Thankyou mate! Your a legend.

I've played a few rounds of this today and it is great, just like the old days.


Top
 Profile  
 
PostPosted: April 11th, 2020, 10:35 am 
Offline
Also Not an Admin, but closer than devoltz
User avatar

Joined: February 14th, 2018, 5:35 am
Posts: 1791
Title: Just Another S.Mod
You're welcome.


Top
 Profile  
 
PostPosted: April 11th, 2020, 10:52 am 
Offline
Newcomer

Joined: April 9th, 2020, 10:48 am
Posts: 6
Im sorry mate for the dumb questions mate but if theres a few tweaks and small balancing I want to do would I need to deprotect it or would I need to rebuild the MPQ in order to get it to open in world editor? When I try to open it I get "unit data missing or invalid" error just not sure what the next step would be.


Top
 Profile  
 
PostPosted: April 11th, 2020, 11:08 am 
Offline
Also Not an Admin, but closer than devoltz
User avatar

Joined: February 14th, 2018, 5:35 am
Posts: 1791
Title: Just Another S.Mod
tutorials-cheatpacks-f80/editing-objects-without-deprotection-t35504.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 48 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

phpBB SEO


Privacy Policy Statement
Impressum (German)