Giter Club home page Giter Club logo

Comments (18)

remy avatar remy commented on May 28, 2024

Just a starting question: windows or Mac?

from vscode-nextbasic.

SteveSpeccy avatar SteveSpeccy commented on May 28, 2024

Win 7 64bit (sorry, should have said)

from vscode-nextbasic.

remy avatar remy commented on May 28, 2024

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:

Screenshot 2020-10-16 at 11 34 23

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.

SteveSpeccy avatar SteveSpeccy commented on May 28, 2024

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.

remy avatar remy commented on May 28, 2024

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.

SteveSpeccy avatar SteveSpeccy commented on May 28, 2024

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.

remy avatar remy commented on May 28, 2024

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.

remy avatar remy commented on May 28, 2024

(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.

SteveSpeccy avatar SteveSpeccy commented on May 28, 2024

error
this is the error I'm getting.

from vscode-nextbasic.

remy avatar remy commented on May 28, 2024

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:

Screenshot 2020-10-17 at 11 56 15

from vscode-nextbasic.

remy avatar remy commented on May 28, 2024

(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.

SteveSpeccy avatar SteveSpeccy commented on May 28, 2024

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.

SteveSpeccy avatar SteveSpeccy commented on May 28, 2024

new
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.

remy avatar remy commented on May 28, 2024

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:

Screenshot 2020-10-17 at 12 33 29

from vscode-nextbasic.

SteveSpeccy avatar SteveSpeccy commented on May 28, 2024

pic

from vscode-nextbasic.

remy avatar remy commented on May 28, 2024

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.

SteveSpeccy avatar SteveSpeccy commented on May 28, 2024

yes

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.

remy avatar remy commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.