Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Moving Buildings to the middle of a Location
Moving Buildings to the middle of a Location
Nov 18 2008, 12:48 am
By: SelfPossessed  

Nov 18 2008, 12:48 am SelfPossessed Post #1



I'm using a Dark Swarm casting system. When you cast it, a Sunken Colony is moved (the teleport trigger) to your Dark Swarm and the Dark Swarm is removed.

The problem? The Sunken Colony is NOT in the middle of the Dark Swarm. It's displaced a bit upwards (like one tile up). This makes it extremely difficult for the player to place the Sunken Colony correctly. Note that normal units do not have this problem.

Any solutions? I have both air and ground units on the map, so I cannot rely on mobile grids. I'm not going to coordinate grid the map either due to both complexity and the number of units/locations it consumes. Still, this causes problems that I really don't want and I'm not sure how to resolve them.

Thanks in advance for the help.

Post has been edited 1 time(s), last time on Nov 18 2008, 1:01 am by SelfPossessed.



None.

Nov 18 2008, 12:50 am Oyen Post #2



Perhaps resizing the location that centers on the dark swarm so that it is exactly the same size as a sunken colony might work.



None.

Nov 18 2008, 12:52 am SelfPossessed Post #3



But it's still centered on the Dark Swarm, so the Sunken is moving to the exact same place, so the Sunken is STILL displaced 1 tile up.



None.

Nov 18 2008, 1:12 am rockz Post #4

ᴄʜᴇᴇsᴇ ɪᴛ!

center the location, make 9 mutas, remove 4 or 5 of them, center location on a muta, create the building there, remove the rest of the mutas.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Nov 18 2008, 1:42 am Fwop_ Post #5



Quote from SelfPossessed
Any solutions? I have both air and ground units on the map, so I cannot rely on mobile grids. I'm not going to coordinate grid the map either due to both complexity and the number of units/locations it consumes. Still, this causes problems that I really don't want and I'm not sure how to resolve them.


Maybe you could do some sort of burrowed unit grid? Burrowed units aren't created in a single spot, instead they still make some sort of grid thing. And it shouldn't interfere with the ground or air units.

EDIT: Nevermind, that's a lie. For some reason I thought creating burrowed units didn't come up in a single spot, which, now that I think about, doesn't make any sense anyway.

Post has been edited 2 time(s), last time on Nov 18 2008, 1:55 am by Fwop_.



None.

Nov 18 2008, 2:19 am SelfPossessed Post #6



Quote from rockz
center the location, make 9 mutas, remove 4 or 5 of them, center location on a muta, create the building there, remove the rest of the mutas.
Quote from SelfPossessed
I have both air and ground units on the map, so I cannot rely on mobile grids.




None.

Nov 18 2008, 2:39 am Falkoner Post #7



I believe I recall a system that was able to do this, I think it used a Mature Crysalis to center it properly somehow, but I can't seem to remember how it worked, maybe you create the crysalis and center the location on that?



None.

Nov 18 2008, 2:56 am FatalException Post #8



Does moving a building to a location go by the grid, or just where the location is? If it goes by the grid, that's the problem, since the sunken colony is 3x2, and there's no grid square at 1.5. I've never looked into it, though.



None.

Nov 18 2008, 3:06 am SelfPossessed Post #9



@ Falkoner

I'm not sure how that would work. Hrmm.

@ Fatal

It's gridded alright. But even if it's gridded, it still summons it one tile up, so players have to aim for about where the bottom of the sunken would be.



None.

Nov 18 2008, 3:11 am FatalException Post #10



Perhaps that means it just assumes that the center on the bottom row is the center of the building.



None.

Nov 18 2008, 4:03 am NudeRaider Post #11

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Center on the swarm, Create/move the sunken, create a unit, center on the unit, remove the unit, move the sunken (maybe you need wait(0)'s). That should give you a 1 tile displacement to below.

btw. I don't understand why a ground unit grid system would not work. The player has to aim for a free part of the map anyway for the sunken to be able to be moved/created.




Nov 18 2008, 4:34 am SelfPossessed Post #12



@ NudeRaider

Because there might be room for the sunken, but not room around it. Issues range from terrain to units to doodads.



None.

Nov 18 2008, 5:40 am rockz Post #13

ᴄʜᴇᴇsᴇ ɪᴛ!

Quote from rockz
center the location, make 9 mutas, remove 4 or 5 of them, center location on a muta, create the building there, remove the rest of the mutas.
I don't see how you can make something down a square without mobile grids. Is this good? I didn't see a problem with simple create/remove.

Attachments:
sunken.scm
Hits: 2 Size: 50.43kb



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Nov 18 2008, 6:04 am SelfPossessed Post #14



@ rocks

I seriously wish I could do that, but I'm seriously worried about terrain and other units nearby giving it issues. Now that I think about it though (and after opening the map), using powerups should bypass the unit problem as they go under the unit, but not on top of each other. That leaves terrain. I can test if the powerup got moved in the first place to tell if terrain is in the way, then just not move the sunken then. Hrmm. I think I'll run a few tests on powerups around terrain first. This might be usable depending on how powerups act around terrain objects.

Thanks for the help!



None.

Nov 18 2008, 7:34 am rockz Post #15

ᴄʜᴇᴇsᴇ ɪᴛ!

You can't build on top of units anyway. if the units are even slightly displaced, they will be so close to a non buildable area you'll get an error message.

I would use 2 powerups, but that wasn't very accurate. the 2 lings are always created in the same place relevant to the tile it's on, however.
Also, you can easily detect the powerup not in the right spot with an inverted location.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Nov 18 2008, 2:38 pm NudeRaider Post #16

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Uhm is there something wrong with what I suggested?




Nov 18 2008, 7:33 pm SelfPossessed Post #17



Quote from NudeRaider
Uhm is there something wrong with what I suggested?
Quote from SelfPossessed
Because there might be room for the sunken, but not room around it. Issues range from terrain to units to doodads.
I'd need to use powerups to avoid nearby ground units screwing it up, but they aren't that accurate gridding wise. They also screw up near terrain.

It looks like the player just has to get used to aiming a bit lower. Oh well.



None.

Nov 18 2008, 8:58 pm rockz Post #18

ᴄʜᴇᴇsᴇ ɪᴛ!

I tested both my way and the simple way. My way was MUCH more accurate. Try making a sunken in the middle of a patch of 8 sunkens both ways. It's fairly lenient so as long as you get the general direction it's fine. Just try it out in your map, and see if it works the way you want it to.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Nov 18 2008, 10:02 pm NudeRaider Post #19

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from SelfPossessed
Quote from NudeRaider
Uhm is there something wrong with what I suggested?
Quote from SelfPossessed
Because there might be room for the sunken, but not room around it. Issues range from terrain to units to doodads.
I'd need to use powerups to avoid nearby ground units screwing it up, but they aren't that accurate gridding wise. They also screw up near terrain.

It looks like the player just has to get used to aiming a bit lower. Oh well.
You said the sunken gets placed to high so there must be space below. If there's no space it couldn't get placed anyway.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
Please log in to shout.


Members Online: Ultraviolet, RIVE