this post was submitted on 29 Feb 2024
113 points (100.0% liked)

196

18272 readers
828 users here now

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

Posting rules:

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196's:

founded 2 years ago
MODERATORS
 
top 25 comments
sorted by: hot top controversial new old
[–] dhtseany@lemmy.ml 19 points 2 years ago (2 children)

Lol ok I'll ask: wtf is that code?

[–] kopi-pasted@incremental.social 26 points 2 years ago (2 children)

The code is for an incremental RPG programming game called Bitburner, which uses a version of JavaScript that has some additional game-specific APIs and restrictions (the game originally ran in a web browser)

This code in particular is a (flawed) solution to the first problem the game throws at you, which is finding a way to hack as much in-game money as possible from in-game servers. (The problem is more complicated than it appears at first glance, and I'll try to elaborate if you ask.)

Urghh, now I must post before I leave...

[–] aldalire@lemmy.dbzer0.com 3 points 2 years ago (1 children)

No it’s actually to compute the threads required for a hghw batching script :)

[–] kopi-pasted@incremental.social 4 points 2 years ago

My bad, was wondering why it was called "recon"... HACK GROW HACK WEAKEN? What on earth is this madness? Did... did you... did you do this on purpose?

Anyways, I think I'm going to write the essay despite no one asking.

[–] WeLoveCastingSpellz@lemmy.dbzer0.com 2 points 2 years ago* (last edited 2 years ago) (1 children)

I am trying to.get into the game but I am very clueless do I have to learn javascript before continueing or will it teach me

[–] aldalire@lemmy.dbzer0.com 1 points 2 years ago

there's documentation , but it's a good way to learn javascript imo. It gives you an environment to interact with javascript and that's a perfect place to go hands-on and learn programming :)

[–] imPastaSyndrome@lemm.ee 6 points 2 years ago (1 children)
[–] Remotedeck@discuss.tchncs.de 2 points 2 years ago (1 children)
[–] imPastaSyndrome@lemm.ee 9 points 2 years ago (4 children)

Might be bitburner?

No idea though, just saw this

[–] aldalire@lemmy.dbzer0.com 10 points 2 years ago

It is bitburner :3

[–] MasterNerd@lemm.ee 4 points 2 years ago

Bitburner is the shit

[–] CptEnder@lemmy.world 1 points 2 years ago

Is that like a programming game? (I know nothing about programming haha)

[–] ProgrammingSocks@pawb.social 1 points 2 years ago

OK I was just shitting on JS but any way to gamify programming might be good for me. I'll check it out

[–] Donnywholovedbowling@lemmy.world 11 points 2 years ago (1 children)

Love bitburner. I have a tiered hacking script I've written that distributes itself to all hacked servers and manages their cash whilst extracting the max amount. Great game 10/10

[–] aldalire@lemmy.dbzer0.com 6 points 2 years ago (1 children)

I’ve been banging my head against the wall at making a continuous batching script. I finally got it to (kind of) work using the additionalMsec property of the hack, weak, and grow to time the batches. I’m getting a billion a second with it rn :)

Sounds like you're on the right track! I have admittedly taken a break and haven't used ns3 so it's probably way more capable now. Great game though!

[–] ProgrammingSocks@pawb.social 8 points 2 years ago (1 children)

What the fuck kind of JavaScript fuckery is for (; ; i++)

[–] Metype@lemmy.world 10 points 2 years ago

i is already initiated so the first statement isn't necessary so it's empty.

The loop is ended with a conditional break statement so the loop end criteria isn't necessary so it's empty.

We want each iteration to increment i so it's i++

That's how you end up with (;;i++)

[–] germanatlas@lemmy.blahaj.zone 6 points 2 years ago

Omg a bitburner player

[–] HerbalGamer@sh.itjust.works 6 points 2 years ago

lol I've got bitburner running on autopilot right now

[–] Perfsad@lemmy.ml 3 points 2 years ago (1 children)

You play League of Legends on linux?

[–] aldalire@lemmy.dbzer0.com 7 points 2 years ago (1 children)

yup 😊 although they’re going to force their kernel level anti cheat soon. So i gotta enjoy it while it lasts

[–] noli@programming.dev 3 points 2 years ago

I finally quit and started playing overwatch2 instead. Same amount of salt/toxicity!

[–] AVincentInSpace@pawb.social 3 points 2 years ago (1 children)

Did you somehow convince KDE to be a tiling window manager? Is that what I'm seeing here?

[–] survivalmachine@beehaw.org 1 points 2 years ago

I dunno about this newfangled plasma 6 stuff, but I was tiling KDE for a few days using extensions like bismuth. It was rad af, but really just convinced me I needed to make the jump to proper tiling with hyprland.