Navigation

    forum

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

    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
    • RE: Discussion: long-range logistics revamp

      What if make a power to use on nukes so they will limit terminal throuput for some time. But maybe it is not good to mix this 2 things... Or imlement other two power creep classes so attacking with them will be more effective even vs good repairing. Don't forget that disrupt terminal can be done only in room where power enabled.

      posted in News & Announcements
      U-238
    • RE: Discussion: long-range logistics revamp

      @cookies I see some problems with solution that you suggested. The main is warp containers are neutral thus anyone can connect to your network and steal resources. Maybe if warp containers were owned it could fix that. 1 per room, owned and you gotta defent it.

      The second is cooldown should be triggered by sending to another warp container and not by creep withdrawing from it. Also can't imagine how capacities can add up. If container "merges" (shares) with near room warp containers, that containers can't be shared simultaneously for their neignbour rooms.

      posted in News & Announcements
      U-238
    • RE: Flag Bugs.

      I think it could be done by reworking how flags are handled by server. Make them not like room objects but just a lightweight objects created by player on each shard (storing can be done by roomNames for more efficient search logic). They have properties name, position (which determined by roomName, x, y), color and secondaryColor. Memory is just stored in player's Memoty.flags object. Sure it will require room search code account for this new way of flags storing.

      posted in Technical Issues and Bugs
      U-238
    • RE: Main loop reset! Stage: waitForUsers

      @unforeseen Could you tell how you downgraded node js to 8.11.3? And is this possible with steam client? Thanks

      posted in Private servers
      U-238
    • RE: Draft: Power Creeps API

      Will there a method to get all available (created in account) power creeps? Something like Game.powerCreeps or PowerCreep.getCreeps(). Will they also occured in Game.creeps? If yes then only if spawned or when unspawned too? Also maybe there must by a property spawned in any case.

      posted in General Discussion
      U-238