The 2nd Copy function has an empty/blank Value. When I Played this Behavior, the P1 value was changed from radar output to ...blank, and the Commander did not move to the Ore I modified the Copy function with blue P1 as Value, and now it works fine Thank you for a very informative video.
@Sebastian-hg3xc
11 ай бұрын
I think in the final version where you use the move unit (range) block, you don't need the 2nd copy block anymore. what happens in your logic is: if there is a target, move to it (close), then calculate a 4 range location, then move unit to that 4 range location, thereby overwriting the goto from the copy. Edit: The 2nd copy block is used to clear the goto command from energy bots when approaching the commander. they'll keep 4 blocks distance if commander is in their target, but they'll approach the commander at 0 distance if their goto is also set to the commander, which happens after they are built. It's not used for the commander itself, since that one's goto is set by the radar.
@Sebastian-hg3xc
11 ай бұрын
i'm still not 100% on how all of this works, but it seems that if you use the copy block to write one of the parameters, it will remove any link you've made outside of the behavior module. Since you used the copy goto to target block if there is no target in the commander, the commander will lose the link between the radar signal and the target parameter whenever a resource has been depleted. at least that is what happened to my commander. i just removed the top copy part from my behavior for the commander, since the commander always gets the target value from the radar.
@Almaravarion
11 ай бұрын
@@Sebastian-hg3xc I will have to analyze what You said a bit closer, though you are half correct. The links will be removed if a behavior overwrites the target register of link. So for example if a link was from goto register to store register, and then behavior writes something into store register then the link will disappear, HOWEVER if You write it to input of the link, (in our example - if you copy data into goto register) then the link will work as normal. In fact this feature, together with not-so-overt priority of links (that frankly I decided to take a look at after the recording) is one of ways You can save time and behavior complexity on choosing which data to prioritize.
@Sebastian-hg3xc
11 ай бұрын
@@Almaravarion thanks for checking my comment. i updated my first one with some more findings. in general it looks like the "keep at range" module works as is from your video with the energy bots, because they use goto to initially set their target. it works without both copy blocks with the commander, because the commander's goto is defined by the radar. 🙂 still learning from your tutorials, so might still have misunderstood certain things.
@wzb521
11 ай бұрын
Thank you for this mining setup. However I can't see how the same behaviour can apply to both the commander and the power supplier. The "Copy" block is linked to the "Unit" output of the Data Type Switch, which is correct for the power supplier (being linked to the commander). But the commander's target is not a unit but an item, so shouldn't the Copy command be linked to the "Item" output instead?
@Almaravarion
11 ай бұрын
When it comes to data type - mineable resource node is considered static entity that can be mined, which classifies it as 'unit'. Items are inert objects, for example 'iron plate' of item type if used as a signal. Admittedly - it is not always extremely obvious.
@samgamer7455
11 ай бұрын
Oh Wow that is confusing. I was convinced that it was not working because of this. Where did you find information about the data types. I am very keen to program Behaviors in this game.@@Almaravarion
@Almaravarion
11 ай бұрын
@@samgamer7455 unfortunately to some degree it was trial and error. In some cases I simply use it in very generic cases, where for example I know I can have either a value [colored block], nothing [default branch], or an item [or a component], and I split in general in three categories, though for most mundane uses I started simply comparing the value against 'blank' with compare entity or compare item. Usually the later.
@samgamer7455
11 ай бұрын
aaah thank you :) I will start using compare entity and compare item to check things :)@@Almaravarion
@samgamer7455
11 ай бұрын
Could you add chapters or timestamps in future videos please. Finding the Behavior in your video (5:35) was difficult, and even harder to find the Signal, Display, Store, Goto settings (7:00)
@AdmiralKodai
11 ай бұрын
i can barely hear you.
@jasong8647
11 ай бұрын
Appreciate the effort in making the videos, but really, if possible please speak faster, the entire video is so slow that im falling asleep just waiting for the next word to be heard.
@martinw51
11 ай бұрын
That’s what the video speed setting is for.
@samgamer7455
11 ай бұрын
As the mohel said to the parents, "Here is a tip"... I watch all information videos @ 2x speed. If I miss something *then* I slow it down. It saves a heap of time and you get used to the 'fast' talk :) @@martinw51
@samgamer7455
11 ай бұрын
May I suggest doing this video again with better audio. I know you had microphone problems but... I stopped watching your videos on 2 occasions because of the audio (volume turned up Max and then YT ads come on). I only came back to your channel because I had to find more programming Behavior information, not found elsewhere. I suspect you have lost new viewers to your channel because of the audio in this and the 2 related videos
Пікірлер: 16