#Screeps Sandbox

1 messages · Page 3 of 1

rotund olive
scarlet fossil
wild delta
#
SyntaxError: Unexpected token u in JSON at position 0
    at Object.parse ()
    at global._init.global._start (:16017:61)
    at ()
    at make (/screeps/node_modules/@screeps/driver/lib/runtime/make.js:160:34)
#

Lucky I did this a few weeks ago

#

My code seems to be working fine regardless, sorry Harabi 😄

sullen condor
#

Oh, mine is broken

wild delta
#

Yeah, even though my bot has errors when the memory doesn't work, it's still mostly working it seems.

sullen condor
#

This room is doing 100 years war

#

Quite fun to watch

wild delta
#

Still going @sullen condor ^^

#

You are right, a long war

sullen condor
#

Both of us never give up

scarlet fossil
#

@sullen condor You're… stuck, somehow?

#

A lot of your rooms are either empty or spawning small creeps…

sullen condor
#

OH really

sullen condor
#

@scarlet fossil Thank you. I made an manual order looks like this last night for seasonal and this made my bot to die


    if (!Memory.done && Game.time > 682020 + 8100) {
      missionSiege.createMission(Game.rooms["E1S4"], "E2S2")
      Memory.done = true
    }
#

Since I don't have E1S4 in sandbox

sonic marsh
#

I'm glad I'm not the only one that accidentally pushes an update and kills the bot on another sever

sullen condor
#

Yeak. Grunt all killed it

sonic marsh
#

Oh, speaking of which, I guess I hadn't checked in a while. Mine's dead too

#

RIP

kind trench
#

@rotund olive any plans on making more reasonable prices on market (kind-of swc/ba style) ?

#

mostly to have some reasonable npc-level exchange ratio for minerals, being around 3:1 or smth (so for 3 of one mineral you can get 1 of other)

#

also, some npc-buy order for energy would be nice (for like 10-20:1 mineral ratio )

scarlet fossil
#

Dynamic market? It's still lacking some stuff, but at least feels like something that wouldn't feel like a waste of resources

kind trench
#

not dynamic

#

prices can be static (as are now)

#

just more sane than 0.01 on sell

#
  • npc energy orders as sinks for energy
rotund olive
#

Forgot to do thst

kind trench
#

@worn quest / @haughty cloak i don't like your solution for my energy overflow :p

haughty cloak
kind trench
#

nah, it's a nuke

haughty cloak
#

Apparently he decided to test on your room.

#

Ah. Well then! I guess he has those too now!

kind trench
#

ok that should handle it :c

#

and the code is not THAT hacky

haughty cloak
#

I'll have to log in and check to see what's going on.

kind trench
#

he's encroaching my space and by that finds some bugs in my code :p

#

or makes me to implement some non-happy-path behaviors

#

which is good

#

like here, red before i stopped contesting his remote, and blue after

haughty cloak
kind trench
#

got fancy reporting even

normal tendon
#

is CPU limited to 100 once you reach GCL 8 and above? I get notifications that say "Your CPU is increased to 120" etc when my GCL increases, but I noticed my max CPU is staying at 100. is that the limit for the server?

kind trench
#

on tick #2755312 creeps are killed, nuke has Landing in: 1 , on following tick #2755313 nuke lands and destroys stuff as expected

kind trench
rotund olive
#

Lmk if it's good

kind trench
#

i think it's about missing orders not terminals

rotund olive
#

Oh

#

I figure dyn market mod would auto handle that

scarlet fossil
rotund olive
#

I think dyn, maybe just normal market mod

scarlet fossil
#

Feels like normal, because IIRC market has at least the base commodities

polar path
#

IIRC what Psy uses for BA is the dynamic market mod but configured to use static prices.

oak elk
#

first i saw this i thought it is a nukenuke
then realise it's bunch of stacked terminals

scarlet fossil
#

Quite a stack, at that

polar path
#

How many terminals do you want?

Yes

wild delta
#

Looks terminal

kind trench
rotund olive
#

Sorry

#

Will try today to fix things

kind trench
#

hm, i'd appriciate a heads-up from @worn quest @haughty cloak 😛

#

or he'll lose a target to practice on

haughty cloak
kind trench
#

thanks. no problem for me that he's testing stuff against me, just so You/He knows 😉

haughty cloak
kind trench
#

;D

#

i just wait that Marvin fixes the market, so i can deploy lab code and start on porting quads from old bot

#

at least i finally have proper nuke-defense code

#

just just for update of code to handle multiple nukes

kind trench
rotund olive
#

😅 keep getting distracted every time I type ssh into my terminal

haughty cloak
rotund olive
#

Ok so I should switch to dynamic market mod? Or does it seem like I setup the market mod wrong?

kind trench
#

cannot you just add "ENERGY" in market.yml in screepsmod-market ?

#

switchitng to dynamic market should work also

#

and given semi-ofter resets i dont think inflation/potential exploiting would be "that bad"

kind trench
#

sadly will be offline to see landing 😦

rotund olive
#

last time I did docker compose down it reset the server. How do I make sure that doesn't happen this time 😅 ?

scarlet fossil
#

That was because of the map bug in adminUtils, right?

scarlet fossil
#

Otherwise, then… I guess it's a bit messy

#

I don't think you need to docker compose down, the start script will just pick up on the changes and apply them before launching the server

rotund olive
scarlet fossil
#

Possibly the start script will also get adminutils updated, saving the map from being deleted on server startup

kind trench
#

i think something changed with server ~9h ago - global seems to not persist long anymore
(blue are global resets on code push, red "natural ones)

scarlet fossil
#

Oh yeah, it's struggling

#
Error: Isolated is disposed
    at Object.run (/screeps/node_modules/@screeps/driver/lib/runtime/make.js:168:35)
    at EventEmitter.config.engine.on (/screeps/node_modules/@screeps/driver/lib/index.js:35:13)
    at EventEmitter.emit (events.js:203:15)
    at make (/screeps/node_modules/@screeps/driver/lib/runtime/make.js:166:23)
#

Random IVM disposals

pallid totem
#

@rotund olive

#

Reset time?

kind trench
#

i think it's dynamic-market that caused it ? or whatever Marvin was doing around the time when it started

scarlet fossil
#

Possible, but would be strange. I don't think that mod really has a big footprint… Not sure how it would relate to isolates, too

rotund olive
#

Uhg

#

I have never before had a server with such random problems

kind trench
#

blame it on the user /s

rotund olive
#

I think I'll reset it

#

If we're all good with that

pallid totem
#

I'm good with it

kind trench
#

yup

rotund olive
#

great

#

done

#

happened on docker compose down. Didn't test if docker compose stop would pause, oops

bitter lava
rotund olive
#

we'll never know

kind trench
#

@worn quest was

scarlet fossil
#

Time to reset the beta map!

scarlet fossil
#

@rotund olive I think it needs a restart?

kind trench
#

yup

scarlet fossil
#
Error: No runtime status data
    at Object.getRoomStatus (<runtime>:21155:23)
    at Function.getRoomStatus (main:31320:50)
    at RandomWalkerScoutOverlord.generateScoutMap (main:24396:42)
    at RandomWalkerScoutOverlord.handleScout (main:24534:22)
    at autoRun (main:24557:51)
    at RandomWalkerScoutOverlord.autoRun (main:18551:21)
    at RandomWalkerScoutOverlord.run (main:24557:14)
    at try (main:18492:33)
    at RandomWalkerScoutOverlord.try (main:18424:17)
    at RandomWalkerScoutOverlord.tryRun (main:18492:21)
    at Overseer.run (main:45447:22)
    at try (main:46412:38)
    at _Overmind.try (main:46261:17)
    at _Overmind.run (main:46412:17)
    at Object.main [as loop] (main:47389:16)
    at __mainLoop:1:52
    at __mainLoop:2:3
    at Object.exports.evalCode (<runtime>:15381:76)
    at Object.exports.run (<runtime>:20865:24)
kind trench
rotund olive
#

uhg

#

thanks

scarlet fossil
#

Reset again?

rotund olive
#

yeah

scarlet fossil
#

Just restart it

#
TypeError: Cannot read property '0' of undefined
    at WorldMapGrid._buildGridData (:28592:28)
    at new WorldMapGrid (:28539:26)
    at global._init.global._start (:16017:23)
    at ()
    at make (/screeps/node_modules/@screeps/driver/lib/runtime/make.js:160:34)
    at _tickCallback (internal/process/next_tick.js:68:7)
#

If you don't do that, there's a bunch of stuff that's just… broken because of the map import

#

@rotund olive boop?

rotund olive
#

ok there are like 8 ways to restart this thing

#

which way do you want me to restart it?

polar path
#

Roll an 8-sided die

rotund olive
#

1d8+0, on it

scarlet fossil
#

docker compose stop && docker compose start

#

Just gives a poke to all the services

bitter lava
#

TypeError: Cannot read property '0' of undefined at WorldMapGrid._buildGridData (:28592:28) at new WorldMapGrid (:28539:26) at global._init.global._start (:16017:23) at () at make (/screeps/node_modules/@screeps/driver/lib/runtime/make.js:160:34) at _tickCallback (internal/process/next_tick.js:68:7) yeah something went wrong

rotund olive
scarlet fossil
#

Wait a minute, it reset?

#

What's going on now…

scarlet fossil
#

Also, not ticking

rotund olive
scarlet fossil
rotund olive
#

thank, got it

#

so almost certainly it updated

scarlet fossil
#

It just does a bunch of install/uninstall steps to get the mods/package.json file in sync with the list of names, but there's nothing about versions in there…

rotund olive
#

💀 lol

#

the whole process of running a screeps server is quite unpleasant

scarlet fossil
#

That should bump the mod @rotund olive

scarlet fossil
#

Servers are so weird. Was caught into some sort of constant reset, with an "IVM disposed" error from time to time. Tried switching branches, no fix. Pushed the exact same code, sudden success

#

Now it's ticking and not bleeding CPU for no reason :/

rotund olive
#

Lol tf

kind trench
sullen condor
#

So, server is weird, not my bot. right?

#

I couldn't even spawn in

scarlet fossil
#

Yeeep, not doing good…

wild delta
#

👀 waiting to spawn

#

Appreciate the efforts gone into debugging / taming the server 🙇

stable smelt
#

I’m starting to think this could be a problem caused by memhack the RawMemory set one

#

Because I was able to cause it on a server

rotund olive
#

Will try some more commands

rotund olive
#

Ok how about now?

scarlet fossil
#

Reset again?

scarlet fossil
rotund olive
#

😅 hopefully it lasts

rotund olive
scarlet fossil
#

That was a nice opportunity to test the downgrade code, too

rotund olive
#

like 12 goddamn commands

#

hah nice

pallid totem
#

Server is ticking, bot is happy, life is good

scarlet fossil
#

No market orders tho

pallid totem
#

Thats what I do

kind trench
#

that breaks logic for some things

#

or requires writing one for stuff that does not happen on mmo/other servers

scarlet fossil
#

Oh, was just saying that after we switched to the dynamic market. It's not generating orders. It should be

rotund olive
#

We didn't switch to dynamic market, I just changed the market.yml

#

I'll add some terminals

pallid totem
#

@rotund olive What does the CPU look like on this server?

haughty cloak
#

The CPU on jaysee is so hot, it bitflips my terminals to have .store[RESOURCE_ENERGY] = Infinity. I've even destroyed the terminals and rebuilt them, but it comes back eventually. Marvin, you can turn off the cronjob that does that to E17S18 and E12S18. 🙂

kind trench
#

accessing .store directly is deprecated

haughty cloak
kind trench
#

nope, .store.get*(arg) methods everywhere

polar path
#

I don't see that documented in the docs

kind trench
#

i remember it being said/written quite some time ago

#

checking in engine / docs yields nothing

#

i see though that .carry.energy is deprecated https://screeps.com/forum/topic/2708/draft-store-prototype-api

(...) 
We're going to implement new global prototype called Store and use it in all properties such as StructureStorage.store, StructureSpawn.store, Creep.store (Creep.carry will remain as a deprecated alias), etc
#

did not know it existed even

polar path
#

Yeah, that is. As far as I know .store[RESOURCE_ENERGY] is the intended method currently.

pallid totem
#

Or did kalgen just give me free energy

sonic marsh
scarlet fossil
#

And as you can see from that one, .store[RESOURCE_*] is fine

heady oracle
heady oracle
pallid totem
#

@left forge I didnt even realise you were still an active player lol

left forge
#

haha me either. Getting back into it

#

it's fun there is a test server 🙂 who is running it?

#

Marvin?

pallid totem
#

Yep! Marvin

#

I was super confused when I saw you pop up and I clicked in to see a fairly decent start

left forge
#

i've got 5 remotes going, seems like an ok start!

pallid totem
#

Ye, hopefully it doesnt get too crowded in this corner

#

My bot isnt aggressive, so you should be fine

left forge
#

my bot currently doesn't auto attack rooms with towers, so pretty calm as long as you have a tower

pallid totem
#

oh, yeah, my bot can get that quite fast

#

Hopefully auto-safemode works now so if your bot does decide to go after me it should fully die

scarlet fossil
#

Oh hey, I got the Infinity energy terminal bug too!

#
w11n7.terminal.store.energy
=> Infinity
#

That broke everything ❤️

#

So, w11n7.terminal.store.getUsedCapacity(RESOURCE_ENERGY) is Infinity, and getFree is -Infinity. And yet there's nothing in the UI.

#

Just burned the cursed building down

scarlet fossil
#

@rotund olive It happened again 😭

rotund olive
#

😅 what can I do?

scarlet fossil
#

But that terminal is like a never-ending energy source, every time I build it

pallid totem
#

Is your room RCL 8

scarlet fossil
#

What's weird is that JSON.stringify(terminal.store) is {"energy":null} and yet the store helper methods are all out of whack on it

#

RCL6

pallid totem
#

Oh?

#

Usually it only happens at 8

#

At least in kalgens experience

#

I haven't had it happen in any of my rooms yet

scarlet fossil
#

Yeah, the thing is that having infinite energy right now means I should be able to spawn infinite upgraders, and I have a safety check to not do that

#

So I don't spawn upgraders

#

So… I die :/

#

…which given I was also debugging the emergency bootstrap system and had a bug, meant I lost a few colonies to code stupidity

pallid totem
#

My bot has the ability to handle it after kalgen reported the issue lol

scarlet fossil
#

I don't handle a lot of things lol

#

OOH. Infinity serializes as null. Can't believe I forgot about that 😅

#

That explains stuff

scarlet fossil
# rotund olive 😅 what can I do?

I'd love to see the object representation of 6701a54937a0e70c13a2e6bf, but I'm not even sure it would survive properly, given the JSON issue…

#

Like, see in what sort of cursed state the store is within that

#

…it's also weird that rebuilding just retriggers the bug

sonic marsh
scarlet fossil
#

Oh, right, use the terrain geometry 👍

kind trench
#

btw market still does not have energy-buy orders @rotund olive 🙈

scarlet fossil
#

Way to become infinitely rich, I guess

rotund olive
#

@scarlet fossil do you want ssh? I would need to ask everyone if they'd be comfortable. But it seems like you want to debug this

#

and I hope understandably, I'm not really feeling up to trying

#

(as in, the terminal bug not the market order stuff)

rotund olive
#

yuuuup

#

too busy not being lazy while I juggle 3 projects while going to uni

scarlet fossil
#

Well I guess I can do both 😅. Not sure how the others feel about me being admin tho

rotund olive
#

not too say my time is more valuable or I have less time to spare, I'm just lazier than Traxus

rotund olive
scarlet fossil
#

I don't really care about the code in any case, but the odd ways the server breaks? 😋

rotund olive
#

@haughty cloak @sonic marsh @polar path @dawn agate @kind trench @sullen condor
you're all the important people I think. Are you guys okay with Traxus having ssh? This meens he would be able to see your code like I am presently able to

#

Not to say that he will, or that I have 😛

pallid totem
rotund olive
#

funni

pallid totem
#

that JS is the same JS I get, I think its rollup doing its thing

scarlet fossil
#

lel

sonic marsh
pallid totem
#

@rotund olive That is the vote, give him SSH

rotund olive
#

it's not a majority silly

#

when you're in an orgy you don't ask for a majority of the people to consent, you get everyone to

pallid totem
#

what the FUCK is that example?

rotund olive
#

Argument from Consistency of Consent

polar path
pallid totem
#

true, just an, odd example

scarlet fossil
#

Hm, got another infinite energy terminal :/

pallid totem
scarlet fossil
#

At that point I'm spending more time chasing completely bonkers bugs than the ones I was actually interested it

pallid totem
#

this sandbox has some interesting bots lol

rotund olive
#

@left forge

sullen condor
#

My bot active there? Last time I logged in server was not normal

#

I might be pushing code with grunt all 😅

kind trench
#

eh can be, nothing groundbreaking there yet

left forge
#

my code is more curse than benefit lol

scarlet fossil
#

Crap. I recolonized one of the rooms with a broken terminal, and now there's ruins with infinite energy :/

pallid totem
#

Deterministic claim planner go brrr

pallid totem
scarlet fossil
#

Yeah, I did that a bit earlier. Until somehow maybe doing that borked my other room's terminal

#

And then it's pain. Whatever gets hit by it pretty much becomes useless

pallid totem
#

meh, dont worry, im litterally a energy sink, ill spend it rather fast

scarlet fossil
#

Like, you have a terminal that's full of energy but can't be transfered to

#

Right now, if you can get to W11N7 or W6N7, I guess you can grab energy from those

pallid totem
#

I think @rotund olive just hates me and refuses to give me infinite energy

rotund olive
#

; )

left forge
#

i'm seeing storage.store.energy = Infinity

#

is that the same issue?

#

another part of the code sees an amount though, that's interesting

#

hm, looks like an issue on my side, no surprise

#

ah... I think its the terminal

#

I was adding the terminal energy to the available... and it was infinite 😄

#

terminal doesn't have any displayed energy though.

scarlet fossil
#

Oh, another victim

#

For the record, I got root access. I'm gonna poke at the objects to find those who have infinite stuff

pallid totem
#

Bro

#

Everyone gets it except me

scarlet fossil
#

7 matches, all terminals or ruins of one

sonic marsh
#

I hope I don't get it, god only knows what that would do to my hauling calculations

polar path
#

I think the market mod is suspect.

scarlet fossil
#

Is it? I don't think the server logs are enabled, so I just get the usual "process ran" chatter

#

List of affected stuff is ```
[ 'E12S18:terminal:66fea8ced57da70bdd128755',
'E17S18:terminal:66fead6d4009ab0c22224e76',
'E8S13:terminal:6701bf59c89cdd0c2aa8ba3f',
'W6N7:ruin:6701ef403188f3003b934e24',
'W11N7:ruin:6701ef403188f3003b934f1e',
'E12S8:terminal:67022e8f9ab2790bde4efce8',
'E12S13:terminal:6702bb8cc89cdd0c2aa9806e' ]

I'm gonna update those back to 0
polar path
#

The issue affects terminals, which I could see the market mod touching, and it started happening after attempts to get the market mod working.

scarlet fossil
#

I might have deleted those things completely :/

polar path
#

Problem solved! :P

scarlet fossil
#

Yeah, I goofed up and accidentally replaced the documents instead of setting new values

scarlet fossil
#

@haughty cloak @left forge Do check your bot, I'm pretty sure they caught up on what was going on, but still

scarlet fossil
pallid totem
scarlet fossil
#

That's every object that had Infinity in the store.energy property

pallid totem
#

You should put infinite energy in my terminal because I never got bug :(

scarlet fossil
#

I'm sorry, I can't do that, Dave

rotund olive
#

lol

#

Ty Traxie

scarlet fossil
#

It happened again 😭

sonic marsh
#

(╯°□°)╯︵ ┻━┻

pallid totem
#

to who?

sonic marsh
#

I'm really curious where this is coming from lol

scarlet fossil
#

Silten

#

I think the terminal it just rebuilt

pallid totem
scarlet fossil
#

@sonic marsh Psst You might want to have a look at 6701ef403188f3003b934f01

sonic marsh
#

Oh, hey, look at that

#

Hmm. My room should be looting that automatically. Odd.

#

Free stuff 😄

left forge
#

Hmmm I think my transfer creep is just pulling infinite energy from that terminal haha

scarlet fossil
#

Yeah, that's what mine did too. So it choked storage full of energy and then stuff started breaking a bit from having so much

left forge
#

Seems to be fine…. Limited by upgrader spots now with all that energy coming in. At some point the room will stop harvesting energy probably

scarlet fossil
#

Okay, there's two new ones, so it's still happening :/

#

Your terminals again, @left forge. Weird how it's the same two…

#

It's something when it sends

pallid totem
#

@left forge Do you sell to the market?

scarlet fossil
#

I'm looking at E12S13, resetting now. Look at how it gathers energy, then sends… somewhere, and then it's borked

#

So it might be the market orders then…

left forge
#

Yes there is market code

scarlet fossil
#

And whoop, Infinite energy

pallid totem
#

Asking for a friend

left forge
#

Hard to tell now I’m afk

pallid totem
#

Im going to start furiously writing market orders

#

How do you fuffil orders, just send the resource there?

scarlet fossil
#

It's sending energy to the other room

#

Here's how it looks: ```

storage.db["rooms.objects"].findOne({ _id: "67031bd3e729200bf0bf3561" })
{ _id: '67031bd3e729200bf0bf3561',
type: 'terminal',
x: 27,
y: 37,
room: 'E12S13',
notifyWhenAttacked: true,
user: '670063683188f3003b9345a2',
store: { energy: 10000, K: 0, O: 0 },
storeCapacity: 300000,
hits: 3000,
hitsMax: 3000,
send:
{ targetRoomName: 'E12S8',
resourceType: 'energy',
amount: 1000,
description: '' },
cooldownTime: 623019 }
storage.db["rooms.objects"].findOne({ _id: "67031bd3e729200bf0bf3561" })
{ _id: '67031bd3e729200bf0bf3561',
type: 'terminal',
x: 27,
y: 37,
room: 'E12S13',
notifyWhenAttacked: true,
user: '670063683188f3003b9345a2',
store: { energy: Infinity, K: 0, O: 0 },
storeCapacity: 300000,
hits: 3000,
hitsMax: 3000,
send: null,
cooldownTime: 623062 }

pallid totem
#

:)

#

I did it

#

But for some reason, my thing isnt withdrawing energy from it

scarlet fossil
#

E2S2, right?

pallid totem
#

Si

pallid totem
#

Sender gets the bug, reciever gets the energy

scarlet fossil
#

So weird…

pallid totem
#

Real quick, dont delete my terminal quite yet, I need to test something with WASM

#

Its not withdrawing or using the energy

scarlet fossil
#

Sure

#

Are you using JSON to serialize?

#

'cause Infinity is null in JSON-speak

pallid totem
#

idk how its being transferred, im going to find that out now lol

scarlet fossil
#

That's why the UI doesn't show the energy at all

#

Or why it was so confusing to me at first

#

You get both null energy and yet the thing is full 🤣

pallid totem
#

Infinity doesnt work :(

scarlet fossil
#

Too bad~

#

The transactions are correct, too

#

At that point I'd need to poke some console.logs inside that thing to see up close what's going on

#

I guess… something wrong with the distance fee? That's where I'm thinking it goes wrong, but why? ¯_(ツ)_/¯

scarlet fossil
#

I didn't, no

#

Two broken terms at the moment, E12S13 and E2S2

pallid totem
#

Sending to a broken terminal doesnt appear to break the sender

scarlet fossil
#

About to reboot the server. I added a bunch of logging, hopefully I wrote that perfectly 😟

#

🤞 I don't accidentally reset the whole server, too

pallid totem
sonic marsh
#

I was 100 ticks off from breaking my RCL4 speedrun PR, so at least if it gets nuked again I can have another go XD

scarlet fossil
#

Almost got it

#
[engine_main] market: put 141 of K from [object Object] to [object Object], pre: 3141, feeTerm: 10000, amount: 141, fee: 22
#

I don't have a terminal tho @pallid totem do you mind doing the trick again?

pallid totem
#

One moment

scarlet fossil
#

Just means you don't have enough resources

#

That was you?

market: put 1 of energy from [object Object] to [object Object], pre: 122250, feeTerm: 122250, amount: 1, fee: 1

pallid totem
#

yep

scarlet fossil
#

Welp, I guess the reboot fixed it or something :/

pallid totem
#

Only managed to profit 1.2 million energy :(

scarlet fossil
#

sigh

scarlet fossil
#

Sorry for the unexpected server void. I accidentally ran docker in non-detached mode, and yanked the server when I closed my terminal tab 😅. Should be back up, and there's still no Infinity to be seen anywhere

scarlet fossil
#

I just cleared the market after checking the config for it. Hopefully it'll regenerate prices properly now, and also add things for energy

#

energy sell price of 0, nice facepalm

#

Honestly tempted to switch to the dynamic market, set it to static mode. 'cause it knows how to generate proper commodities prices from the base prices

haughty cloak
#

Anything that involves a market with buy/sell for energy is great!

pallid totem
#

@scarlet fossil Can you allow for minerals to be sold by NPC's?

#

(particularly ghodium)

#

(For nukes)

#

(because I dont want to write lab code)

sonic marsh
#

Can we take a vote on it?

#

I vote you don't do that

#

So Infinity has to write lab code 😄

pallid totem
#

yeah lets not drive infinity to jump off a building

sonic marsh
#

Character growth

#

Learn through hardship and whatnot

pallid totem
#

but like

#

I dont have Z or K

sonic marsh
#

barter

pallid totem
#

and the only other person with a terminal doesnt make boosts NOR do mineral harvesting

sonic marsh
#

lmao

pallid totem
#

well

#

more people have terminals now

sonic marsh
#

I should have a terminal up soon. Actually I need to expand probably

pallid totem
#

@left forge Ill buy ghodium off of you

sonic marsh
#

Nah, never really been a priority

pallid totem
sonic marsh
#

Oh? lmao

left forge
#

alas, I have no ghodium

#

… yet 🙂

#

Lab code is a fun problem, kind of recursive

pallid totem
#

I know HOW to do lab code

#

I just dont want to

#

Like

#

really dont want to

#

I have it on my obsidian notebook in pseudo code, its really simple, its just that, its annoying because It integrates tightly with terminals and I dont want to write that code either

sonic marsh
pallid totem
sonic marsh
#

They're coming back. It did cut them off for whatever reason, hard to say. CPU use or spawn utilization for haulers or something, who knows

sonic marsh
#

Tons of ways to structure it though, if your method doesn't work well without the terminal code then it might not be worth it to fight and try something else

sonic marsh
pallid totem
sonic marsh
#

I'm always concerned about my bot XD

#

There, mostly back to normal. Dynamic remotes can sometimes be very dynamic. We'll call it a feature, not a bug 😛

pallid totem
#

I used to have that

#

Until I didnt

sonic marsh
#

They're a massive pain lol

#

But to be fair, everything automatic/dynamic is

kind trench
#

I'm against ghodium being sold by npc

#

Hardcoding labs to produce is simple enough

#

And does not require "server specific" logic like energy-overflow due to not enough energy-sinks , in case someone would want to make "no energy orders" comparison

pallid totem
#

I can't SK mine (yet), and I can't use terminals (yet),

#

Mostly laziness, but still

haughty cloak
#

If anyone wants a few minerals and or boosts dropped into their terminal because it'll help get your code improved, lmk. Think I have most, and if not will claim another room and make it happen. (Update on my bot: backlog in order is applying boosts to creeps, duos, quads.)

kind trench
#

looks like server is having issues @rotund olive @radiant lily @scarlet fossil ?

scarlet fossil
#

Indeed

#

[engine_runner1] process 1071717 exited with code null, restarting...

Great…

scarlet fossil
#

Not sure what happened. I kicked it, it crashed a bit more, and now I think it's not crashing anymore

kind trench
#

looks ok

#

usually when similar thing happens on my docker server it just makes ticks 5x longer, without code crashing

scarlet fossil
#

Said [backend] invalid room and went on happily

#

I can also see it complaining about @pallid totem's bucket. 3 times, then went away

pallid totem
#

Seems to be partially the fault of the server

#

But most of the bucket things are most likely me lol

scarlet fossil
#

Yeah, something just caused it to freeze. It was ticking, but the runner crashing stopped any code from actually running

kind trench
#

i have expansion recalculating on heap reset

#

also, it seemed to happen after i pushed code 🙈

#

my theory for some time is, that if you just happen to push code at wrong time, shit breaks

#

but never managed to find anything in logs or do it on-demand

#

or on global reset

scarlet fossil
#

runtime restart signal

#

The log files are weird, I'm not sure how much I can get out of them :/

pallid totem
#

Misread that message

scarlet fossil
#
screeps-1  | 2024-10-23T20:02:06.907546980Z [engine_main] Game time set to 2052657
screeps-1  | 2024-10-23T20:02:07.817555424Z [engine_runner1] process 2314 exited with code null, restarting...
#

And then it got caught into that restart loop, with that runtime restart signal spewed out from time to time

#

¯_(ツ)_/¯

pallid totem
#

Oh, uhhmmm

#

My bot might be doing the halt thing again

rotund olive
#

Uhg lol

sonic marsh
#

Kind of impressive that your bot is a menace to both official and community servers lmao

pallid totem
#

:)

#

What can I say, bot so feared that o4 even had to intervene

kind trench
#

@rotund olive @scarlet fossil server borked again it seems ?

#

totally not after i pushed code moment earlier

scarlet fossil
#

Looks like it is

kind trench
#

🙈

#

1st it did not accept my code despite being only 17kloc, then i tied pushing via steam-client sync, it saved but stopped ticking, and then threw

[8:53:54 PM]SyntaxError: Unexpected token u in JSON at position 0
    at Object.parse ()
    at global._init.global._start (:16017:61)
    at ()
    at make (/screeps/node_modules/@screeps/driver/lib/runtime/make.js:160:34)

after Game.cpu.halt()

scarlet fossil
#

Same issue. Runner is null-exiting

#

Stopped ticking while I try to see if I can get it to work properly

#

A restart didn't do anything, so 😩

#

process 36 exited with signal SIGSEGV, restarting...

#

So it is a signal. Great

kind trench
scarlet fossil
#

docker compose stop then start

rotund olive
#

This server...

#

Thanks Traxus

#

Anything I can do?

scarlet fossil
#

I'm poking at it. I just noticed it ticked at least two times

#

I dropped a few console.log to try and pinpoint why it's segfaulting, but sadly it either never got anywhere near to those, or I completely misunderstand how that thing's logging works

#

I don't like that it's SIGSEGV though

kind trench
#

hum

#

i removed my code

#

did cpu.halt() and i see other tick

scarlet fossil
#

Oh, hey, that did appear to help

kind trench
#

aaaand not anymore it seems

#

uploaded code

#

wtf

scarlet fossil
#

Right, it's crashing again

kind trench
#

ok let me delete my code again

#

and upload again to crash it again

scarlet fossil
#

Lol

kind trench
#

Y_Y

scarlet fossil
#

At that point you should push that to MMO, let o4 handle the issue

kind trench
#

why my boosting code crashes the server

#

kind-of cannot

scarlet fossil
#

I have no idea what's even happening. The two console logs I added don't even seem to trigger, and yet it's running code

kind trench
#

because if it does not crash server, this is not compatible with what i have on mmo :p

#

hum i commented one thing that uses reccurency, lets see

#

ye, looks like it was it

scarlet fossil
#

That's crazy that this manages to take it down completely…

kind trench
#
export const RECIPES = {
    recipes: null,
    load() {
        console.log('Loading RECIPES to heap');
        let RECIPES = {} as any;
        for (const c1 in REACTIONS) {
            for (const c2 in REACTIONS[c1]) {
                const r = REACTIONS[c1][c2];
                if (!RECIPES[r]) {
                    RECIPES[r] = [c1, c2];
                }
            }
        }
        this.recipes = RECIPES;
    },
    get(): { [x: string]: ResourceConstant[] } {
        if (this.recipes == null) {
            this.load();
        }
        return this.recipes!;
    },
    getRecipe(boost: MineralBoostConstant): ResourceConstant[] | undefined {
        return this.get()[boost];
    },
};
RECIPES.load();
(...)

    public produceBoost(rName: string, compound: ResourceConstant | undefined): void {
        if (!compound) {
            return;
        }
        const ingredients = RECIPES.getRecipe(this.production[rName]);
        if (!ingredients) {
            console.log(`[${rName}] needs basic ${compound}`);
            resourceRequests.add(rName, compound);
            return;
        }
        // returns amount of resource in room
        const iData = inventory.GetData(rName, ingredients);
        if ((iData[ingredients[0]] || 0) < 300) {
            console.log(`${rName} misses ${ingredients[0]}`);
            return;
            // return this.produceBoost(rName, ingredients[0]);
        }
        if ((iData[ingredients[1]] || 0) < 300) {
            console.log(`${rName} misses ${ingredients[1]}`);
            return;
            // return this.produceBoost(rName, ingredients[1]);
        }
        console.log(`${rName} will produce ${compound}`);
        return;
    }
#

the snippet

#

in theory this should not have infinite recurrency since it has the check on !ingredients and return

#

hangs again - but thats not on me :p

scarlet fossil
#

No, I just restarted, still trying to understand why I'm not seeing my logging

#

It should be running again

#

And yet, does not log

rotund olive
#

for a second I thought you had grabbed ahold of my recipe site's code

#

recipes is a funny way to describe chemical reactions to me for some reason

#

hmmm maybe try without that code?

#

just to see

scarlet fossil
#

Oh, it's definitely that. Server instantly start segfaulting when that code shows up

#

I'm gonna PR the segfault thing back into the engine. At least so there's something coming out of this

rotund olive
#

Lol sweet

scarlet fossil
#

It's not much, just clarifies the failure. Doesn't go anywhere near explaining what's actually going on

pallid totem
#

This code + .halt() spam = crash?

scarlet fossil
#

No idea, I just know it's bad enough to cause the Node process itself to crap out and burn

pallid totem
#

@teal sapphire

#

This seems rather bad

scarlet fossil
#

And I don't even know from which part, as the few logging statements I added to runner.js didn't show up anywhere

pallid totem
#

Im tempted to push this code he sent to MMO, but I dont want to dampen other people's experience

scarlet fossil
#

Well, that would be one hell of a way to get it fixed 😅

#

It's just weird that it causes a crash. Pretty sure a stack overflow would just raise normally

#

Like, the runner completely SIGSEGVs

pallid totem
#

The Node.JS process runner SIGSEGV's?

#

That sounds like either a node bug or a RAM issue

#

This versio of node has a ton if issues

rotund olive
#

turns out running a 200 year old version of node means there are a bunch of bugs that have since been fixed?

#

definitely a weird bug

scarlet fossil
pallid totem
#

Yeah, node needs some love from o4 lol

#

Theoretically the community should be able to do this stuff themselves though?

#

I mean, some polyfillage might be needed for some removed APIs, but like, it should? be fine

scarlet fossil
#

Alina managed to update a lot of stuff, IIRC, from that attempt at running a more recent version of Node

#

Maybe that would be worth making a community server out of it?

rotund olive
#

lots of work and no money being given to do it : P

#

would rather just work on another game where there is active development

pallid totem
wild delta
heady oracle
#

even if its slightly green, fuzzy and resembles swiss cheese a little

#

thats just suprise features!

kind trench
#

@pallid totem anything special going in E17N4 that makes you move crapload of combat creeps there ?

kind trench
pallid totem
#

fuuuuuck

pallid totem
#

Nightdragon used to be there

#

I was wondering where my CPU went

#

Those guys MUNCH the CPU budget

bitter lava
pallid totem
bitter lava
pallid totem
bitter lava
pallid totem
#

yep

scarlet fossil
#

@kind trench Still testing your luck in W2N6? I just spotted a military creep 😅

#

Oh hey, I accidentally took out the server

#

Asked for map visuals in range 400 facepalm

sonic marsh
#

It's been more than zero but still, the poor thing has been through a lot

kind trench
#

still did not touch the "dont mine hostile remotes" code

kind trench
#

@scarlet fossil wtf is happening in W2N6

#

my small blinky is happily blinkng your defenders that are ignoring it

#

it killed some it looks like around ~2898500

#

looks like it drained W2N8

scarlet fossil
#

Not sure, you caught drills

#

Those are the power miners, they're not exactly hostile

kind trench
#

drills have 20ATTACK ?

scarlet fossil
#

Possibly, yeah

#

They're on a MAAM pattern with no limit

#

Normally they're part of a set with coolant (those have the heals)

#

There's 2 coolants per drill, one set per power bank

#

I should be working on estimating the defense force better. This is just facepalm

bitter lava
bitter lava
rotund olive
#

but thanks for letting me know

bitter lava
kind trench
#

@cunning osprey looks like is running OM ?

scarlet fossil
#

Looks like it :/

#

Vanilla one at that

#

@rotund olive vote to block/delete/maim?

pallid totem
#

Delete

kind trench
#

also, will be testing my boosting code so might cause few dead ticks

kind trench
#

oki, found out where i made infinite recursion that crashes server ^_^

rotund olive
#

Oh, I'll kill

rotund olive
#

Oops I forgot

#

Sorry doing stuff with this server is weird when I don't play screeps anymore

kind trench
#

o you stopped completely ?

verbal moth
#

oh, huh

#

not enough equality in the sectors? troll

kind trench
#

breadline too long

rotund olive
#

Lol yes that

#

No I am working on other things now

verbal moth
#

i knew bread bot was just a diversion from commerce bot

sonic marsh
rotund olive
#

Lol

verbal moth
#

there's a market dude?

bitter lava
#

requires cpu privileges removed

rotund olive
#

Right sorry

heady oracle
#

NOT THE FEEESH

bitter lava
#

feesh is still with us

scarlet fossil
#

Bonked CPU

bitter lava
#

yay

#

wait can you set it to 1 cpu so it still works but barely

scarlet fossil
#

I guess?

#

I was looking at deleting their objects completely, but controllers make that a bit hard

#

Ah, also, I can't set CPU to 1. The GCL-to-CPU stuff will kick in and boost them back up

bitter lava
#

how about - (their gcl x 20) + 1

scarlet fossil
#

There's so much weird stuff going on… I tried setting blocked to true, but that resets to false

bitter lava
#

blocked?

#

is that removed from server or cpu gone

scarlet fossil
#

'unno. There's a blocked key in the user object

#

I thought I could stop them from logging in with that, but I don't think that actually sticks, for some reason

bitter lava
#

oh

kind trench
#

cant just set their gcl to 1 (or 0) ?

#

should fck it up compeletely

bitter lava
#

@scarlet fossil

scarlet fossil
#

Yeah

#

Sorry, I was looking at the neverending fight in W2N6

bitter lava
scarlet fossil
#

Oh, here

#

Gadjung colonized a room just next to me, and his bot's been doing squirmishes into my remote

#

So I get to witness how bad OM's combat code can be

#

I'm GPL 71??

#

Well, time for some powercreeping, I guess

kind trench
scarlet fossil
#

Yeah, makes sense

kind trench
#

still tweaking with ramparts and walls design

#

now it seems it works good enough everywhere

scarlet fossil
#

I can see that. That's a lot of walls you got there

kind trench
#

just need to calculate passage ramparts because that got forgotten

#

but running debug still eats 400cpu/tick 🥲

scarlet fossil
#

…My pcreeps configs are all wrong :/

#

I don't think I can level up the configs I want properly

#

It's funny how that game always throws new problems at you in unexpected places, like… how do you maximize a pcreep's power levels configuration

kind trench
#

looks like your powerbank creeps died in my room ;D

scarlet fossil
#

Likely. I don't think I've got proper "don't go there" code (unless I set it manually). With time a room's hostility's gonna decay and get back to "potentially safe"

bitter lava
#

did someone send me 1000 biomass?

#

randomly appeared in my terminal on tick 4814378

cerulean wadi
#

any chance we can switch to the newer market mod that has commodity orders?

scarlet fossil
#

I guess that's doable, yeah

cerulean wadi
#

I'd recommend setting it to 'fixed' instead of dynamic, unless we want this server to finally be the test bed for me to fine tune the dynamic stuff 😂 (please no, it's been on my todo list for 4 years)

scarlet fossil
#

Yeah, that's what I was thinking of doing; just have a static set of orders and no price changes.

#

I'll have a look when I get the time

kind trench
#

@scarlet fossil you'd be up for testing offense code this weekend ?

scarlet fossil
#

Possibly, yeah

#

I'm gonna set up the dynamic market, so expect a bunch of restarts while I do that

#

Okay, done. Pretty sure the prices have taken a dive compared to what they were previously though

scarlet fossil
#

@cerulean wadi Got the dynamic market running. Just a few things I'm noticing: I'm not sure why it's making a different amount of order in some cases

#

…wait, now they're all very big (2M+)

#

That's what I noticed, but now there's a few resources where there's only big numbers left

#

Also this:

#

I've Typescripted the config file, and those look fishy to me

#

Wait, the big numbers are because of Consider this a "per user amount" as it is multiplied by the number of active player terminals, I think

#

Nevermind then

cerulean wadi
#

Ya if I remember right it's supposed to scale based off how many eligible traders exist. It's been a long time since I dug into that tho

leaden sinew
cerulean wadi
bitter lava
#

@scarlet fossil are you fine with this?

scarlet fossil
#

Yeah, no issue with me.

bitter lava
#

ok thanks

#

will there be any remoting issues? i know OM enjoys its remote coverage

scarlet fossil
#

I limited my OM's expansion to 6 rooms, so it's not gonna grab anything new

#

And I'd say the remoting as it is now is complete: all the rooms that are reserved are the rooms it plans to use

scarlet fossil
#

Would that make a difference?

#

Them the core rules about remote counts: ```js
static settings = {
remoteSourcesByLevel: {
1: 1,
2: 2,
3: 3,
4: 4,
5: 5,
6: 6,
7: 7,
8: 9,
},
maxSourceDistance: 100,
};

bitter lava
bitter lava
scarlet fossil
#

The only reaction OM has to invasions is to pile up creeps

#

Unless I decide to just drop it and remove the directives manually. I'm not even sure it's not gonna try to set up the remote back if I don't block it completely

bitter lava
scarlet fossil
#

It might switch if I convince it that the remote's not worth at all, but that's not automated

#

I just started writing some code to track skirmishes, because of Gadjung's placement on the other side

scarlet fossil
#

Yeah 🤣

#

I just saw 4 ticks of it being yours

cerulean wadi
#

Find my pre 7 rooms tend to get spawn locked trying to keep up with remote creep production as well

scarlet fossil
#

Yeah, I got a bit of that as well. I've barely implemented spawn utilization tracking from Harabi's blog post, but it's not wired into anything yet

kind trench
#

W1N6 is bleeding energy on that remote, but there are other rcl8 happy to just dump energy into it

bitter lava
#

@rotund olive ichigo requires CPU privileges removed, using slothBot OS bot

kind trench
#

your creep just sits and waits for bravo i think

cerulean wadi
#

He shouldn't be punished, his punishment is using my code

bitter lava
#

yes

bitter lava
cerulean wadi
#

Economically it's... Ok.. the military code is shit

#

It is fully hands off tho, so could be worse

#

I only recently came back to screeps to give it some much needed TLC

bitter lava
cerulean wadi
#

Whenever I spawned in here was when I started updating it again.. prior to that it had been a few years before any real work was done to it

polar path
#

I still haven't seen anyone using the leaked version of my bot. Which would be against TOS but also very funny.

bitter lava
polar path
#

Yeah, it's deleted from GitHub. There's probably a copy of it somewhere though if anyone cared enough to take one. Once information is out, it generally stays out.

rotund olive
#

I have a copy

cerulean wadi
#

Sloth bot does everything in the game, just does none of it particularly well

rotund olive
#

does it win?

cerulean wadi
#

It dies and stops having to do things, so depends on your definition of winning

#

huh... he spawned into a 1 source room and my harvester code is as confused as he is

#

The logic just assumes it will always be a two source room, because why wouldn't it be 😂

kind trench
#

does it crash trying to interact with sources[1] ?

cerulean wadi
#

No the second harvester will just sit next to the other one and stare at it menacingly

polar path
kind trench
#

i had 1-source room for X once

#

was definitely not worth it, especially without remote mining nor any resource-sharing code when it was developing

scarlet fossil
#

And I'm definitely too lazy right now to work on something a bit less… eh

#

Between the defense directive getting removed at random, usually while it would actually be useful, leading to creeps losing their managers and thus becoming dead weights because the idling system doesn't reaffect them properly, the combat code thinking "I must take care of that creep that could be doing potential damage to nothing that just stepped in the room now", making them switch targets from claimers which are definitely getting closer and closer to the unprotected controller, or reservers that go "oh no, I'm in danger!" and spent the majority of their TTL edge-dancing, I have my fair share of creep combat memeing

#

What's the vote on ichigo/SlothBot?

#

…what's up with the abandoned @bitter lava rooms, too

kind trench
#

where did it spawn

scarlet fossil
#

W7N14

kind trench
#

a quite remote place, idc then

scarlet fossil
#

Yeah

kind trench
#

if would be closer would vote for leaving since i'd need a punching bag soon :p

bitter lava
kind trench
#

you're far too, so i guess @scarlet fossil will have to suffice :p

scarlet fossil
#

I don't know much about SlothBot, but possibly could make a nice 👊💰. What I don't want is it spreading uncontrollably and lock up whole swaths of the map

kind trench
#

also i think my defense code should be ready tonight @scarlet fossil

scarlet fossil
#

Oh, that's gonna be an interesting night then

#

I think my quad code's broken. I should check that

#

I haven't touched the codebase for a couple months now, and I left in the middle of a bunch of stuff, so I'm lost in a sea of branches

kind trench
#

so a forest then

scarlet fossil
#

Kinda, yeah 🤣

kind trench
#

heh, i'm the master type-of-guy

#

with lot's of bugfixes and other code inside each commit

scarlet fossil
#

Yeah, my master becomes like that once I'm relatively sure I'm done doing changes to something

#

But before that happens? Tree-fest

kind trench
#

i guess you can send a quad

cerulean wadi
#

Well.. at least my bot hates itself

kind trench
#

ok maybe not, tried to fix roads in layout and messed stuff up

bitter lava
#

@cerulean wadi your harassers seem to be wandering into my highways

cerulean wadi
#

It has traxus flagged as an NCP and is set to not like them by default

#

it shouldn't sit outside your rooms

bitter lava
#

what did traxus do

cerulean wadi
#

used overmind as a codebase

bitter lava
#

its modified greatly though

#

i will defend

kind trench
#

@scarlet fossil whyen the quad coming

bitter lava
cerulean wadi
#

it sees an overmind, it assumes it's an ncp 🤷‍♂️

bitter lava
#

remove?

cerulean wadi
#

no?

kind trench
bitter lava
cerulean wadi
#

I mean, attacking my harassers passing by in a highway room will get you your own harassers

bitter lava
#

yay

#

extra code to test

bitter lava
#

like "you have this much hate so this many harassers"

cerulean wadi
#

ya it has a standing tracker that reverts to 0 over time

bitter lava
#

ok

#

what if NCP

kind trench
#

also @scarlet fossil did you manually stopped defending W2N6 ?

bitter lava
#

will keep sending?

cerulean wadi
#

ncp's have their own array. It's holdover code from when we had an entire alliance on mmo bent on wiping them out (as they're shit for the game imo)

cerulean wadi
#

my combat code is currently broken tho, so it sends creeps that don't do a whole lot until I get around to fixing it

bitter lava
#

oh

cerulean wadi
#

turned off harassers until I work on that, otherwise I'm just throwing away energy 😂

kind trench
#

donut making enabled, lets see what bugs it'll trigger in my code

scarlet fossil
#

My ability to track what's happening is limited and coding for that even worse

scarlet fossil
#

@radiant lily Server appears to be unreachable? Is there any maintenance going on or something?

#

Guess it fixed itself. Sorry about the ping

#

I couldn't SSH to it, so that was a bit weird

#

@kind trench I guess we just switched remotes, huh?

kind trench
#

it works ^_^

kind trench
cerulean wadi
#

😅 the server did die last night as I was uploading a code change

bitter lava
kind trench
#

nah, ppl usually dont traverse in quad formation

#

that's just aestethic (and general movement breaker)

bitter lava
#

how do you do it?

#

claim and unclaim remotes with construction sites?

kind trench
#

yes, claim, keep at rcl2, build walls, unclaim

bitter lava
#

cool

bitter lava
#

@scarlet fossil can i pls have remote to right

scarlet fossil
#

I still have the one right of that colony

bitter lava
#

thanks

scarlet fossil
#

Actually, you can have all of that

bitter lava
#

huh?

scarlet fossil
#

I overextended, and I'm draining bucket

bitter lava
#

oh

#

which remotes?

scarlet fossil
#

I think I'm gonna have to delete a colony :/

scarlet fossil
#

Okay, CPU balance has been restored

#

I'm wondering if the server isn't acting up a little

scarlet fossil
bitter lava
#

yes

#

its weird though

#

spikes from 0 CPU used when something happens to my average CPU used sometimes

scarlet fossil
#

Yeah, and "isolate disposed" errors from time to time?

#

Just had one here

bitter lava
scarlet fossil
#

[engine_main] FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

#

Server's unhappy

bitter lava
#

no not that, sometimes the error indicator flashes

#

its probably that but i didn't check

scarlet fossil
#

Restarting server

#

Crap, it crashed again 😭

bitter lava
#

again???

scarlet fossil
#

@pallid totem You're showing up in my logs. Mind having a look at what your bot's doing? It's logging about an empty bucket just after a crash happens

bitter lava
#

wait crash as in ticks went off or we need to respawn

scarlet fossil
#
screeps-1  | 2024-12-15T13:08:09.318087299Z [engine_main] 
screeps-1  | 2024-12-15T13:08:09.318119119Z <--- Last few GCs --->
screeps-1  | 2024-12-15T13:08:09.318125189Z 
screeps-1  | 2024-12-15T13:08:09.318129799Z [162:0x5617e91c6940]    99528 ms: Mark-sweep 1330.7 (1457.1) -> 1330.7 (1440.6) MB, 63.8 / 0.0 ms  (average mu = 0.115, current mu = 0.007) last resort GC in old space requested
screeps-1  | 2024-12-15T13:08:09.318134889Z [162:0x5617e91c6940]    99596 ms: Mark-sweep 1330.7 (1440.6) -> 1330.7 (1440.6) MB, 66.9 / 0.0 ms  (average mu = 0.062, current mu = 0.006) last resort GC in old space requested
screeps-1  | 2024-12-15T13:08:09.318139539Z 
screeps-1  | 2024-12-15T13:08:09.318143649Z 
screeps-1  | 2024-12-15T13:08:09.318148259Z <--- JS stacktrace --->
screeps-1  | 2024-12-15T13:08:09.318152469Z 
screeps-1  | 2024-12-15T13:08:09.318156789Z ==== JS stack trace =========================================
screeps-1  | 2024-12-15T13:08:09.318161059Z 
screeps-1  | 2024-12-15T13:08:09.318165439Z     0: ExitFrame [pc: 0x1072adfdbf1d]
screeps-1  | 2024-12-15T13:08:09.318169229Z Security context: 0x1ee5d27e62c1 <JSObject>
screeps-1  | 2024-12-15T13:08:09.318172119Z     1: postMessage [0x365ce40bbba9] [internal/worker.js:379] [bytecode=0x332e27fe331 offset=24](this=0x152c156d6519 <EventEmitter map = 0x1e7fba533bb9>)
screeps-1  | 2024-12-15T13:08:09.318175079Z     2: arguments adaptor frame: 2->0
screeps-1  | 2024-12-15T13:08:09.318178699Z     3: /* anonymous */(aka /* anonymous */) [0x631b8d67501] [/screeps/mods/node_modules/node-worker-threads-pool/dist/poolWorker.js:38] [bytecode=0x332e27fe091 offset=110...
screeps-1  | 2024-12-15T13:08:09.318183329Z 
screeps-1  | 2024-12-15T13:08:09.318193649Z [engine_main] FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
#

So the main server process panics because… memory

bitter lava
#

im not a very computery guy so can you explain whats happening here?

#

is the main server out of memory?

scarlet fossil
#

It's not, it's a beefy machine. At least on the outside

#

I'd have to look into the container as to what might be happening

bitter lava
#

ok

scarlet fossil
#

Yeah, it's crashing like that exactly every 100 ticks

#

5794805
5794905
5795005

bitter lava
#

why though?

scarlet fossil
#

No idea, still looking

#

history maybe?

#

I'm getting a ```
[historyWorker] started
(node:548) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 13 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:548) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 13 error listeners added. Use emitter.setMaxListeners() to increase limit

in the logs, but it's unclear where that's coming from; could be the history mod or something else
#

Server didn't like me yanking the mod out of it 😅

#

Yeah, no more crashes

#

Something went wrong with the history mod, for some reason

#

I mean, we've been spreading, and possibly it's doing something silly that causes massive objects to get created or something, and that gets the GC into a frenzy

bitter lava
scarlet fossil
#

Yeah, because I disabled it

#

No more crashes since I did that

pallid totem
#

I haven't touched it in ages

scarlet fossil
#

You just showed up in the logs, and I was wondering if that was related to the crashing or not (unlikely)

#

You have moving creeps, but roads are a bit in disrepair

scarlet fossil
pallid totem
#

Oh boy

#

It's downgrading

scarlet fossil
#

Yeah

#

I think something severely perturbed it, and it's only picking back up right now

#

Possibly the many crashes

scarlet fossil
# pallid totem It's downgrading

Yeah, you'll need to take a look. If I'm correct and ud-whatever are your upgraders, then a lot of those are just not doing their job

#

On top of that, one of your rooms seems to have placed all its csites, I think you're at the cap so none of the others can, and that single one isn't even building them

#

@kind trench You're in trouble, too, though there is a bit of movement

#

…not sure what happened to Alphonzo, too

kind trench
#

all my energy is gone it seems

#

question is what broke

scarlet fossil
#

Yeah, not sure as well, and I've just disabled the history mod because of the crashing :/

kind trench
#

looks like you crashed @scarlet fossil

scarlet fossil
#

Oh, the flag-splosion bug

#

That hasn't happened to me in a while

#

Crap, I just deleted all of it without checking how many that was

#

That would have been a fun stat

kind trench
#

no simple check if too-many flags ?

scarlet fossil
#

There's a bunch of them, but not really "how many"

#

I think what happens is that, if there's some sort of reset instability, I start re-running the detection code for deposits, and even through there's a presence check there, it just keep dropping new ones

#

So you end up with… I don't know, I had more than a screenful of flag in the right click menu

#

And then it starts dying because there's just so much flags to loop over

#

It's always deposits though, and I think the issue is that I might have no visibility over the room and acting from memory

#

Just a bit convoluted to force the issue to happen and actually look at what's happening

bitter lava
#

@rotund olive Rodrigo still requires ban

bitter lava
sullen condor
#

@kind trench It seems that your bot is not good for public interest🤣

kind trench
#

it bugged out a bit, because it should gridify almost everything in route-range 3

#

besides that, it looks like it works as intended:p

#

but i see i need to sit down and implement the cleanup zone finally

#

but that requires porting and refactoring of combat code from previous bot :/

#

can you just reserve E8N6 so my bot stops trying to mine it ;D ?

bitter lava
#

@sonic marsh in the most inconvinient spot. can u move pls

sonic marsh
#

But nah, I'm respawning around as I test my room planner. I'll be gone from there shortly

#

Or as soon as my spawn relocation logic suicides the room because I think that has a bug in it

bitter lava
#

need to test old stuff anyways

sonic marsh
#

Good luck getting through these beefy ass ramparts

#

I'll hop out now though, just thought it'd be nice to be neighbors again 🥲

#

Although I am wildly tempted to plunk the next one down directly adjacent to one of your rooms XD

bitter lava
bitter lava
#

i need quad test

#

NOO

sonic marsh
#

XD

#

I haven't ported any active defense to my new military system anyhow

bitter lava
#

oh

#

so just towers?

sonic marsh
#

Yep

#

Well, and blinkies if you're in a remote

bitter lava
#

oh

sonic marsh
#

But now that SWC is hopefully coming after the holidays, I've got strong motivation to get that completed.

bitter lava
#

how does your defense work?

sonic marsh
#

How do you mean?

bitter lava
#

like

#

how do you get enemies

#

how do you get required defenders/defenders body part count

kind trench
#

math

#

😄

sonic marsh
#

Enemies are everyone that doesn't belong in my remote. Or anyone in a room that my bot thinks should be its remote. Offensive logic is all manual at the moment, so it doesn't get harass or room siege targets on its own.

kind trench
#

and everything that is not yours but is "owned" is enemy

sonic marsh
#

For defenders, I'm working on a math solution but I don't like where it's at right now, so I'm just using basic scaling with room RCL until I do

#

Unfortunately it does give me the Overmind remote defense problem at the moment

kind trench
#

@sullen condor what's happening in E15N3 ?

#

and what are your plans on this server 😛

kind trench
#

so gotta start working on offensive code

sullen condor
cerulean wadi
sonic marsh
kind trench
bitter lava
kind trench
#

because my calculations are s**t for now 😄

bitter lava
#

oh

kind trench
#

multi-quad-aware pathing seems to be working 🎉

sullen condor
#

Awsome. How did you make it? Pathing for one quad -> mark as unstepable -> pathing for another one -> ... ?

kind trench
#

let's see the failure of rcl8 sieging rcl6 ;D

sullen condor
#

Are you gonna attack my rcl6?

#

Is there history in sandbox?

kind trench
#

i think it got off after some issues

#

it'll be manual stuffbecause no time for doing proper logic before it reaches reasonable rcl ;D

#

and still easier to debug on less "lethal" room

#

need to scale cpu better when sieging

scarlet fossil
kind trench
kind trench
#

here the same : active defenders declined to move to ramparts and attack

#

and when my quad came close to spawn, they still did not attack despite being next to quad, even though towers shot

sullen condor
#

No sm popped?

#

I guess there was some severe bug

#

Did that small creep attacked? Were threre any repairers?

#

Hmm. I really don't know what happened. @kind trench Can I ask you to launch another attack when I'm online?

kind trench
sullen condor
kind trench
#

now-ish

sullen condor
kind trench
#

i'm debugging other things now so yes

#

and currently your defenders work correctly

sullen condor
#

Oh

#

Wonder what happened that day

#

Are you attacking now? Or is it automated?

kind trench
#

it's sending quads all time now, hooked to flag

#

good that i had a bug making quads stick to another flag instead of going on automated mission, because forgot to push the dmgOutheal calculation for costmatrix 🙈

#

ok now it works

sullen condor
#

If your bot is sending all time my bot should be wiped in no time

kind trench
#

your E9N6 is drained though since all night you repaired ramparts i guess

#

it's on manual for my debug

#

so ye, that aint happening soon 😄

sullen condor
#

Is my bot's defense system working fine?

#

There should not be any boosts I guess

kind trench
#

now yes (except of being drained)

#

some stuff left over since terminal has 0e

sullen condor
#

I see