Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2016-03-21 17:51:27

MrElephant
Member
Registered: 2014-01-29
Posts: 40

GBbasic

Hello Everyone,

Alright here is what is happening.  I am using an old program of Jeff's called Gameboy basic.
If you have ever used it, you would know that you could write code in BASIC on the Gameboy.
However, as I do not want to type all of the code on the Gameboy itself (because it is tremendously slow to do so), I have
tried to use other means. 

The issue:  Okay when I export the sav and reimport the sav of course it works, after it goes through the converter something
goes wrong, so obviously I am doing something wrong....    The error in vba just says "corrupt file"

Originally I tried to use GBBConv 1.21 with the most recent version of GB BASIC, but I was not successful,
so I went back and used version 1.21 of GB BASIC, which still didn't work. Finally I used the original version of the conversion
software with version 1.08 and wasn't able to get it to work.

I did all of this in dosbox window 95, so all of the tools are working fine. 
I originally get the sav file from exporting the sav file from vba.


Some references: micahs old page http://web.archive.org/web/199909031726 … h/gameboy/
some info on the converter http://marc.rawer.de/Gameboy/    --important to know how to convert

Also here is some information taken directly from the text file
"
        GBBconv is a progam that converts between the binary tokenized
format that GBbasic uses to store a program in SRAM, and nice ASCII text.
It can even be used to print out programs from the game boy! GBbasic was
written by Jeff Frohwein (jfrohwei@HiWAAY.net), and I couldn't have made
this program without Jeff! The syntax for running the converter is:
        GBBconv <operation> <infile> <outfile> [/A]
                Operation can be:
                   b- convert text to binary, with no smart card header
                   t- convert binary to text, autodetecting smart card header
                Use /A to create an autorun file. Only works with text 2 bin
If you want a smart card header on the output, use my ADDHDR utility. Here
are some examples of using the converter. Note: Generally, GBbasic binary
files are .SAV, and ascii files are .BAS.
        GBBconv t program.SAV PRN
                Prints a program out
        GBBconv t program.SAV program.BAS
                Binary to ascii
        GBBconv b program.BAS program.SAV
                Return back to binary after editing.
The only syntax requirement for the converter is that the input file's lines
start with a line number, then any number of spaces, then the rest of the
line.  Blank lines are allowed, and must NOT contain line numbers. You
can use any mix of upper and lower case in the program, but it will all be
converted to lower case. In case you need help, there are a few sample
programs that you can convert and run."


So I opened up the files inside a hex editor and a text editor to see what was different (without changing anything)---and the converter does change stuff--imagine that,
so the new sav file isn't the same as the original. 

Can someone help me out?


Working in Gameboy BASIC.

Offline

 

#2 2016-03-23 20:54:08

Tauwasser
Member
Registered: 2010-10-23
Posts: 160

Re: GBbasic

Maybe if you posted the files, somebody could take a look. Everything else is just a wild goose chase or waiting for a person that had the exact same issue back in the day, resolved it, and still posts to forums.

cYa,

Tauwasser

Offline

 

#3 2016-03-23 21:40:29

MrElephant
Member
Registered: 2014-01-29
Posts: 40

Re: GBbasic

Was actually hoping you would respond Tauwasser, as you are a well respected and highly intelligent member of the forums.
Give me a few minutes to gather all of the files, and I will upload them as a zip.

Edit:

As I don't see a way to upload files to this forum, I will upload this to mediafire.
https://www.mediafire.com/?7x19d14g288bwb3

I tried again to get the save working, but now vba isn't even accepting the save after it goes through the converter.

Last edited by MrElephant (2016-03-23 22:16:53)


Working in Gameboy BASIC.

Offline

 

#4 2016-03-25 16:50:10

NicklausW
Member
Registered: 2014-02-09
Posts: 22

Re: GBbasic

Don't use vba, use bgb. http://bgb.bircd.org/

Much better emulator. Accuracy over performance.

Offline

 

#5 2016-03-25 20:24:12

MrElephant
Member
Registered: 2014-01-29
Posts: 40

Re: GBbasic

Even using bgb, the emulator only reads the original data.  If you make any changes it doesn't pick it up.

I already had bgb on my computer, but I just like vba better.  I just didn't think that the emulator would matter when reading sav files.

Any ideas on why the emulators arent picking up the changes?

Last edited by MrElephant (2016-03-28 21:20:43)


Working in Gameboy BASIC.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson