(program):1381 No frames were changed out of all 404 (program):7 |Anshar’s Cheryl| And it was so: (14.250ms per frame, 404 frames) (program):7 |Anshar’s Cheryl| The world ended in lost on frame 404 (program):7 |Anshar’s Cheryl| Hero Placeholder had new Programmable problem: plan Line 17: isPathClear is not defined 19.8 (program):7 |Anshar’s Cheryl| Assigned power 30 to wave cosmicBackgroundMunchkinRadiation with difficulty 5 (program):7 |Anshar’s Cheryl| Assigned power 1600 to wave punishers with difficulty 5 God.coffee:70 Anshar: Let there be light upon Backwoods Brawl! (preload: false)Īffee:55 |Anshar’s Cheryl| Generated random seed 1840587932 of type submissionCount from sessionIDs 560fe05d08aafaa724f3a114 submissionCount 9Īffee:55 |Anshar’s Cheryl| Assigned power 160 to wave initial with difficulty 5Īffee:55 |Anshar’s Cheryl| Assigned power 480 to wave throughout with difficulty 5 TarA = Vector.add(self.pos, Vector.multiply(Vector.normalize(MoveVector),2)) MoveVector = Vector.add(MoveVector, eVector) Weight = enemy.health / (self.distanceTo(enemy)^2)ĮVector = Vector.multiply(Vector.rotate(Vector.subtract(self.pos, enemy.pos),0.5),weight) And yes, I do have an additional 28 degree turn added. #This next loop calculates the destination Vector based on the weighted sum of each enemy vector. VecB = Vector.normalize(Vector.rotate(vecA, adjAngle)) VecA = Vector.normalize(Vector.subtract(tarLoc, self.pos)) While (not( SafePath(tarLoc)) and (cAngle < 2*Math.PI)): If the path to tarA is obstructed, rotates around 28 degrees and tries again. IsFree = isFree and self.isPathClear(s, t) #this is the line which gives errors sometimes StartL = įor s in startL: #Testing the 3 positions around the self.posįor t in targetL: #Testing the 3 positions around the tarA NormV = Vector.multiply(Vector.normalize(Vector.rotate(vecA, 1.5708)), 2) # This creates a 90° rotated, 2 m long vector relative to vec. #This function tests 9 paths to make sure the path from tarA to self.pos are clear, checking 1m in each direction from the character's center and the destination center: Is there a way within the code to catch and handle the exception? (Do I need an item to use that method? … Currently, Programmaticon IV equiped.). Separate point/possible backdoor solution - went looking for Python exception handling and it appears the “try:” method is not supported. What I suspect is that self.isPathClear(s,t) produces an error when one of the coordinates for s or t is out of bounds … but I can’t prove it. It is one of those maddening sporadic errors which do not always occur. I’m just going to include the relevant “run-away” code. The code doesn’t error out all of the time - just on some weird spots on the edge. this is one of the few things stopping a win for Backwoods Brawl 4.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |