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

Offline khadgar

  • Full Member Mark II
  • ***
  • Posts: 191
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

[email protected],,,F
F,,,,,,,F
F,,,,,,,F
FFFF,,,,F
[email protected],,,,,,F

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

[email protected],,,,,,F
F,,,,,,,F
F,,FFF,,F
F,,FFF,,F
F,,,,,,,F
[email protected],,,,,,F

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


   [email protected],,,,,,F
   F,,,,,,,F
   F,,FFF,,F
   F,,FFF,,F
   F,,,,,,,F
   [email protected],,,,,,F
[email protected],,,FFFF
F,,,,,,,F
F,,,,,,,F
FFFF,,,,F
[email protected],,,,,,F
[email protected],,,,,,F
F,,,,,,,F
F,,FFF,,F
F,,FFF,,F
F,,,,,,,F
[email protected],,,,,,F


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

[email protected],,F
F,,,F
F,F,F
F,,,F
@,,,F


Which would produce the following:

    [email protected],,F
    F,,,F
    F,F,F
    F,,,F
    @,,,F
[email protected],,,F
F,,,,,,,F
F,,,,,,,F
FFFF,,,,F
[email protected],,,,,,F  <----- here is a blocked passageway
[email protected],,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:

[email protected],,,F
F,,,,,,,F
F,,,,,,,F
FFFF,,,,F
F,,,,,,,F <---- added this extra space, slice guide isn't vertically crowded
[email protected],,,,,,F

Offline Mánagarmr

  • Core Member Mark V
  • *****
  • Posts: 4,254
  • 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: 191
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
  • Administrator
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,321
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!