View Issue Details

IDProjectCategoryView StatusLast Update
0000722The Dark ModAIpublic03.06.2008 02:27
Reportercrispy Assigned Toangua  
PriorityhighSeveritynormalReproducibilityalways
Status closedResolutionfixed 
Product VersionSVN 
Target VersionSaint Lucia ReleaseFixed in VersionSVN 
Summary0000722: AI relations matrix has screwed up defaults
DescriptionThe builder guards in Saint Lucia are currently (using latest code from darkmod_src; I'm not sure if there's a PK4 up with this code yet) friendly to the player.

This appears to be because the relations matrix is a bit screwed up. e.g. team 0 -> team 1 has value -1210965488 while team 1 -> team 0 has value 6 (and I don't see where that 6 is coming from - some kind of default?)
Additional InformationHere's a printout of the relations matrix, gained from adding a call to DebugPrintMat(); at the bottom of CRelations::SetFromArgs in DarkMod/Relations.cpp.

Team 0 is the player, team 1 is Builders. Refer to def files for the other team numbers.

Printing Relations Matrix with 49 elements:
[Relations Matrix] Element 0,0: 5
[Relations Matrix] Element 0,1: -1210965488
[Relations Matrix] Element 0,2: 0
[Relations Matrix] Element 0,3: 0
[Relations Matrix] Element 0,4: 0
[Relations Matrix] Element 0,5: 5
[Relations Matrix] Element 0,6: 0
[Relations Matrix] Element 1,0: 6
[Relations Matrix] Element 1,1: 5
[Relations Matrix] Element 1,2: 6
[Relations Matrix] Element 1,3: 0
[Relations Matrix] Element 1,4: 0
[Relations Matrix] Element 1,5: 1
[Relations Matrix] Element 1,6: 0
[Relations Matrix] Element 2,0: 0
[Relations Matrix] Element 2,1: 1
[Relations Matrix] Element 2,2: 5
[Relations Matrix] Element 2,3: 5
[Relations Matrix] Element 2,4: 6
[Relations Matrix] Element 2,5: 1
[Relations Matrix] Element 2,6: 0
[Relations Matrix] Element 3,0: 2
[Relations Matrix] Element 3,1: 6
[Relations Matrix] Element 3,2: 0
[Relations Matrix] Element 3,3: 5
[Relations Matrix] Element 3,4: 2
[Relations Matrix] Element 3,5: 5
[Relations Matrix] Element 3,6: 0
[Relations Matrix] Element 4,0: 2
[Relations Matrix] Element 4,1: 0
[Relations Matrix] Element 4,2: 3
[Relations Matrix] Element 4,3: 6
[Relations Matrix] Element 4,4: 5
[Relations Matrix] Element 4,5: 3
[Relations Matrix] Element 4,6: 0
[Relations Matrix] Element 5,0: 5
[Relations Matrix] Element 5,1: 6
[Relations Matrix] Element 5,2: 3
[Relations Matrix] Element 5,3: 0
[Relations Matrix] Element 5,4: 4
[Relations Matrix] Element 5,5: 5
[Relations Matrix] Element 5,6: 0
[Relations Matrix] Element 6,0: 0
[Relations Matrix] Element 6,1: 0
[Relations Matrix] Element 6,2: 0
[Relations Matrix] Element 6,3: 0
[Relations Matrix] Element 6,4: 0
[Relations Matrix] Element 6,5: 0
[Relations Matrix] Element 6,6: 5
TagsNo tags attached.

Activities

angua

angua

02.06.2008 16:33

manager   ~0001240

Fixed. Matrix is filled with defaults before the values from the spawn arg list are set.
crispy

crispy

03.06.2008 02:27

reporter   ~0001243

Looks good! Closed.

Issue History

Date Modified Username Field Change
02.06.2008 04:18 crispy New Issue
02.06.2008 04:19 crispy Target Version => Saint Lucia Release
02.06.2008 05:42 greebo Status new => assigned
02.06.2008 05:42 greebo Assigned To => angua
02.06.2008 16:33 angua Status assigned => resolved
02.06.2008 16:33 angua Fixed in Version => SVN
02.06.2008 16:33 angua Resolution open => fixed
02.06.2008 16:33 angua Note Added: 0001240
03.06.2008 02:27 crispy Status resolved => closed
03.06.2008 02:27 crispy Note Added: 0001243