ineedbots / iw3_bot_warfare

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

Potential Infinite Loop (Line 735 - _bot_script.gsc) #17

Closed Borken337 closed 10 months ago

Borken337 commented 2 years ago

It could be another script interfering, however I am going to post this here in-case something can be found to resolve this... My Call of Duty 4X server is running the latest 21.1 update on both server- and client-side. I use the CoD4 New Experience mod and the CoD4x Bot Warfare mod (this of course). This seems to happen more commonly when other players are connected, I've received errors in my game log that causes the server to restart frequently. Upon loading the map and while bots are joining in I receive a "Error: script runtime error: potential infinite loop in script - killing thread file maps/mp/bots/_bot_script.gsc, line 735 for ( ;; )". I have modified the bot script slightly, to remove bots using the RPG's and a couple of perks. Could this be the cause? Those lines only required changing some lines from true to false in the "_bot_utility.gsc file".

Appreciate any help!

exeLocates commented 2 years ago

not familiar with cod4 new experience, however line 735 loop has to do with getting a random perk, try running the server with developer mode enabled and it could give a more clear picture of the cause. if the cause is the same, remove the for loop and check if it throws a different error (most likely that error is causing the other one)