#programming

1 messages · Page 80 of 1

tacit plover
#

So I haven't finished the installation

opaque sigil
#

there's a git plugin for the editor apparently

opaque wharf
#

Because at least they do support generating metadata for git

opaque sigil
#

seems like it

opaque wharf
#

Then use gitgui

opaque sigil
opaque wharf
#

Or github gui

rough bloom
#

as the default editor for Git you can use whatever, just don't use anything that takes a minute to start up because that's annoying
so yeah, Notepad++ should work
though you likely won't be using it much anyway

tacit plover
opaque sigil
#

ah, the metadata is just .gitignore and .gitattributes

tacit plover
#

Oh checking through the options there's atom too

opaque wharf
#

I forgot its about the git installation on windows

#

I forgot that they asked default editor there

#

I suggest just use vscode

opaque sigil
#

they do have pretty nice git integration, especially for merges and rebasing neuroPogHD

tacit plover
opaque wharf
#

It's just handy when git needs it to resolve something

real sierra
#

i lied

#

i need more pieces

tacit plover
#

Oh, Atom has been sunset

rough bloom
opaque sigil
#

that's what i was talking about

olive sable
#

they're going yaaaaaaaaay

opaque sigil
opaque wharf
#

Still waiting until lapce is ready

opaque sigil
#

what's missing from lapce

tacit plover
#

Actually, I don't think I know what vsc is

real sierra
#

vscode?

tacit plover
#

Yes

real sierra
#

it's a code editor

#

very widely used

tacit plover
#

That's what I'm seeing

real sierra
#

it doesn't natively have every feature that a common IDE has, but many things can be added with plugins

opaque sigil
#

made me go to their website and 75% of the landing page is about ai neuroDeadge

tacit plover
#

I thought the coding in VSC was through dragging boxes and stuff

opaque sigil
#

guess this is the world we live in now

opaque wharf
#

Like platformIO for example

opaque sigil
#

i see, fair

#

i remember the one time i tried it they were missing a bunch of stuff still

#

ecosystem is a big one

#

as much as i like zed as an editor it's nice being able to use vsc for absolutely everything

rigid snow
opaque wharf
tacit plover
#

Does look pretty

#

Guess it doesn't hurt to download

opaque wharf
opaque sigil
#

sth sth it isn't the by far most used code editor for no reason

#

tbh i'll probably switch over to zed whenever they fix their remote dev stuff so i can access wsl files without too much of a hassle

opaque wharf
#

Also nice if you're developing on many different field. Like I could have firmware development along with web just by selectively activating the plugins

rigid snow
#

you don't even have to

#

you can mix them in one project ez

olive sable
#

the position of this energy is a bit unoptimal lmao

opaque sigil
#

sometimes i wish polyglot projects weren't such a pain

rigid snow
#

JNI neuroTroll

real sierra
olive sable
opaque sigil
#

bazel is probably the best build system for this but it's bazel soooooooo

olive sable
#

are here miners ingame?

real sierra
#

?

olive sable
#

to remove the walls blocking it

real sierra
#

you can't remove natural walls

olive sable
#

fuuuck

real sierra
#

you can build roads on them

olive sable
#

oh

real sierra
#

but its expensive to do and expensive to maintain

#

and in practice i find one miner is enough

opaque wharf
olive sable
opaque sigil
#

it's true tbf

real sierra
#

you know

#

i should add a

#
room.find(FIND_HOSTILE_CONSTRUCTION_SITES).forEach((site) => site.remove());
#

to my script

olive sable
#

lmao

#

does js have elif?

opaque sigil
#

else if

real sierra
#
if (cond) {
  // stuff
} else if (cond2) {
  // stuff
} else {
  // stuff
}
olive sable
#

ok

opaque wharf
# opaque sigil it's true tbf

You know, I'd agree if it weren't for the fact that it is so much pain to use. But I guess the nature of polyglot itself is already cursed as it is

#

If my monorepo needs any other build system, I'm just going to write the script to run it in typescript and use tsx lmao

opaque sigil
#

yeah cause the build systems all suck neuro7

#

can't have nice things

rigid snow
opaque wharf
#

My goto stack is pnpm + biome + tsx + rolldown

#

Anything else WILL be run using ./scripts at the workspace root

opaque sigil
#

sth sth bun replaces 3 of those

#

bun fmt when jarred neuroDinkDonk

rigid snow
#

using bun as a bundler evilDeadge

opaque wharf
opaque sigil
#

not as well as pnpm iirc

#

unless they fixed that

opaque wharf
#

I use pnpm for their workspace features and the symlink thingy

opaque sigil
rigid snow
#

huge ass embed

real sierra
rigid snow
opaque wharf
#

I love this from pnpm
https://pnpm.io/catalogs

"Catalogs" are a workspace feature for defining dependency version ranges as reusable constants. Constants defined in catalogs can later be referenced in package.json files.

opaque sigil
#

i never use monorepos so

opaque wharf
real sierra
#

the sudden explosion of construction projects in my room has decimated the local economy

#

all energy reserves are empty and the units are getting smaller in response

#

im watching famine in real time catdespair

opaque wharf
opaque sigil
#

but yeah, bun pretty nice would recommend at least giving it a try OK

#

i feel like i'm about to be crucified

real sierra
opaque wharf
#

sudo pacman -S bun error: target not found: bun

real sierra
#

we used to be rich...

opaque wharf
real sierra
#

not anymore despair

opaque sigil
#

wonder why they haven't been added to extra actually

#

deno is in there

olive sable
#

i am so good neuroHypers

opaque wharf
#

I'm trying to keep this thing down lmao

real sierra
#

sam is goated

opaque wharf
#

But yeah, I've installed it

real sierra
#

Concerned shard3?

olive sable
#

oh i thought my wifi just dropped lmao

real sierra
#

it was just temporary it seems

opaque sigil
real sierra
#

at least we're not as bad as those shard1 bozos

olive sable
#

bro what is ahppening above me???

#

farmer joe is cracked

rare bridge
#

where are my ticks

real sierra
#

me and cloud have been worried about crazyfish

opaque wharf
rare bridge
#

Scared crazyfish

real sierra
#

i see crazyfish is actively expanding, in fact

#

they've reserved a third room

olive sable
#

oh no

real sierra
#

in addition to their existing two

#

i better get my act together quick

#

Bruhgi who is hammering two shards at once

olive sable
#

at least crazyfish is far

#

farmr joe is my neighbour

real sierra
#

farmer joe cant get to you for another 11 days

rare bridge
#

meanwhile

#

crazyfish

#

is a real threat

#

and i am scared

real sierra
#

provismet scares me the same way sam fears joe

#

they own two rooms that i can see

#

and have 3 more reserved and harvested from

#

and they're right next to me

sonic scroll
#

What's all this?

olive sable
#

im using 1-4 cpu and 1/2k mem apparently

real sierra
#

mmo rts where you code your units

rare bridge
olive sable
#

fuck

real sierra
#

(the server is frozen)

opaque sigil
olive sable
#

why is it swamp there? they managed to mine before????

rare bridge
#

i currently fear tanriol the same way you two fear provismet and joe

opaque wharf
rare bridge
#

they have 3 solid rooms with 6 reservations

opaque sigil
#

true

rare bridge
#

nvm 4 solid rooms

#

only 3 right on my FUCKING DOORSTEP

olive sable
#

can i check in on the sceeps on mobile? mayhaps tabet?

opaque wharf
#

Anyway, back to my question. What is good OCR for table? NeuroClueless

opaque sigil
#

have you tried the mistral one

rare bridge
#

i gotta build a proper defence within 11 days before tanriol steamrolls me

opaque wharf
#

I only need the OCR for this one time lol

real sierra
#

yeah holy tanriol

#

thats terrifying

opaque wharf
#

Y'all should make a faction

rare bridge
#

he's on my DOORSTEP

opaque wharf
#

Be Neuro-sama swarm there

real sierra
#

i dont have the spare cpu cycles for IFF

rare bridge
#

Okay stresstest for my code

olive sable
#

so why are my screeos stuck now? and why is my energy source pathfinding to the room controller?

opaque wharf
real sierra
#

shard3 alive again

opaque wharf
#

What harms does a little friendly fire brings when you have more swarm to throw at the enemies

rare bridge
#

why is the source pathfinding

real sierra
#

pov: sam's source apparently

olive sable
#

the source do be showing a line to the room controller

opaque wharf
olive sable
#

hihihihih

rare bridge
#

WHAT

opaque sigil
#

dare i say, an upgrade

opaque wharf
olive sable
rare bridge
#

oh wait

#

i see

#

wan of the creeps is pathfinding to the source

#

wan of the creeps is pathfinding to the controller

real sierra
#

MinawanWan chills

rare bridge
real sierra
#

but yeah i see it now

olive sable
rare bridge
#

so are you gonna do anything or...

amber fractal
real sierra
rare bridge
#

oh they got stunlocked

olive sable
#

sever still freezing occasioanly

#

or maybe just my wifi

real sierra
#

seems mostly stable atm

amber fractal
#

shard 3 about to stunlock again neuroMonkaOMEGA

real sierra
sonic scroll
#

What is Screeps?

amber fractal
#

@real sierra

opaque wharf
real sierra
#

well seen as you didnt read my short description

#

Screeps: World is an open source MMO RTS sandbox game. With all the attributes of a full-fledged strategy game, you control your colony by writing script that operates 24/7 in the single persistent open world filled by other players on par with you.

Your colony can harvest resources, build units, conquer territory, trade with other colonies. As you conquer more territory, your influence in the game world grows, as well as your abilities to expand your footprint. But beware, multiple players aiming for the same territory may lead to conflict!

Screeps is developed for people with programming skills. Unlike some other RTS games, your units in Screeps can react to events without your participation – provided that you have programmed them properly. And, unlike other MMO, you do not have to play Screeps constantly to play well. It is quite enough just to check once in a while to see if everything goes well.

opaque wharf
#

This is the weekend and y'all be coding neurOMEGALUL

olive sable
#

is it?

#

oh it was

opaque wharf
real sierra
#

"weekend" is defined by convention

olive sable
#

as a mod shiro is never off te clock catdespair

opaque wharf
olive sable
#

oh a screep died, sadge

real sierra
#

(my definition of weekday changes according to whatever makes me win the argument)

olive sable
#

tie to live, 80

#

bout to witness another one perish

real sierra
#

salute economy is real bad

#

we're producing minimum size units now

olive sable
#

oh i forgot to make the game delete old screeps data

#

fuck

#

what is the func for that again?

real sierra
#

js has a special keyword for deleting variables and entries of arrays/objects, e.g.

delete Memory.creeps[id];
opaque wharf
#
delete Memory
amber fractal
#

in python this is unused as del

opaque wharf
#

There, lobotomy completed

real sierra
#

logistics creeps holding up my entire society rn

opaque wharf
real sierra
#

miner job: collect energy
builder job: build, repair
logistics job: drag creeps to destinations, collect dropped energy, collect remains from tombstones and ruins, redistribute energy between storages

#

i still have no idea how one uses all 2MB of this memory

hoary lion
#

ugh istg

#

these LLM coding

#

so fucking love layernorm

olive sable
#

ig u use mem to lessen cpu by caching paths and shit

amber fractal
real sierra
#

capitalDColon bad word

tacit plover
#

Figuring out how to do the version control system thing for godot evilDeadge

honest scaffold
real sierra
#

how do you think i learned javascript

honest scaffold
nocturne olive
#

You're still sillying the same game?

honest scaffold
#

maybe i could hop on screeps then

#

i will think about it

real sierra
#

the colony must grow superbox

#

(it is currently shrinking)

nocturne olive
#

Unfortunately I can't do that because game too expensive and I'm broke

real sierra
#

Prayge may you happen upon $5 soon

olive sable
#

ikinda stole all his money so uhhhh

nocturne olive
#

3090 was very expensive

opaque wharf
#

It's easier if you're not familiar with git

tacit plover
#

What's that

opaque wharf
amber fractal
#

If you need to learn git, then git gud

rare bridge
#

okay i'm back

real sierra
#

i saw your havesters working hard

rare bridge
#

they're cooking

#

i wonder, do you see the text

real sierra
#

my colony is BROKE

#

no, debug vis is you only

rare bridge
#

it'd be funny to show you

real sierra
#

you should be glad its local

#

that might mean it doesnt use cpu

olive sable
#

im so gud lesgooooooooo dancingcat

var roleHarvester = require('role.harvester');

module.exports.loop = function ()
{
    let harvesters = _.filter(Game.creeps, (creep) => creep.memory.role == 'harvester');
    
    if (harvesters.length < 4)
    {
        let screepname = 'harvester_' + Game.time;
        
        if (Game.spawns['Spawn1'].spawnCreep([WORK,CARRY,MOVE], screepname, {memory: {role: 'harvester'}}) == 0)
        {
            console.log('new harvester: ' + screepname);
        }
    }
    
    for (const name in Memory.creeps)
    {
        if(!Game.creeps[name])
        {
            delete Memory.creeps[name];
            console.log('Clearing non-existing creep memory:', name);
        }
        else
        {
            let creep = Game.creeps[name];
            if (creep.memory.role == 'harvester')
            {
                roleHarvester.run(creep, 0);
            }
        }
    }
}
opaque sigil
nocturne olive
opaque wharf
real sierra
opaque wharf
#

But yeah, maybe its better to use the plugins

rare bridge
#

i wonder who actually has the best code think

olive sable
#

i barely know js, but im jsut that gud

real sierra
#

ok typescript user calm down

#

your ego is high enough

nocturne olive
olive sable
#

even the cocacola company says im just that gud, they call me mrgud

rare bridge
#

i do actually wonder tho, i'd imagine your code is the most efficient

opaque wharf
real sierra
#

lets summarize all the approaches so far

#

the rust user is on day 2 of writing their typedefs and classes

rare bridge
#

my code takes a ton of time just to get a creep to do a thing

hoary lion
#

we should do a competition of efficiency

real sierra
#

i havent heard from the clojure user in about an hour and i assume they died to syntax

opaque sigil
#

i find it kind of funny how they added vcs plugins but as far as i can tell git is the only one that exists

hoary lion
real sierra
#

the javascript teams are all losing to poor javascript design decisions

hoary lion
#

facts

opaque wharf
real sierra
#

and you narrowly avoid this fate thanks to typescript threatening to burn your house down if you dont check for undefined before every statement

rare bridge
#

well the checks for undefined work

opaque wharf
rare bridge
#

i'm literally avoiding all the hell everyone else is having by using a fucking FRAMEWORK

#

of all things

olive sable
#

wait who is doing ts?

real sierra
#

cloud

rare bridge
#

me

olive sable
#

ah

#

is ts better?

nocturne olive
#

It would be funny if I could play the funny game with Kotlin, if I had the game to begin with
Kotlin happens to be my favorite language

opaque wharf
rare bridge
#

yes

olive sable
#

then wy tf are we using js?

rare bridge
#

there's my point

opaque sigil
#

because you hate yourself i assumed

opaque wharf
nocturne olive
# real sierra

Now that seems like peak silliness
Guess we'll see if I still remember that in a few months when I can afford the game

real sierra
#

should i just buy it for you

#

its 50% off rn

rare bridge
#

shiro starts buying screeps for people

opaque wharf
hoary lion
#

extending the colony

olive sable
#

every 10 min i have a "i wonder what my screes are doing"

opaque wharf
#

So we all can get in on the silliness

olive sable
rare bridge
#

mine are uhhh

opaque sigil
#

we lost him

rare bridge
#

not defending themselves!

opaque wharf
hoary lion
#

the game cannot be that good

#

right

real sierra
#

the good news is that i always know what my screeps are doing

olive sable
#

can i get modulo in js?

real sierra
#

the bad news is that it's often not what i want them to be doing

nocturne olive
opaque wharf
real sierra
olive sable
#

ah

#

okk

rare bridge
#

i know what my creeps are doing

#

they tell me

opaque wharf
#

Builder

#

Build structures

#

But the wrong structure

real sierra
#

i may not have cloud's nice vis, but i know what my screeps are up to

opaque wharf
#

Or at the wrong place neurOMEGALUL

opaque sigil
#

just remember % works differently with negative numbers

#

not that it should come up hopefully

rare bridge
#

they'll build any structure they can currently, there's no priority system

olive sable
#

do we have .index() in js?

real sierra
opaque wharf
opaque sigil
#

what that

olive sable
opaque wharf
#

or .indexOf()

real sierra
trim valve
#

I

opaque sigil
#

oh yeah

real sierra
#

you didnt give me a source lang or anything so i dont know what function you're looking for

trim valve
#

need to touch grass

opaque sigil
#

indexOf is what you want

olive sable
real sierra
#

yeah, then array.indexOf()

opaque wharf
real sierra
#

too slow

rare bridge
opaque wharf
#

Nope, I shows up first bozo

real sierra
rare bridge
real sierra
#

cloud

#

who was first

opaque wharf
opaque sigil
#

you

real sierra
#

i have the mdn array docs in particular open at all times

#

O(1) lookup time

opaque wharf
#

Dangit

rare bridge
opaque wharf
#

SEA debuff

hoary lion
#

someone should host screeps atp

opaque wharf
hoary lion
real sierra
#

this is my screeps tabs starter pack

rare bridge
hoary lion
opaque wharf
hoary lion
#

did i say something wrong

opaque wharf
#

Anyone playing here is doing anything BUT playing the game

sonic scroll
#

Is this like a programmable colonization game from what I'm understanding.

rare bridge
#

i'mma just

opaque wharf
#

Meanwhile the server host is playing screeps instead of hosting the server neurOMEGALUL

olive sable
#

fake mews TypeError: Game.creeps.indexOf is not a function

real sierra
rare bridge
olive sable
#

then wtf is it?

real sierra
#

it's an object

#

akin to a python dictionary

opaque wharf
#

See, that is why typescript is superior

real sierra
#

keys, values

olive sable
#

bruhh

rare bridge
olive sable
#

i need the index of this stupid dict or somethign idk

#

i could just do it manually

real sierra
#

if you want the keys from it:

for (creepid in Game.creeps) {
  // ...
}

if you want the values:

for (creep of Object.values(Game.creeps)) {
  // ...
}
sonic scroll
#

I don't think I'll get it.

opaque wharf
olive sable
#

i have a bad idea, but it will work

rare bridge
opaque sigil
#

i love assigning random data to functions

real sierra
# sonic scroll Honestly, don't bother at this point.

it's a strategy game, where players each own a colony of creatures called "Creeps"
the main gimmick is that players don't manually create or control units. instead, they write code to automate these processes
all of this takes place in a large online world running 24/7 with hundreds of players

opaque wharf
#

I love using Object.assign to have tuple return from function, but also wanted it to be an object at the same time

real sierra
#

also i apologise if i came off as impatient

rare bridge
#

i think running at this rate, i'll have my extenders and roads done overnight

sonic scroll
real sierra
#

i just dont know if my previous descriptions got missed or didnt make sense

opaque wharf
#
function some() {
  const a = 'hello'
  const b = 'world'
  return Object.assign([a, b] as const, {a,b})
}
real sierra
#

hence why the whole channel here is obsessed now

opaque wharf
#

So the caller have a choice

const [a,b] = some()
// or
const {a,b} = some()
rare bridge
#

the extenders will give me... 300 + (50 * 5) so 550 energy to spawn creeps

opaque sigil
#

as its constant/literal type

olive sable
#

good enough

sonic scroll
#

Where's the link to this place?

olive sable
#

screeps

#

steam

opaque wharf
rare bridge
#

i just have a memory garbage collector function

opaque wharf
real sierra
rare bridge
#
function cleanUpMemory() {
  // Remove memory of missing creeps
  for (const name in Memory.creeps) {
    if (!(name in Game.creeps)) {
      delete Memory.creeps[name];
    }
  }
}
real sierra
rare bridge
real sierra
#

Screeps: World is an open source MMO RTS sandbox game. With all the attributes of a full-fledged strategy game, you control your colony by writing script that operates 24/7 in the single persistent open world filled by other players on par with you.

Your colony can harvest resources, build units, conquer territory, trade with other colonies.…

Price

$7.49

Recommendations

1838

â–¶ Play video
olive sable
#

i see no problem with having 10 harvesters and nothing else NeuroClueless

real sierra
#

you jest but people dismantling my walls is a genuine concern

olive sable
#

oh no

#

well i cant be bothered to add defenses at 1,30am

real sierra
sonic scroll
#

They used Kevin Macleod music for the trailer?

real sierra
#

dont worry about defenses so much

#

people wont murder you probably

sonic scroll
#

But man

real sierra
#

for 11 days or so

rare bridge
#

probably

sonic scroll
#

I am like $1.50 short.

olive sable
#

short

#

even shorter than konii

#

@sage crag you can be tall now

#

bask in the glory

real sierra
#

i wish i was short

opaque wharf
#

If regional pricing didn't block me from gifting I would love to gift it to people in #programming

real sierra
#

being tall automatically makes you an employee of every store

#

"could you grab me one of those off the top shelf? thank you so much"

olive sable
olive sable
#

oh no

rare bridge
#

shiro how much did it damage roads every tick by being on walls again?

real sierra
olive sable
#

shiro my living screeps wiki bless

opaque wharf
#

Dual monitor when playing screeps is crazy for a game neurOMEGALUL

real sierra
#

over the last few days i have looked at every single class and function in this game

rare bridge
real sierra
#

you probably thought they had the same amount of hitpoints too

#

my condolences if you planned on getting them to max health

#

Hits

  • 5,000 on plain land
  • 25,000 on swamp
  • 750,000 on walls
rare bridge
olive sable
rare bridge
#

my repair program tries to repair up to 50% of hits

opaque wharf
#

Oh shiro, I just come up with a strat to attack

rare bridge
#

fuckkkk

opaque wharf
#

If road can be made on walls

#

Just use builder to build road on walls

#

You avert the enemy attack NeuroClueless

nocturne olive
olive sable
#

put road n wall at least priority

real sierra
#

gotta stay ahead of the game

opaque wharf
olive sable
#

my screeps are doing so well neuroHypers neuroHypers neuroHypers neuroHypers neuroHypers neuroHypers neuroHypers neuroHypers neuroHypers

nocturne olive
olive sable
#

fuck having children, ill just make more screeps

opaque wharf
real sierra
opaque wharf
real sierra
#

how are you gonna build a road if i delete the construction site

opaque wharf
#

You want findAll

real sierra
#

i do not want findAll

#

room is not an array

opaque wharf
real sierra
#

do not lecture me on the screeps API

#

i am the API

#

but if i have this knowledge why am i so bad at the game gx_why

rare bridge
#

shiro

real sierra
#

hi sunshine

olive sable
#

for (name in shiro.screeps)

rare bridge
#

nvm i stupid

#

you good

real sierra
#

Ok good for you

rare bridge
#

actually

#

when you get the enermy's construction site

sonic scroll
rare bridge
#

how do you expect to remove it

#

it's not yours

olive sable
real sierra
sonic scroll
#

If yes, I know what I'm doing.

rare bridge
#

oh okay fair enough

real sierra
#

this implies it only fails if you remove a hostile site in a room you dont own

#

SMH what did i just say about quizzing me on the api

real sierra
#

you can program them to do anything you'd like

olive sable
opaque wharf
sonic scroll
#

Because I don't have the game.

real sierra
olive sable
#

oohhhh

#

aaah

olive sable
#

i did not relaize

rare bridge
#

opposite would be a drought btw shiro

real sierra
# sonic scroll Because I don't have the game.

there's a running joke where everyone here who shows interest in the game ends up dumping all their time here into a side task instead of things that give them practical success in the game

olive sable
#

sunshine just sounds like flirting lmao

real sierra
#

and i wasnt flirting

#

if i was flirting you'd know

#

or maybe not actually Aware

olive sable
#

i apparently wouldnt

opaque wharf
#

Shiro has rizz neurOMEGALUL

olive sable
#

unintentional rizz

real sierra
#

you reminded me of a blursed clip just now

olive sable
#

the best kind?

nocturne olive
#

Plentiful silliness

rare bridge
#

one sec

opaque wharf
#

I wonder if they ever consider screeps runtime

real sierra
#

what are you getting cloudburst

#

you cant know the clip i mean

#

its not possible

#

that was such a fever dream event

olive sable
#

i see shiro's screeps frantically building walls while leaving the actually vulnerable spot open

rare bridge
#

no i just brutally murdered someone in the back alley

real sierra
#

my screeps arent building walls

olive sable
real sierra
#

what is sam smoking

tacit plover
real sierra
#

you might be looking at QIS

#

my braindead neighbour

olive sable
sonic scroll
#

Which one should I use, the dedicated server or Screeps: World?

rare bridge
#

LULE what dedicated server

real sierra
rare bridge
#

okay after these creeps build this extension i can spawn beefier versions

nocturne olive
olive sable
real sierra
#

oh

#

those are ramparts Om

sonic scroll
real sierra
#

if anything, those are the best defended parts of my wall

olive sable
real sierra
nocturne olive
olive sable
real sierra
#

you started getting me worried

#

i was going around checking all my walls

olive sable
#

idk what cloud is doing rn, building paths?

real sierra
#

sam what did you think of my base layout mhm

olive sable
#

so uh

#

idk

real sierra
#

mhm i agree i dont know if its good either

olive sable
#

i dont know what the strat is yet

#

i see lots of room tho

#

my base is a bit cramped

opaque wharf
olive sable
#

im at E35N37 rn

rare bridge
olive sable
#

and what are those?

rare bridge
#

small bits of storage that spawners can access

olive sable
#

ahhh

real sierra
#

allows you to create more expensive units

olive sable
#

ye i do rmemebr those being in the tutorial

real sierra
#

for details RTFM

olive sable
#

lots of room for activiites in my base NeuroClueless

#

imma log of tho

#

can i look on mobile at my screeps?

rare bridge
#

idk how well mobile behaves

real sierra
#

unsure

#

i kinda like the surprise of not knowing how they're doing till the morning anyway

#

motivates me to get out of bed

olive sable
#

iirc screeps move worse in swamp?

real sierra
#

5x worse, yes

olive sable
#

thats why they're all chilling up there i guess

#

my spawn is in a swamp too, and so is my room controller

#

f

rare bridge
#

o7 spawn

olive sable
#

imma need to build some roads tomorrow

#

bro is not vasco da gamma

#

yep he changed his pathfinding already to go up

real sierra
#

i have this chokepoint in my room on the way to the controller:

#

sometimes, when a bunch of creeps clogged it

#

i would have units try to get to the other side by going to a different room and walking around

sonic scroll
#

Ok. I'm going to be real.

real sierra
#

had to fix that fast

sonic scroll
#

This game isn't for me.

olive sable
#

fair

real sierra
#

that's fair, it's quite coding heavy and not much traditional gameplay Ok

olive sable
#

try to refund

real sierra
#

you can still refund

sonic scroll
#

I did.

#

Request still pending.

nocturne olive
#

Very programmer game

olive sable
#

i would say gn but we all know ill be up another 20 min trying to see my screeps on mobile

nocturne olive
#

I guess a game about coding automated stuff must be pretty code heavy

#

Though I can't confirm myself

olive sable
#

it is ye

real sierra
#

id definitely call this game niche Ok

olive sable
#

you code the main loop

#

like in a game engine

tender geode
sonic scroll
#

I'm more python.

nocturne olive
# olive sable it is ye

I guess that somewhat makes sense then
I like code though, it's one of the two things I'm quite reasonable at

sonic scroll
#

Kind of like KSP.

real sierra
#

(i sent you a letter full of affirmations and kind words)

sonic scroll
#

KSP is for rocket nerds mostly.

#

Look at KSP2.

rare bridge
#

i can't tell shiro hbd anymore because i'll get attacked by creeps

sonic scroll
#

Games not for the general market.

tender geode
real sierra
#

love KSP tho

sonic scroll
sonic scroll
#

Oh no wonder this is so programming heavy.

real sierra
sonic scroll
#

I'm in the programming section.

#

I think I was in general.

real sierra
rare bridge
real sierra
#

you thought this was general

#

yes this is programming

sonic scroll
#

I never claimed to be the smartest.

real sierra
sonic scroll
#

This is why.

tender geode
olive sable
amber fractal
olive sable
#

Classic wrong channel

#

Bingo?

amber fractal
#

Needs to be added for #3

olive sable
#

Noway screeps mobile works

real sierra
opaque wharf
amber fractal
#

If top right were cult convert instead of hblang convert, it would already been crossed out at least 7 times this week

real sierra
#

screeps isnt a cult its just a fun little programming game

#

where the API docs happen to be gospel

amber fractal
#

I blame all of them on Shiro

real sierra
#

i have brought nothing but kindness and prosperity to programming channel

#

sweeps javascript under rug

rare bridge
#

just don't use javascript

amber fractal
#

Sure you don't want to be the reason top right is just a red mass?

#

betrayed by the wording of that square

olive sable
#

Screeps shall go right here

rare bridge
#

bro setting himself up for insomnia

amber fractal
real sierra
#

i was not responsible for any of this

#

all i did was share some of the code i wrote

rare bridge
#

i have a fun bug

real sierra
#

caterpillar?

sonic scroll
#

my dad even asked I was doing with the steam account.

rare bridge
#

wasp

sonic scroll
#

I just told him I tried the game and it wasn't for me.

real sierra
rare bridge
#

apparently everything has to wait for this one fucking harvester to finish harvesting

#

literally NOTHING is happening because this one harvester was busy harvesting

#

alright, now everything is happening again because the world doesn't revolve around h_2333c08a81 anymore

real sierra
#

h_2333c08a81 : Sadgi

amber fractal
rare bridge
#

i kid you not, everything else froze

#

i do not know why

real sierra
sage crag
#

awawawa

tacit plover
real sierra
#

but i did this like 6 or 7 times and now its just the same code over and over but with hard-coded constants

#

its like 200 lines of the same thing

#

but theres a bunch of tiny tweaks to various sections to improve performance

#

so i dont think they're true copies anymore

#

and idk how to refactor it down to the 20 lines it should be

#

like

#

just to be clear

amber fractal
#

I think this counts for that slot

real sierra
#

HOLY TF JUST HAPPENED

olive sable
#

The moment i turn my laptop off they all break smh

amber fractal
#

#bingo Bottom left is screeps and I'll be having no objections

real sierra
#

here's the line of code that caps the miner budget at 700 energy

#

here's the 1100 energy miner that just got queued CatDespair

rare bridge
#

it's

#

just mining

#

it does nothing but mine

real sierra
#

that part is intentional

olive sable
#

Shiro drags his miners ye

real sierra
#

the realization is that i pay for each part and every second that a unit is not using a particular part is value lost

olive sable
#

Shiro can you check wtf my screeps are doing???

amber fractal
#

dancing mhm

real sierra
#

they're

#

walking

#

places

olive sable
#

Cuz even with the code i hzve no clue

real sierra
#

they just seem to be walking to sources

#

and then grabbing energy

#

and walking back

#

actually some arent moving at all

#

i lied

#

they're all moving

olive sable
#

So why are some walking to africa znd back?

real sierra
#

wdym

#

theres a source down there

rare bridge
#

Hmm i wander if static miners would be the best option for me...

real sierra
#

they're walking to it

real sierra
#

ah

sage crag
real sierra
#

creeps cant walk thru other creeps

#

lemme draw

olive sable
#

Ohhh

#

Ok

amber fractal
#

The next nearest slot is in africa

rare bridge
sage crag
#

someone represent screeps as differential equations and then solve them numerically

#

to find optimal coefficients

real sierra
sage crag
real sierra
#

example of what you're seeing sam

#

if the hall is blocked, they find a new route

rare bridge
#

their creeps really do be going walkies

olive sable
#

Ahhhh

#

Ok

real sierra
#

this is, as it turns out, insanely expensive for pathfinding

olive sable
#

Shit

real sierra
#

i fixed this just with

rare bridge
#

okay in feel like the issue is with my code

#

oh i see why

real sierra
#
creep.moveTo(target, {
  maxRooms: 1
});
rare bridge
#

i see why my code just refuses to work

real sierra
#

...

#

wait

rare bridge
#

shiro, how useful is your system to make static miners?

real sierra
#
                minerTemplate = util.getScaledBody(constants.PROPORTIONS_STATIC_MINER, Math.min(Math.min(Math.max(minerBudget, 200), budgetMax)), 700); // 700 is max useful mining rate

#

do you

#

do you see the issue

rare bridge
#

what on earth are you doing

rare bridge
#

i assume what your code is trying to do is scale the static miner depending on the energy budget available

rare bridge
#

but yeah

real sierra
#

i hate this place

rare bridge
#

welcome to javascript

opaque sigil
rare bridge
#

tbh, ts wouldn't have defended against this

real sierra
#

javascript when i give 3 args to a 2 arg function: Ok

rare bridge
#

oh actually it would have

real sierra
#

me not being a dumbass would've defended against this too Dentge

#

how did i misplace a whole ass number

opaque sigil
#

Common typescript W

olive sable
#

How many screeps do yall have?

opaque sigil
real sierra
amber fractal
#

I just noticed that as well

real sierra
#

a regular miner needs MOVE, CARRY, WORK minimum

#

but at any given time

#

they are either using the MOVE and CARRY

#

or using the WORK

#

one of those two categories is sitting idle at least 50% of the time

#

which is tons of money wasted

#

splitting the jobs of mining and hauling lets you get that utilization time way up

olive sable
real sierra
#

and it means you need fewer miners per source

#

in fact, according to my napkin math

#

and the reason for that 700 above

#

is that one miner with 7 work parts is sufficient for any source in the game

#

you can see the miner with 11 parts i accidentally made earlier has actually exhausted its source far ahead of time

olive sable
#

Shiro hiw many screeps do you have rn?

real sierra
#

oh uhh

#

9

#

with 1 in queu- WTF

olive sable
#

I have more neuroHypers

rare bridge
opaque wharf
real sierra
#

it does introduce two new fun problems

#
  1. static miners will drop collected resources on the ground where they will decay over time
#
  1. they cannot get to the sources on their own
olive sable
#

Aight goodnight yall hydrate

real sierra
#

gn sam neurosHugA

#

ty for screeping peepoShy

#

i like having friens to screeps with

rare bridge
lapis wraith
# rare bridge

Can confirm. Errors mean nothing in JS. May be not an actual error or may be something mega critical but you end up ignoring it because half of your code is flooded with fake errors.

real sierra
#

i love how bullshit some of my systems are

#

when i was like 4 hours into the game i was like "yeah this seems reasonable for the creep unit budget"

olive sable
real sierra
#

hasn't changed since

#

it was just some random combination of stats i pulled out of nowhere

#

but it isnt broke so

opaque wharf
#
if (moveObstructed) {
  findOtherPath();
}
rare bridge
#

i might set up mining and logistics seperately like you have, but i'd want some sort of storage that the logistics puts into usually that everything else can pull from

#

so for now i'm on this slightly inefficient system

real sierra
#

i learned a secret undocumented trick ages ago

#

thanks to observing crazyfish

rare bridge
#

oh?

real sierra
#

secret Tomfoolery

rare bridge
#

damn

#

Okay keep your secrets, they'll help you defeat me

real sierra
#

i cant even defeat QIS

sage crag
rare bridge
honest scaffold
#

okay, i think screeps might be a decent motivation to learn javascript so i will trywaitingcat
will be back here in a few days when i start to understand shit

real sierra
#

yeah but ive been broke ever since construction started on the new extensions

#

drained all 10k stored energy

#

im waiting for my money to stabilize

#

then i can afford to accidentally create a platoon that empties my storage again

rare bridge
#

but when you defeat QIS

#

i better hope i have a defence system built up

real sierra
#

if

#

and even then

rare bridge
#

it's inevitable shiro ICANT

real sierra
#

im now blocked in even more

#

id have to beat panda, sam or the invaders

#

all 3 are bad options dejj

rare bridge
#

Hmm true

#

i'm defended simply by my neighbours rn

#

not exactly the best situation since they could decide to target me

real sierra
#

i paid for the extensions, im gonna use the extensions

rare bridge
#

Hmm upgraders specifically upgrade the room controller right?

real sierra
rare bridge
#

right now i have harvesters on that task CerberOMEGALUL

#

i'll have to change their jobs soon tho

#

since when i set up static miners they won't need to mine anymore

#

thus can't exactly call them harvesters

#

Hmm i might prepare to go to sleep and let my creeps work overnight

opaque wharf
sage crag
#

mrrp

real sierra
#

just made a 5head change

#

this should fix my resource distribution issues

#

it was only a few extra chars but it should ensure that units withdraw from the most full container of a given priority

#

and deposit to the one with the most free space of a given priority

rare bridge
#

oop, i think i might be able to convince my creeps to be a bit more bigger than normal

#

lemme try

real sierra
#

i get this terrible feeling every time a creep spawns

#

because i watch the lights go out on all 20 or so extensions

#

and it just feels like i lost the game or something

#

like someone used admin commands to delete my energy

#

just found out js has been allowing this with no errors

const template = util.getScaledBoody(templates[util.getRandomInt(templates.length), virtualBudget]);
rare bridge
#

What

#

how has it been allowing this

#

oh there

#

still weirdge

#

gonna prepare to go to bedge

real sierra
#

Bedge eepy cloud time

#

i will keep observing my colony and slowly fixing minor issues as i spot them

#

once i finally get to a reasonable economic state again, ill test my room capturing code Evilge

rare bridge
#

when i get back i hope my creeps will have not brutally murdered themselves and will have, instead kept everything maintained

dusk sierra
#

I just finished a project I'd like to share, but it's not strictly about Neuro (but the scope is to use it while watching streams, especially if I expand it further as I would like), can I post it in projects or not really?

real sierra
#

sorry :s

dusk sierra
#

Sadge

real sierra
#

it sounds like a cool project tho neuroHypers

dusk sierra
#

It's like an app that counts how many messages each chatter sends across the stream making a leaderboard of the most active (or most spammy) chatters

real sierra
rare bridge
#

Okay banning the top people on the leaderboard

dusk sierra
#

I'd like to make some further development, to catch the most used messages in a given timeframe and be able to copy/paste them directly in chat

real sierra
#

im still proud of my score from the ELO stream

#

gx_ez top 150

dusk sierra
#

ELO stream?

real sierra
#

was it that long ago Aware

dusk sierra
#

No, it might be me forgetting and being bad with acronyms

real sierra
#

there was a stream where neuro would give chatters points if she liked their messages

#

and take them away if she didnt

dusk sierra
#

ok, no I missed that! That sounds so cool

#

The chat must have been a warzone thou

real sierra
#

ok i was 165 so not top 150 Sadgi

#

but still top 200 gx_ez

real sierra
#

500 more work on the storage

#

then broke era ends

#

and we can return to richness

#

all my hard work for this

sage crag
#

awb

opaque sigil
#

@real sierra

real sierra
#

on it

opaque sigil
fast pagoda
#

ive decided ableton has the best design language

#

idk why but i like this lol

dense cosmos
fast pagoda
sage crag
opaque sigil
#

yeeeeeeeeah

real sierra
#

long day today

#

moderation-wise, at least

sage crag
real sierra
sage crag
opaque sigil
#

why is naming so hard

#

ugh

real sierra
#

makes you wonder how ppl fall for it

real sierra
sage crag
opaque sigil
#

no i need a name for my big integer arithmetic cuda library

real sierra
opaque sigil
#

preferably something short i can use as a prefix for functions

real sierra
#

name it something even more generic like uhh

#

nvidia-utils

sage crag
opaque sigil
sage crag
#

just name it huge

real sierra
#

math YEP

sage crag
#

bath (short for big math)

opaque sigil
#

i like this one mhm

real sierra
#

actually i like that

#

bath

sage crag
opaque sigil
#

whenever i read bath i always think of a friend's thesis, while i was helping with that we always called it her bath

#

sam would probably love to hear this, said thesis was about rewriting a c++ tool in python

#

i think it ended up with a 10x speedup or sth on average

sage crag
#

name it bwa (big word arithmetic)

opaque sigil
#

wasn't there an ISA that has specifically "big words"

#

am i tripping

opaque sigil
#

nah

real sierra
#

ok so

#

i know this error is obviously my fault

#

but the max call stack is that small..?

sage crag
#

i will become a cpu scheduling algorithm

opaque sigil
#

ah i found it, it was VLIW aka very long instruction word aka ISAs that let you specify instructions to be executed in parallel