Comments (18)
Just a starting question: windows or Mac?
from vscode-nextbasic.
Win 7 64bit (sorry, should have said)
from vscode-nextbasic.
I suspected (you mentioned c:/ drive) but didn't want to assume.
Okay, so the "next image" is from here: http://www.zxspectrumnext.online/cspect/
You need to scroll down to "CURRENT DISTRO IMAGES" - I tend to pick the 2gb one (not sure why, but it works for me, though they should all work).
Download the "image" ("image" meaning a copy of a disk drive) and put the contents of the zip file in the same directory you have cspect.exe
in.
This is why my nextbasic settings look like on my machine. Ignore the hdfmonkey
setting (yours, being on windows will be different), but can you see where I'm pointing to the next image:
My machine it's /Applications/cspect/app/cspect-next-2gb.img
- yours will be something like C:\spectrum\cspect\cpset-next-2gb.img
(obviously your own path, but I hope you get the idea).
Once you've got that done, hdfmonkey is next - but we'll do that in a moment.
To test that cspect is setup correctly, you can run the following in your command prompt:
c:
cd \spectrum\cspect
cspect.exe -w3 -basickeys -zxnext -nextrom -mmc=cspect-next-2gb.img
That should launch cpsect - if it doesn't come back, ideally with a screenshot or errors and we'll see what's what. If it works, we'll get your hdfmonkey sorted (remember to download this version of hdfmonkey).
from vscode-nextbasic.
Awesome! thank you. I got it working, it's showing me the next startup screen, the first time I typed that line it ran and said there was no sound but I used the link it showed and installed the AL file and now it's working with sound.
Superb, what's next? and one question. What button do I press to test any code I've typed?
from vscode-nextbasic.
Okay, so - quick question, have you got hdfmonkey set up yet or do you need a hand with that too (happy to help).
In VS Code, you can run with a shortcut ctrl+shift+r
, or in the command palette (I don't remember off the top of my head how to bring this up on Windows), but once that's open, "NextBASIC" and it'll list all the commands you can (you want "run with cspect").
So worth using the hello world starting point:
10 PRINT "Hello World"
20 GO TO 10
If hdfmonkey is working and cspect is working, then, hit the run command (above) and it should, hopefully, compile your text into NextBASIC, send it to your "next image" and have cspect launch and auto run your code.
Let me know where you get up to.
from vscode-nextbasic.
Thank you. I did download hdfmonkey and set the path to it. (I believe it's correct)
I typed in the two lines but control+shift+r gives me an error "Command 'Nextbasic:run with cspect' resulted in an error (command 'nextbasic.run' not found)"
I'm sorry for being a pain.
from vscode-nextbasic.
Can you screenshot the error with as much of the window in view to help me understand what's wrong?
You can then drag and drop the image directly into this comment box and it'll upload it for you.
from vscode-nextbasic.
(just to let you know, I'm retiring for the night, but I'll drop you any follow tomorrow morning - I think you're pretty close, just something missing in vscode)
Actually, something else you can try, in vscode, same your file and give it an extension of either .bas or (what I do) .bas.txt - then with that newly saved file open, in vscode, run the keyboard shortcut.
(Any screenshot of errors are worth a 1,000 written words - they're always super useful).
from vscode-nextbasic.
this is the error I'm getting.
from vscode-nextbasic.
Okay - that's useful (particularly the "plain text" bit in the corner).
Is the file you created open when you do the run shortcut?
When my hello.bas.txt is open, it looks like this:
from vscode-nextbasic.
(though I just tried to change the "langauge" to plain text, and I was still able to run the code in cspect, so there might be something else going on here)
from vscode-nextbasic.
I'm sorry for taking up so much of your time with this, perhaps we should call it a day, we tried.
from vscode-nextbasic.
okay, I changed it to nextbasic and we have a new error, says the path might be wrong but I'm sure it's not.
from vscode-nextbasic.
Okay, this is good progress :)
Can you post a screenshot of your settings for the extension.
What I believe it's telling us is that path to the image is wrong or can't be resolved. We're looking at this setting:
from vscode-nextbasic.
from vscode-nextbasic.
Yep, missing a slash in your path - should be c:/Cspect/cspect-net-2gb.img
(or c:\Cspect\cspect-next-2gb.img
- I'm never quite sure with windows). Try that and let me know.
from vscode-nextbasic.
YES!!! I also added the missing slash to the path for hdfmonkey and it works! Thank you so so much, there's no way I would have got it working without your help. it's much appreciated. Thanks!
from vscode-nextbasic.
Yay!
I'm thinking about busting out my windows machine and doing a step by step on how to install the supporting tools (cspect and hdfmonkey) - you're not the first to get stuck on these bits, and if a person isn't familiar with tooling it can be a bit scary.
Good on you for persisting 👍
from vscode-nextbasic.
Related Issues (20)
- Running Cspect on mac HOT 6
- Installing hdfmonkey on mac HOT 3
- Unable to run cspect from within vscode on linux HOT 11
- 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.