10 September 2019, 16:24 | #1 |
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....... |
10 September 2019, 16:53 | #2 |
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.
|
10 September 2019, 16:54 | #3 |
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
|
10 September 2019, 17:18 | #4 |
Registered User
Join Date: Feb 2019
Location: uk
Posts: 106
|
Got around it by using rawstatus() instead of inkey$ for key press checking
|
10 September 2019, 17:29 | #5 |
Registered User
Join Date: Jan 2016
Location: Cheshire, UK
Posts: 15
|
Glad you sorted it :-]
|
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 |
|
|