Navigation

    forum

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

    Posts made by JBYoshi

    • RE: Spawn not refilling energy

      Looks like it's https://screeps.com/a/#!/room/shard3/W3S35.

      Spawns only regenerate energy when the total amount of energy, in all spawns and extensions, is less than 300. Right now, you have exactly 300 energy in your spawns and extensions - five extensions are full with 50 energy each, an extension in the bottom left has 4 energy, and your spawn has 46. That adds up to 300, so energy regeneration stopped.

      posted in Technical Issues and Bugs
      JBYoshi
    • RE: Claiming a controller does/does not disable power

      It's the other way around. Unclaiming the controller (or letting it downgrade to 0) disables power.

      https://github.com/screeps/engine/blob/4a9595940970c5eac711ce045cfa571ba64d46db/src/processor/intents/controllers/tick.js#L54

      https://github.com/screeps/engine/blob/4a9595940970c5eac711ce045cfa571ba64d46db/src/processor/intents/controllers/unclaim.js#L26

      posted in Technical Issues and Bugs
      JBYoshi
    • RE: Season #1 announcement

      From what I can tell, it seems like the way the market will be disabled is just that NPC orders won't be generated. In order to create an order, you need to have some credits, and the only way to get credits is through an order that's already on the market. Without an NPC order to start the cycle, the market won't be active. Is that how it's going to be done?

      posted in News & Announcements
      JBYoshi
    • RE: How to install python package

      JavaScript is the primary programming language used for Screeps. However, if you want to use Python, there are some options available - see this post from a few months ago.

      posted in General Discussion
      JBYoshi
    • RE: Get shard names and decoration manipulation

      For the first one, you can look at Game.cpu.shardLimits. There's a key in there for every shard on the server.

      posted in Feature Requests
      JBYoshi
    • RE: Screeps Arena Preorder

      The alpha isn't currently available (the top post says "our current ETA for Closed Alpha is Q1 2021"), but you can preorder it from https://screeps.com/a/#!/arena if you want it at a discount.

      posted in News & Announcements
      JBYoshi
    • RE: Id<T>

      To fix that, you'll want to change the type of $roomCache.dismantle.ids. It looks like it's a string[] right now; if so, I think you need to change that to Id<Structure<BuildableStructureConstant>>[].

      posted in Help
      JBYoshi
    • RE: Id<T>

      Id<T> is basically an alias of a string. Usually, you can simply replace string with Id<T> wherever you need to.

      posted in Help
      JBYoshi
    • RE: How does each bodypart affect fatigue?

      For clarification, CARRY parts generate fatigue if and only if there is at least one resource in that part. As an example, if a creep has 3 CARRY parts and is carrying 60 energy, two of the three CARRY parts would generate fatigue. (If you start using boosts, the calculations get a bit more complicated, but the principles are still the same.)

      posted in Help
      JBYoshi
    • RE: movement speed - from odd no. of parts

      Your calculations are correct, but the time is always rounded up to the next larger whole number. It's more like the ceil() function than rounding. So your creep would be able to move every 2 ticks.

      posted in General Discussion
      JBYoshi
    • RE: Forum allows posts without titles

      It appears to be NodeBB. There's a configuration option for minimumTitleLength which defaults to 3 characters, but it's set to 0 right now.

      posted in Technical Issues and Bugs
      JBYoshi
    • RE: Newbie Qs. Log console and access over web?

      @ayrtep said in Newbie Qs. Log console and access over web?:

      Is there a way of saving the console text stream to a log file?

      Do you mean the output in the server console (in the separate server window) or the player console (in the Console tab of the room page)? If you want the server console, it should show up in a subfolder of SteamApps/Common/Screeps/server/logs (the SteamApps folder is usually in C:\Program Files (x86)\Steam on Windows, or ~/Library/Application Support/Steam on macOS). Unfortunately, I don't know of a way to do the same for the player console.

      posted in Private servers
      JBYoshi
    • RE: Room.deserializePath(path) not a funtion

      Are you calling it on Room or on an object of type Room? deserializePath belongs to the Room type, not to the room objects themselves, so you'll use Room.deserializePath(path) instead of, say, Game.rooms.E59N1.deserializePath(path).

      posted in Technical Issues and Bugs
      JBYoshi
    • RE: Factories, new resources, NPC Strongholds

      @chuckingame said in Factories, new resources, NPC Strongholds:

      Hi,

      Im using typescript, and i cant find updates of @types/screeps reflecting the API changes. what can i do ?

      According to https://github.com/screepers/typed-screeps/:

      As of 29 Oct 19, the published version on npm is out of date, and the project is currently updating to reflect the latest Screeps changes. If you wish to use these types, it is currently recommended that you copy the current typings manually.

      posted in News & Announcements
      JBYoshi
    • RE: CreateCreep getting error with passed array

      push() adds one element to the array for each argument it's given. If that argument happens to be an array, it doesn't add each element; it adds the array itself.

      In this case, you probably want to use the spread operator - try bodyBuild.push(...mainParts) instead. That breaks apart the elements of mainParts and adds each one.

      As an example, take a look at these two pieces code. The first one is what your code is doing right now. The second is what you're trying to do.

      // Option 1
      var foo1 = [1, 2, 3];
      var bar1 = [4, 5, 6];
      foo1.push(bar1);
      // foo1 is now [1, 2, 3, [4, 5, 6]]. It has 4 elements - three numbers and an array.
      
      // Option 2
      var foo2 = [1, 2, 3];
      var bar2 = [4, 5, 6];
      foo2.push(...bar2);
      // foo2 is now [1, 2, 3, 4, 5, 6]. It has 6 elements, all numbers.
      
      posted in Help
      JBYoshi
    • RE: npx creeps start failed -> code E404 - 404 Not FOund: creeps@latest

      @chuckingame said in npx creeps start failed -> code E404 - 404 Not FOund: creeps@latest:

      npx creeeps start

      Looks like a minor typo - try "screeps" instead of "creeeps".

      posted in Technical Issues and Bugs
      JBYoshi
    • Glitch with Steam description

      On the latest version of macOS, Steam shows a warning on the Screeps page:

      Your current MacOS (Catalina) is unable to run 32-bit games. This game may not run.

      This does not actually have any effect on the game - I can still play it perfectly fine. I just wanted to let you know since it could be misleading for new users.

      Screenshot of the Steam page

      posted in Technical Issues and Bugs
      JBYoshi
    • RE: Need to update the TypeScript declare at @types/screeps

      @types/screeps is a community-maintained resource. Someone will hopefully get around to it in the next few days. I'm taking a brief look at it myself, but I'm fairly busy this week; someone else can probably do it more quickly.

      posted in General Discussion
      JBYoshi
    • Replays are down on shard1

      Replays for my rooms on shard 1 are showing "No Data" for the past two weeks up until now. I've tested in both of my owned rooms (E59N1, E53S1) and some neighboring rooms.

      The browser console is giving "404 Not Found" errors for these requests.

      posted in Technical Issues and Bugs
      JBYoshi
    • RE: Market for CPU Bucket

      Clear Metric for value of CPU when doing cost benefit analysis within code.

      I’ve always thought of CPU value as determined by the value of a subscription token. Credits per tick = credits per subscription token / ticks in 30 days

      posted in Feature Requests
      JBYoshi