capturetheflag icon indicating copy to clipboard operation
capturetheflag copied to clipboard

Discussion for combating the issue with multi team maps and barrier removal in them

Open farooqkz opened this issue 2 years ago • 8 comments

Currently in 4 player maps, we don't have classic barriers anymore which you can define by only 2 points and a big cube. While this works perfectly for 2 team maps which their barrier fits in a minimal cube, this isn't the case for 4 team maps. I am proposing two ideas to combat this issue:

  • Have more than one pair of points to define barrier area. In all of 4 team maps we've got as of now(2023-05-14), you can define the barrier area with exactly two pairs of positions because the barriers form a plus(+) shape in these maps. There is, however, one exception to this as there is a map which the barrier is placed like a x sign(the water academy map).
  • Have multiple cubes define the barrier area. This is a more general solution of the first proposed solution. We can have multiple pairs of positions in which we look for the red barrier to be removed from.

image

The above image shows the shape of the red barrier(in red colour) and 2 pairs of points to efficiently define where the red barrier is(the black circles). As you see this method is very efficient and most or all of the blocks(or nodes) inside the defined positions are the red barrier blocks which later are to be removed.

image

This second image, shows the more general solution for maps like water academy. We can make the cubes(the pairs of black circles) in a size small enough to not contain much of the map but at the same time big enough to so that we won't have too many of them to iterate over(to look for red barrier inside to delete it).

farooqkz avatar May 14 '23 15:05 farooqkz

Reminds me of derivatives in calculus lol :joy: . Good idea by opening an issue :smile: .

src4026 avatar May 14 '23 15:05 src4026

Reminds me of derivatives in calculus lol joy . Good idea by opening an issue smile .

Did you mean Integrals?

farooqkz avatar May 14 '23 15:05 farooqkz

Reminds me of derivatives in calculus lol joy . Good idea by opening an issue smile .

Did you mean Integrals?

The last image looks like the diagram for derivatives. The concept of tiny areas does remind me of integrals and Riemann sums too :p.

src4026 avatar May 14 '23 15:05 src4026

A better solution would probably be to search the map for barrier nodes and save their positions when the map is saved

LoneWolfHT avatar May 16 '23 18:05 LoneWolfHT

Won't this solution require doing so for all the current maps?

farooqkz avatar May 16 '23 18:05 farooqkz

Yeah, so I need to implement mass-map-resaving at some point

LoneWolfHT avatar Jun 30 '23 17:06 LoneWolfHT

Yeah, so I need to implement mass-map-resaving at some point

What is format of these binary mts files?

farooqkz avatar Jun 30 '23 17:06 farooqkz

Minetest Schematic. I would rather people looked to work on other things for now though, unless they have experience working with schematics

LoneWolfHT avatar Jul 01 '23 22:07 LoneWolfHT