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.
[05:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[05:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[05:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[03:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
Please log in to shout.


Members Online: Wing Zero, IlyaSnopchenko, Roy