Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Oh oh
#1
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
Reply
#2
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. Sad

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 -->
Reply
#3
boriel Wrote: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. Sad

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 -->


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!
Reply
#4
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!!
Reply
#5
Graeme Wrote: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!!
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. :|
Reply
#6
You did explain but I'm so forgetful!
Reply
#7
Graeme Wrote:
boriel Wrote: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. Sad

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 -->


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!
Don't know what could be wrong with the Contact form. Will check it later...
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.
Reply
#8
boriel Wrote:Don't know what could be wrong with the Contact form. Will check it later...
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.


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 Smile It's WAV>TAP that I need.. I tried a few that I found but none of them work under Windows 7 it seems..
Reply
#9
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 Smile 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.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#10
I'm pretty sure zxspin just loads from wav files direct, as well...
Reply
#11
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"
15 CLS
20 LET x=RND*32
21 LET x=INT x
22 LET y=RND*22
23 LET y=INT y
25 LET j=x+y
30 IF j=0 THEN GO TO 20
55 LET p=RND*9
60 LET i=RND*9
65 LET p=INT p
66 LET i=INT i
75 PAPER p:INK i
80 PRINT AT y,x;a$(j)
90 POKE 22527+RND*704,RND*127
100 GO TO 20

Now why would I be getting an 'unexpected end of file' error?

Thanks so much for all your help.
Reply
#12
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"
15 CLS
20 LET x=RND*32
21 LET x=INT x
22 LET y=RND*22
23 LET y=INT y
25 LET j=x+y
30 IF j=0 THEN GO TO 20: END IF
55 LET p=RND*9
60 LET i=RND*9
65 LET p=INT p
66 LET i=INT i
75 PAPER p:INK i
80 PRINT AT y,x;a$(j)
90 POKE 22527+RND*704,RND*127
100 GO TO 20
Reply
#13
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!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)