![]() |
|
Corrupted QB45 saved program - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: Corrupted QB45 saved program (/showthread.php?tid=3740) Pages:
1
2
|
Corrupted QB45 saved program - Cobalt - 06-09-2025 So a guy over on the other discord was asking for some help trying to salvage an old program he pulled off a floppy disk. QB45 errors out "Bad File Mode" when trying to open it there to convert to plain text and the QB64 converter runs for a while then errors out. program is attached if anybody else wants to take a hack at getting any data out of it. RE: Corrupted QB45 saved program - Kernelpanic - 06-09-2025 Starting at line 24xx, there are error messages about exceeding a range. It could be that it doesn't fit within the variable's range — maybe. The only way I see to solve the problem is to install the original Quick Basic 4.5 and then see what's going wrong. Well, Quick Basic 4.5 still worked for me under Windows XP. Someone should try it. RE: Corrupted QB45 saved program - Dav - 06-09-2025 Glancing at the file in hex viewer it doesn't seem to be a pure QB45 compressed file. The beginning looks like QB45 data, but most of the file looks like chunks of other disk data. I suspect the floppy contained some file/data errors. It may be possible to rip out and save the QB45 stuff from this file, but I'd have to dig into it deeper. Perhaps the person could run a disk check/repair on the floppy and recopy the file? - Dav RE: Corrupted QB45 saved program - Dav - 06-09-2025 (06-09-2025, 08:25 PM)Kernelpanic Wrote: Starting at line 24xx, there are error messages about exceeding a range. It could be that it doesn't fit within the variable's range — maybe. I have qb45 still on an old laptop, I will try to open this up in it and see it it can recover any source. EDIT: Nope. QB45 says 'Bad file mode', like Cobalt said the discord guy said it did for him. I have a couple home-brew tools that handles compressed BAS files, will run those on it and see what happens. - Dav RE: Corrupted QB45 saved program - Kernelpanic - 06-09-2025 Quote:which he downloaded from a floppy diskContradictory! The most obvious explanation would be that the source code on the disk is corrupted—because the disk itself is corrupted. Looks like a bitter end. RE: Corrupted QB45 saved program - Cobalt - 06-11-2025 (06-09-2025, 08:44 PM)Dav Wrote:Well he said that anything that could be salvaged from it would be appreciated. I was going to try to hack the QB64 converter so it capped any erroneous values and forced an output so at least there would be something but, if you have something already that might do that all the better.(06-09-2025, 08:25 PM)Kernelpanic Wrote: Starting at line 24xx, there are error messages about exceeding a range. It could be that it doesn't fit within the variable's range — maybe. RE: Corrupted QB45 saved program - Dav - 06-11-2025 (06-11-2025, 02:17 PM)Cobalt Wrote:(06-09-2025, 08:44 PM)Dav Wrote:Well he said that anything that could be salvaged from it would be appreciated. I was going to try to hack the QB64 converter so it capped any erroneous values and forced an output so at least there would be something but, if you have something already that might do that all the better.(06-09-2025, 08:25 PM)Kernelpanic Wrote: Starting at line 24xx, there are error messages about exceeding a range. It could be that it doesn't fit within the variable's range — maybe. That sounds like the best bet, @Cobalt. On the plus side, the start of the MAM.BAS file does look like it has a right header size (when I compared it to other QB45 fast load&save BAS files byte-by-byte). The file data looks like it goes wonky after 450 bytes. You may could grab a piece of the source. Looks like this may be a thanksgiving program from looking at the keywords. My other tools didn't help, btw. - Dav RE: Corrupted QB45 saved program - luke - 06-12-2025 The best that I can recover is Code: (Select All)
RE: Corrupted QB45 saved program - a740g - 06-12-2025 Rest of the data is from another file. Probably an executable PCShell. Looks like 3rd party dosshell type thing. RE: Corrupted QB45 saved program - Kernelpanic - 06-12-2025 I loaded the file into a hex editor, and something about a PC shell appears. Maybe someone knows something like that? - Is the file possibly encrypted? ![]() IDA offers a free disassembler, maybe that will help. |