English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 10 September 2019, 17:24   #1
timeslip1974
Registered User
 
Join Date: Feb 2019
Location: uk
Posts: 33
File Handling in BLitzmode

Hi everyone, Im trying (and failing) with my file handling for level loading while in blitz mode and Im hoping someone can show me the errors of my way!


z=ReadFile(0,"dh2:rpg/levels/l1")
FileInput 0
For y=1 To 100
For x=1 To 100
t$=Edit$(5)
map(x,y)=Val(t$)
Next x

Next y

CloseFile 0

DefaultInput



I have this as my file load that works fine
however when I do the next inkey$ call I get the following error
cant input character from default input
Even tho Ive set the defaultinput back after loading the file info.


If I call the same statement before going into blitz it works fine.......
timeslip1974 is offline  
Old 10 September 2019, 17:53   #2
SavageMonkey
Registered User

 
Join Date: Jan 2016
Location: Cheshire, UK
Posts: 15
I don't think you can do any file I/O in Blitz mode. If you switch to QAmiga mode temporarily you'll be able to do file I/O without losing your Blitz mode display.
SavageMonkey is offline  
Old 10 September 2019, 17:54   #3
timeslip1974
Registered User
 
Join Date: Feb 2019
Location: uk
Posts: 33
Tried that, it does the file handling fine - its the dropping back to defaultinput while in Blitz mode thats the problem
timeslip1974 is offline  
Old 10 September 2019, 18:18   #4
timeslip1974
Registered User
 
Join Date: Feb 2019
Location: uk
Posts: 33
Got around it by using rawstatus() instead of inkey$ for key press checking
timeslip1974 is offline  
Old 10 September 2019, 18:29   #5
SavageMonkey
Registered User

 
Join Date: Jan 2016
Location: Cheshire, UK
Posts: 15
Glad you sorted it :-]
SavageMonkey is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
DOpus5 lister handling daxb Coders. Scripting 0 05 December 2015 16:55
TAR with file name pattern handling pintcat support.Apps 5 25 February 2013 19:32
Cookie handling alexh project.EAB 1 22 October 2007 22:52
Multi-file RAR handling andreas request.UAE Wishlist 2 23 October 2006 19:45

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:08.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.07326 seconds with 13 queries