Comments (12)
Hello :)
You should first use the initRepo.ns
script as mentioned in the Readme.
Check my template repo for more info, this is repo is my personal game files (which you're free to use of course):
https://github.com/Naliwe/bitBurnerTsProject
from bitburner-scripts.
from bitburner-scripts.
i get it when i run the run /bin/utils/initRepo.ns
code
sorry made a misstake in the first post
i run it then when it gets to Running download script
it crashes with the error code
RUNTIME ERROR
/bin/utils/pullFiles.ns@home
Failed to resolve module specifier "/lib/Constants.ns". Invalid relative url or base scheme isn't hierarchical.
stack:
TypeError: Failed to resolve module specifier "/lib/Constants.ns". Invalid relative url or base scheme isn't hierarchical.
im trying to use it in a browser but i think that shout not matter at all sins its the same version as the steam client one
from bitburner-scripts.
Hmm, that's strange:
That's the only import in initRepo.ns
so it should not even try to look for Constants.ns
. Can you check if the /lib/Constants.ns
exists in your game filesystem ? I don't play on the browser version so maybe there is a difference (I would be suprised though, as you said, it should be the same version on Steam).
from bitburner-scripts.
Ah, yeah, sorry, I know what I did x) I changed Helpers.ts
on this repo but not on the template repo :p So yeah, just wget http://localhost:9182/lib/Constants.ns /lib/Constants.ns
or add it to the initRepo.ns
params
constant.
Or start from the template repo instead of this one, this one is just my files so I don't particularily pay attention to its usability by others :P The template should be fine though, it's just the skeleton with minimal imports
specifically to avoid these sorts of problems :P
from bitburner-scripts.
I just fixed the initialization: 3c2ab56 if you wanna try :)
But again, I'd recommend starting from the template repo to play around with it. You can of course just switch to this repo once you get the hang of it afterwards.
from bitburner-scripts.
still happens
from bitburner-scripts.
i use chrome 96.0.4664.110 (Officiële build) (64-bits) to use it on browser on my vm to test sins my main game i code my self xD just wanted to see what your system is about
also i heard that the .ns files are depricated so you need to change your system a little to use .js files
from bitburner-scripts.
Huh? I haven't seen that on steam, and they are the same, it's just an extension :p I use ns
just because it makes sense for NetScript :) And because there is technically a transformation phase (the import
statements are limited in the game) so it's not really js
And yeah I just noticed I forgot to add the new file to the list, I couldn't test since I did the change on my phone :p
from bitburner-scripts.
Should be fine now: 8008c77
from bitburner-scripts.
yep it works now xD
from bitburner-scripts.
Great! Closing the issue :)
from bitburner-scripts.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitburner-scripts.