Bitburner

Bitburner

View Stats:
Vovin Dec 23, 2021 @ 4:44pm
Any Python equivalent?
This game looks like exactly something I would be interested in, IF it were based on Python. Is there any similar game based on Python?
< >
Showing 1-15 of 41 comments
MrFailSauce Dec 23, 2021 @ 5:28pm 
You and me both buddy. Python would be a dream
Green Dec 23, 2021 @ 8:40pm 
Javascript isn't "that bad".

here are some helpful syntax. ( had to google it all to get started )
for (let x of list){}
Math.min
Math.floor
`almost an ${"fstring"}`
var wee = {}
wee[key] = value
if (key in wee) {}
// foo.js
export function foo(boo){
null}
import * as name from "./foo.ns"
name.foo(wee)
Vovin Dec 23, 2021 @ 9:05pm 
Originally posted by Green:
Javascript isn't "that bad".

I'm not going to get into the philosophy of whether Javascript is good or bad. I have a background in data science/deep learning applications that are based on Python/Anaconda, so between Python and R, I'm not really interested in packing another computer language into my few remaining brain cells.
Shinelite Dec 29, 2021 @ 2:45pm 
Man I would love to have this game but in Python instead.
tclord Dec 29, 2021 @ 3:06pm 
Originally posted by Shinelite:
Man I would love to have this game but in Python instead.
Just pretend that to win this new game you have to write it, and so while you think you are playing the game, in reality you are making a game like this in python for other people to play. :)
it has a scripting language that is similar to python, you can use javascript but I haven't seen where that is required. maybe it is later on in the game idk. but the scripting language is stuff you've seen before and shouldn't have problem using.
MrFailSauce Dec 29, 2021 @ 3:13pm 
Originally posted by Legato Bluesummers:
it has a scripting language that is similar to python, you can use javascript but I haven't seen where that is required. maybe it is later on in the game idk. but the scripting language is stuff you've seen before and shouldn't have problem using.
The built in scripting language is very slow. You'll need to go to NS2 (javascript) eventually.
Last edited by MrFailSauce; Dec 29, 2021 @ 3:13pm
Originally posted by MrFailSauce:
Originally posted by Legato Bluesummers:
it has a scripting language that is similar to python, you can use javascript but I haven't seen where that is required. maybe it is later on in the game idk. but the scripting language is stuff you've seen before and shouldn't have problem using.
The built in scripting language is very slow. You'll need to go to NS2 (javascript) eventually.
what you mean by slow? compiling?
MrFailSauce Dec 29, 2021 @ 3:28pm 
Originally posted by Legato Bluesummers:
Originally posted by MrFailSauce:
The built in scripting language is very slow. You'll need to go to NS2 (javascript) eventually.
what you mean by slow? compiling?
The execution time. I ended up migrating to NS2 when I wrote a hacknet auto-buyer script and it was taking hours to buy all the upgrades. When I rewrote it in NS2 it was essentially instant. (Or only limited by my available funds)

It is actually pretty easy to convert NS1 scripts into NS2, so I'd highly recommend it. There are certain goals in the game that are certainly impossible in NS1. (Automatic contract solver, SF -1, etc...)
hmm okay I'll start writing in js then, I'm familiar with it but I assumed both were equally fine.
Mnemovore Dec 29, 2021 @ 5:24pm 
The problem with Python is that Python can do *anything* of coaxed right. "Anything" is a bad word for shell games like this. It's seriously the software engineer's duct tape.

*Coming from a .net engineer who hasn't touched .js since school and only uses Python to do the things you're really not supposed to be doing behind QA's back.
tclord Dec 29, 2021 @ 5:56pm 
Originally posted by Legato Bluesummers:
hmm okay I'll start writing in js then, I'm familiar with it but I assumed both were equally fine.


Originally posted by Legato Bluesummers:
hmm okay I'll start writing in js then, I'm familiar with it but I assumed both were equally fine.
NS1 is not compiled or anything, just interpreted, which is why it is slow. NS2 runs natively as a real javascript program. So using NS2 you are using javascript and are doing real programming really. Just in a pretend kind of context of a game.
Mnemovore Dec 29, 2021 @ 6:29pm 
Originally posted by tclord:
NS1 is not compiled or anything, just interpreted, which is why it is slow. NS2 runs natively as a real javascript program. So using NS2 you are using javascript and are doing real programming really. Just in a pretend kind of context of a game.

I've actually been naming my scripts .js and using pretty much all of the ES6 native javascript I can do. The dev has rightly ruled out a few things that deal with parallel asynchronous processing, and I'm pretty sure that emits and other node-ey things will break something too. But real coding? Yup. Classes and functions and .reduce() magic? Absolutely. I haven't tried setting up import patterns but I probably should.

But you can even go so far as to wget code out of github, so technically this game is actually multiplayer.
Originally posted by tclord:
NS1 is not compiled or anything, just interpreted, which is why it is slow. NS2 runs natively as a real javascript program. So using NS2 you are using javascript and are doing real programming really. Just in a pretend kind of context of a game.
i wish i would have known this before because i like scripting languages more and I personally ♥♥♥♥♥♥♥ hate javascript with a burning passion almost exclusively because I had 2 classes in community college using javascript GUI. No idea why we couldn't have used C# or even VBasic.
smolgumball Dec 31, 2021 @ 12:54am 
You could try hacking Brython into the game, it probably wouldn't be too much work to get a basic implementation going :D

https://brython.info/static_doc/en/intro.html
< >
Showing 1-15 of 41 comments
Per page: 1530 50