FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Game Locked in Infinite Loop

    Scheduled Pinned Locked Moved Game Issues and Gameplay questions
    2 Posts 1 Posters 226 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      Rama
      last edited by

      This happened with two games. Game play freezes and CPU usage kicks up. Can still chat and pan camera, as UI isn't frozen, but SIM is. I suspect the SIM is stuck in an endless loop.

      Both logs end with this:
      debug: Loading module: /lua/ui/dialogs/keybindings.lua
      debug: -> Loading module: /lua/keymap/properkeynames.lua
      debug: -> Loading module: /lua/keymap/keynames.lua
      debug: -> Loading module: /lua/keymap/keycategories.lua

      Replays are:
      #21155827
      #21155679

      I recently added some new scripts to AI Wave Survival, so I don't know if the mod is causing the loop or something else. (The new scripts create an invisible unit randomly around the map, then tests if the unit can path to players. If true, the position is saved to a list and the unit destroyed. The list is used to create Rift Orbs, which can spawn in units from that location. The script runs once every second and stops after it has found 400 locations.)

      I've been unable to recreate the issue in testing with bots. And the mod worked fine with the new scripts when playing with people the other night. Since I haven't been able to re-create the issue with bots, I am having trouble narrowing down what could have caused the crashes.

      Any help appreciated.

      1 Reply Last reply Reply Quote 0
      • R Offline
        Rama
        last edited by

        I believe I have found the problem.

        Looks like the function GetTerrainHeight(posX, posZ) was calling a value it didn't have access to, which must have been causing the infinite loop. Error wasn't getting written to the log in prior playthroughs, so hopefully that is it.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post