09-28-2003, 02:55 AM
Well, this is a continuation really from my old post, DATA not coming out right. I got it so that the data are actual rational integers and whatnot, but now for no reason at all, that I can see, it says that there is an illegal function call.
Here is what happens. I make a file, such as "1.plc" which holds coordinates for all the trees on that particular screen.
And then, to receive the code back on the other end, just do the same thing, only without the DATA and GET instead of PUT.
And then, using the coordinates given by the file, the program is supposed to place a .PUT image file (PP256) on the given spot. The result for one place when I was testing this theory was great, it cut back on a lot of programming within the module, but when I tried to mass produce the said files, I ran into trouble.
Illegal Function Call, it says when you try to move to a new screen. It doesn't make any sense, because SCREEN 1 works and SCREEN 2 doesn't work. (NOTE, when I say SCREEN, I mean that in the program there are different screens, like you move to the edge of one and get onto the next one, not the actual syntax 'screen.') I can post code later, if it helps you, but the above is pretty much the same.
Here is what happens. I make a file, such as "1.plc" which holds coordinates for all the trees on that particular screen.
Code:
'$DYNAMIC
DEFINT A-Z
DIM SHARED PLACEX(50) AS INTEGER
DIM SHARED PLACEY(50) AS INTEGER
OPEN "1.plc" FOR RANDOM AS #1
FOR I = 1 TO 5
PUT #1, , PLACEX(I)
PUT #1, , PLACEY(I)
NEXT I
CLOSE #1
DATA 0,0,1,1,2,2,3,3,4,4,5,5 '<-- made these up
And then, to receive the code back on the other end, just do the same thing, only without the DATA and GET instead of PUT.
Code:
'$DYNAMIC
DEFINT A-Z
DIM SHARED PLACEX(50) AS INTEGER
DIM SHARED PLACEY(50) AS INTEGER
'^ THIS WOULD BE FURTHER UP IN THE PROGRAM^
OPEN "1.plc" FOR RANDOM AS #1
FOR I = 1 TO 5
GET #1, , PLACEX(I)
GET #1, , PLACEY(I)
NEXT I
CLOSE #1
And then, using the coordinates given by the file, the program is supposed to place a .PUT image file (PP256) on the given spot. The result for one place when I was testing this theory was great, it cut back on a lot of programming within the module, but when I tried to mass produce the said files, I ran into trouble.
Illegal Function Call, it says when you try to move to a new screen. It doesn't make any sense, because SCREEN 1 works and SCREEN 2 doesn't work. (NOTE, when I say SCREEN, I mean that in the program there are different screens, like you move to the edge of one and get onto the next one, not the actual syntax 'screen.') I can post code later, if it helps you, but the above is pretty much the same.
ovaProgramming.
One night I had a dream where I was breaking balls. The next morning, BALLSBREAKER was born.
BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it .
-----------------------------
One night I had a dream where I was breaking balls. The next morning, BALLSBREAKER was born.
Quote: Excellent. Now you can have things without paying for them.
BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it .
-----------------------------