Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. Dragonisser
    3. Topics
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Topics created by Dragonisser

    • Unsolved Black window on startup
      Technical Issues and Bugs • • Dragonisser

      9
      9
      Posts
      14577
      Views

      @artch said in Black window on startup: This is very interesting. Anyway, it seems to be an issue with NW.js itself, we're unable to help here. I would recommend sending this to NW.js issue tracker. There is a similar issue on their github already https://github.com/nwjs/nw.js/issues/6152. Gonna try and see if they can sort out this bug. Thanks for the help tho.
    • Creep keeps switching between 2 rooms
      Help • • Dragonisser

      9
      9
      Posts
      17895
      Views

      There are some “common” cases which may lead to strange movement behavior. If you are using a different target pos for moving into the room and are calculating a new path as soon as you enter the room, the new path may be a route through the room where you actually came from (entering through an other entrance). As soon as the creep is leaving again, your other code part may calculate a simple path into the room again (e.g. to pos 25/25), and the procedure repeats. Setting maxRooms = 1 for path calculation after entering the target room, will force to take a path through that room only. It’s a quick solution for the problem. While it may still be an issue in “certain” scenarios, where you have to take another path into the room at all… There may be some scenarios, where path calculation becomes expensive (cpu operations). There is a maxOps parameter, preventing to exceed a threshold (default:2000 (~2cpu)). You will not get a valid path if that threshold is reached. Increasing that threshold can solve the problem, but may lead to cpu issues if you are not caching paths. But I guess this one is more relevant for inter-room paths…