Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: "Anywhere" location can be resized
"Anywhere" location can be resized
Dec 29 2009, 6:59 pm
By: Dabbu  

Dec 29 2009, 6:59 pm Dabbu Post #1



This may have come up before.. I vaguely recall reading something like this before, but I'm not sure.

It's a glitch in the StarForge map re-size function, if the map is made bigger, Anywhere stays the original size.
I always thought of the Anywhere location as a logical implementation, not a physical one.
This gave me very strange errors when I was testing. Luckily I figured it out quickly as the problems were in the new part of the map only with triggers using the Anywhere.

To remedy this just run re-size the map in SCMDraft2. You don't even have to change anything in the dialog, just hit the "Resize/Change Tileset" button.

While in my case it was a glitch, maybe someone might want to make a map with the anywhere location being a specific size.
I don't know of any editors that directly let you edit this location though.

Here is a map where the Anywhere location is only 8x8 and [0,0] origin (this technique can't change the origin).

I don't know what would happen if you scaled down a map, and the Anywhere location was able to access areas off the map (if what's possible).
Who knows, it might be possible to create units in very strange places, or discover useful memory leaks. But I'm not going to play with that.

Attachments:
Anywhere8x8.scx
Hits: 4 Size: 5.34kb



None.

Dec 29 2009, 7:11 pm Kenoli Post #2



Yeah, Anywhere is pretty much the same as any other location. Resizing it isn't very practical though. Having a location that covers the whole map is super convenient, which is probably why they decided to have new maps start with one by default.



None.

Dec 29 2009, 7:15 pm Marine Post #3



Is that why the max locations is 254 and not 255? :wtfage: Because that would make perfect sense.



None.

Dec 29 2009, 7:19 pm Dabbu Post #4



yup, Anywhere takes up one location slot



None.

Dec 29 2009, 9:40 pm O)FaRTy1billion[MM] Post #5

👻 👾 👽 💪

Quote from Marine
Is that why the max locations is 254 and not 255? :wtfage: Because that would make perfect sense.
Anywhere is Location 63. The max is 254 because in triggers a value of 0 for the location means "no location", and so a value of 255 is Location 254.. and I guess they wanted to keep the index a byte.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Dec 30 2009, 4:11 am stickynote Post #6



wAit so if i resize my map, then my anywhere location changed size? Crap.



None.

Dec 30 2009, 4:23 am samsizzle Post #7



Quote from stickynote
wAit so if i resize my map, then my anywhere location changed size? Crap.
only in starforge...



None.

Dec 30 2009, 5:06 am MadZombie Post #8



Quote from O)FaRTy1billion[MM]
Quote from Marine
Is that why the max locations is 254 and not 255? :wtfage: Because that would make perfect sense.
Anywhere is Location 63. The max is 254 because in triggers a value of 0 for the location means "no location", and so a value of 255 is Location 254.. and I guess they wanted to keep the index a byte.
I was told that at one point their used to be a location limit of 0-63 before it got patched or the editor expanded it. w/e. ;o



None.

Dec 30 2009, 6:20 am Kenoli Post #9



Quote
I was told that at one point their used to be a location limit of 0-63 before it got patched or the editor expanded it. w/e. ;o
Yes. Luckily they realized that 64 locations wasn't going to cut it anymore.

Or maybe they just wanted to go crazy.

This is that mission where Raszagal dies.



None.

Jan 1 2010, 5:07 am TiKels Post #10



I have noticed something strange in SCMDraft... occasionally in maps that near the 255/256 (debatable) limit, the last location gets taken up by a random (?) string. Does anyone have a clue as to why? I figure this is important as it goes along with the whole "how many locations are in SC" I believe its 256 except the last one cannot be used. Also i had thought that there was a 63-64 location limit only in orig SC.



"If a topic that clearly interest noone needs to be closed to underline the "we don't want this here" message, is up to debate."

-NudeRaider

Jan 1 2010, 7:21 pm Kenoli Post #11



Quote
I believe its 256 except the last one cannot be used.
That would sort of make it 255.



None.

Jan 1 2010, 7:25 pm Kaias Post #12



Quote from TiKels
I have noticed something strange in SCMDraft... occasionally in maps that near the 255/256 (debatable) limit, the last location gets taken up by a random (?) string. Does anyone have a clue as to why? I figure this is important as it goes along with the whole "how many locations are in SC" I believe its 256 except the last one cannot be used. Also i had thought that there was a 63-64 location limit only in orig SC.
It's a string bug in Scmdraft, but it is benign and doesn't actually take up a location.



None.

Jan 2 2010, 8:52 pm O)FaRTy1billion[MM] Post #13

👻 👾 👽 💪

In every map, there is either 64 or 255 locations. It is not debatable, it is how big the section is. In the chk, if the "VER " section is 0x003B (retail), then the "MRGN" (location) section is 64 locations big. If the "VER " section is 0x003F or 0x00CD (1.04 enhanced/Brood War) the "MRGN" section is 255 locations big. The 63rd location (or the last one in a retail map and an arbitrary one otherwise) is "Anywhere". Depending on your map type, you either have 63 non-Anywhere locations or 254 non-Anywhere locations.
Unused locations (in StarEdit) have one or both dimensions (width/height) that equal 0. Most other editors (as far as I know) unused locations have coordinates of (0,0),(0,0).



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
Please log in to shout.


Members Online: Oh_Man, Mets8711