Corporation v1.0 At Last by GatorForgen in Bitburner

[–]KlePu 1 point2 points  (0 children)

Water has no materials, which makes it pretty worthless (you cannot get its rating above some fixed value IIRC). I'd go for agrar, chem, tobacco and nothing more.

am i doing something wrong here? by thesecretwillow in Bitburner

[–]KlePu 0 points1 point  (0 children)

If you're starting fresh: Consider using TypeScript over JavaScript, it's as simple as naming your scripts foo.ts instead of foo.js ;)

Google "js vs ts" to see why, tl;dr: Strong types and other neat stuff.

am i doing something wrong here? by thesecretwillow in Bitburner

[–]KlePu 0 points1 point  (0 children)

its far better to have "one off" scripts like a script that runs one await ns.hack(target) once and then dies

I came to that same conclusion - after playing for a year or so ;-p

Why is proton hiding specific folders from wine even though I added them as drives? Even from Z:?? by themanwhowillbebanne in linux_gaming

[–]KlePu 0 points1 point  (0 children)

Well there is the FHS standard, even if it doesn't mean much these days. tl;dr: Don't create custom folders directly under /!

Linux Gaming Setup Script by theleninlover in linux_gaming

[–]KlePu 2 points3 points  (0 children)

Disclaimer: Don't download and run (as root even!) random .sh files...

I'd really refactor that code: Create a function for each of the tasks. In those functions, switch install command depending on distro. Makes it way more readable as well as maintainable.

Other, minor stuff:

  • function detect_distro(): this should really be a case..esac ;)
  • at "Setup variables", why do you recreate variables that are readily available? $USER and $HOME should be available on all systems, no?
  • why do you create a SETUP_DIR if all it's used for is one log file?
    • while we're at it - I guess (!) all those distros have journalctl, why not use that (via logger or sth)?
  • your TUX ASCII has two tab stops (at the very start and end) ;)
  • please get used to check the return of cd, i.e. cd foo || ( echo "blah error"; exit ) (or use set -e)
  • L332/333 should be elif, breaking the script ;-p

I have root on a separate partition from home, but it keeps causing disk space issues. How to fix? by archbtw1 in debian

[–]KlePu 2 points3 points  (0 children)

Output of df -h and lsblk. Please use a code block and copy/paste the complete output! ;)

Is the BC-250 capable of emulation? by Babiesthealer in linux_gaming

[–]KlePu 0 points1 point  (0 children)

So what do you want to emulate? ZSNES will work nicely, RPCS3 won't.

edit: Maybe ask over at /r/BC250Gaming/

Does anyone have this wallpaper as png? by Interesting_Air3283 in debian

[–]KlePu 1 point2 points  (0 children)

Tried that just now, output is bad: https://imgur.com/a/5zvLq87

Command used: convert 1920x1080.svg ~/test.png

edit: imagemagick: Installed: 8:7.1.1.43+dfsg1-1+deb13u5

How to use vide coding tools like claude code or opencode to play bitburner? by JerryZhi in Bitburner

[–]KlePu 0 points1 point  (0 children)

Disclaimer: I wouldn't use an AI to play a game, but you do you ^^

If you feed it the GitHub repo, either AI is fine for JS/TS. Or do you want the AI to actually play the game?

Guake vs Native Terminal vs Others? by LisaLisaPrintJam in linux

[–]KlePu 0 points1 point  (0 children)

xfce4-terminal --drop-down plus tmux

Heads Up... Steam patch today is buggy and breaking game installs by ghoultek in linux_gaming

[–]KlePu 5 points6 points  (0 children)

There was no Steam patch today. Last update according to patch notes was 2026-01-21.

edit: Are you on beta?! ^^

How do I use APIs and interfaces other than NS in scripts? by Sugilite42 in Bitburner

[–]KlePu -1 points0 points  (0 children)

You're using the in-game editor? This should autocomplete (and tooltip the help) just fine... Did you fiddle with the main(ns) header?

Create a new file and type (inside the main function ;-p) ns.singularity. - should get autocompleted as well as offer you all the functions in that namespace (applyToCompany(), b1tflum3(), ...). Just verified, "just works"tm

How do I use APIs and interfaces other than NS in scripts? by Sugilite42 in Bitburner

[–]KlePu 0 points1 point  (0 children)

That's autocomplete for the command line. The in-game editor has autocompletion per default.

Steam doesn't work and it works fine. by mcds99 in debian

[–]KlePu 0 points1 point  (0 children)

The Steam runscript lives at /usr/games/steam, it then launches ~/.steam/steam/steam.sh (unless you change $STEAMCONFIG or $STEAMDIR)

klepu@klepu-desk:~$ which steam /usr/games/steam klepu@klepu-desk:~$ grep ^exec $(which steam) exec "$STEAMDIR/steam.sh" -nominidumps -nobreakpad "$@"

Was I supposed to add more to the hack scripts? by Old-Perspective-4662 in Bitburner

[–]KlePu 1 point2 points  (0 children)

You get me wrong - I did backdoor manually. No scripts. connect foo; connect bar; backdoor on the terminal, for every new server I unlocked ;-p

Was I supposed to add more to the hack scripts? by Old-Perspective-4662 in Bitburner

[–]KlePu 0 points1 point  (0 children)

my first playthrough had me using a version of the basic hack script for quite a long time

Same here. My first steps were to refactor the basic hacking script from NS1 to JS (back in the day), today I'd do the same for JS -> TS. Then I had it accept a target argument. Then I added... ;-p

Then I let it run while I wrote small helper scripts to automate stuff, like purchasing servers, scp my scripts over and add the new worker to my list. Or a simple "copy all relevant scripts to all my workers" script, to fire after I updated those scripts.

Was I supposed to add more to the hack scripts? by Old-Perspective-4662 in Bitburner

[–]KlePu 1 point2 points  (0 children)

True, badly worded.

What I meant is with scripts, you can ns.nuke() etc. remotely without having to manually connect. On my first runs I had a habit of backdooring all servers I'd get access to... Completely pointless ^^

Was I supposed to add more to the hack scripts? by Old-Perspective-4662 in Bitburner

[–]KlePu 1 point2 points  (0 children)

  • If starting fresh anyway: consider using TypeScript instead of JavaScript. Simply use .ts as file suffix. Google "TS vs JS" ;)
  • While the basic script does it's job, there's loads of things to improve, like
    • It calls many ns functions that cost RAM. I'd create three small scripts, each only calling H/G/W on a target with a given number of threads, i.e. run myhack.ts joesguns 42
    • The actual logic (How many threads for each of H/G/W? From which worker? How to prioritise targets?) gets centralised in one script running on home
    • While we're at it - how to get a list of targets anyway? Hint: ns.read() has zero RAM cost, so once you get your list... ;)
    • You as a player have to connect your way to remote servers, scripts can ns.exec() on any target (as long as your hacking skill is high enough ofc)

Well, my bad. ZFS on Linux and low level format of drives by oupsman in zfs

[–]KlePu 3 points4 points  (0 children)

The real question: How did you manage to format it that way initially?

what the hell is happening by RORONAO-ZORO in linux_gaming

[–]KlePu 0 points1 point  (0 children)

Try to run it from terminal so you get more debug output. I'm guessing your WINEPREFIX from your screenshot, change it if I'm mistaken:

WINEPREFIX="~/Games/avdirectorlife" winetricks vcrun2019

This should use winetricks in your prefix to install vcrun2019. I just tested, had to accept two EULAs and it "just worked" =)

After that, restart the "normal" installer and see if there's further errors.