#programming

1 messages · Page 86 of 1

real sierra
#

my code for this is... CatDespair

rare bridge
#

they're not even accepting the job i don't think???

real sierra
glass flower
real sierra
#

it made sense when writing it

rare bridge
#

oh wait

real sierra
#

now i just have to never touch it again

rare bridge
#

do i just not

#

apparently i'm not ticking builders???

glass flower
#

i can't really use room.Find for most of the stuff because of the overhead iirc. so i had to make my own cached system. tink i never actually tested if its really that bad...

rare bridge
#

yes the fuck i am wtf

rare bridge
#

oh

#

my code didn't go through cos there's an error in another file

tulip ermine
#

Anyone know how they coded MiSide 😭

rare bridge
glass flower
#

i use C# YES due to the interlop between the wasm and the js

real sierra
olive sable
tulip ermine
olive sable
#

i mean its prob not too difficult seperating each individual part as a function

#

but still

tulip ermine
#

Ngl I might as well ask the devs

glass flower
# real sierra

"There is also a small up-front cost to using any methods that involve JS interop, similar to a JIT, as it has to import and bind code to the JS api. This cannot be avoided." tink

tulip ermine
#

I don't know if they will respond though

olive sable
#

wat exactly do you wan to know aboutiside anyways?

#

if its the source code you wont get it

glass flower
olive sable
#

it is

rare bridge
#

no they used javascript Tomfoolery

olive sable
#

god no

rare bridge
#

okay, builder code works

glass flower
#

uhhh i just realized... im not doing any garbage collection in my c# code

rare bridge
#

Hmm i currently use 3.38 CPU each tick

#

i'm not sure if my code will work well for multiple rooms

#

cos the room itself is using like 3-5 CPU per tick

glass flower
#

tink well.. will every room be the same size?

rare bridge
#

assuming so, i can only have 4 before i start saturating my limit

#

meanwhile i think shiro's probably running with less than 2 CPU per tick if they're letting their creeps just expand themselves

glass flower
#

tink i think the way to do it. is figure out a plan for each creep during the room being active then switch focus but still make the creeps follow the plan without calculating new things

rare bridge
#

indeed

#

currently that's what a lot of these tasks do

#

but it can be improved

glass flower
#

hmm but also don't forget the overhead

#

like calling something for the first time a tick. maybe the calculations are not expensive but the first time is. so if you only have 1 room you don't know how expensive that call is... maybe

rare bridge
#

i wonder if there's an intrinsic limit to how big you can get because of the 20 CPU limit

glass flower
#

technically speaking obviously

rare bridge
#

or if you could write code that, despite you being massive and covering multiple sectors, still keeps you below the 20 CPU limit

glass flower
#

you would need to delegate tasks and not simulate each room

#

like have low-priority rooms

real sierra
#

if you're storing anything in creep memory, it's slowly piling up

#

and you do not want the state fuck explosion that happens if you hit the mem limit

glass flower
real sierra
#

idk how either of you survive with random script resets

glass flower
#

im doing everything with epheral c# storage. so a psuedo memory

real sierra
#

if my state all got reset...

#

part of why my stuff is so fast is because i can cache a bunch of stuff long-term and rely on that

glass flower
#

i assume nothing lasts and just make sure the tasks are delegated each time they are asked for

real sierra
#

e.g. my wall algorithm is super expensive but it's run once ever per room and then cached until the end of time

glass flower
#

but i also don't do anything too complicated yet..

#

its basically just go a-b and do a-b no actual info needs to be know

real sierra
#

my screeps store a great deal of info about themselves

#

i dont wanna leak too many of my innovations tho hmm

#

ok maybe its not that much info

#

but a few little important nuggets

glass flower
#

this is literally my whole memory layout

real sierra
glass flower
#

but also.. LUL i just removed all my caching.. and it didn't change a thing for my ms

real sierra
#

i cant fit the rest in a picture

#

ive profiled my code to death and confirmed that my cache helps

#

the slowest creeps are, 99% of the time, ones with cache misses

glass flower
#

the only thing im caching was room.Find calls

real sierra
#

thats the worst thing to cache

glass flower
#

so.. ye

real sierra
glass flower
real sierra
#

it was a smart idea tho

#

if it wasnt auto-cached, that would be a huge performance gain

glass flower
#

im used to this kind of things being expensive in literally every other API LUL

real sierra
#

its expensive in this one

#

thats why it's one of the very few methods with built-in caching

#

the other being creep.moveTo

#

i would suggest tho that there's a few more things worth caching for you

#

if you ever spot yourself doing a
room.find(...).filter(...)
or
room.find(...).sort(...)
(or the C# equivalent)

#

those are good candidates to at least consider

rare bridge
#

are you able to provide updated profile code to log the hits and misses?

real sierra
#

it only works with my cache code

rare bridge
#

damn

real sierra
#

idk if you're using the same cache wrapper system

nocturne olive
#

Finally managed to fix the NeuroSynth trainer installer

nocturne olive
rare bridge
real sierra
#

it feels a bit like shooting myself in the foot but here mhm

nocturne olive
real sierra
rare bridge
#

in exchange

#

if i write attacking code

#

we'll set up some sort of ally system

real sierra
# real sierra

*for use, ensure that you import the module and call clear() each tick before any methods using wrap() are declared

#

beyond that, use just looks like

#
    bodyCost: cache.wrap(function(body) {
        return body.reduce((sum, part) => constants.PART_COSTS[part] + sum, 0);
    }),
rare bridge
#

Okay time to rewrite all my code at some point

real sierra
#

shouldnt need a huge rewrite

#

just put cache.wrap around anything expensive

stoic ruin
#

haiiiii

real sierra
stoic ruin
#

just making sure, this channel is for programming in general right? not just AI?

rare bridge
#

everything.

real sierra
#

?

#

everything..?

real sierra
#

you are allowed and encouraged to ask more than just "how do i make my own neuro"

rare bridge
#

i use 5 CPU per tick shiro

real sierra
stoic ruin
#

oh cool! cause i know nothing about ai programming 😅

rare bridge
#

creep ticking

real sierra
#

actually

stoic ruin
#

my thing is making apps

real sierra
#

i have an

#

A+ speedup

#

for you

#

i discovered it a while ago

#

and was blown away by how useful it is

#

im gonna dm it

rare bridge
#

i also have one: rm -rf my-screeps-code

#

actually...

#

what about rm -rf / --no-preseve-root xdx

#

(don't run that)

glass flower
olive sable
#

aight guys im going to bed, goodnight

stoic ruin
opaque sigil
#

we need more non-ai programming here neuroPogHD

real sierra
olive sable
real sierra
olive sable
stoic ruin
olive sable
#

Cuz if you want cursed vulkan its coming soon

real sierra
stoic ruin
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

1839

▶ Play video
#

read thru the description and see if it interests you

#

a number of us are playing it right now

olive sable
#

Aight bye

stoic ruin
real sierra
#

+1

#

yeah if you ever hear us talking about screeps in here

#

thats the game we're on about

stoic ruin
#

gotcha, as soon as i get the chance, ill buy the game

real sierra
#

you are fricking awesome

#

omg wait im so sorry

#

ahem

real sierra
#

please feel free to ask any questions you may have to staff or community alike! neuroHeart

stoic ruin
#

you got it!

stark needle
real sierra
#

seeing AI and sentient in a sentence together gx_tired

opaque sigil
#

i decided to look at the rust bindings for screeps to see how much work porting it to zig would be and apparently it's 16k lines of rust neuroDespair

real sierra
#

just transpile

stark needle
stoic ruin
real sierra
opaque sigil
#

wait

#

there are c++ bindings

real sierra
#

delete that message before sam sees it

opaque sigil
#

i could do cpp -> c -> zig neuroPogHD

lapis wraith
#

I don't know what gary is trying to cook here, but he's got the spirit I guess

glass flower
real sierra
#

I WAS LIKE "HOW DID YOU TURN THE NUMBERS ON"

rare bridge
#

SAME

sage crag
#

awa

lapis wraith
glass flower
#

PauseChampies neuro sdk integration in screep when?

real sierra
rare bridge
#

i debated doing it actually

glass flower
#

LUL honestly how long the ticks take it would give her enough time to think

lapis wraith
rare bridge
#

oh shit it's 1am i should probably sleep

sage crag
real sierra
#

the builders in E37N39 right now Pointless

rare bridge
#

lemme give my builders the ability to repair and then i think i'll be good

rare bridge
glass flower
#

catWait im exhausting my single energy source 500 ticks before it regenerates...

sage crag
#

mrrp

lapis wraith
#

Well... good luck at screeps neuro7

real sierra
sage crag
#

eeeliv needs a business suit model

real sierra
#

suits are so classy

#

COPIUM my walls algorithm is so good right guys? haha

rare bridge
#

i tell the builders they can repair structures and they immediatly decide that they MUST repair something that's 85% repaired

real sierra
#

i found a bug in my wall filling code

#

not the wall algorithm, just the code that puts down the actual construction sites

#

SAVED almost died to this bug

rare bridge
#

i'm gonna die to this builder bug if it reoccurs

real sierra
#

fixed another small bug that would fill my ramparts with walls

#

im not that worried about my security

rare bridge
#

found the cause ICANT

#

some leftover damage from the battle i put my creeps through

#

... and some badly written repair priortization code

#

okay, i think my code is working now?

#

@real sierra if you see my creeps just outright die off ping me and laugh at me

real sierra
#

just set up emails

rare bridge
#
let hasCreeps = false
for (let creep in Games.creeps) {
    hasCreeps = true;
}

if (!hasCreeps)
    Game.notify(":neuroWAJAJA: :evilWAJAJA:");
#

email tomorrow: neuroWAJAJA evilWAJAJA

real sierra
#

i have independently confirmed that the emails also render HTML

#

i havent tested the <img> tag, but...

rare bridge
#

LETSGO actual emojis

#

wait i could render arbitrary images in my creep data render

real sierra
#
<img src="https://cdn.discordapp.com/emojis/1328963855698886716.webp?size=44" /> <img src="https://cdn.discordapp.com/emojis/1328963853995737189.webp?size=44" />
#

?

rare bridge
#

try it

#

dm me results

real sierra
#

ik it'll work in console

rare bridge
#

i'm going bedge

real sierra
#

i just dont know if it works in email

austere forge
hoary lion
#

o hell nah this is bad

#

java = javascript war is going to start again

opaque sigil
warped narwhal
hoary lion
real sierra
#

php is truly one of a kind

glass flower
#

PauseChampies php screeps player when?

real sierra
#

AI glueless

#

mhm convert SQL to lua please

austere forge
glass flower
#

we already have a .NET player (Me)

#

tink not sure about python tho..

amber fractal
#

@burnt rock fuck off

#

For context, at least 5 necro pings to (regrettably) a non vedal individual

amber fractal
#

@olive sable :xdx:

#

Only other thing I can think of is rust-python with a PO3 for screeps. Way too much jank for python.

opaque sigil
#

idk about calling javascript elegant chief neurOMEGALUL

#

i suppose i can see where they're coming from, it do be kinda comfy once you're used to it

tender geode
opaque sigil
#

nice abbreviation mhm

nocturne olive
#

The 3090 has proven itself worthy of the title of the NeuroSynth training device, it can easily run NeuroSynth training at an increased feature level at 16 batch size, with VRAM to spare

hoary lion
#

i have zero hope of grok 4 coming out on api

#

it is actually out

#

or is it

#

man fuck this musk time

sage crag
#

awa

hoary lion
#

awa

#

finally

warm star
#

Allow me to annoy everyone, greetings

#

Behold

#

The humble square

dense marsh
near copper
dense marsh
#

ew

warm star
#

Teehee

lilac glen
midnight sigil
warm star
warm star
#

Hehehehehee

warm star
#

Nooooo

hoary lion
#

there are like hundreds of much worser variants of this gif

warm star
#

I know

amber fractal
#

Mods, add an electron to every atom in their body

warm star
#

What about the
"Mods, grind him up by the essence of the stars and splay their profane form across the galaxy... END THEM NOW"

hoary lion
#

too long

#

just twist 'em balls

primal siren
#

Canada computer build this for me... WTF how is my gpu still alive after 2 years. AND WHY DID I NOT ASK ANY QUESTION!?!?

warm star
stark needle
#

I mean is it actually four right Angles? If it's circles directly i dont think there'd be a true right angle since it'd always be rotating

#

no (?)

#

i think there'd only be a single point to which the circle would be a right angle to the lines

warm star
#

Actually no

#

Right angles can be as small as necessary

hoary lion
#

welcome shadow being schizo

opaque wharf
hoary lion
#

did you just say bizzare

warm star
amber fractal
#

I thought about it like this, if circles are defined as 0 sided shapes then your adding 4 angles from each extension.

#

If someone is on the circles have infinite angles side however, this doesn't work

stark needle
#

wait actually

#

In geometry, two circles are said to be orthogonal if their respective tangent lines at the points of intersection are perpendicular (meet at a right angle).
A straight line through a circle's center is orthogonal to it, and if straight lines are also considered as a kind of generalized circles, for instance in inversive geometry, then an orthog...

amber fractal
stark needle
#

<insert koniibwaa>

stark needle
warm star
warm star
stark needle
warm star
tender river
#

straight lines as generalized circles is crazy

prime ridge
#

tripartite attention is pretty kool

uneven pulsar
warm star
#

This infuriates me

#

I am unsure as of to why

#

But it does

rare bridge
#

surprisingly my creeps didn't break themselves overnight

noble zodiac
#

they are just like me frfr

glass flower
#

tink i wonder... what is your average cpu and how many creeps.
i feel like 1ms per creep is a bit much on average. (7 creeps and i have a 7 cpu average tho some take longer for somereason..)

noble zodiac
#
(defun hamt-insert (hamt key value &optional (hash (shash key)) (shift 0))
    (let*
        ((idx (* (bitwise-and 31 (arithmetic-shift hash shift)) 3)) (node (vector-get hamt idx)))
        (cond
            ((nil? node)
                (begin
                    (vector-set! hamt idx hash)
                    (vector-set! hamt (+ idx 1) key)
                    (vector-set! hamt (+ idx 2) value)))
            ((integer? node)
                (if (eq? hash node)
                    (vector-set! hamt (+ idx 2) value)
                    (let ((leaf (vector-make 96)))
                        (hamt-insert leaf (vector-get hamt (+ idx 1)) (vector-get hamt (+ idx 2)) node (- shift 5))
                        (hamt-insert leaf key value hash (- shift 5))
                        (vector-set! hamt idx leaf))))
            ((vector? node)
                (hamt-insert node key value hash (- shift 5))))))
(defun hamt-get (hamt key &optional (hash (shash key)) (shift 0))
    (let*
        ((idx (* (bitwise-and 31 (arithmetic-shift hash shift)) 3)) (node (vector-get hamt idx)))
        (if (vector? node)
            (hamt-get node key hash (- shift 5))
            (if (eq? node hash)
                (vector-get hamt (+ idx 2))
                nil)))))
#

behold the worst hamt ever conceived

glass flower
olive sable
olive sable
olive sable
warm star
olive sable
#

You're not allowed to use the outside

#

Well time to check on my screeps

#

Oh ye, goodmorning neuroWaveA

prime ridge
#

What's up Sam

glass flower
prime ridge
rare bridge
#
[09:55:21][shard3]Starting execution for tick 71185897. 2975ms since last tick.
[09:55:21][shard3]    Checking for missing creeps took 0.09808630000043195ms
[09:55:21][shard3]      Creep b_7d51c78209 took 0.18104059998586308ms
[09:55:21][shard3]      Creep u_dcd756d484 took 0.25421519999508746ms
[09:55:21][shard3]      Creep u_96746b12bf took 0.2320033999858424ms
[09:55:21][shard3]      Creep u_8aa4345225 took 0.23053960003016982ms
[09:55:21][shard3]      Creep u_a21e3302cd took 0.231944899976952ms
[09:55:21][shard3]      Creep d_35a83dc9fd took 0.04601480001292657ms
[09:55:21][shard3]      Creep d_1c78f19b09 took 0.027740699995774776ms
[09:55:21][shard3]      Creep b_cb8568c726 took 0.11579360000905581ms
[09:55:21][shard3]      Creep b_9ab8c1499a took 0.11486410000361502ms
[09:55:21][shard3]      Creep l_cef84bcabf took 0.41117980000854004ms
[09:55:21][shard3]      Creep l_3aee195050 took 0.3615496999991592ms
[09:55:21][shard3]      Creep l_ea232a0d9e took 0.11600550000730436ms
[09:55:21][shard3]      Creep m_925c5eeb98 took 0.3048853000072995ms
[09:55:21][shard3]      Creep l_6ddc54e5b8 took 2.167105400003493ms
[09:55:21][shard3]      Creep m_045c01fa60 took 0.39686159999109805ms
[09:55:21][shard3]    Running creep jobs took 5.321401000008336ms
[09:55:21][shard3]    Creating creeps too 0.0046787000028416514ms
[09:55:21][shard3]  Spawn Manager took 5.4489726000028895ms
[09:55:21][shard3]  Structure Manager too 0.003248699998948723ms
[09:55:21][shard3]Room E37N34 took 5.4657777000102215ms
[09:55:21][shard3]Finished execution after using 5.532078999996884ms CPU time. 6007 CPU currently in bucket.
glass flower
#

hmm interesting

#

good to see that your logistic bot also takes about 2-3ms

#

i managed to get 5-7ms now

#

my repair bot and logistic bot are the most expensive ones.

#

tink i should try to look for a way to enable/disable profiling at runtime. rightnow im doing it through a compile preprocessor

rare bridge
#

i just always profile

glass flower
#

it spams the console too much for my liking. i also don't think its overly useful

#

also not sure about the overhead of it

#

since im creating and destroying IDisposables when the scope ends

#

could clog up the GC and cause larger spikes

rare bridge
#

hmm maybe...

glass flower
rare bridge
#

can't read that on mobile LULE

glass flower
#

classic discord with their embeds

#

modCheck i guess i'll have to do this:

using System;
using System.Text;
using ScreepsDotNet.Native.World;

public class Profiler : IDisposable
{
    private static double _startTime;
    private static double _endTime;
    private static NativeGame? _game;
    private static bool _isProfiling;

    private string _name;

    private double _starttime;

    private struct ProfileEntries
    {
        public string Name;
        public double cpuTimeStart;
        public double cpuTimeEnd;
        public ProfileEntries(string name, double starttime, double endtime)
        {
            this.Name = name;
            this.cpuTimeStart = starttime;
            this.cpuTimeEnd = endtime;
        }
    }

    private static List<ProfileEntries> Entries = [];

    public Profiler(string profilingname)
    {
        this._name = profilingname;
        this._starttime = _game?.CpuTime ?? (double)0.0f;

    }
    public static void Init(NativeGame game)
    {
        _game = game;
    }

    public static void Start()
    {
        _startTime = _game?.CpuTime ?? 0;
        _isProfiling = true;
    }

    public static void PrintProfiling()
    {
        _isProfiling = false;
        if (_game == null)
        {
            Console.WriteLine("Profiler was not initiated Correctly");
            return;
        }

        _endTime = _game.CpuTime;

        StringBuilder print_string = new();
        print_string.AppendLine($"-----Profiling Results for Tick {_game.Time}------");
        print_string.AppendLine($"Total Time: {_endTime - _startTime}ms");
        //var lastcputime = _startTime;
        foreach (var item in Entries.GroupBy(x => x.Name))
        {
            var count = item.Count();
            {
                if (count > 1)
                {
                    var combinedCPUTime = item.Sum(x => x.cpuTimeEnd - x.cpuTimeStart);
                    var averageCPUTime = combinedCPUTime / count;
                    print_string.AppendLine($"---{item.Key} -- {averageCPUTime}ms -- {combinedCPUTime}ms Total -- (Average of {count} entries)");
                }
                else if (count != 0)
                {
                    var group = item.First();
                    var entryTime = group.cpuTimeEnd - group.cpuTimeStart;
                    print_string.AppendLine($"---{group.Name} -- {entryTime}ms");
                }
            }

        }

        Console.WriteLine(print_string.ToString());

        Entries.Clear(); // TODO: maybe make average over a certain tick range?
    }

    public void Dispose()
    {
        GC.SuppressFinalize(this);
        if (!_isProfiling || _game == null) return;
        Entries.Add(new(_name, _starttime, _game.CpuTime));
    }
}

and then i use it like:

using Profiler profiler = new($"{role.GetType().Name} Role Execution");
#

and it automatically adds a new entry

rare bridge
#

i wrap functions in my profile function and that returns a function which calls my function and returns it's result, while also console logging the profile

glass flower
#

i log at the end of a tick to not (hopefully) change the profiling results

#

all it does during a tick is save the name,startcputime and endcputime. the actual calculation and logging is done at the end and all combined add about 1ms to the end result

rare bridge
#

maybe i should do that, but i profile everything tbh LULE

glass flower
#

tink i kinda want to add a rolling profiler to it. so it maybe profiled 10 ticks and only then prints it

glass flower
#

alright so i guess my code and the c# wasm isn't too much of a overhead

rare bridge
#

eventually i want a system that achieves <10ms average per tick on several rooms

glass flower
#

mhm same

noble zodiac
prime ridge
#

ah neat

glass flower
#

HELLAWICKED im gonna speedrun lvl4

rare bridge
#

i finally installed constantly running upgraders

glass flower
#

LUL how did you survive without that

#

i always had atleast 1 upgrader running 24/7

#

sometimes i scaled up or down depending if i were building or spawning things

rare bridge
#

i had tasks that'd upgrade when i wanted them to but otherwise keep it from downgrading if it got too close

glass flower
#

tink is there a downside to upgrading?

#

i thought it only has benefits

#

besides invaders getting stronger after lvl4

olive sable
#

6-8

rare bridge
glass flower
rare bridge
#

so my downside was that i wouldn't be able to fill my spawners and keep everything running

glass flower
rare bridge
#

now i've got 5 different types, i turned the harvesters into upgraders

glass flower
rare bridge
#

sorry for slow responses btw

#

i'm literally at work rn

olive sable
rare bridge
#

(they're pretty lax if i get my work done cerbyLUL)

glass flower
rough bloom
rare bridge
olive sable
#

Imagine having a job, couldnt be me

olive sable
#

Im on a plane back to belgium at 6pm tho so neuroHypers

#

Ill be lannding in charleroi though bwaadow

#

Its better than nothing ig

rare bridge
olive sable
#

Id rather think of myself as a game-dev AquaCry

#

Go to the room controller if spawn is full!!!!!!SCHIZO SCHIZO SCHIZO

rough bloom
glass flower
#

like resources or something. that you then can sell for actually valuable thing tink maybe even steam community market items

olive sable
#

Why is this broken?

#

Spawn.energy should be full

glass flower
#

tink you can transfer energy into the controller?

#

i thought you always have to use upgrade

olive sable
#

Is that not how it works?

glass flower
#

scrajj there is a upgradeController method on creeps that levels the controller up and requires a Work Component

olive sable
#

Lemme try

rare bridge
#

you have to use upgrade

opaque wharf
#

Y'all doing fun programming there. Meanwhile me, here, doing boring programming evilBwaa

#

Tomorrow I should be able to join tho evilHyperYay

midnight sigil
#

we should do vibe coding

#

👍

rough bloom
#

Don't worry I am also doing boring programming
I love enterprise Java code full of ChatGPT-generated garbage and nonsensical design decisions SCHIZO

olive sable
#

Ill be on desktop then

#

No more coding on shitty phone or laptop suffocating on the hotel bed

harsh herald
amber fractal
#

-# Not to be confused with the NN work I'm doing on this channel

olive sable
#

Now they're not bothering to do anything at all

#

They're all just chilling there with full carry

olive sable
#

I get the feeling my colony is too high maintenance

#

As soon as a the spawn is full it needs to make a new screep cuz someone died

#

I scaled down the amount of screeps

real sierra
#

screepers

#

what's new for everyone

real sierra
#

are you unable to or

#

are you just not

amber fractal
#

Yesn't

real sierra
#

is that even a thing

rare bridge
#

spawn.energy is deprecated

#

please don't use it

olive sable
#

Fuuuck

uneven pulsar
#

always use deprecated things

#

despite all warnings

olive sable
#

Then what is the new one?

uneven pulsar
#

just to see how long they'll stick around

amber fractal
#

Time to write even more code neuroHypers

olive sable
real sierra
#

bro is making up properties

#

🥀

olive sable
#

I halucinzted worse than chatgpt

uneven pulsar
#

bro just reminded me that i should be working

#

by accident

olive sable
#

So what do i need to use???

dry sage
#

Shir

real sierra
#

spawn.store.getUsedCapacity(RESOURCE_ENERGY)

rare bridge
olive sable
#

They're hogging even worse now AquaCry

real sierra
#

the store property should be accessible for most objects that can hold any resource

real sierra
#

then you use the getCapacity, getUsedCapacity, getFreeCapacity methods on the store as needed

real sierra
#

I hope your wizardry is going well

dry sage
glass flower
#

mhm i would probably just do (spawn.getFreeCapacity() <= 0) if that doesn't work your code is wrong somewhere down the line YES

real sierra
#

you never know what you can store in these things hmm

#

or what changes screeps may receive in the future

#

doesn't hurt to insert the constant

real sierra
#

I have a container that accidentally has a bunch of some weird resource despite the fact that none of my creeps can transport it

#

idek how it got in there

glass flower
#

== would be the correct one. but i like doing <=

olive sable
#

Do > then bruh

#

Dont equal

#

Cuz i need it to do other shit if its full

glass flower
olive sable
#

If freeCapacity is 0 it needs to go upgrade the controller

glass flower
#

uhhh but then <= is correct no?

olive sable
#

No, cuz this is not part of the upgrade code

#

That line should check if theres free capacity in spawn, cuz it makes the screeps go to spawn

glass flower
#

annytfShrug then do > 0 idk

real sierra
#

without arguments, it just consider all resources

glass flower
#

oh.. its optional

#

i just have it default to Energy for me

#

since that is the most likely usecase

real sierra
#

i.e. a container with 10 energy and 10 ghodium will have getUsedCapacity() return 20 and getUsedCapacity(RESOURCE_ENERGY) return 10

glass flower
#

tink but will it make a difference for getFreeCapacity?

real sierra
#

good question honestly

glass flower
#

i mean.. it doesn't matter what resource it can only take so much regardless

real sierra
#

I hope not

#

it would suck if it just subtracted the used capacity for that resource from the total capacity of the container

#

I'll have to check

rare bramble
real sierra
#

I do too

#

that's why it worries me

glass flower
#
Returns free capacity for the store. For a limited store, it returns the capacity available for the specified resource if resource is defined and valid for this store.

Returns available capacity number, or null in case of an invalid resource for this store type.

hmm

real sierra
#

unclear from docs

#

will need to experiment

#

luckily I now have a container with a bunch of a random resource somehow

#

so I can check

rare bramble
#

are there resources that take more than 1 capacity per resource?

#

then it would make sense

real sierra
#

nah but there might be storages that are locked to a particular resource

#

or at least some of their capacity is

glass flower
#

like labs probably

real sierra
#

labs could be an example

#

yeah

rare bramble
#

yeah

real sierra
#

also discovery

#

you can put arbitrary HTML in the email notifs too

rare bramble
#

that's pretty funny

#

can you send a static webpage in an email when you get a notification?

real sierra
#

yeah probably

glass flower
#

tink btw are you guys running a private server to test stuff. or are you guys doing everything on the live server

real sierra
#

I'm doing everything live

glass flower
#

HELLAWICKED living on the edge

#

(same)

real sierra
#

cloud is supposed to start a server but

real sierra
glass flower
#

tho i was thinking about doing it just so i can work on auto expansion code

#

without attacking any of you guys on accident LUL

#

i should add a list of usernames to never attack to my memory

real sierra
#

surely I'd never attack anyone by accident

#

surely I have adequate protections on my expansion code

glass flower
#

MEGALUL and then i'll devour everyone. including qis and crazyfish

real sierra
#

QIS is my victim Mental

glass flower
#

then just doing something

real sierra
#

waiting for my GCL to go up so I can claim their room after

#

my code won't waste resources on expansion and scouting if my GCL is too low for a new room

glass flower
#

ICANT they have 2 more safemodes...

rare bridge
glass flower
real sierra
#

they barely even set up wall repairs

glass flower
#

honestly i feel bad for them

#

they seem new

real sierra
#

I dont

#

they haven't opened the game in like a week

glass flower
#

annytfOwo how do you know?

real sierra
#

because I check on them often

#

the behaviour of their code is unchanged

glass flower
#

tink but they build a few walls manually no?

real sierra
#

they did that ages ago

glass flower
#

they werent there a few days ago. there were holes no?

real sierra
#

did they fix the holes in the bottom right?

#

those holes were there yesterday

glass flower
#

no LUL

real sierra
#

they're not here then

glass flower
#

just NessieWalk in

real sierra
#

it's hilarious because

#

I don't think my code would even spawn attackers for them

glass flower
#

ehehe maybe i'll just walk in and kill them before you

real sierra
#

then I'd kill you

#

idk if you noticed but I'm stuck in a corner and they're the only useful tile I can get to

glass flower
#

Nyehehehe you could try

real sierra
#

they also cut me off from

#

literally the entire rest of the novice zone

#

so I WILL use that tile as a passage

glass flower
#

annytfOwo i was just planning to kill not to also claim

real sierra
#

why

lapis wraith
#

I have a machine that I don't use that's suposed to act as a server. Maybe I can look around on how to set up a screeps server (I don't know if I could run it 24/7 but... maybe I do it cause funny?)

real sierra
#

cloud already setting one up hopefully

opaque wharf
real sierra
#

no worries

opaque wharf
real sierra
glass flower
#

tink is anyone going to settle in E35N37? i might make that my secondary base

lapis wraith
#

Okay Good to know. I'll look into it just out of curiosity too.

real sierra
glass flower
#

2 left of me

lapis wraith
real sierra
#

I can't see the map so

lapis wraith
glass flower
#

where sam died YES

real sierra
#

but either way no I'm not planning for it

#

I was gonna murder QIS and that's about it

#

by then the novice zone will be over

#

so I can look outward

opaque wharf
glass flower
#

we are surrounded by lvl 7 and 8 people DESPAIR

real sierra
#

not the worst out of context thing of mine

glass flower
#

its gonna be fun once the novice area is gone

real sierra
#

just a little more Prayge

glass flower
#

LUL you are 5

#

and they have power creeps already

real sierra
#

I believe in my creeps Prayge

#

I've beaten every invasion

glass flower
#

the provismet guy to the right of me is making me scared Scared

#

(i still had no invasions LUL )

real sierra
#

yeah

#

provismet scares me too

#

burn that bridge when I get to it

#

need to ensure my subjugation squads work

opaque wharf
#

Is crazyfish still crazy?

real sierra
#

and I think their AI needs a little more work

real sierra
glass flower
#

i'll be honest.. we could probably just run into crazy fish LUL they barely have energy for defense rightnow

real sierra
#

Caught ?

glass flower
#

annytfHmm maybe i should plan for that soon'ish

real sierra
#

the downfall of crazy fish

glass flower
#

he could build like 1-2 big guys at most

real sierra
#

that's still a lot

glass flower
#

i could prepare with like 5-6 LUL

real sierra
#

with all those extensions you have surely you can afford a strong soldier

glass flower
#

dud i can pump out like a full spawner (about 800 energy) every 50 ticks

real sierra
#

a move part is 50 energy

#

that's only 16 move parts

#

attack, ranged attack, and heal are even more expensive

glass flower
#

heal is like 250 alone

real sierra
#

it's a far cry of the max unit parts of 50

glass flower
#

well he can't make max units either

real sierra
#

susge are you sure?

glass flower
#

and his storage is basically empty

#

he has 2250 energy PepoG

real sierra
glass flower
#

like total

real sierra
#

you've given me an idea for a way to set up my rooms

glass flower
#

in his whole room LUL

rare bridge
#

bro is cooked

real sierra
#

i might be able to improve my empire a lot this way

glass flower
#

he is pumping everything excess into the controller

rare bridge
#

i'm currently gaining energy unless something is invading

glass flower
#

like im not 100% sure.. but like pretty sure i can kill Crazy but...

#

he has 5 safe modes LUL

#

xdx i should send a random scout unit so he automatically activates his controller

#

(surely he has automatic safe mode)

real sierra
#

if he's as smart as he looks, his safe mode might only trigger on hostile units with attack parts

#

plus some proximity to the controller

rare bramble
real sierra
#

that's what id do

glass flower
#

then.. 1 move 1 attack 1 tough Corpa

opaque wharf
#

You know, I wonder if this convos is worth moving to #gaming and see how confused people are neurOMEGALUL

real sierra
#

ENJOY YOUR CACHE WIPE

glass flower
#

EZ nothing will break for me

#

i coded everything with the idea it wipes every tick

real sierra
#

unit roles:

opaque wharf
real sierra
#

how do you track your energy production

glass flower
#

uhhh why do i need to track it?

opaque wharf
real sierra
#

is that just me?

opaque wharf
rare bramble
#

I currently only use creep memory for loading in creep types after reuploading my code

real sierra
#

yeah I use the actual memory object for everything

glass flower
#

i only use global memory for RoleLimits so i can edit those without recompiling LUL

#

(well and roles for the creeps..)

opaque wharf
real sierra
#

the shiro conjecture is true

#

idc

rare bridge
real sierra
#

5 mins from now

#

"why is everything broken?!"

glass flower
#

EZ i know i'll be fine

rare bramble
#

PauseSama do things like creeps and items retain their memory after server reset?

rare bridge
#

shiro the only thing i use cache for technically doesn't even need cache

glass flower
#

because i have that everytime i change my code..

real sierra
#

so it is also wiped

glass flower
#

btw. the room.Find() cache was actually useful. was able to cut down my time from like 3ms to 1ms average

rare bramble
glass flower
#

scrajj does memory even get wiped? i thought that is stored forever

real sierra
real sierra
#

wtf am I talking about

glass flower
olive sable
#

Im back

glass flower
#

i was like... obviously its stored in their DB

rare bramble
#

🐥 🚬 shiro spreading misinformation

real sierra
#

anything in Memory is retained

glass flower
#

thats why there is a limit LUL

rare bridge
#

i spoke too soon my creeps aren't moving

rare bramble
real sierra
rare bridge
#

and now the website doesn't work
Aware website used cache

olive sable
#

Time to check on my screeps

olive sable
opaque wharf
#

Cloud, I need answers, WHAT WEBSITE? DID YOU CODE A WHOLE WEBSERVER IN SCREEPS?

rare bridge
#

guys i think my creeps are dead

rare bramble
#

I have a debug print for seeing if the memory was loaded on startup so I can check if global memory is retained

glass flower
olive sable
#

Screeps is 502'ing me bwaadow

rare bridge
#

502 bad creep

opaque wharf
rare bridge
#

oh

olive sable
rare bridge
#

i can't even sign up LULE

opaque wharf
rare bridge
#

can't even log in these days mhm

olive sable
olive sable
rare bridge
opaque wharf
rare bridge
#

(it's an nginx fork)

olive sable
#

Angie is the servers name?

rare bridge
opaque wharf
olive sable
#

The server is a woman neuroNOWAYING

olive sable
opaque wharf
lapis wraith
olive sable
rare bramble
#

there was a time when I consistently had 550+ tabs open at any one time, I have since trimmed it down to only 90

real sierra
#

I used to be good with tabs but I'm getting worse over time

olive sable
#

Brother yall are the reason we need more ram to play games

real sierra
#

I need to do another purge

rare bridge
#

it's happy now

real sierra
#

general rule of thumb, if I can't remember what's in a tab before clicking it, then I won't ever reference it again

opaque wharf
#

On desktop, I've mitigated the habit somewhat by the extension Tab Session Manager

lapis wraith
opaque wharf
#

I don't dare to look at the exported json size tho

olive sable
#

Same, i got 4x16 3600 now

lapis wraith
rare bridge
#

screeps returns

#

ish

rare bramble
#

neuroHypers the memory wasnt wiped

real sierra
#

it's so over

rare bridge
#

me when my init takes 17ms

olive sable
#

My screeps are upgrading now neuroHypers neuroHypers neuroHypers

real sierra
#

my GCL is going up quick, I'm like a third of the way to GCL3

rare bridge
#

when i get home i'll probably work on why my tower does nothing at all

rare bridge
#

also screeps on mobile is terrible

glass flower
#

i only use it to check up on things

#

nothing more...

#

you can't even select overlapping things LUL

real sierra
#

were you hoping to do strenuous JavaScript development on your phone

rare bridge
#

me modifying my compiled js code expecting it to persist glueless

real sierra
#

my only mobile support complaint is that the button to open the sidebar in the docs is miniscule

lapis wraith
#

Go one step further. Use screeps in a quest 3 Tomfoolery

real sierra
#

I wonder if I should've checked on my screeps

#

I didn't actually look at them this morning

#

just verified I didn't have any urgent emails from screeps

rare bridge
#

i'd check for you if i could

#

wait i might be able to ish

#

nvm

#

mobile is bad

real sierra
#

I do kinda wonder how my new room is doing

glass flower
#

i have like 30 emails from screeps LUL

real sierra
#

idk how much they got built

glass flower
#

because everytime i recompile my cpu limit is hit so it sends me a email for it after an hour

rare bridge
#

got to your room

#

shiro what is your strategy here

real sierra
#

?

#

idk I'm just letting the creeps figure it out

#

I haven't placed anything in that room by hand

rare bridge
#

tell them to do better smh

#

i see defence against the natural wall is going well

glass flower
#

tink can you only own a second room with gcl 2

real sierra
#

one room per Gcl

#

you can reserve neutral rooms but it's kinda pricy in my experience

glass flower
#

but you can probably claim more than that?

real sierra
#

no

#

you can reserve more

glass flower
#

tink isn't it just a bot with claim and move? to reserve

real sierra
#

but only claim/own up to your GCL

real sierra
olive sable
glass flower
real sierra
#

one CLAIM part costs 600 and lets you increase the reservation counter by 1 per tick

#

also, creeps with those parts can't be refreshed

glass flower
#

so.. i should just rather have a bunch of miners in multiple rooms than claiming a room for the 3k source?

real sierra
#

the reservation counter, of course, drops naturally by 1 per tick, so

#

if you don't claim the room, you can't build much

#

containers and roads only

glass flower
#

i mean.. that is enough

real sierra
#

but otherwise there's nothing saying you can't operate in a neutral room

#

reserving the controller prevents other people from claiming it, I suppose

#

to avoid someone wandering in and grabbing your room while you're using it

#

it's kinda a losing battle there by virtue of lower GCL

olive sable
glass flower
#

tink i guess

real sierra
#

I'm not sure if neutral rooms get invaders

#

something worth checking

glass flower
#

they don't but if you claim it then they will

#

basically anything bordering neutral rooms can get invaders from that entry

real sierra
glass flower
#

(but judging from me not being invaded once yet... not so sure about it LUL )

#

tink there is a spawn in the room next to me... maybe that is preventing invaders?

rare bridge
#

i've also not been invaded yet from what i can tell

glass flower
#

"can appear only at exits to neutral rooms. " hmm

real sierra
#

that makes me think they can appear in neutral rooms then

opaque wharf
real sierra
#

if that's the only condition aside from energy collection

#

but if there's an RCL requirement then maybe not

olive sable
#

Hi konii NeuroBounce

sage crag
olive sable
warm star
#

I knew this, I just enjoy fuckin with people

#

And this is a perfect place where I get lots of people replying to one thing, it's really amazing

#

People here are cool

olive sable
#

Imo squares should be convex too

tender river
#

topological equivalents neuroDespair

sage crag
olive sable
#

YeneuroPogHD

sage crag
#

the same also applies to regular polyhedra

tender river
olive sable
#

I love it when things are convex neuroHypers
I DESPISE the non-convex shapes GETHIM

sage crag
#

the humble star

#

olive sable
#

The humble "star" is not star shaped

#

Hes a fake and a fraud and i HATE him

sage crag
#

concave hull

tender river
#

type theorists can have a star as a treat

#

programmers cant i refuse to give it to them

sage crag
olive sable
#

Circles are just polygons with infinite vertices

sage crag
#

also a square

#

also any other polygon

olive sable
#

While not actually concave, they're colinear which makes them mid

sage crag
#

from the perspective of the surface of the circle the shape is always concave

olive sable
#

?

#

From the perspective of the surface of the circle?

sage crag
#

if it doesnt touch the circle aside from the tangent point, then its concave at that point ReallyInnocent

opaque wharf
sage crag
#

repeat for all points

tender river
sage crag
olive sable
tender river
#

please konii i'll treasure it forever 🥺

sage crag
sage crag
olive sable
#

Konii im so confused rn

sage crag
#

it worked neuroPogHD

opaque wharf
olive sable
opaque wharf
#

Imagine: A circle

olive sable
#

I am

tender river
#

how can a proof be false when you can build two balls out of one ball (all of the same size) maths isnt real you can make it up as you go

opaque wharf
#

Now imagine: A tangent line passing a single point on said circle

sage crag
#

the actual definition of concave and convex on lines are based on the gradient. by this logic if we consider the gradient of the surface of the circle: x = -sin(t), y=cos(t)

olive sable
opaque wharf
olive sable
#

I still dont get it

sage crag
olive sable
#

Konii i have made an executive decision that circles are convex

tender river
sage crag
#

type theorists dont need copy paste because they know isomorphisms

opaque wharf
#

Parametric equation my beloved

olive sable
#

What are yall even doing with tangentual lines?

sage crag
olive sable
#

Konii i still have no clue what you're yapping about so your false proofs arent even being understood by me

sage crag
#

we can easily fix this by dividing dy/dt by dx/dt, which gets use -1/tan(t), which is infact concave excluding discontinuities

sage crag
oblique moon
#

If you put QED and a checkmark at the end I’ll trust you.

olive sable
#

I still am of the opinion vircles are convex, and i dont care about your proofs

#

All the proof i need is my massive brain

opaque wharf
sage crag
oblique moon
#

Say no more.

tender river
#

chatgpt style proof

sage crag
#

im so smart cupsama

#

hence circle is concave ReallyInnocent

tender river
#

i realized so many problems can be solved by copy pasting

#

polymorphism? nah just copy paste

#

unfortunately recursion says no

#

(but i didn't ask)

sage crag
olive sable
#

We are using these definitions no??

sage crag
#

erm, i get convex and concave switched around a lot

#

so basically just accept what im saying at face value and dont think neuroPogHD

olive sable
sage crag
olive sable
#

Circles are convex

sage crag
sage crag
olive sable
#

Im going now

#

Bye

sage crag
olive sable
#

Circles are convex

#

Dont care about your proofs

sage crag
olive sable
tender river
#

nope its final circles are concave

stoic ruin
#

good morning everyone, well morning for me. not sure about everyone else. ive been making changes to my code all morning

tender river
#

konii wouldnt lie to us would she

#

actually easy way to remember convex and concave - simplex rhymes with convex

olive sable
#

If i wasnt on vacation idd wake up at 4pm probably

opaque wharf
#

At least for me

sage crag
rare bramble
#

neuroHypers I got the miners to build their own containers

#

they first use their resources to build a container and then when built, they will keep storing resources into that container

#

the spawn and controller will be starved of energy for a bit but I think that's fine

#

it's only 5k energy

#

the plan is to have runners that do all the moving so that I can be more efficient with parts

#

my creep state machine is starting to pay off

olive sable
#

Airport

tender river
#

ok i dont like that it took me 40 minutes

sage crag
tender river
#

i liked what i read though

olive sable
#

Decoded to print getFreeCapacity cuz it wouldnt work

#

Where the fuck is it getting 158 from????

tender river
olive sable
#

Bro its full, wdym 202?? AquaCry

stark needle
#

me when screeps

olive sable
#

I fixed le bug

tender river
#

i was able to use neuro's ribbons as a star holder

sage crag
tender river
#

i will, in fact, NOT do that

olive sable
#

The spawn was just gering copied once into the screep and never updated. So 202 was the number of the spawn free space when the screep got created

tender river
#

maybe we can reach a compromise, eat the star deal or no deal

sage crag
tender river
sage crag
olive sable
#

Star

sage crag
tender river
#

the proof of star's concaveness is in the eating

olive sable
#

Im getting -7 invalid target for the controllerneuroD

#

Thats prob why everything is dying

#

-9 now smh

#

Not in range, bro just move there then

#

At least this one is ez to fix

nocturne olive
#

The 3090 appears to have taken about 3-4 hours on the first part of training, and was easily able to sustain 24 batch size while only using 17GB of VRAM

#

On NeuroSynth with increased feature level

olive sable
#

3-4 hours is not that much

#

You could prob invrease batch size too

#

I fixed my screeps neuroHypers neuroHypers neuroHypers neuroHypers

#

Wdym 413/200????

#

Why does everything keep breaking???

stark needle
#

Bros even playing on the phone, what

olive sable
#

Im at more than enough progress

olive sable
nocturne olive
olive sable
nocturne olive
#

By the way, this is the first time we're training NeuroSynth with breathiness and energy embeds, so will be interesting to see how those work out

olive sable
#

Imm getting the problem where if the carry is empty it only collects 1 and hoes back yo work

#

Imma need to use a variable for if its collecting or working instead ig

desert wave
#

hoes back yo, sounds like a good time