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.)
Posts made by JBYoshi
RE: How does each bodypart affect fatigue?
RE: 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.
RE: Room.deserializePath(path) not a funtion
Are you calling it on
Roomor on an object of type
deserializePathbelongs to the
Roomtype, not to the room objects themselves, so you'll use
Room.deserializePath(path)instead of, say,
RE: Factories, new resources, NPC Strongholds
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/:
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
mainPartsand 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.
RE: npx creeps start failed -> code E404 - 404 Not FOund: creeps@latest
npx creeeps start
Looks like a minor typo - try "screeps" instead of "creeeps".
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.
RE: Need to update the TypeScript declare at @types/screeps
@types/screepsis 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.