|
Post by charliejv on Nov 25, 2022 18:03:14 GMT -5
|
|
|
Post by bplus on Nov 25, 2022 22:57:05 GMT -5
Out of what!? dang it was just getting interesting, I was solving all Eliza's problems...
Oh well.
|
|
|
Post by charliejv on Nov 26, 2022 11:17:59 GMT -5
Man, it does not take long for me to start finding ELIZA annoying.
Maybe it is all the SCREAMING...
|
|
|
Post by bplus on Nov 26, 2022 12:04:30 GMT -5
So what is limiting time with your Eliza mod? Your own distaste for it? (I doubt that but who knows for sure.)
Is it recording anything into a limited size array? Seems like the original program from Morristown could go on forever.
I had great lessons playing with Morristown code found in SmallBASIC library, the first decent Basic I found coming back to Basic programming in 2014. All those data directions are very limiting what you can do with Eliza so that was first mod I made, dump that and load script file that you could edit and code could recalc line numbers for replies according to script it was loading.
I made many scripts and Ron77 is still using variations of for new script/personality to replace Eliza. He still shows off Append function that adds a line to an array. My substitute personality script player was called Player, like a record player this code played scripts like for actors and writers, practice dialogues.
OK I reviewed the code and nothing there is showing the end of session message I got when trying out your code, Charlie, on-line. So where is the time or array limit coming from?
|
|
|
Post by bplus on Nov 26, 2022 12:22:33 GMT -5
OK here is what I am complaining about:
|
|
|
Post by charliejv on Nov 26, 2022 15:32:24 GMT -5
Out of Data error means trying to read past the DATA statements. This program is as-is code found at https://gist.github.com/dmberry/3f84d0f81ddb5dc8f054 Except: that program failed immediately because the code on github was missing a DATA statement. I wound up finding the missing data statement at www.atariarchives.org/bcc3/showpage.php?page=251The code on github was missing the very last line found in that atariarchives reference. If the program is complaining with "Out of Data", then either there is a bug in the program from atariarchives, or there is still another line missing from the github code that might be found in the atariarchives reference. The code on github is either a bad copy/paste job from whatever source, or a bad typing job, or both. If the github source is the atariarchives code, and they match, then there's a problem in the atariarchives code listing.
|
|
|
Post by charliejv on Nov 26, 2022 15:51:53 GMT -5
It could also be that BAM's interpreter is misbehaving somewhere.
Hard to tell without having a way to reproduce the error.
First, make sure the BAM program matches exactly the Atari Archives reference.
|
|
|
Post by charliejv on Nov 26, 2022 17:18:47 GMT -5
Here's a question. What the heck is this?
120 FOR X=1 TO N1+N2+N3:READ Z$:NEXT X:REM SAME AS RESTORE
That doesn't make sense to me because:
90 DIM C$(72),I$(72),K$(72),F$(72),S$(72),R$(72),P$(72),Z$(72) 110 N1=36:N2=12:N3=112 ' N1+N2+N3 = 160
There is something really cuckoo with line 120
|
|
|
Post by charliejv on Nov 26, 2022 19:41:36 GMT -5
|
|
|
Post by charliejv on Nov 26, 2022 20:06:12 GMT -5
Okay, I think I've fixed that.
You'll see in the source code what I've commented out from the original.
Any non-numbered lines are new by me.
|
|
|
Post by bplus on Nov 27, 2022 1:14:35 GMT -5
Very good! I had to finally end it with the old shut up!
Did it have something to do with a short circuited RESTORE? A RESTORE failed so it ran out of Data??
|
|
|
Post by charliejv on Nov 27, 2022 1:37:03 GMT -5
I haven't gone back yet to figure out the exact culprit.
It was just a mess of restores that I did not like, and one of those was making the program go past the available data values.
Something for me to go back and revisit after some shut eye.
|
|