Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

factoryspider have invisible walls

Open rlcevg opened this issue 10 years ago • 8 comments

http://zero-k.info/Battles/Detail/428675 - Crabe stuck and couldn't move for no visible reason. I guess spider/amph/jump factories have walls to prevent other units from moving through (and bumping at nanoframes), but apparantly it produces new bug (this). Options:

  1. add walls to factoryspider, factoryamph models;
  2. Fix passable yardmap. On nanoframe created event place invisible unpassable building-placeholder on top of factory (or yardmap). On nanoframe finished/destroyed remove placeholder;
  3. improve engine pathing.

rlcevg avatar Aug 24 '16 12:08 rlcevg

Walls do not exist: Spring pathing only works on a grid and does not know or care about collision volumes.

Reimplementing spring yardmap mechanics using Lua sounds a bit over the top. This is probably an engine bug and/or something that can be workarounded more gently.

Anarchid avatar Aug 24 '16 12:08 Anarchid

http://i.imgur.com/yl0yR1i.jpg

rlcevg avatar Aug 24 '16 12:08 rlcevg

Close to option (2) is yardMap = [[oooooo oooooo iiiiii iiiiii iiiiii iiiiii]], but without additional changes units won't leave factory until it starts closing up.

rlcevg avatar Aug 24 '16 20:08 rlcevg

Why won't they? As far as I know units attempt to leave facs always.

sprunk avatar Aug 24 '16 20:08 sprunk

For yardMap = [[oooooo oooooo iiiiii iiiiii iiiiii iiiiii]] 'i' changes yard to closed/unpassable on factory open (unit creation) and open/passable when factory closed/idle. So unit being finished on upassable terrain.

With yardMap = [[oooooo oooooo cccccc cccccc cccccc cccccc]] other units may try to go through factory and bump/stuck at unfinished nanoframe (engine doesn't go around nanoframes of mobile units).

Current yardMap = [[oooooo oooooo occcco occcco occcco occcco]] - invisible walls.

rlcevg avatar Aug 24 '16 20:08 rlcevg

I am unsure why is it occcco. Presumably the 'walls' keep it safer from units wandering in.

A solution i would try first (tomorrow?) is using a double resolution yardmap (engaged by putting h in front of the string) to make walls thinner.

Anarchid avatar Aug 24 '16 20:08 Anarchid

The walls exist to stop enemies trying to path through your factory. This would be detrimental to the enemies because the factory hax widget would force them out and they would become stuck.

GoogleFrog avatar Aug 25 '16 13:08 GoogleFrog

I still think the best solution here is to have spring make yardmaps fully blocked for enemies. Then the walls and closed state wouldn't be needed.

aeonios avatar Aug 25 '16 17:08 aeonios