Problems when unit gets moved while starting construction of building

Exuro.

New Member
Reaction score
5
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.
Reaction score
309
Remove the unit's pathing while he's making the building. After that add it back.
 

Exuro.

New Member
Reaction score
5
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
Reaction score
1,494
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. :(
Reaction score
34
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
Reaction score
5
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
Reaction score
1,494
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
Reaction score
5
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
Reaction score
5
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 (:
Reaction score
64
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
Reaction score
5
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 (:
Reaction score
64
Try it. You never know. :p

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

Exuro.

New Member
Reaction score
5
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 (:
Reaction score
64
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
Reaction score
5
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 (:
Reaction score
64
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.
  • Varine Varine:
    I ordered like five blocks for 15 dollars. They're just little aluminum blocks with holes drilled into them
  • Varine Varine:
    They are pretty much disposable. I have shitty nozzles though, and I don't think these were designed for how hot I've run them
  • Varine Varine:
    I tried to extract it but the thing is pretty stuck. Idk what else I can use this for
  • Varine Varine:
    I'll throw it into my scrap stuff box, I'm sure can be used for something
  • Varine Varine:
    I have spare parts for like, everything BUT that block lol. Oh well, I'll print this shit next week I guess. Hopefully it fits
  • Varine Varine:
    I see that, despite your insistence to the contrary, we are becoming a recipe website
  • Varine Varine:
    Which is unique I guess.
  • The Helper The Helper:
    Actually I was just playing with having some kind of mention of the food forum and recipes on the main page to test and see if it would engage some of those people to post something. It is just weird to get so much traffic and no engagement
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top