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.
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Moose