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.
[03:27 am]
m.0.n.3.y -- Maybe because it's an EUD map?
[03:27 am]
m.0.n.3.y -- Can't upload maps to the DB. Error says "The action you have performed caused an Error". Any word?
[2024-4-25. : 7:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
Please log in to shout.


Members Online: Roy