211
Lemmini / Re: [BUG] Weird steel behaviour
« on: January 15, 2021, 10:28:55 PM »Thanks! I just tried it, and indeed the steel area is fit to the block, but it's the same problem as seen in your video: Bashing away the wooden planks at the top on either side will sometimes cause the basher to stop earlier than it should. This means that the hit box of the steel is larger than it really is. I have already mentioned that the box for autosteel is not checked. Therefore, the basher has to be placed very precisely in order to avoid leaving any of the wooden plank intact.
First of all in the old games/engines , steel works like this: The steel pieces when you first place them in the level "doesn't know" that they are steel , so you need to place steel properties on them ( which are practically their hitboxes ) .
The rule for the steel properties ( hitboxes ) is : their position need to have x and y coordinates that are 4 , or multiples of 4 , and their size also ( x and y ) need to be 4 , or multiples of 4. The reason is that they need to be perfectly alligned to the 4x4 grid , the old engines/games use.
The thing here is , that these rules doesn't apply to the steel terrain pieces , they appy only on their hitboxes. That means that there may exist inconsistences , between the position of a steel piece and the position/size of it's hitbox , becauce the steel piece doesn't need to follow the "everything must be multiples of 4" rule , it's hitbox follows.
But the interesting thing here , is that in that level by Ron Stard , that doesn't seem to be the issue . If you load that level in Lemmix , you will see that the steel properties in that part of the level , are perfectly alligned with the steel pieces.
Another thing that I have found , is that what you describe here , happens also in the Lemmix version of the level , in the same way.
So , the reason that it happens , seems to be ( if I am correct ) the way basher checks works in the old engines/games. The rule they follow in the old games is : The basher , checks for terrain , every second basher stroke.
The wooden piece at that part of the level , needs 6 basher strokes (2x3) , in order to be bashed. So it seems that after the sixth stroke , another basher terrain happens , and recognizes that steel will be encountered in the next stroke? If that's the case , that also explains why if you assign the basher some pixels earlier , you will have a small wood piece remaining not bashed , after the sixth stroke.