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:02 pm]
Zoan -- of course it isn't full understanding. You could ask "is the mechanism by which this counterexample blows up the ONLY mechanism possible for an initial configuration to blow up?"
[05:48 pm]
Zoan -- ppl do it all the time in PDEs
[05:47 pm]
Zoan -- Heinermann
Heinermann shouted: it also didn't solve that problem but hey as long as the investors are pleased
Constructing a counterexample is answering the question: "Is Navier Stokes well posed?" in the negative
[05:44 pm]
NudeRaider -- I only heard about it, didn't any news article, so what did it do then?
[05:43 pm]
Heinermann -- it also didn't solve that problem but hey as long as the investors are pleased
[05:39 pm]
NudeRaider -- I have no idea tbh. All I know no human was ever able to solve it, but there's at least a few that beat portal ;)
[05:32 pm]
Zoan -- Navier Stokes is not that esoteric I thought
[04:32 pm]
NudeRaider -- Zoan
Zoan shouted: I find it kind of sad that on the same day it was announced AI solved Navier Stokes, it was also announced AI beat Portal, and there's a good deal of people who don't know which is more impressive
you find it sad not everyone is a math nerd?
[03:25 pm]
NudeRaider -- (and yes, I capitalized that correctly :ego:)
[03:24 pm]
NudeRaider -- Symmetry
Symmetry shouted: Hi not I'm dad
Hi dad, I'm nude
Please log in to shout.


Members Online: DarkenedFantasies