FAQ  •  Register  •  Login

Oh oh

<<

Graeme

Posts: 7

Joined: Sat Jun 04, 2011 3:12 pm

Post Sat Jun 04, 2011 3:17 pm

Oh oh

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

boriel

Site Admin

Posts: 1146

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sat Jun 04, 2011 9:07 pm

Re: Oh oh

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: http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Zxb
<<

Graeme

Posts: 7

Joined: Sat Jun 04, 2011 3:12 pm

Post Sun Jun 05, 2011 10:50 pm

Re: Oh oh

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. :(

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: http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Zxb



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

Graeme

Posts: 7

Joined: Sat Jun 04, 2011 3:12 pm

Post Sun Jun 05, 2011 11:36 pm

Re: Oh oh

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

boriel

Site Admin

Posts: 1146

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Tue Jun 07, 2011 5:29 pm

Re: Oh oh

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

Graeme

Posts: 7

Joined: Sat Jun 04, 2011 3:12 pm

Post Tue Jun 07, 2011 5:41 pm

Re: Oh oh

You did explain but I'm so forgetful!
<<

boriel

Site Admin

Posts: 1146

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Tue Jun 07, 2011 5:50 pm

Re: Oh oh

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. :(

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: http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Zxb



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

Graeme

Posts: 7

Joined: Sat Jun 04, 2011 3:12 pm

Post Tue Jun 07, 2011 10:08 pm

Re: Oh oh

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 :) It's WAV>TAP that I need.. I tried a few that I found but none of them work under Windows 7 it seems..
<<

LCD

Posts: 507

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Wed Jun 08, 2011 11:00 am

Re: Oh oh

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?
http://members.fortunecity.com/shirka/L ... ketzx.html
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!
<<

britlion

Posts: 677

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Fri Jun 10, 2011 10:55 pm

Re: Oh oh

I'm pretty sure zxspin just loads from wav files direct, as well...
<<

Graeme

Posts: 7

Joined: Sat Jun 04, 2011 3:12 pm

Post Sat Jun 11, 2011 10:51 am

Re: Oh oh

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

boriel

Site Admin

Posts: 1146

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sat Jun 11, 2011 12:58 pm

Re: Oh oh

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

Graeme

Posts: 7

Joined: Sat Jun 04, 2011 3:12 pm

Post Sat Jun 11, 2011 2:06 pm

Re: Oh oh

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

Return to Help & Support

Who is online

Users browsing this forum: No registered users and 0 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO