Author Topic: A note about vertical slices  (Read 17655 times)

Offline khadgar

  • Full Member Mark II
  • ***
  • Posts: 192
A note about vertical slices
« on: December 21, 2012, 04:21:46 am »
Some of the existing slices have problems meshing well with other certain slices. Below is some puzzling I've done to figure out why certain slices work sometimes but mess up other times, and my suggestions as to how to avoid making vertical slices which will stuck some buildings or caves.


In the case of a slice that looks like this

FFFF@,,,F
F,,,,,,,F
F,,,,,,,F
FFFF,,,,F
F@,,,,,,F

This slice could correctly fit with a slice that looked like this

F@,,,,,,F
F,,,,,,,F
F,,FFF,,F
F,,FFF,,F
F,,,,,,,F
F@,,,,,,F

To look like this (added second slice on the top and bottom of the first slice):


   F@,,,,,,F
   F,,,,,,,F
   F,,FFF,,F
   F,,FFF,,F
   F,,,,,,,F
   F@,,,,,,F
FFFF@,,,FFFF
F,,,,,,,F
F,,,,,,,F
FFFF,,,,F
F@,,,,,,F
F@,,,,,,F
F,,,,,,,F
F,,FFF,,F
F,,FFF,,F
F,,,,,,,F
F@,,,,,,F


But it would not work if the second slice looked like this:

F@,,F
F,,,F
F,F,F
F,,,F
@,,,F


Which would produce the following:

    F@,,F
    F,,,F
    F,F,F
    F,,,F
    @,,,F
FFFF@,,,F
F,,,,,,,F
F,,,,,,,F
FFFF,,,,F
F@,,,,,,F  <----- here is a blocked passageway
F@,,FFFFF
F,,,F
F,F,F
F,,,F
@,,,F

As you can see, there is a 1-block high passage on two otherwise functional slices. To avoid this, ensure that the slice guide marker has 1 block clearance of open terrain below or above in all vertical segments.

In the above example, changing the first slice to this will fix the issue:

FFFF@,,,F
F,,,,,,,F
F,,,,,,,F
FFFF,,,,F
F,,,,,,,F <---- added this extra space, slice guide isn't vertically crowded
F@,,,,,,F

Offline Mánagarmr

  • Core Member Mark V
  • *****
  • Posts: 4,272
  • if (isInRange(target)) { kill(target); }
Re: A note about vertical slices
« Reply #1 on: December 21, 2012, 05:36:06 am »
Your forum graphic-FU is strong. /claps
Click here to get started with Mantis for Suggestions and Bug Reports.

Thank you for contributing to making the game better!

Offline zebramatt

  • Master Member Mark II
  • *****
  • Posts: 1,574
Re: A note about vertical slices
« Reply #2 on: December 21, 2012, 12:31:35 pm »
I agree with khadgar.

Offline khadgar

  • Full Member Mark II
  • ***
  • Posts: 192
Re: A note about vertical slices
« Reply #3 on: December 21, 2012, 03:01:35 pm »
Your forum graphic-FU is strong. /claps

Pfft, I only used the same symbols that they use themselves in the slice txt files. Take a look yourself ar RuntimeData/Logic/ChunkSlices

The hard part was finding a monospace font.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: A note about vertical slices
« Reply #4 on: December 21, 2012, 04:04:07 pm »
The hard part was finding a monospace font.
Indeed, getting stuff to display exactly as desired in html generally involves threatening the computer with an axe.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!