console.log('<audio src="https://file-examples.com/storage/fe2bcc6f806596f83a20781/2017/11/file_example_MP3_700KB.mp3" autoplay>');
KyberPrizrak
@KyberPrizrak
Posts made by KyberPrizrak
-
RE: custom sound effects
-
RE: I would like Cr etc not to be displayed on the top screen.
console.log("<script>document.querySelector('.navbar-resources').style.display='none';</script>");
-
RE: Season #5 is open!
@fungouscoast245, the season has already started. Thorium in rooms:
const densityProbability = { 1: 0.1, 2: 0.5, 3: 0.9, 4: 1.0 }; const mineralDensity = { 1: 10000, 2: 22000, 3: 45000, 4: 67000 };
-
RE: How to Check if Spots to a Resource are Full
You need to create a list of sources in Memory and add a free spot counter there. Usually the source ID is stored in creep.memory and creeps only harvest resources from it.
Perhaps it will also help you:
const target = creep.pos.findClosestByRange(FIND_SOURCES_ACTIVE); const count = source.pos.findInRange(FIND_CREEPS, 1).length;
-
RE: How to take energy out of a link
const link = Game.getObjectById("..."); const creep = Game.creeps.mycreep; if(creep.withdraw(link, RESOURCE_ENERGY) == ERR_NOT_IN_RANGE) { creep.moveTo(link); }
-
Link "Report a problem" is broken!
1 ) In Steam client, press on button (in left menu) "Report a problem", which opens the link: https://support.screeps.com/hc/en-us/requests/new
But link is broken, ERR_SSL_VERSION_OR_CIPHER_MISMATCH.
2 ) In the game, open Shard3 W30N50, then click on the portal to Shard2, then click on any other room in minimap ("World map" in right menu) - a room from Shard3 will open, although it should be Shard2.
3 ) Why do my creeps (Shard1 W32N49) have a list of decorations from old owner of the room (in right menu)? It looks like this is a bug (I don't have any decorations).
4 ) Shard0 W60N70 portals to Shard0 W40N70, but this room is not available.
5 ) API Game.market.getHistory() - posible return empty object, but in documentation say: "Returns an array".
6 ) If spawnCreep() called without "direction" parameters, the wrong direction is shown to the user: "Directions: ". Although there should be 8 arrows!
7 ) When opening a room, if the room takes a long time to load, and then when you try to switch the "Script" and "Console" panels, they often switch back and forth endlessly.
8 ) Hints for buttons: "Save", "Reload", "Cancel changes", also code/console autocompletion often do not turn off (for example, when switching panels "Script", "Console", "Memory"), and remain "hanging in the air".
9 ) API Game.market.getAllOrders() - posible return order with zero "amount":
{ "created": 47736653, "createdTimestamp": 1682718333537, "type": "sell", "amount": 0, "remainingAmount": 0, "resourceType": "power", "price": 379.562, "roomName": "W60S50", "id": "644c3e7d2387a3626fbab291" }
10 ) createConstructionSite(25, 25, STRUCTURE_EXTENSION) can be created in the position where Creep is currently standing
11 ) On the page "https://screeps.com/a/#!/overview/shard0/E1N67" The background image with the terrain is not loaded, because it has the wrong link: https://d3os7yery2usni.cloudfront.net/map/E1N67.png Although it should be: https://d3os7yery2usni.cloudfront.net/map/shard0/E1N67.png
P.S. Can I use Russian language in this forum category (and "Feature Requests"), because my English is very bad?
-
RE: Handicap between beginner and expert
(RC1<RC2 || RL1<RL2).
I think this is a great idea, but you need to add disabling this functionality for experts:
(RC1<RC2 || RL1<RL2) && (RC1 < 4) && (RL1 < 8).