Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. General Discussion
    3. Help
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes

    Help

    • Unsolved How to take energy out of a link
      • Virus_377b2d

      2
      2
      Posts
      95
      Views

      you withdraw it bro
    • Unsolved notifications enabled
      • touchfish

      1
      1
      Posts
      147
      Views

      No one has replied

    • Unsolved How to detect TOMBSTONES with minerals
      • peta

      2
      2
      Posts
      273
      Views

      You may want to join the discord server https://discord.gg/screeps and ask for help in the #world-help channel. There people can provide in-depth help easily Anyways to give you a brief answer, you'll want to use FIND_TOMBSTONES instead of FIND_DROPPED_RESOURCES. Then filter tombstones with store.* values matching what resources you want. https://docs.screeps.com/api/#Room.find
    • Unsolved How do I connect containers or storage to spawn like extensions automatically are?
      • Virus_377b2d

      2
      2
      Posts
      350
      Views

      You cannot, that's not how they work.
    • Solved How to get ghodium?
      • dhairya

      8
      8
      Posts
      1164
      Views

      OK guys thanks for everyones help I figured out that I have to use Game.market.deal to be able to sell pixels without a starting fund
    • Unsolved Healer not finding creeps?
      • Boltz

      8
      8
      Posts
      990
      Views

      @key2130 Yeah that's the correct error code I got it wrong. (updating the original).
    • This topic is deleted!
      • Purpl3_Br1ck

      3
      3
      Posts
      9
      Views
    • Unsolved Can't fill all of my extensions
      • dhairya

      2
      2
      Posts
      759
      Views

      let me make sure. Is your problem that you want to fill extension first ? If yes, i suggest your change your find targets code, a simple change is const target = targets[targets.length - 1]; // take the last target, it must not be spawn and then if (creep.transfer(target, RESOURCE_ENERGY) === ERR_NOT_IN_RANGE) { creep.moveTo(target); }
    • Unsolved How to withdraw energy from spawn and take it to the room controller
      • dhairya

      2
      2
      Posts
      713
      Views

      I don't suggest you transfer energy from spawn to controller, because your spawn maybe has not enough energy to respawn died creeps. For beginners , The tutorial role.upgrader code is the best code to upgrade controller, if it doesn't meet your needs, it's time to rebuild your code .
    • Unsolved PathFinder - using heuristicWeight to implement fractional costs
      • SystemParadox

      8
      8
      Posts
      4624
      Views

      This has been bugging me all this time so thank you! I wonder why they're doing that.
    • Unsolved Any way to respawn back into a set room without losing structures?
      • Gink

      1
      1
      Posts
      562
      Views

      No one has replied

    • Unsolved Nooby issues trying to get my creeps to move by a path written to memory
      • AnonymouSJS

      2
      2
      Posts
      813
      Views

      Greetings, Even without a generated error, functions in screeps will return an ERR_ code or an OK when run, this assists in the debugging process. So your creep.moveByPath(Memory.sourcePath1) should be returning a code other than OK. https://docs.screeps.com/api/#Creep.moveByPath has a table showing all the codes that can return, and what they mean. My guess is that you are calling Memory.sourcePath1 instead of creep.memory.sp1 * because from the first code, it looks like you set the paths to the creep's memory, not just the Memory object itself (unless you've done this somewhere not displayed in your post) As a side note, if the creep does not start on/adj to a step on your path (depending on how your path was generated) then you will likely get ERR_NOT_FOUND as they moveByPath() fails to find where it is on the path. Would recommend checking out Screep's Discord server, its a bit more dynamic and faster to get assistance, normally some one around can help in #world-help. If you don't like discord, would recommend checking out: https://docs.screeps.com/debugging.html https://wiki.screepspl.us/index.php/Basic_debugging https://wiki.screepspl.us/index.php/A_brief_guide_to_reading_the_Screeps:World_API_Documentation
    • Solved Question attacking hostile creeps
      • UndefinedCpp

      5
      5
      Posts
      1405
      Views

      @Donatzor Thank you for that and the problem has been solved.
    • Unsolved Optimizing script to save CPU time
      • Peter805

      1
      1
      Posts
      818
      Views

      No one has replied

    • Unsolved помогите пожалуйста!!!!
      • Artem555

      1
      1
      Posts
      1599
      Views

      No one has replied

    • Unsolved Memory resets every tick in simulation
      • Darth_Duck

      5
      5
      Posts
      1484
      Views

      Yeah, it does work fine on the MMO. I quess I'll stick to that then. Thanks again
    • Solved findClosestByPath returns an object, but can't find the path
      • skovborg

      4
      4
      Posts
      1434
      Views

      Yeah, I don't really know what I was thinking it was
    • Unsolved Can't Find Error.
      • SodaShola

      2
      2
      Posts
      1113
      Views

      Good evening (or morning) What error exactly? I don't see one posted in your question. Also, would highly recommend joining the Discord for Screeps there's a #world-help section that folks help people out in. Its a bit more dynamic and faster responses than the forums. I would say elif may be causing the issue if your doing JavaScript I'm not sure that works off-hand, looks like its a short for else if in python? Some people do play in python, there's a channel dedicated to it in the discord as well.
    • Unsolved This weird error.
      • sowonya

      4
      4
      Posts
      1695
      Views

      Update: it didn't work. my creeps are still just spawning and not doing anything.
    • Unsolved why my shard3 has 20 cpu limit?
      • csW

      3
      3
      Posts
      1658
      Views

      The Shard 3 is limited to 20 CPU this is correct. It's a Shard where every one without the unlimited CPU have the same chances as the paid ones

    Move Topic