ineedbots / iw3_bot_warfare

The Bot Warfare mod for CoD4
https://www.moddb.com/mods/bot-warfare
48 stars 7 forks source link

script stack overflow (too many embedded function calls) #6

Closed upl1nk-v01d closed 3 years ago

upl1nk-v01d commented 3 years ago

Hi there! First of all, I deeply respect what you are doing. Everyday I'm enjoying playing COD4 with your creation (bots). But I'm encountering an issue on several waypointed maps. When I reconnect to my server it kicks me out with following error messages:

Attempting to read waypoints from waypoints/mp_efa_market_wp.csv Loaded 308 waypoints from file.

script runtime error script stack overflow (too many embedded function calls): (file 'maps/mp/bots/_bot_utility.gsc', line 1614) node.left = self _KDTreeInsert(node.left, data, 1, x0, y0, z0, node.data.origin[0], y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1628) node.right = self _KDTreeInsert(node.right, data, 0, x0, y0, node.data.origin[2], x1, y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1620) node.left = self _KDTreeInsert(node.left, data, 2, x0, y0, z0, x1, node.data.origin[1], z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1616) node.right = self _KDTreeInsert(node.right, data, 1, node.data.origin[0], y0, z0, x1, y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1628) node.right = self _KDTreeInsert(node.right, data, 0, x0, y0, node.data.origin[2], x1, y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1622) node.right = self _KDTreeInsert(node.right, data, 2, x0, node.data.origin[1], z0, x1, y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1616) node.right = self _KDTreeInsert(node.right, data, 1, node.data.origin[0], y0, z0, x1, y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1628) node.right = self _KDTreeInsert(node.right, data, 0, x0, y0, node.data.origin[2], x1, y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1620) node.left = self _KDTreeInsert(node.left, data, 2, x0, y0, z0, x1, node.data.origin[1], z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1614) node.left = self _KDTreeInsert(node.left, data, 1, x0, y0, z0, node.data.origin[0], y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1628) node.right = self _KDTreeInsert(node.right, data, 0, x0, y0, node.data.origin[2], x1, y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1622) node.right = self _KDTreeInsert(node.right, data, 2, x0, node.data.origin[1], z0, x1, y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1614) node.left = self _KDTreeInsert(node.left, data, 1, x0, y0, z0, node.data.origin[0], y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1628) node.right = self _KDTreeInsert(node.right, data, 0, x0, y0, node.data.origin[2], x1, y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1622) node.right = self _KDTreeInsert(node.right, data, 2, x0, node.data.origin[1], z0, x1, y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1614) node.left = self _KDTreeInsert(node.left, data, 1, x0, y0, z0, node.data.origin[0], y1, z1); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1584) self.root = self _KDTreeInsert(self.root, data, 0, -2147483647, -2147483647, -2147483647, 2147483647, 2147483647, 2147483647); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1502) self KDTreeInsert(sorted[median]); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1506) _WaypointsToKDTree(right, (dem+1)%3); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1506) _WaypointsToKDTree(right, (dem+1)%3); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1504) _WaypointsToKDTree(left, (dem+1)%3); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1506) _WaypointsToKDTree(right, (dem+1)%3); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1504) _WaypointsToKDTree(left, (dem+1)%3); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1506) _WaypointsToKDTree(right, (dem+1)%3); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1506) _WaypointsToKDTree(right, (dem+1)%3); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1504) _WaypointsToKDTree(left, (dem+1)%3); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1450) kdTree _WaypointsToKDTree(level.waypoints, 0); called from: (file 'maps/mp/bots/_bot_utility.gsc', line 1296) level.waypointsKDTree = WaypointsToKDTree(); called from: (file 'maps/mp/bots/_wp_editor.gsc', line 441) load_waypoints(); called from: (file 'maps/mp/bots/_wp_editor.gsc', line 113) self thread LoadWaypoints(); called from: (file 'maps/mp/bots/_wp_editor.gsc', line 83) self thread beginDebug(); started from: (file 'maps/mp/bots/_wp_editor.gsc', line 82) self waittill("spawned_player");


----- Server Shutdown -----

ineedbots commented 3 years ago

update to the latest commit, i removed the kdtree functionality, fixing this issue

upl1nk-v01d commented 3 years ago

I used your newest commit and everything is working without errors. Thank you!! :)