Shufflehound Posted December 1, 2013 Share Posted December 1, 2013 I've finally got Visual batariBasic to compile, but it compiles to nothing! I went to check the files, and I found out that when it compiles to the .asm files there's no information in it. So, when it compiles to .bin, there's, yet again, nothing there. Does anybody know why it's doing that and how to stop that? Thanks in advance. I'm using Windows 8 with Stella if that means anything. Quote Link to comment Share on other sites More sharing options...
+Gemintronic Posted December 1, 2013 Share Posted December 1, 2013 Have you tried compiling a example from the batari section? That might narrow down the issues. 1 Quote Link to comment Share on other sites More sharing options...
SeaGtGruff Posted December 2, 2013 Share Posted December 2, 2013 Just a thought, but in some cases where I was trying to run some program that was supposed to create a file, but the generated file was always 0 bytes instead of containing any data, it turned out to be permissions-- for example, the read/write/create/update/etc. permissions on the directory, or something like that. So try removing the "read only" setting on the C:\Atari2600 folder and all subdirectories and files within it, and check the user permissions to be sure that the user has full permissions on those folders and their contents. 1 Quote Link to comment Share on other sites More sharing options...
Shufflehound Posted December 2, 2013 Author Share Posted December 2, 2013 I've tried both of those and I'm afraid it's still not working. Thanks for the advice though. Quote Link to comment Share on other sites More sharing options...
RevEng Posted December 2, 2013 Share Posted December 2, 2013 Can you compile from command-line? Quote Link to comment Share on other sites More sharing options...
Shufflehound Posted December 2, 2013 Author Share Posted December 2, 2013 What do you mean? Quote Link to comment Share on other sites More sharing options...
Shufflehound Posted December 2, 2013 Author Share Posted December 2, 2013 Well, I know what command-line is but how do I access bB through that? Quote Link to comment Share on other sites More sharing options...
RevEng Posted December 2, 2013 Share Posted December 2, 2013 bB works in command-line, and when vbb compiles it calls bB programs with appropriate commands. It's going to help sort out where the problem is if we skip vbb for a minute. Assuming you've done everything in RT's Getting Started bB section, you should do the follwing... (open a command-line) cd Atari2600\bB\samples 2600bas.bat zombie_chase.bas ...if bB is working fine, this should produce a non-zero sized ASM and BIN. If not, please cut and paste your output here. Quote Link to comment Share on other sites More sharing options...
RevEng Posted December 2, 2013 Share Posted December 2, 2013 Actually, it looks like RT's guide skips the CLI setup. Try the "Installing batari BASIC" part of this page. Specifically you need to set the bB and PATH variables. (Don't download the older version of bB that it directs you to.) Quote Link to comment Share on other sites More sharing options...
Shufflehound Posted December 2, 2013 Author Share Posted December 2, 2013 On the command prompt all it says is that 2600bas.bat is not recognized as an internal or external command. Also, I'd like to have the Compile+Run work on Visual bB as I'd like to quickly test it. When I click run, it opens Stella just for a split second and then Stella closes again. Quote Link to comment Share on other sites More sharing options...
+nanochess Posted December 2, 2013 Share Posted December 2, 2013 Give a look to the window for generated text from compiler and assembler, if there is an error it would appear right there (like not able to open a file or something) Quote Link to comment Share on other sites More sharing options...
Shufflehound Posted December 2, 2013 Author Share Posted December 2, 2013 Compiling C:\Users\Harvey\Downloads\15_MoveSpritewithPlayfieldBoundaries.bas 2600 Basic compilation completed. DASM V2.20.07, Macro Assembler ©1988-2003 Compilation completed at 02/12/2013 16:10:24 view output file:///C:/Users/Harvey/Downloads/bin There's no error messages as far as I know. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 2, 2013 Share Posted December 2, 2013 If you ever get bB working with VbB by messing with administrator permissions or some other technique, please remember to post the fix here so I can add it to the VbB page. Quote Link to comment Share on other sites More sharing options...
Shufflehound Posted December 2, 2013 Author Share Posted December 2, 2013 I'd do that anyway, 'cause not doing so would be selfish. Although, I haven't found the fix yet. Quote Link to comment Share on other sites More sharing options...
Shufflehound Posted December 2, 2013 Author Share Posted December 2, 2013 Okay. I've realized that on my C drive, it automatically makes it read only without a way to disable it. I've moved it onto my other hard drive, but now when I try to compile, it says: System path does not include G:\BATARI\Atari2600\bB Precompilation failed, aborted at 02/12/2013 21:23:27 What does it mean by "system path". I have already changed the compiler location to that hard drive, so it's not that it can't find the compiler. Any ideas? Quote Link to comment Share on other sites More sharing options...
SeaGtGruff Posted December 3, 2013 Share Posted December 3, 2013 "System path" refers to the PATH variable used by the operating system. Right-click on the START button (if you have Win8, move the mouse to the lower left corner until the Start Screen's icon appears, then right-click on it) and select "System" on the popup menu. On the left, click "Advanced system settings" and then on the new popup window click the "Environment Variables" button. In the bottom half of the window scroll down if necessary until you see "Path," then double-click it. In the little popup window the second field should already be selected. Being careful not to accidentally wipe out the current value, use the right arrow (cursor key) to move the cursor to the end of the current string, then type the following at the end (be sure it starts with a semicolon) and click OK when you're done: ;%bB% Note, this assumes that the bB variable has been defined as a system environment variable. If it hasn't, or if you aren't sure if it has, you can type this instead: ;G:\BATARI\Atari2600\bB Quote Link to comment Share on other sites More sharing options...
Shufflehound Posted December 4, 2013 Author Share Posted December 4, 2013 It's no longer asking about the system path, thank goodness, but it's now gone back to the 0kb files. I'm using Version 1.0(Build 554) of Visual Batari Basic and 1.0 of the compiler if that's helpful. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 4, 2013 Share Posted December 4, 2013 So you're not using the latest version of bB? http://atariage.com/forums/topic/214909-bb-with-native-64k-cart-support-11dreveng/ Quote Link to comment Share on other sites More sharing options...
Shufflehound Posted December 4, 2013 Author Share Posted December 4, 2013 Excellent! It works. Thank you ever so much. It's just that I had no idea what the latest version was. Thanks again! 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.