The Castle Doctrine Forums

Discuss the massively-multiplayer home defense game.

You are not logged in.

#1 2013-08-23 14:09:32

Blip
Member
Registered: 2013-05-07
Posts: 505

Two New Bugs

I found two "bugs" with animal movement:
1. Animals can see through the space between two diagonal walls. So can the player.
2. Animals can take a step out of view radius. This is a problem when cats walk off the edge of the screen and hit buttons. Bit locks again!

Hope these get fixed soon, because right now all the top houses are relying on them in ridiculous ways.


Current life: Not dead, but I have no clue who I am
The Life and Times of Christopher Alvin Harris
Record: 149 Paintings!

Offline

#2 2013-08-23 14:29:19

jere
Member
Registered: 2013-05-31
Posts: 540

Re: Two New Bugs

2. Animals can take a step out of view radius. This is a problem when cats walk off the edge of the screen and hit buttons. Bit locks again!

Hmm.. I thought this was an obvious consequence of the new rules. I had a lot of designs planned with cats that walked out of view, but never got the money to implement them.


Golden Krone Hotel - a vampire roguelike

Offline

#3 2013-08-23 14:31:24

Blip
Member
Registered: 2013-05-07
Posts: 505

Re: Two New Bugs

It's an obvious consequence, but it undermines why animal movement was changed to sight-only in the first place...


Current life: Not dead, but I have no clue who I am
The Life and Times of Christopher Alvin Harris
Record: 149 Paintings!

Offline

#4 2013-08-23 14:42:17

jere
Member
Registered: 2013-05-31
Posts: 540

Re: Two New Bugs

By obvious, I only meant Jason probably saw it coming and thus was OK with it. Maybe not.

The thing is yea, the cat is probably going to step on a switch, but that doesn't tell you anything about where that switch leads. It could be a hugely complex circuit. You'd have to scout the entire house to know that for sure. In effect, it doesn't matter much if the switch is on the tile right before the edge of the view or on the tile past it. It's roughly the same amount of information.


Golden Krone Hotel - a vampire roguelike

Offline

#5 2013-08-23 15:43:05

colorfusion
Member
Registered: 2013-04-02
Posts: 537

Re: Two New Bugs

All walls tiles are rounded at the edges so when 2 are diagonal to eachother there does actually seem to be a gap between them, I don't think players and dogs being able to see through them is a glitch.

Animals getting stuck at the edge of the screen would look rather strange, and wouldn't really stop guessing locks as the wiring doesn't have to be on screen either way.

Offline

#6 2013-08-23 17:06:09

jasonrohrer
Administrator
Registered: 2013-04-01
Posts: 1,231

Re: Two New Bugs

You could always see through cracks in walls, but it didn't matter much until now.

It's a consequence of imprecision in the vision shroud algorithm.  It runs rays from the player to every spot in a sub-grid, and looks for collisions with vision-blocking objects along the way.  Sometimes the ray squeezes through a diagonal gap like this without hitting either diagonal block.

Hmm...

Offline

#7 2013-08-24 11:28:34

Ludicrosity
Member
From: US
Registered: 2013-06-22
Posts: 144

Re: Two New Bugs

Isn't being able to see through diagonals a perfectly good aspect of the game? Why is it a "bug"?

Offline

#8 2013-08-24 11:54:28

largestherb
Member
From: england
Registered: 2013-05-27
Posts: 381

Re: Two New Bugs

Ludicrosity wrote:

Isn't being able to see through diagonals a perfectly good aspect of the game? Why is it a "bug"?

bad craftmanship!

Offline

#9 2013-08-24 12:47:10

Blip
Member
Registered: 2013-05-07
Posts: 505

Re: Two New Bugs

When looking through diagonals, animals can see you at some angles and not others seemingly arbitrarily. This means that houses can force robbers to try and guess when and how dogs behind diagonals will move, as opposed to simply being able to deduce movements from seeing the setup, as the changes are supposed to allow.


Current life: Not dead, but I have no clue who I am
The Life and Times of Christopher Alvin Harris
Record: 149 Paintings!

Offline

#10 2013-08-24 17:17:39

largestherb
Member
From: england
Registered: 2013-05-27
Posts: 381

Re: Two New Bugs

there are a lot of unexpected animal movements, even without diagonal walls right now wink the fog of war seems to not generate equally in each direction

Offline

#11 2013-08-25 13:38:05

jasonrohrer
Administrator
Registered: 2013-04-01
Posts: 1,231

Re: Two New Bugs

Yeah, this is a problem that I'll have to think more about.

Offline

Board footer

Powered by FluxBB 1.5.8