performHyperSpaceExitReplace is in shipEntityAI.m and the relevant code is as follows:19:11:36.925 [script.debug] -[ShipEntity(OOAIPrivate) performHyperSpaceExitReplace:toSystem:]: ----- WARNING: DEBUG: <ShipEntity 0x8959df90>{"Cruzer" position: (1.19362e+006, 3.52527e+006, -1.36659e+006) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT} Jumping 3.200000 which is further than allowed. I have 38 fuel
19:11:37.033 [script.debug] -[ShipEntity(OOAIPrivate) performHyperSpaceExitReplace:toSystem:]: ----- WARNING: DEBUG: <ShipEntity 0x89576220>{"Cobra Mark IV" position: (8.00245e+006, 2.40108e+007, -9.01716e+006) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT} Jumping 3.200000 which is further than allowed. I have 38 fuel
19:11:37.093 [script.debug] -[ShipEntity(OOAIPrivate) performHyperSpaceExitReplace:toSystem:]: ----- WARNING: DEBUG: <ShipEntity 0x8958a7a0>{"Fer-de-Lance" position: (1.08945e+007, 3.28118e+007, -1.23855e+007) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT} Jumping 3.200000 which is further than allowed. I have 38 fuel
19:11:37.112 [script.debug] -[ShipEntity(OOAIPrivate) performHyperSpaceExitReplace:toSystem:]: ----- WARNING: DEBUG: <ShipEntity 0x888ef110>{"Cobra Mark III Leader" position: (1.14354e+007, 3.44041e+007, -1.29834e+007) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT} Jumping 3.200000 which is further than allowed. I have 38 fuel
Code: Select all
float dist = [[sDests oo_dictionaryAtIndex:i] oo_floatForKey:@"distance"];
if (dist > [self maxHyperspaceDistance] || dist > fuel/10)
{
OOLogWARN(@"script.debug", @"DEBUG: %@ Jumping %f which is further than allowed. I have %d fuel", self, dist, fuel);
}
fuel -= 10 * dist;
Code: Select all
- (double) maxHyperspaceDistance
{
return MAX_JUMP_RANGE; // defined in ShipEntity.h: #define MAX_JUMP_RANGE 7.0 // the 7 ly limit
}