Problems when unit gets moved while starting construction of building

Exuro.

New Member
As title says:

I have a map where tree´s may be placed like this:


When a peasant constructs a building on top of himself. then he gets moved to the nearest available pathing(no things in the way) but that sometimes means trough doodads like tree´s, so he cant actually go out again without doing the same building trick.. how can i fix this so it will just say cant build there if he´s standing at the location the building is gonna be placed
 

Renendaru

(Evol)ution is nothing without love.
Remove the unit's pathing while he's making the building. After that add it back.
 

Exuro.

New Member
Ok, no one´s really answering this so im gonna explain my problem better:

Here is a picture of my peasant:
View attachment 26447
I do NOT want my peasant to be able to get from 1 to 2. (He cant walk trough).

Now, if a peasant then stands here:
View attachment 26448
And builds a building on top of himself then:

View attachment 26449

He automaticly gets pushed trough!

This kinda ruins my hole map with an exploit like this!

Im very desperate for fast help as i can do no testing at all with this kinda bug in it as players just use it to win.

Thanks a lot.. +Rep
 

AceHart

Your Friendly Neighborhood Admin
Of course, you can't simply make those spots about one tree larger?
Which assumes though that you do not have any 1x1 structures...
And that all structures have the same size pathing map.
And that all corners have about the same size: one building + one peasant. Where "one peasant" is smaller than the structure, just enough for the worker.

And, a good way to pass time would be to read the forum rules on bumping.
 

neckface

terrain contest winner! :) dance contest loser. :(
easiest solution:

in your map can you have them summon buildings like undead instead of actively building like peasants? that would eliminate the problem...
 

Exuro.

New Member
Edit: Sorry bout the bumping so much.. i only have limited hours "free" from my GF.. so just trying to be productive in the time i can hehe!
guess ill have to take it up with the missy haha.. so sorry bout the bumping hehe

Acehart, the tree´s are destroyed by the peasant so he can custom make his area if your following me.. so that wont be possible.

Neckface:
Can i add that ability to a peasant?
 

AceHart

Your Friendly Neighborhood Admin
The "ability" to summon structures comes with the race setting of the worker.
The race of the building is of no importance there.

He will have the "summon" icon though, unless you change that...
 

Exuro.

New Member
so in theory i could just take the undead worker, change his model, and summon icon, and it would look like a peasant :D

hehe
 

Exuro.

New Member
I just tried using a undead worker and it doesnt work.. same thing happen!


I could perhaps fix it if i could somehow make it unavailable to build on top of the peasant.. like if the peasant is standing where the building is constructed then make it say "not possible" or something like that
 

Ryuu

I am back with Chocolate (:
Well I could make it, but I don't have WE open and my com is currently too laggy to handle WE. So I'll explain to you:

Just detect when a unit starts construction. Then detect if the structure is in 300 range (change this to your preference.. 300 is just a rough prediction) of the Peasant.
 

Exuro.

New Member
yes but the peasant gets moved as soon as the building is placed on ground. so i dont even think detecting the building when a unit starts construction is fast enough
 

Ryuu

I am back with Chocolate (:
Try it. You never know. :p

EDIT:
Or you could try pausing the unit when you started building construction?
 

Exuro.

New Member
hmm just started thinking! cant i make it so the peasant have to stand at a minimum of 1-2 or something from the building?

minimum acquisition range to 1 or something, would the unit then walk away to start the building?

EDIT: hmm that thing you suggested Ryuu, how do i make a trigger lige that? that checks if the building is within that range.?
 

Ryuu

I am back with Chocolate (:
Using the Unit Group, perhaps?
Handwritten:

Code:
Set tempGroup = Units within [COLOR="Red"][B][Range][/B][/COLOR] of [B][COLOR="Red"][Unit][/COLOR][/B]
 

Exuro.

New Member
Like this:

Code:
Set PeasantBStart = (Units within 1.00 of (Position of (Constructing structure)))

But shouldnt this be in a condition to like:

Condition
peasant within 1 of constructing structure equal true
Action:
Stop unit

or something like that heh
 

Ryuu

I am back with Chocolate (:
Oh yes, yes. But don't forget that leak:

Code:
(Position of (Constructing structure))
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • tom_mai78101 tom_mai78101:
    Would like to get some annual forum statistics report.
  • The Helper The Helper:
    there are stats in the xenforo forum admin section and we have matomo stats we started collecting beginning of the year so we will not have annual on that until next year
  • The Helper The Helper:
    I thought you had keys to the bathroom Tom? Ghan does Tom have access to the stats thread in the bathroom
  • The Helper The Helper:
    since I started jacking with the bots on the site we doubled our page views on the site in a week lol
  • The Helper The Helper:
    I have been having lots of fun
  • The Helper The Helper:
    we have had like 6000 views of the American Airlines economy class thread in the last week
  • The Helper The Helper:
    I ought to stick a travel affiliate link or something on that page to try and monetize that they are just going there and leaving it might even be bots I am not sure
  • The Helper The Helper:
    I just got into it with the Atari VCS Facebook Moderator I started trolling him and almost got banned
  • The Helper The Helper:
    They deleted one of my posts one time so I was trolling him on a help post I put up because I am evil I guess and bored and the guy handled it well I loved his attitude Atari has a good social media presence even if they do not have many games.
  • The Helper The Helper:
    The French Atari they call them even though they are like totally based in America they just have French Money coming in. Gotta love it
  • Ghan Ghan:
    Microsoft buying Activision Blizzard holy crap!
  • The Helper The Helper:
    I know right holy cow
  • Accname Accname:
    Thats not going to save it.
  • The Helper The Helper:
    It might
  • The Helper The Helper:
    They are going to use alot of that IP in the Metaverse
  • The Helper The Helper:
    I found a new section of the stats that is freaking interesting!
  • The Helper The Helper:
    oh yeah this is what I was looking for good job matomo! These are some sweet stats I am learning the interface on it too!
  • The Helper The Helper:
    If anyone ever asks later how I found out about it was watching the site bots but not watching what they were doing but asking myself why they were here?
  • The Helper The Helper:
    there must be a reason and ok that is it
  • The Helper The Helper:
    the past and the future all come together into one
  • The Helper The Helper:
    the search engines are what built thehelper.net the search engines will make it big again maybe
  • The Helper The Helper:
    the real question is are 5 million links better than 60 real good links?
  • The Helper The Helper:
    the answer is 60 lol
  • The Helper The Helper:
    unless you put 100k links on it lol then you get something

    Staff online

    Members online

    Affiliates

    Hive Workshop NUON Dome
    Top