Navigation

    forum

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

    U-238

    @U-238

    15
    Posts
    2679
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    U-238 Follow

    Posts made by U-238

    • RE: Have PathFinder.search return index of destination goal

      @tehfiend ah yes, I was refering to Room.lookForAtArea (suggested that because you mentioned range of 3). agree with all your thoughts.

      [EDIT] ah, now I got what you mean by "travel distance 3", not roads in range of 3 from start pos but path to a road which ends at the range of 3 from closest

      posted in Feature Requests
      U-238
    • RE: Have PathFinder.search return index of destination goal

      @TehFiend you can use findInArea to lower cpu cost instead of iterating all roads in a room. I agree this addition to know the index of target will be useful for multiple targets search.

      posted in Feature Requests
      U-238
    • RE: Changing Script location for Steam Client [Windows]

      I think other programs are using "LOCALAPPDATA" environment variable too. so not goo idea to chnage it. what you can do is replace screeps folder with symbolic link. I did that for few programs since I installed SSD into my PC setup.

      Symlink on windows can be created by opening cmd and execution command:

      mklink /j "c:\mklink" "d:\mkfolder"
      

      Sure replace path location with yours.

      posted in General Discussion
      U-238
    • RE: Find empty spawn in room with full extensions.

      If it happends on private server maybe this is same issue? https://screeps.com/forum/topic/2829/room-energycapacityavailable-returns-null-due-to-corrupted-spawn-store/2

      posted in General Discussion
      U-238
    • RE: Toggle On/Off for decorations

      After staring for some time I saw the lines that should distinguish constructued walls are there, but the if color is same lightness as wall decaroration they almost disappear. I think good solution will be use wall decorations border color for that lines. Or adjust the lightness of lines correcponding to walls decoration color

      posted in Feature Requests
      U-238
    • RE: Can we send credits directly via terminal?

      @Davaned I think the major thing is credits are not part ofe game world, there is no such resources type. If they would you will need to store them and then credits can be stealed by other players. When they are on the account they are much safer

      posted in Feature Requests
      U-238
    • RE: Discussion: long-range logistics revamp

      @artch Also this will affect network parts if it lies through remote harvesting rooms. Maybe in some situations there will no alternative paths other then through remote mining rooms. Maybe make it so if warp container is near the source this effect applies. Gradually like at distance <= 5 max decay to distance 20-15 low or zero effect. Or strict if distance <= 20-15 100% decay effect.

      posted in News & Announcements
      U-238
    • RE: Server issues

      I have a guess. If MMO uses multiple clusters or containers that runs players code, maybe sometimes ballancer picks wrong instance for particular player and alternates that between different ticks. Maybe hash collisions

      posted in Technical Issues and Bugs
      U-238
    • RE: Server issues

      I have two instances of global right now. As I use generators a lot in my latest codebase it had a bad consequences. Creeps were moving back and forth because different global instances had different targets for them. I made a fix for now, it detects if current globalId is different from lastGlobalId and restarts the threads. But I can imagine how other players code that relies on global or generators can suffer.

      Maybe you can add global detection on server side. Simply adding id to global (maybe name that property _id) and storing lastGlobalId per player in some storage will allow you to monitor how often it happends and restart runner containers for that players.

      Here is the method I used to detect multiple globals:

      let globalIndex = Memory.globalIndex = (Memory.globalIndex || 0) + 1;
      Memory.lastGlobalIndex = globalIndex;
      
      function checkGlobal() {
      	if (globalIndex !== Memory.lastGlobalIndex) {
      		console.log('2 globals!', 'globalIndex:', globalIndex, 'lastGlobalIndex:', Memory.lastGlobalIndex);
      		Memory.lastGlobalIndex = globalIndex;
      		fixGlobals(); // some logic to fix
      	} else {
      		console.log('globalIndex:', globalIndex);
      	}
      };
      
      module.exports.loop = function() {
      	checkGlobal();
      	// ... other code
      };
      

      You can use similar method but instead of memory save this 2 variables (globalIndex and lastGlobalIndex) in some database per each player (maybe per shard also).

      posted in Technical Issues and Bugs
      U-238
    • RE: Discussion: long-range logistics revamp

      @tun9an0 I also thought about creep convoys with energy to help sieged colony. But depedning on the terrain your path will go through attacking squad or not. In first case it is very hard to keep haulers alive, sure there can be healers and attacking creeps or towers can heal them... But what if attacker just have more creeps and will intercept haulers easily

      posted in News & Announcements
      U-238