Staredit Network > Starcraft I Database > File: Relative Distance

Sunken Treasure
Relative Distance
Filename: RelativeDistance.scx
Filesize: 33.45KB


Not enough votes.
Log in to rate

File Information
Uploaded on:Jan 3 2019, 3:37 am
Uploaded by:goobie
Author:Not Given.


Force 1
Human (Terran)
Force 2
Computer (Zerg)
Force 3
Force 4

File Description
This map computes the relative x and y distance between two units and displays the distance in minerals and gas. This implementation is accurate to 8 pixels, rounded down, and up to a distance of 224 pixels. It does not use a full grid system, but rather shifting locations to isolate information about the x and y coordinates individually. This has allowed me to use only 30 locations.

There are issues if the units are too close to the edge of the map.

It does not currently differentiate between left/right or above/below. I know how to differentiate left and right, but not above and below. I don't need relative directions for my current project, but if anyone's interested it is a problem I'd like to implement direction detection some point.

All Images

No comments yet.
[03:36 pm]
Oh_Man -- a program called mapstats I think it's on here to DL
[02:39 pm]
GGmano -- so theres a limit on total triggers on around 80k?
[02:38 pm]
GGmano -- thanks for info anyway
[02:38 pm]
GGmano -- how did you found that out ohh man?
[02:15 pm]
Oh_Man -- mapstats says 80k triggers
[2022-7-02. : 9:37 pm]
GGmano -- maybe its not about the size i guess since its now above 6000 and was saved
[2022-7-02. : 9:05 pm]
GGmano -- just seems like 6000kb is an obstacle not sure
[2022-7-02. : 9:05 pm]
GGmano -- idk it could also be about the map size its like above 6k kb map wont be saved,, 6000kb of triggers no sounds im aware sounds can go beyond that size
[2022-7-02. : 8:51 pm]
GGmano -- heres link for the new release
[2022-7-02. : 8:51 pm]
GGmano -- i now released it after deleting triggers 3 times sadly
Please log in to shout.

Members Online: UEDCommander, Roy, Ahli, Nekron, jun3hong