English Amiga Board


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

 
 
Thread Tools
Old 10 September 2019, 16:24   #1
timeslip1974
Registered User
 
Join Date: Feb 2019
Location: uk
Posts: 106
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, 16: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, 16:54   #3
timeslip1974
Registered User
 
Join Date: Feb 2019
Location: uk
Posts: 106
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, 17:18   #4
timeslip1974
Registered User
 
Join Date: Feb 2019
Location: uk
Posts: 106
Got around it by using rawstatus() instead of inkey$ for key press checking
timeslip1974 is offline  
Old 10 September 2019, 17: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 15:55
TAR with file name pattern handling pintcat support.Apps 5 25 February 2013 18:32
Cookie handling alexh project.EAB 1 22 October 2007 21:52
Multi-file RAR handling andreas request.UAE Wishlist 2 23 October 2006 18: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 22:27.

Top

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