Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Cannot place unit
Cannot place unit
Feb 1 2010, 5:10 am
By: Newb  

Feb 1 2010, 5:10 am Newb Post #1



My first thought I think is 99% not possible, but is it possible to get rid of the cannot place unit at yada yada location? ( so that it will never appear )

Or

What is mountain side considered? Hillside?
Low terrain
Mid
High



None.

Feb 1 2010, 5:12 am Neki Post #2



Create them at a separate isolated location that will never be clogged (like a 15x15 regular square of terrain), and then move them to wherever you want??



None.

Feb 1 2010, 5:15 am Lanthanide Post #3



It is possible to get rid of the error message, but not the root cause of the problem.

You get the error if it can't create a unit at the given location (unwalkable terrain/no space for ground units, no space for air units), however attempting to move a unit to such a location will *not* produce the error message (but nor will the unit be moved).

So to avoid the error message, always spawn your units in a special 'spawning pen' somewhere on the map (that players cannot normally get to), and then move them to where you want them to be. Finally remove any units still left in the spawning pen after the move (they will still be there if the move failed).

Doing all the above, instead of:
1. No unit appearing where you want it
2. A "cannot place unit" error appearing

You will get:
1. No unit appearing where you want it

Unfortunately there is no way around #1, except to ensure there is enough space for the unit, and that you aren't trying to move it to unwalkable terrain.


I'm not sure what your second terrain question is about, so I'll let someone else answer that.



None.

Feb 1 2010, 5:32 am NudeRaider Post #4

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

What is mountainside/hillside?
Besides why don't you test it yourself? Just place 3 locations over the marked area one only high air, another mid air, and the third only low air ticked and place an air unit there. Then just detect which location finds the unit.




Feb 1 2010, 5:35 am Newb Post #5



Good point... However, I do like the idea of pre-placing the unit elsewhere.



None.

Feb 1 2010, 6:22 am rockz Post #6

ᴄʜᴇᴇsᴇ ɪᴛ!

Create unit works like this:
The game checks to see if it can place a unit at the center of the location. If the location is too close to unwalkable terrain, or the location itself is smaller than the size of the unit, an error will occur and the unit won't be placed.

If there is room on the terrain for the unit to be placed, it then checks the units in the area. The unit will be placed at the first opening based on half squares, or something like that. See mobile grids for the general order.

If there is no room on a 15x15 square around the center of the location, units will not be placed. I'm not sure of the size here, but suffice to say a 33x33 pixel location will have room for lots more than just one unit.

Moving units doesn't take the unit being moved collision box into account, so moving a stacked unit will always move it on the center of the location.



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

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-7-18. : 2:27 am]
Symmetry -- https://staredit.net/topic/18903/ THE REVIEWS ARE HERE! "ok these are pretty good memes" - ssj9Kevin
[2026-7-17. : 2:58 pm]
Ultraviolet -- Symmetry
Symmetry shouted: Man I wish we had this tech back in the day when people played ums lmao
fr fr
[2026-7-17. : 2:39 am]
Symmetry -- Man I wish we had this tech back in the day when people played ums lmao
[2026-7-16. : 6:28 am]
NudeRaider -- EUD actions, specifically. The conditions remained. Today we can even have actions again, but they're all virtualized/whitelisted (not sure on the actual technical implementation) so you can only use them for specific intended purposed, not arbitrary code injections.
[2026-7-16. : 6:26 am]
NudeRaider -- I mean yes, maps - through EUDs - were theoretically able to do that as well, but that was patched quickly.
[2026-7-16. : 6:25 am]
NudeRaider -- Symmetry
Symmetry shouted: Ohhh imagine a SC map that could delete itself
not the map, the editor
[2026-7-16. : 2:28 am]
Symmetry -- I vaguely remember Voy doing some ACE back in the day, but I had no idea EUDs could do that kind of shit. I am very much catching up on the technology
[2026-7-16. : 2:28 am]
Symmetry -- Ohhh imagine a SC map that could delete itself
[2026-7-15. : 8:51 pm]
NudeRaider -- Symmetry
Symmetry shouted: NudeRaider Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
yeah an editor that isn't allowed to write files sounds rather pointless, so I'd assume it can. Like most other programs too btw. and yes, obviously that's dangerous, but also kinda necessary. MS introduced that virtualization for exactly that reason.
[2026-7-15. : 4:10 am]
Ultraviolet -- I don't think so. I think they shut that shit down after 1.16, maybe even earlier
Please log in to shout.


Members Online: jun3hong