Oh oh - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16) +---- Thread: Oh oh (/showthread.php?tid=353) |
Oh oh - Graeme - 06-04-2011 Hola all, First off, before I forget, the contact form on boriel.com is broken, complains about not being able to call the WPsend function (with the latest IE and firefox beta 7) Well, I used to program C++ for a living but my programming days are long gone.. I can't even get the compiler to work, I installed Python but I have no idea how to get it up and running. I have a short ZXS program in basic - could I please send some kind person the text (10 lines of code or so) and you compile it and return a ZX Spectrum tape file? I'd be so grateful! Thanks!! Graeme Re: Oh oh - boriel - 06-04-2011 First of all, I've checked my contact form right now and it's working ok. Did you complete the Captcha code :?: Yes, please. You can paste the code here, using code ... /code BBCodes tags (click "Code" in the list when writting your post). Will also check the contact form, but for help regarding the compiler, this is the right place :!: Also, the forum and blog is suffering a severe spam attack (almost daily). In fact, new users need to send 2 approved (by me) messages before they can post freely after some fake users tried to upload nude-pics and malware files in the forum. Are you using Linux or Windows? If you're using Windows, you can download the .msi or .exe version which does not require python installed. You can also check the wiki for compiler usage: <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Zxb">http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Zxb</a><!-- m --> Re: Oh oh - Graeme - 06-05-2011 boriel Wrote:First of all, I've checked my contact form right now and it's working ok. Did you complete the Captcha code :?: Just tried again. The captcha code's not the problem. The error read 'Sorry, there were errors in your submission. Please try again. Failed call to wp_mail() - unable to send message " Like I say in Firefox 7 beta and whatever the latest IE is. That link was very useful. I have compiled by file ok, I turned it into a WAV file with a little program. Now it will be put on the hidden track (<0 seconds) of a CD. Can you recommend a program that converts a WAV to a spectrum file, just so that I can check it works? Thanks! Re: Oh oh - Graeme - 06-05-2011 I wrote a reply hours ago, I must have forgot to send it! I retried the message contact form earlier. Again the same error message 'failed to call WPsend()' or something. Definitely nothing to do with the captcha code. So, I got the compiler working. I have converted the file into a WAV. It will be placed as a hidden (before track one on the disc) track on a CD.. So as I can check if the WAV file can be converted back to a ZX spectrum program - is there a wav/zx file converter that you can recommend? Thanks!! Re: Oh oh - boriel - 06-07-2011 Graeme Wrote:I wrote a reply hours ago, I must have forgot to send it!No, it was ok. The problem is I'm rather busy those days, so could not approve this message submission until I arrived home. From now on your messages will be automatically approved (users with 2+ approved messages can post freely). Sorry for any inconvenience, but spam is rather overwhelming in this forum. :| Re: Oh oh - Graeme - 06-07-2011 You did explain but I'm so forgetful! Re: Oh oh - boriel - 06-07-2011 Graeme Wrote:Don't know what could be wrong with the Contact form. Will check it later...boriel Wrote:First of all, I've checked my contact form right now and it's working ok. Did you complete the Captcha code :?: To convert to mp3, better compile your program to .TAP file format (use -t instead of -T), so using -tab should work. Once you get the .tap file, you can play it in winamp (which converts it to wav if you use an alternative decoder) or can also use the free utility TAP2WAV to convert it to .WAV. This is a console (command line) application for windows; there are also Linux versions on the internet, but have never used them. Re: Oh oh - Graeme - 06-07-2011 boriel Wrote:Don't know what could be wrong with the Contact form. Will check it later... Oh no, I've converted it to an audio file no problem, and it definitely sounds like a spectrum program. But I'd like a program that will convert it back to a zxspectrum format to double check that my puzzle is, in fact solvable It's WAV>TAP that I need.. I tried a few that I found but none of them work under Windows 7 it seems.. Re: Oh oh - LCD - 06-08-2011 Graeme Wrote:Oh no, I've converted it to an audio file no problem, and it definitely sounds like a spectrum program. But I'd like a program that will convert it back to a zxspectrum format to double check that my puzzle is, in fact solvable It's WAV>TAP that I need.. I tried a few that I found but none of them work under Windows 7 it seems..So you need MakeTXZ? <!-- m --><a class="postlink" href="http://members.fortunecity.com/shirka/LIBROS_EBOOKS/MANUAL_ESPECTRUM/maketzx.html">http://members.fortunecity.com/shirka/L ... ketzx.html</a><!-- m --> It works under Win7 x86, but if you got Win 7 x64, there maybe will a problem. Re: Oh oh - britlion - 06-10-2011 I'm pretty sure zxspin just loads from wav files direct, as well... Re: Oh oh - Graeme - 06-11-2011 Thanks for the tips. I went back a step and decided to change the message hidden in the code form an email address to a URL But now whenever I try to compile the BAS file I get an 'unexpected end of file' error. The code is so very simple, here it is: Code: 10 LET a$="xxxxxxxxxxxxx.com/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.html" Now why would I be getting an 'unexpected end of file' error? Thanks so much for all your help. Re: Oh oh - boriel - 06-11-2011 The error is at line 30. ZX Basic requires every IF.. THEN to be closed with END IF. This is because ZX BASIC allows multiline IF. So your code should read: Code: 10 LET a$="xxxxxxxxxxxxx.com/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.html" Re: Oh oh - Graeme - 06-11-2011 Great thanks! I was actually working on it the moment that you wrote, splitting up the if statement into separate lines seeing if that would work. Thanks!! |