Jump to content
IGNORED

Gosub


atari2600land

Recommended Posts

Bear with me here. I just unzipped 1.0 into a new file, and now it tells me it can't open bankswitch.inc for reading even though it's there. And not only is it there, I also modified it to use the score_graphicsgosub.asm file, which I copied and pasted into the includes directory.

EDIT: batari said that there's no need to change the inc files, but how else is it going to know to use score_graphicsgosub.asm?

Edited by atari2600land
Link to comment
Share on other sites

Bear with me here. I just unzipped 1.0 into a new file, and now it tells me it can't open bankswitch.inc for reading even though it's there. And not only is it there, I also modified it to use the score_graphicsgosub.asm file, which I copied and pasted into the includes directory.

EDIT: batari said that there's no need to change the inc files, but how else is it going to know to use score_graphicsgosub.asm?

Most likely the path and bB environment variable are not set, or at set incorrectly.

 

Also, it's not necessary to modify the files in the includes directory. Although this method will work, it's not recommended. There are at least 3 different ways to solve the problem:

 

1. Rename score_graphicsgosub.asm to score_graphics.asm and place it in the same directory as your .bas file.

2. Copy bankswitch.inc to the same directory as your .bas file, and modify the line that says score_graphics.asm to score_graphicsgosub.asm

3. Or, do the same as #2, except call the modified bankswitch.inc something like gosub.inc, and place "includesfile gosub.inc" as the first line in your .bas file.

 

All will work equally well, but the third one is probably a better programming practice than the others.

Link to comment
Share on other sites

Bear with me here. I just unzipped 1.0 into a new file, and now it tells me it can't open bankswitch.inc for reading even though it's there. And not only is it there, I also modified it to use the score_graphicsgosub.asm file, which I copied and pasted into the includes directory.

EDIT: batari said that there's no need to change the inc files, but how else is it going to know to use score_graphicsgosub.asm?

I think what batari meant is that you can put your custom score graphics file in the same directory as your gosub.bas file, and just call it by the standard name-- score_graphics.asm. Don't change the bankswitch.inc file, just leave it alone. When you compile gosub, as long as the current directory is the one where your gosub.bas and score_graphics.asm files are, bB will compile using your custom score_graphics.asm file from the current directory, instead of the standard score_graphics.asm file from the includes directory.

 

But you can also create custom files inside the includes directory, and tell bB to use them, without having to change the standard includes files. I've done this, and I've made a few other changes to the code that batari posted. Note that you'll need to put the two files with the ".txt" extensions in the bB includes directory, and then remove the ".txt" extensions from their file names.

 

Michael

 

PS -- I tried flickering between adjacent luminances to get in-between luminances, and I didn't think it looked very good, so I changed it back. It looks okay with interlaced flickering, but the flickering is too annoying with non-interlaced flickering.

gosuba021807.bas

gosuba021807.bas.bin

bankswitch_gosub.inc.txt

score_graphics_gosub.asm.txt

Link to comment
Share on other sites

I think what would help me here is a list of files that are different between 0.99b and 1.0. Then I could unzip the Batari Basic 1.0 and add the files from 0.99b in.

In general, you don't want to mix files from one version with another, because it can lead to various sorts of problems that could be difficult to diagnose (i.e., is it an older file causing problems, or is it something in your program code?).

 

If you want to install and keep different versions, so you can play around with both, then I suggest making separate folders for the different versions. For example, I have all of the different versions of bB installed on my computer, using the following directory structure:

 

C:\Atari\2600\bB\0.1

C:\Atari\2600\bB\0.2

C:\Atari\2600\bB\0.3

C:\Atari\2600\bB\0.35

C:\Atari\2600\bB\0.99a

C:\Atari\2600\bB\0.99b

C:\Atari\2600\bB\0.99c

C:\Atari\2600\bB\1.0

 

However, for the current version that I actually use, I have the following directory:

 

C:\Atari2600\bB

 

Note that in the first set of directories, there is a backslash between "C:\Atari" and "2600," because I have other subdirectories under "C:\Atari" for other systems:

 

C:\Atari\2600

C:\Atari\5200

C:\Atari\7800

C:\Atari\800

 

But for my bB stuff-- especially the tutorial-- I wanted to keep it simpler, hence "C:\Atari2600\bB."

 

I'm not saying you should use the same directory structure that I do; but if you want to have more than one version installed, then you're best off creating separate folders for each version.

 

Michael

Link to comment
Share on other sites

Well, I decided against adding more levels. It's too late into production. I know why the code wasn't working. Someone typed "pfscroll upup", when in fact, there should be only 1 up, and it didn't need to be scrolled. That's why I was getting the blank screen once I pressed reset. Actually, I want this version to be a release candidate. So it's bug-hunting time!

gosuba022607.bas.bin

gosuba022607.bas

Link to comment
Share on other sites

The pfscroll was in there because the 1.0 version of std_kernel.asm doesn't have the thin line at the bottom unless the screen is scrolled up a little. You must be using an older std_kernel.asm.

 

My only suggestion is that since you seem to have about 2k free, so you should fill it with something. If not more levels, you could put in one or more of your other games as easter eggs.

Link to comment
Share on other sites

I know why the code wasn't working. Someone typed "pfscroll upup", when in fact, there should be only 1 up, and it didn't need to be scrolled.

That was me. :D In fact, I think I did it twice? Basically, if you're using bB 1.0, you can scroll up twice like that-- upup. So by doing "pfscroll upup : pfscroll upup" in bB 1.0, you get a maze where the top and bottom rows are the same size (half the normal height of a playfield row), instead of the top row being normal height and the bottom row being just a thin little line. :) Since it seems that you're still having trouble getting 1.0 working, I'll post a screenshot later to show you what I mean.

 

Michael

Link to comment
Share on other sites

The pfscroll was in there because the 1.0 version of std_kernel.asm doesn't have the thin line at the bottom unless the screen is scrolled up a little. You must be using an older std_kernel.asm.

 

My only suggestion is that since you seem to have about 2k free, so you should fill it with something. If not more levels, you could put in one or more of your other games as easter eggs.

Well, there is this one game. Maybe I can squeeze that in somehow. First, I'd have to figure out how to get to it. I'm thinking of up, right, down, left at the title screen would be cool.

zyx2.bas.bin

Link to comment
Share on other sites

Here it is. Now all I have to do is have someone figure out how to get the music at the GoSub title screen to start over again every time. To get to the "easter egg," press & hold right+fire at GoSub's title screen. To get back to GoSub, press & hold left+fire at the easter egg's title screen.

gosuba022707a.bas.bin

gosuba022707a.bas

Link to comment
Share on other sites

Here it is. Now all I have to do is have someone figure out how to get the music at the GoSub title screen to start over again every time. To get to the "easter egg," press & hold right+fire at GoSub's title screen. To get back to GoSub, press & hold left+fire at the easter egg's title screen.

Hi Chris

plays very well. :)

greetings Walter

Link to comment
Share on other sites

One thing I'd like to see (strictly from an aesthetic point-of-view) is to have the sub's periscope pointing in the direction you're heading. (Left or right, that is. Not every direction.)

Something someone can do while working on the music! :) You know, I was thinking, I think it should point in the opposite direction you're heading.

 

I should mention that to play the easter egg minigame, you press fire and then start to get things going.

Edited by atari2600land
Link to comment
Share on other sites

Why is it that when it says "Game Over" the game screws up (i.e. the sub is still there, it goes back to the level and you have 99 lives, etc.)?

 

EDIT: Fixed. Why was I the only one that noticed this?

gosuba030107.bas.bin

gosuba030107.bas

Edited by atari2600land
Link to comment
Share on other sites

A new version of GoSub is here! New to the 030207 version:

* added PAL colors to Easter Egg

* GoSub title music begins anew once you leave the Easter Egg

* sub reflections

I need your opinion on the sub reflections though: Am I doing this right, or should it be reversed? I also need your opinion on this label I made up. Should I use it, or does it suck and I should have a label contest instead?

gosuba030207.bas.bin

gosuba030207.bas

post-9475-1172805142_thumb.png

Link to comment
Share on other sites

Any label that you want to use is fine. Just remember that a lot of people do judge the book by the cover. Here is the label that I had posted to your blog. Anything on the label (Sub, Octopus, text) can be changed or reformatted to any size or style.

 

post-3832-1172807526_thumb.jpg

 

post-3832-1172807568_thumb.jpg

 

Your last BIN with a different sub graphic:

Gosub_Alt.bin

Edited by neotokeo2001
Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...