wc3edit.net

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

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Find Rect on Map
PostPosted: September 9th, 2016, 8:39 pm 
Offline
Old Wrinkly Member
User avatar

Joined: April 19th, 2009, 12:46 pm
Posts: 234
Hey,

Is there an easy way to identify where a rectangle (for trigger detection) is on the map? I'm trying to find the tier-up for a map that I'm playing, but it's not designed well on the map itself, so I don't know where it is; I only know the rectangle coordinates from looking into the JASS code.

Edit: Without having to deprotect the map

Solution:
So, I made a pretty hacky solution, and I just displayed the unit's X and Y coordinates after using the -tele command from JJ's CP. I'll include the JASS code if anyone wants to snatch it.

Code:
call DisplayTextToPlayer(p2p,0,0,"Test: X:"+R2S(GetUnitX(u2u))+" Y:"+R2S(GetUnitY(u2u)))

_________________
ImageImageImage


Top
 Profile  
 
 Post subject: Re: Find Rect on Map
PostPosted: September 13th, 2016, 12:21 pm 
Offline
Junior Member
User avatar

Joined: September 28th, 2012, 4:12 pm
Posts: 41
Title: Nooby ;)
In case someone have curiosity and want search a rect/region in a deprotected map I made an easy three steps guide to search a rectangle or region.

1.Search the rect you want to find in the map with jass (or any text editor), commonly called gg___rct056 or so or find the function RECT (A,B,C,D) where ABCD are numbers, like the img.
Image
2.place any rect in world editor (with the map opened) and modify the values according to the rect you want to locate. (watch out, the order isn't the same, 2nd and 3rd number are swapped).
Image
3.double click to the rect to see wherever it is
Image
In this example, the rect it's the place where you begin/respawn or load a character in this map.

Hope it helps and if someone have any questions or need help about a step I will try to solve it.


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

All times are UTC


Who is online

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