atarifan2600 Posted December 27, 2014 Share Posted December 27, 2014 When I type in a data statement and compile, for example: data song 23,23,21,21 end I get this: 2600 Basic compilation failed! LINE -->Microsoft Windows [Version 6.1.7601] Copyright © 2009 Microsoft Corporation. All rights reserved How can Windows be a syntax error? That doesn't make any sense at all! Can you help me with this problem please? Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 28, 2014 Share Posted December 28, 2014 How do you know it's the data statement instead of something else? You might want to attach your .bas file. Quote Link to comment Share on other sites More sharing options...
atarifan2600 Posted December 28, 2014 Author Share Posted December 28, 2014 I don't know how to attach a file! How do I do that? Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted December 28, 2014 Share Posted December 28, 2014 You can attach files by clicking the "More Reply Options" button to the right of the "Post" button. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 28, 2014 Share Posted December 28, 2014 I don't know how to attach a file! How do I do that? There is a list of useful links here that you might want to check out: randomterrain.com/atari-2600-memories-batari-basic-commands.html#atariage_links One of those links jumps to this thread: How to Attach Files and Images Quote Link to comment Share on other sites More sharing options...
atarifan2600 Posted December 28, 2014 Author Share Posted December 28, 2014 Oh, awesome! Now I know how to attach files. Here is my .bas file! why not data.bas why not data.bas Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 28, 2014 Share Posted December 28, 2014 Try sticking your data at the end of the program, outside of any loops. Quote Link to comment Share on other sites More sharing options...
atarifan2600 Posted December 28, 2014 Author Share Posted December 28, 2014 No luck... play AUDV0=4 : AUDC0=4 : AUDF0=song[p] p=p+1 if p>8 then p=0 goto play data song 23,23,21,21,23,30,32,32 end data length 10,10,10,10,10,10,10,10 end 2600 Basic compilation failed! LINE -->Microsoft Windows [Version 6.1.7601] Copyright © 2009 Microsoft Corporation. All rights reserved. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted December 28, 2014 Share Posted December 28, 2014 It also needs a "drawscreen". Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 28, 2014 Share Posted December 28, 2014 It's probably because you don't have drawscreen in your loop: why_not_data_2014y_12m_28d_0928t.bas why_not_data_2014y_12m_28d_0928t.bin [i see that atari2600land already said that.] Are you using the latest version of batari Basic: randomterrain.com/atari-2600-memories-batari-basic-commands.html#gettingstarted Quote Link to comment Share on other sites More sharing options...
atarifan2600 Posted December 28, 2014 Author Share Posted December 28, 2014 How odd! You compiled it and it worked, I compiled your same code; and it didn't work! I am using visual batari Basic build 558. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 28, 2014 Share Posted December 28, 2014 How odd! You compiled it and it worked, I compiled your same code; and it didn't work! I am using visual batari Basic build 558. Did you click on my link above? Here it is again: randomterrain.com/atari-2600-memories-batari-basic-commands.html#gettingstarted Visual batari Basic is just an IDE. It makes batari Basic easier to use. Quote Link to comment Share on other sites More sharing options...
atarifan2600 Posted December 28, 2014 Author Share Posted December 28, 2014 So what do I do? I don't understand what you mean. Are you saying I should use batari Basic and not visual Batari basic or something? Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 28, 2014 Share Posted December 28, 2014 So what do I do? I don't understand what you mean. Are you saying I should use batari Basic and not visual Batari basic or something? Did you click on the link and read the words in the Getting Started section? Visual batari Basic uses whatever version of batari Basic that you make it use. If you're using an old version of batari Basic with VbB, it will work, but you may have problems when compiling because improvements have been made to batari Basic over the years and what works now may not work with an old version of batari Basic. Quote Link to comment Share on other sites More sharing options...
atarifan2600 Posted December 28, 2014 Author Share Posted December 28, 2014 I wouldn't change my bB compiler, because my settings in visual bB haven't been changed in 2 years... If I change it, will the registration file change as well? (sorry if I'm being silly, but I don't like old files being changed :s) Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 28, 2014 Share Posted December 28, 2014 I wouldn't change my bB compiler, because my settings in visual bB haven't been changed in 2 years... If I change it, will the registration file change as well? (sorry if I'm being silly, but I don't like old files being changed :s) I change to the latest version of batari Basic every time there is an update and point VbB to it on the settings page and I haven't had any problems so far. Now that we can double click on install_win.bat to set bB's path and environment variable, that seems to eliminate the need to click the boxes for Add bB Environment Variable and Add bB Compiler to System Path on the settings page. Quote Link to comment Share on other sites More sharing options...
atarifan2600 Posted December 28, 2014 Author Share Posted December 28, 2014 I tried the latest version, still no luck. Might need to try on my other Windows XP laptop. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.