I have errors that I cannot see !!!

GFA BASIC-related articles in here please

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

vodkasoda
Atari maniac
Atari maniac
Posts: 94
Joined: Wed Jul 07, 2010 3:55 pm

I have errors that I cannot see !!!

Postby vodkasoda » Tue Jan 14, 2014 10:22 am

Somebody please help me, I haven't slept much, so may be missing the bleedin' obvious, as John Cleese would say, but I really can't see what I am doing wrong here ...

This is my data Folder ... as you can see, the game.sys file is there and is populated ...

Screenshot - 14_01_2014 , 10_06_28.png


This is my code ...

Code: Select all

@Initialise


Code: Select all

Procedure Initialise
  Local Base_prize%,F,G,Top%
  World_cup!=False
  '
  @Load_sys
  '


Code: Select all

Procedure Load_sys
  Local Dtype$
  '
  Dim League$(26)
  Game$="KIKABOUT"
  Open "I",#1,"c:\"+Game$+"\GAME.SYS"
  Line Input #1,Path$
  Line Input #1,Prog_dir$


I then get a message that the file doesn't exist ...

Screenshot - 14_01_2014 , 10_13_47.png


So I add a line to print the details of the File path ...

Code: Select all

Procedure Load_sys
  Local Dtype$
  '
  Dim League$(26)
  Game$="KIKABOUT"
  print "c:\"+Game$+"\GAME.SYS" <<<<< Print the path below, which apparently doesn't exist
  Open "I",#1,"c:\"+Game$+"\GAME.SYS"
  Line Input #1,Path$
  Line Input #1,Prog_dir$


... and it crashes !!!

Screenshot - 14_01_2014 , 10_18_01.png


Please help me, I have no idea why it can't see the file or what the error message even means !!!

:cry:
You do not have the required permissions to view the files attached to this post.

User avatar
Zorro 2
Administrator
Administrator
Posts: 2190
Joined: Tue May 21, 2002 12:44 pm
Location: Saint Cloud (France)
Contact:

Re: I have errors that I cannot see !!!

Postby Zorro 2 » Tue Jan 14, 2014 1:13 pm

Hi !
Try this :
Open "I",#1,"C:\"+Game$+"\GAME.SYS"

You are on Windows, you should do verifications about folder and file access if all people have the right to access it.
Member of NoExtra Team

User avatar
shoggoth
Nature
Nature
Posts: 853
Joined: Tue Aug 01, 2006 9:21 am
Location: Halmstad, Sweden
Contact:

Re: I have errors that I cannot see !!!

Postby shoggoth » Tue Jan 14, 2014 3:28 pm

Or just use a relative path instead of an absolute one.
Ain't no space like PeP-space.

vodkasoda
Atari maniac
Atari maniac
Posts: 94
Joined: Wed Jul 07, 2010 3:55 pm

Re: I have errors that I cannot see !!!

Postby vodkasoda » Tue Jan 14, 2014 9:29 pm

It's nothing to do with the case or the path type, this is code that has worked for years, all I have done is copied some from one program to another and hit these problems.

I moved all my Gemul8r files & re-installed it from scratch and it got past this, it's giving me another strange error, but it does look to be a Gemul8r problem rather than GFA basic.

Thanks though ...


Social Media

     

Return to “GFA BASIC”

Who is online

Users browsing this forum: No registered users and 1 guest