Input run-time module path:
Please help me if you know this, and thank you very much!

Code: Select all
'Actor database of ZSO
DEFINT A-Z
CLS
Wbackround:
FOR i = 1 TO 30
COLOR 15, 12
LOCATE 15, 20
PRINT "Loading, Please wait."
FOR b = 1 TO 3000
NEXT b
CLS
LOCATE 15, 20
PRINT "Loading, Please wait.."
FOR C = 1 TO 3000
NEXT C
CLS
LOCATE 15, 20
PRINT "Loading, Please wait..."
FOR d = 1 TO 3000
NEXT d
CLS
NEXT i
CLS
test:
COLOR 15, 12
LOCATE 1, 1
PRINT "A production of Souylsin."
SLEEP 1
LOCATE 2, 1
PRINT "A find by the community of ZSO."
SLEEP 1
LOCATE 3, 1
PRINT "ZSO DAT 0.01"
SLEEP 1
LOCATE 4, 1
PRINT "Locating Actordat..."
OPEN "Actordat.txt" FOR INPUT AS #1
INPUT #1, there$
CLOSE #1
IF there$ = "0000 0000 Link (may sometimes cause Z-buffer glitches)" THEN
GOTO con
ELSE
LOCATE 5, 1
PRINT "Could not locate Actordat, now exitting..."
SLEEP 1
END
END IF
con:
DO
LOCATE 5, 1
PRINT there$
LOCATE 6, 1
PRINT "There are "; LEN(there$); " characters in this file."
LOCATE 7, 1
PRINT "Actordat Located successfully"
LOCATE 8, 1
PRINT "TEST COMPLETE"
LOCATE 9, 1
PRINT "Press Any key to Continue"
kp$ = INKEY$
IF kp$ <> "" THEN GOTO Menu
LOOP
Menu:
CLS
LOCATE 10, 20
Color 14,12
PRINT "Database of Zelda Actors"
LOCATE 20, 5
Color 10, 12
PRINT "(S)earch for Actors"
Color 15, 12
LOCATE 20, 50
PRINT "(E)xit"
DO
kp$ = INKEY$
IF kp$ = "s" THEN GOTO srcaktr
IF kp$ = "e" THEN GOTO ext
LOOP
srcaktr:
asearch:
CLS
LOCATE 1, 1
INPUT "Actor name, or part of one:", sactname$
cmd$ = "FIND /I " + CHR$(34) + sactname$ + CHR$(34) + " Actordat.txt"
SHELL cmd$
PRINT "(A)nother search or (E)xit?"
DO
kp$ = INKEY$
IF kp$ = "a" THEN GOTO asearch
IF kp$ = "e" THEN GOTO ext
Loop
ext:
CLS
RANDOMIZE TIMER
C = INT(RND * 0 + 15) + 1
COLOR C
SHELL "Title COW"
LOCATE 10, 25
PRINT "BYE!"
SLEEP 1
END
Code: Select all
SUB Text(a AS Integer, b AS Integer, c AS String)
LOCATE a, b
PRINT c
END SUB
Code: Select all
FOR b = 1 TO 3000
NEXT b
Code: Select all
Temp$ = "Loading, Please wait..."
CLS ' no need to locate since CLS allways put's cursor at 1,1.
For counter = 1 TO LEN(Temp$)
Print MID$(Temp$, counter, 1); ' important to have ; at the end so line wont change.
'DELAY CODE HERE: SLEEP 1 or something
Next Counter
Code: Select all
find:
OPEN file$ FOR INPUT AS #1
INPUT #1, there$
CLOSE #1
IF there$ = "0000 0000 Link (may sometimes cause Z-buffer glitches)" THEN
LOCATE a, 1
PRINT file$ " Located successfully."
GOTO done
ELSE
LOCATE a, 1
PRINT "Could not locate"; file$ "now exitting..."
SLEEP 1
END
END IF
http://www.ascii-world.com/centering-text-on-the-screenLee wrote:Um wanna explain the code to me? Might help a bit, but i need the locate so the string appears in the middle of the screen, and not a 1,1. Know what I mean? Ill show you a update of my code shortly, maybe in like 10minutes.
You need to make that as function with return value. If value = ok, then call sub done and so on.EDIT:How would I be able to turn this into a sub?...
Code: Select all
CONST OK = 1
Function OkOrNot(a AS Integer, FileName AS String) AS Integer
OPEN FileName FOR INPUT AS #1
INPUT #1, there$
CLOSE #1
locate a, 1
IF there$ = "0000 0000 Link (may sometimes cause Z-buffer glitches)" THEN
Print FileName; " Located successfully."
RETURN OK
ELSE
PRINT "Could not locate"; FileName "now exitting..."
SLEEP 1
END
END IF
END Function
' this works after you create "Done" as sub.
IF OkOrNot(a, "filenamehere") = OK Then Done
Code: Select all
DECLARE SUB TEXT (a AS INTEGER, b AS INTEGER, C AS STRING)
'A database of Souylsin
DEFINT A-Z
CLS
Wbackround:
FOR i = 1 TO 3
COLOR 15, 12
TEXT 15, 20, "Loading, Please wait."
SLEEP 1
CLS 2
TEXT 15, 20, "Loading, Please wait.."
SLEEP 1
CLS 2
TEXT 15, 20, "Loading, Please wait..."
SLEEP 1
CLS 2
NEXT i
CLS
test:
COLOR 15, 12
LOCATE 1, 1
PRINT "A production of Souylsin."
SLEEP 1
LOCATE 2, 1
PRINT "Thanks to everyine who has contributed to this production."
SLEEP 1
LOCATE 3, 1
PRINT "WikiDAT 0.11"
SLEEP 1
SHELL "TYPE help.txt"
SLEEP 1
LOCATE 10,1
PRINT "TEST COMPLETE"
LOCATE 11, 1
PRINT "Press Any key to Continue"
kp$ = INKEY$
IF kp$ <THEN> 4 THEN selection% = 1
GOSUB Redraw
CASE " "
goto
END SELECT
LOOP
Redraw:
CLS
FOR i = 1 TO 4
PRINT Menu$(i)
NEXT i
LOCATE selection%, 1
COLOR 15, 12
PRINT Menu$(selection%)
COLOR 0, 12
RETURN
LOCATE 5, 20
COLOR 14, 12
PRINT "Database of Zelda Actors"
ssearxh:
GS:
fnar:
Anicode:
asearch:
CLS 2
INPUT "Actor name, or part of one:", sactname$
cmd$ = "FIND /I " + CHR$(34) + sactname$ + CHR$(34) + " Actordat.txt"
SHELL cmd$
PRINT "(A)nother search or (B)ack to main?"
goto choice
ext:
CLS 2
RANDOMIZE TIMER
C = INT(RND * 0 + 15) + 1
COLOR C
LOCATE 10, 25
PRINT "BYE!"
SLEEP 1
END
SUB TEXT (a AS INTEGER, b AS INTEGER, C AS STRING)
LOCATE a, b
PRINT C
END SUB
Code: Select all
do...until EOF(filenr%)
Code: Select all
SUB Delay (Dela!)
start = TIMER
DO WHILE start + dela! > TIMER
IF start > TIMER THEN start = start - 86400 'midnite correction
LOOP
END SUB
Code: Select all
Delay .5 '1/2 second delay
' or
CALL Delay(.5)
Code: Select all
DO WHILE (NOT EOF(1)) 'loop until end of file
INPUT #1, nme$, Phone$, age%, Zip%
IF nme$ = name$ THEN EXIT DO
LOOP
IF (NOT EOF(1)) THEN LINE INPUT #1, Line$ 'in an IF statement