View Issue Details

IDProjectCategoryView StatusLast Update
0002684The Dark ModCodingpublic27.10.2011 05:17
Reportergrayman Assigned Tograyman  
PrioritynormalSeveritynormalReproducibilityalways
Status closedResolutionfixed 
PlatformWin32OSWindowsOS VersionXP
Product VersionSVN 
Target VersionTDM 1.05Fixed in VersionTDM 1.05 
Summary0002684: rats cause assertion failures when using debug DLL
DescriptionWhen testing with a Debug DLL, rats can trigger an assertion in:

idClip::ClipModelsTouchingBounds()

I have a test map full of rats that trigger this, and Business as Usual triggers it when the player is wandering around the his quarters. Any maps with rats have the potential to exhibit this.
Steps To ReproducePlace a rat in a roomful of func_statics. Let him run around. At some point he triggers the assertion.
Additional InformationIn preliminary debugging, it looks like the rat's clipmodel bounds are upside-down. ClipModelsTouchingBounds() asserts that bounds[1] must be greater than bounds[0], but in this case bounds[0].z > bounds[1].z.

Currently tracing it back to clipmodel creation to see why.
TagsNo tags attached.

Activities

grayman

grayman

09.03.2011 02:58

viewer   ~0003740

When resolving a block, an AI’s clipmodel’s lower z bound is bumped up by the max step height applicable to it, to avoid collisions with small objects on the ground. A rat is only 6 high, and its max step height is 10, so this was flipping the clipmodel bottom above the clipmodel’s top. Added a check to only bump the bottom up half the clipmodel’s height if it was less than the max step height, otherwise bump it up the max step height.

rev. 4670:

ResolveMovementBlockTask.cpp

Issue History

Date Modified Username Field Change
09.03.2011 01:32 grayman New Issue
09.03.2011 01:32 grayman Status new => assigned
09.03.2011 01:32 grayman Assigned To => grayman
09.03.2011 02:58 grayman Note Added: 0003740
09.03.2011 02:58 grayman Status assigned => resolved
09.03.2011 02:58 grayman Resolution open => fixed
09.03.2011 02:58 grayman Fixed in Version => TDM 1.05
09.03.2011 02:58 grayman Target Version => TDM 1.05
09.03.2011 02:59 grayman Category Models => Coding
27.10.2011 05:17 greebo Status resolved => closed