[ED+DP]War Of The Ring 1.6

This is where fulfilled requests go. You can make a new thread here if you edit a map and want to share it, such as if you cheat a new map without anybody actually requesting it.

Moderator: Cheaters

Hatchet[2305]
Newcomer
Posts: 3
Joined: April 9th, 2020, 10:48 am

[ED+DP]War Of The Ring 1.6

Post by Hatchet[2305] »

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.
User avatar
nuzamacuxe
Also Not an Admin, but closer than devoltz
Posts: 1655
Joined: February 14th, 2018, 5:35 am
Title: Just Another S.Mod
Been thanked: 6 times

Re: [ED+DP]War Of The Ring 1.6

Post by nuzamacuxe »

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: Select all

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.
Hatchet[2305]
Newcomer
Posts: 3
Joined: April 9th, 2020, 10:48 am

Re: [ED+DP]War Of The Ring 1.6

Post by Hatchet[2305] »

Thankyou mate! Your a legend.

I've played a few rounds of this today and it is great, just like the old days.
User avatar
nuzamacuxe
Also Not an Admin, but closer than devoltz
Posts: 1655
Joined: February 14th, 2018, 5:35 am
Title: Just Another S.Mod
Been thanked: 6 times

Re: [ED+DP]War Of The Ring 1.6

Post by nuzamacuxe »

You're welcome.
Hatchet[2305]
Newcomer
Posts: 3
Joined: April 9th, 2020, 10:48 am

Re: [ED+DP]War Of The Ring 1.6

Post by Hatchet[2305] »

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.
User avatar
nuzamacuxe
Also Not an Admin, but closer than devoltz
Posts: 1655
Joined: February 14th, 2018, 5:35 am
Title: Just Another S.Mod
Been thanked: 6 times

Re: [ED+DP]War Of The Ring 1.6

Post by nuzamacuxe »