Comments (11)
Okay, going by your post, you've got a pretty firm grip on paths, etc - which is great.
What I'd like to do is check that your file is getting from VS Code to the Next image.
When you hit "run with cspect" in VS Code, what happens under the hood is this:
- your file gets converted to a .bas file - called
index.bas
- hdfmonkey is used to send all your working project files across and then your new index.bas
- a new
autoexec.bas
is sent that is used to load your code immediately. - finally cspect is launched
We know cspect is launching, but there might be something up with the launch flags - but we'll circle back to this.
First I want to check that the files are getting from vscode to your Next image.
There's two ways (both are worth checking):
- Are you able to mount the
cspect-next-2gb.img
file, and in there, you should find a directory called/devel
and inside that there should beindex.bas
. - Launch cspect manually from the command line, and using the NextOS browser, navigate to the
/devel
directory and hit enter on theindex.bas
file - it should launch your code.
Let me know how you get on with those two items - I'm expecting/hoping they're fine - and if that's the case, then we need to look at cspect and maybe reach out to it's author Mike Dailly to see if there's anything special about launching from linux within the extension (there's something that rings a bell and I'll check if I can find anything in the facebook groups too).
from vscode-nextbasic.
HI Remy,
running cspect after 'run with cspect in vscode' but from the command line, the autoexec is modified and the files are present in the devel directory - both test.bas.txt (my hello world file) and index.bas.
Starting cspect from the command line directly after the failed run above, and cspect does start and does auto run the basic file and it prints hello world until the screen is full. You can then press n to continue and see the files in the browser.
cheers
Tom
from vscode-nextbasic.
A bit late in replying - and I'm trying to turn up whether there's known answer to this, but in the mean time, can you try by adding the following flag to your cspect options: -tv
so it reads -w3 -basickeys -zxnext -nextrom -tv
from vscode-nextbasic.
Hi Remy,
tried adding the -tv flag to the cspect options and still the same behaviour (black screen nothing happening)
I also tried it again following a vscode shutdown and reload - also the same behaviour
Thanks for looking in to this!
cheers
Tom
from vscode-nextbasic.
Grasping a bit at straws here, but found this on facebook - the important bit being making sure all the files are in the same directory:
C:\spec\CSpect2_12_29\CSpect.exe -w2 -zxnext -nextrom -basickeys -exit -brk -tv -mmc=.\cspect-next-2gb.img
Where the .img file is in the same directory as CSpect, and enNextZX.rom and enNxtmmc.rom (from the
version of the distro you are using) are in the same directory as the .img file.
Worth a try at least - or worth asking.
from vscode-nextbasic.
Hi Remy,
there were all in the same directory anyway but i retried with your command line options and still not working (no difference - black screen),
Running mono CSpect.exe -w2 -zxnext -nextrom -basickeys -exit -brk -tv from the command line works fine.
It is something to do with the way you are calling mono on linux?
cheers
Tom
from vscode-nextbasic.
Maybe its something to do with paths, i.e. if your running CSpect.exe with the full path - you are not in the directory where all the roms and img file are?
If i try running as:
mono /home/twri/Downloads/0.SpectrumNext/cspect/CSpect2_12_36/CSpect.exe -w2 -zxnext -nextrom -basickeys -exit -brk -tv -mmc=/home/twri/Downloads/0.SpectrumNext/cspect/CSpect2_12_36/cspect-next-2gb.img
from the command line it does work though (when not in the CSpect folder).
Sigh - out of ideas!
Tom
from vscode-nextbasic.
I'm doing more searches on the Facebook groups. The -tv
flag comes up a lot (which you've tried).
One individual found that they had a black screen and it was resolved by installing openal. I don't know much about it, but it might be an avenue to try if it's a straight forward install (probably best to do a search for it on Google or duckduckgo
from vscode-nextbasic.
Hi Remy,
already had openal32.dll installed in the same folder as all the other files.
I tried removing it - no difference - and it still ran fine from the commandline.
Added it back again and tried again - no difference - and commandline still ran fine.
cheers
Tom
from vscode-nextbasic.
Just ran:
sudo apt-get install libopenal-dev
to install linux version of openal and tried again - no difference still blackscreen
cheers
Tom
from vscode-nextbasic.
Late, but in case someone would find it useful: just ran into exactly the same issue (except running on Windows). Turned out I had to add -sound
option to command line, then it started to work.
from vscode-nextbasic.
Related Issues (20)
- Running Cspect on mac HOT 6
- Installing hdfmonkey on mac HOT 3
- Unable to run via CSpect on Windows HOT 3
- Space between number and int expression errors HOT 1
- Can the original autoexec.bas be protected/restored? HOT 1
- PRINT 1e6 fails HOT 2
- Command 'nextbasic.run' not found HOT 3
- Feature request: Multi conversion of txt2bas on RUN? HOT 1
- Export to .BAS causes errors with new NextZXOS 2.08 integer syntax HOT 1
- #xxx is unknown and not in a #define statement HOT 1
- New version of NextBasic HOT 1
- How to GOTO when #autoline used HOT 3
- V1.10.0 tokenising bug with ELSE IF HOT 2
- v1.11.0 #bank BANK20 gives error "A system error occurred (EROFS: read-only file system, open 'BANK20')" HOT 4
- #bank sections and index.bas not always building with RUNinCSpect v1.11.1 HOT 42
- LAYER PALETTE %0 BANK 32,%0 nonsense in basic
- PRINT POINT encoding bug HOT 5
- Possible EXPORT to Bank issue in Windows 11 HOT 6
- Export to .bas (when "strip comments enabled") renumbers exported file HOT 19
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 vscode-nextbasic.