TazzyB Posted June 29, 2019 Share Posted June 29, 2019 I know that I already said this in a previous article, however that time I had two issues and one of them was solved. Every now and then, I will try to compile, but I can't because of this invisible character which is a pain. You'll notice the blue character which I highlighted, however it cannot be treated like a space. It takes me to the next line when I try to cursor over it, but it is there and can be highlighted. It causes a syntax error. Quote Link to comment Share on other sites More sharing options...
+TwentySixHundred Posted June 29, 2019 Share Posted June 29, 2019 Are you sure it's the white space causing the error? Have you tried removing the word function from the remark or the remark itself? 'function' is a key word used by bB and sometimes bB does strange things. Also you have the remark at the same indentation spacing as the 'if' statement. bB could be getting confused and trying to compile the remark as code. Quote Link to comment Share on other sites More sharing options...
TazzyB Posted June 29, 2019 Author Share Posted June 29, 2019 (edited) 1 hour ago, TwentySixHundred said: Are you sure it's the white space causing the error? Have you tried removing the word function from the remark or the remark itself? 'function' is a key word used by bB and sometimes bB does strange things. Also you have the remark at the same indentation spacing as the 'if' statement. bB could be getting confused and trying to compile the remark as code. I removed the function word from the remark and indented the code below further than the remark itself, however now a new blank character is popping up at the bottom! Edited June 29, 2019 by TazzyB Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted June 29, 2019 Share Posted June 29, 2019 I don't know if this has anything to do with it, but we're not supposed to start labels or variable aliases with keywords. For example, you're using "nextstep" as a label. I put one underscore at the beginning of variable aliases and two underscores at the beginning of labels. Then I don't have to worry if I'm using a bB keyword by mistake and I'll never have to worry if my new variable alias has the same name as a label. So in your case, "nextstep" would become "__nextstep". Quote Link to comment Share on other sites More sharing options...
TazzyB Posted June 29, 2019 Author Share Posted June 29, 2019 2 hours ago, Random Terrain said: I don't know if this has anything to do with it, but we're not supposed to start labels or variable aliases with keywords. For example, you're using "nextstep" as a label. I put one underscore at the beginning of variable aliases and two underscores at the beginning of labels. Then I don't have to worry if I'm using a bB keyword by mistake and I'll never have to worry if my new variable alias has the same name as a label. So in your case, "nextstep" would become "__nextstep". Ok, nextstep is now __nextstep, but a new one popped up yet again! Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted June 29, 2019 Share Posted June 29, 2019 If you delete your bB.1.1d.reveng41 batari Basic folder and download it again, I wonder if that would fix it. Quote Link to comment Share on other sites More sharing options...
TazzyB Posted June 30, 2019 Author Share Posted June 30, 2019 5 hours ago, Random Terrain said: If you delete your bB.1.1d.reveng41 batari Basic folder and download it again, I wonder if that would fix it. No matter how hard I try, it keeps saying this when I try to compile with the new copy: Could not locate sed.exe or bbfilter.exe. Please makes sure you have a copy in C:\Users\budit\Downloads\BB.1.1d.reveng41\bB.1.1d.reveng41. This will improve DASM error reporting Precompilation failed, aborted at 2019-06-29 8:37:37 PM Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted June 30, 2019 Share Posted June 30, 2019 16 minutes ago, TazzyB said: No matter how hard I try, it keeps saying this when I try to compile with the new copy: Could not locate sed.exe or bbfilter.exe. Please makes sure you have a copy in C:\Users\budit\Downloads\BB.1.1d.reveng41\bB.1.1d.reveng41. This will improve DASM error reporting Precompilation failed, aborted at 2019-06-29 8:37:37 PM Be sure to double click on install_win.bat in your newly downloaded folder in case that has anything to do with it. Also remember to close VbB (if it's open) and open it again so it will work properly. If it's still not working, let us know before you do anything to the files. Quote Link to comment Share on other sites More sharing options...
TazzyB Posted June 30, 2019 Author Share Posted June 30, 2019 3 minutes ago, Random Terrain said: Be sure to double click on install_win.bat in your newly downloaded folder in case that has anything to do with it. Also remember to close VbB (if it's open) and open it again so it will work properly. If it's still not working, let us know before you do anything to the files. Nope. Still not working. Same error. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted June 30, 2019 Share Posted June 30, 2019 4 minutes ago, TazzyB said: Nope. Still not working. Same error. Did you change the bB compiler path on the VbB stettings page and click on Save Settings? Quote Link to comment Share on other sites More sharing options...
TazzyB Posted June 30, 2019 Author Share Posted June 30, 2019 7 minutes ago, Random Terrain said: Did you change the bB compiler path on the VbB stettings page and click on Save Settings? I did that, but now it starts compiling and doesn't stop. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted June 30, 2019 Share Posted June 30, 2019 Did you close VbB and start it again, just in case, after updating the bB compiler path? Quote Link to comment Share on other sites More sharing options...
+TwentySixHundred Posted June 30, 2019 Share Posted June 30, 2019 Im willing to bet where bB is highlighting the syntax error isn't the actual location of the error. I have found when bB doesn't know exactly whats causing the error it will point to a whitespace at the approximate area it thinks is the issue. It's nothing new of an issue and usually for myself it's a typo or piece of code i have become sidetracked from and forgot to complete a statement ect. You should post the code so we can have a look to see if there is something you're overlooking. If you don't want to post code public feel free to send though PM to myself or Random Terrain Quote Link to comment Share on other sites More sharing options...
TazzyB Posted June 30, 2019 Author Share Posted June 30, 2019 1 hour ago, Random Terrain said: Did you close VbB and start it again, just in case, after updating the bB compiler path? I tried just now. Still won't tell me "compilation completed". Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted June 30, 2019 Share Posted June 30, 2019 1 hour ago, TazzyB said: I tried just now. Still won't tell me "compilation completed". I have to get some sleep. If nobody else comes up with an answer before I come back later today, I'll see if I can figure it out or try to find somebody who can. Quote Link to comment Share on other sites More sharing options...
TazzyB Posted June 30, 2019 Author Share Posted June 30, 2019 (edited) 17 hours ago, Random Terrain said: I have to get some sleep. If nobody else comes up with an answer before I come back later today, I'll see if I can figure it out or try to find somebody who can. As it was sitting there saying "compiling..." I tried running the game and Visual bB said that it couldn't find "warheads.bas.bin", so I checked and noticed that it was gone. However, putting in a backup copy still didn't fix it. It looks like this: Compile started at 2019-06-30 5:36:25 PM Compiling C:\Users\budit\Desktop\Junk Bin\tinkernut_world\Tinkernut World\warheads.bas [2019-06-30 5:36:30 PM] Could not locate warheads.bas.bin. Attempting recompile... Compile started at 2019-06-30 5:36:30 PM Compiling C:\Users\budit\Desktop\Junk Bin\tinkernut_world\Tinkernut World\warheads.bas Edited June 30, 2019 by TazzyB Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted June 30, 2019 Share Posted June 30, 2019 I sent a PM to somebody who knows more about this stuff, but you might have to wait a day or two. Until then, I see that you have a space in the path. Instead of using "Junk Bin" you might want to have a folder on your desktop called "bb_projects" and make sure any project folders in that folder have an underscore instead of a space since spaces can cause problems. Read this: https://www.randomterrain.com/atari-2600-memories-batari-basic-vbb.html#trouble_defaultbasbin Quote Link to comment Share on other sites More sharing options...
TazzyB Posted June 30, 2019 Author Share Posted June 30, 2019 (edited) 5 minutes ago, Random Terrain said: I sent a PM to somebody who knows more about this stuff, but you might have to wait a day or two. Until then, I see that you have a space in the path. Instead of using "Junk Bin" you might want to have a folder on your desktop called "bb_projects" and make sure any project folders in that folder have an underscore instead of a space since spaces can cause problems. Read this: https://www.randomterrain.com/atari-2600-memories-batari-basic-vbb.html#trouble_defaultbasbin Ok, thanks. In the past I've had people suggest to use standard text editors like Notepad ++ to solve the issue. However standard text editors don't have good formatting. Edited June 30, 2019 by TazzyB Quote Link to comment Share on other sites More sharing options...
RevEng Posted June 30, 2019 Share Posted June 30, 2019 I've been summoned. Assuming you've run the install.bat and there were no errors, the best thing we can do is to isolate if the issue is with bB or vbb. 1. Open a CMD prompt 2. in the CM prompt CD (change directory) to the location of your basic source file 3. Compile with bB by typing "2600bas.bat warheads.bas" 4. If the above isn't successful, copy and paste all of the text into a post here. 1 Quote Link to comment Share on other sites More sharing options...
TazzyB Posted July 1, 2019 Author Share Posted July 1, 2019 32 minutes ago, RevEng said: I've been summoned. Assuming you've run the install.bat and there were no errors, the best thing we can do is to isolate if the issue is with bB or vbb. 1. Open a CMD prompt 2. in the CM prompt CD (change directory) to the location of your basic source file 3. Compile with bB by typing "2600bas.bat warheads.bas" 4. If the above isn't successful, copy and paste all of the text into a post here. First of all, which basic source file do you imply? Second, where to I type "2600bas.bat warheads.bas" Quote Link to comment Share on other sites More sharing options...
+Karl G Posted July 1, 2019 Share Posted July 1, 2019 Based on information in your vbb screenshot, your source file is warheads.bas, and it is located in the C:\Users\budit\Desktop\Junk Bin\tinkernut_world\Tinkernut World directory. After opening a command prompt, enter the following commands in the command prompt window: cd C:\Users\budit\Desktop\"Junk Bin"\tinkernut_world\"Tinkernut World" 2600bas.bat warheads.bas 1 Quote Link to comment Share on other sites More sharing options...
TazzyB Posted July 1, 2019 Author Share Posted July 1, 2019 8 minutes ago, Karl G said: Based on information in your vbb screenshot, your source file is warheads.bas, and it is located in the C:\Users\budit\Desktop\Junk Bin\tinkernut_world\Tinkernut World directory. After opening a command prompt, enter the following commands in the command prompt window: cd C:\Users\budit\Desktop\"Junk Bin"\tinkernut_world\"Tinkernut World" 2600bas.bat warheads.bas It tells me "'2600bas.bat' is not recognized as an internal or external command, operable program or batch file." Quote Link to comment Share on other sites More sharing options...
RevEng Posted July 1, 2019 Share Posted July 1, 2019 Ok, can you double-click the "install_win.bat" file in the 7800basic directory, and copy+paste the output here? Quote Link to comment Share on other sites More sharing options...
TazzyB Posted July 1, 2019 Author Share Posted July 1, 2019 2 hours ago, RevEng said: Ok, can you double-click the "install_win.bat" file in the 7800basic directory, and copy+paste the output here? In what area is the 7800basic directory? Quote Link to comment Share on other sites More sharing options...
RevEng Posted July 1, 2019 Share Posted July 1, 2019 Sorry, I mean to double-click the "install_win.bat" in the bB directory. (7800basic is my other project) 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.