Jump to content
Sign in to follow this  
atari2600land

Very newb @ Jaguar programming. Help with Hello World

Recommended Posts

I haven't found any documentation with the Raptor Basic + on making a Hello World type demo. I downloaded the Raptor Basic + files. How do I assemble a .bas file be something playable on Virtual Jaguar? All I found is neat little demos, but no information on how to assemble them or even what I need to do so. If I ever get this figured out, I am going to make a page on this very topic so future people like myself know how to do this. But for now...

help!

Share this post


Link to post
Share on other sites

Apparently I need a sprite to display text. I tried my Hello World-type code and I got this error:

 

UNRESOLVED SYMBOLS
    BMP_ENEMY (BASIC.O)
    BMP_PLAYER (BASIC.O)
Build error!

Share this post


Link to post
Share on other sites

OK, I have this.

post-9475-0-21096400-1452563996_thumb.png

Where in the code does it say to put "TWO LIST TEST NYANNYANNYANNYAN..."? I did not put that in my .bas file!

Edited by atari2600land
  • Like 1

Share this post


Link to post
Share on other sites

Hello,

 

From the output I can only assume that you have an older version of rb+ and you modified one of the (old) example programs. I would suggest you use the latest version (which can be obtained here if you use git: https://bitbucket.org/ggnkua/bcx-basic-jaguaror you can get the installer here: https://bitbucket.org/ggnkua/bcx-basic-jaguar/src/4ef5223882a4a5f8a45d05c593ce32998628de1a/installer/rb+_install.exe?at=master)

 

 

To create a new project without that text, go to the console where you unpacked rb+ and type "build PROJECT_NAME new", replacing PROJECT_NAME with the name you wish to give your project. Then type "build PROJECT_NAME" to build and run the program (assuming no errors occur).

 

Hope this helps!

  • Like 3

Share this post


Link to post
Share on other sites

I just downloaded it yesterday, so I don't think that's the problem.

 

Apparently the web monkeys have been slacking and the one on the site is an old version. Re-download it from the links ggn gave above while we throw bananas at them to fix it.

  • Like 1

Share this post


Link to post
Share on other sites

you don't have to use the installer, you can just run it from the folder, look at the notepad++ setup instructions, that makes the process very easy when you do that

Share this post


Link to post
Share on other sites

you don't have to use the installer, you can just run it from the folder, look at the notepad++ setup instructions, that makes the process very easy when you do that

 

"Download the rB+ installer - our recommended option giving the best functionality " <-- it's the LAW!

  • Like 2

Share this post


Link to post
Share on other sites

Now this is odd, latest installer should have it (I can't check it since I'm at work now). You can download the file from here and put it in <base folder>\include.

Share this post


Link to post
Share on other sites

Now I'm getting an error message saying m68k-atari-mint-gcc doesn't exist. But it does. I see it in the folder!

Share this post


Link to post
Share on other sites

OKay, this is odd:

UNRESOLVED SYMBOLS
Audio_Play (basic_functions.o)

Input_Read (basic_functions.o)

Build error!

Share this post


Link to post
Share on other sites

OKay, this is odd:

UNRESOLVED SYMBOLS

Audio_Play (basic_functions.o)

Input_Read (basic_functions.o)

Build error!

 

I'd say:

  • Copy your project folder out
  • DELETE EVERYTHING, THE ENTIRE FOLDER OF rB+
  • Run the installer
  • Try again

Looks like the first install is merged with the latest one.

Share this post


Link to post
Share on other sites

 

I'd say:

  • Copy your project folder out
  • DELETE EVERYTHING, THE ENTIRE FOLDER OF rB+
  • Run the installer
  • Try again

Looks like the first install is merged with the latest one.

 

This is really starting to sound as if there are two installations and are mixed up in your path settings. Is it possible for you to try uninstalling rb+, manually deleting all folders of any other installations, closing all consoles you have, then install it and try again? Back up your projects first of course.

Share this post


Link to post
Share on other sites

I deleted it and reuploaded it and I got the same error message.

Edited by atari2600land

Share this post


Link to post
Share on other sites

Try opening a console (cmd.exe) and typing "echo %RBTOOLS%". If that prints anything is it the same path as you install rb+ to?

Share this post


Link to post
Share on other sites

At least that verifies that the build environment works, so that means the project you're trying to build yourself has a problem. Did you create it using "build projectname new"? Does creating a brand new project and building it works?

Share this post


Link to post
Share on other sites

I got a project built and compiled. Unfortunately, all it displays in Virtual Jaguar is a black screen.

Here is what I tried to build:

 

basic_r_indx=0
basic_r_size=0

RLOCATE 150,98
PRINT "ants."
RLOCATE 130,106
PRINT "for the jaguar."
RLOCATE 140,114
PRINT "by me."



do

loop

Shouldn't that work, or am I doing something wrong still?

Share this post


Link to post
Share on other sites

change it to include :

 

do

vsync

loop

 

 

then try it

 

doing it like you have you have only set it up, the raptor engine hasnt been called yet to output anything

Edited by omf

Share this post


Link to post
Share on other sites

I tried the source and omf's suggestion and it displays the text from the screenshot you posted above minus the bottom text.

Share this post


Link to post
Share on other sites

It displays the text, but it is also displaying a nyan cat animation and the words "RAPTOR BASIC+ v0.1 REBOOT Derived from BCX BASIC v6"

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...