Grabber Vs Defines
AceBlkwell

I’ve got a Grabber question. I’ve got a grabber data file made up of BMPs, FONTs, & WAV files. My issue is one of the entries is not being seen as Defined. It’s listed in the header file created by grabber. And I can see it listed within grabber program. I can alter the source code to use a different bmp entry and the program compiles fine. It’s an easy name INST_BACK so it’s not misspelled in either place. Is it possible grabber doesn’t have that specific file within the DAT file even though it does show a place holder for it?

Thanks

DanielH

Is it possible grabber doesn’t have that specific file

Small technical point. Don't think of a datafile as storing files. It doesn't. Datafiles store data in an void* array that was grabbed from files.

Are you including the proper header file generated by grabber? The actual header file not some old version you forgot to remove. I've seen that too many times.

AceBlkwell

Daniel, It has something to do with the INST_BACK verbiage. Either with grabber or code. I removed the name and just put the array index number created by grabber (20) and the program compiles. I'm currently chasing a Seg 11 fault. but the program does compile and link, that more than it was doing.

BTW you said don't think of the data file as a storage of other files. Can you explain? On the original game I didn't include all the pictures or sounds files with the game. I just needed two files, the executable and the DNT.dat file made by grabber. The game worked fine.

DanielH

You asked if it had a file in it. It doesn't store files, but data from files. Like I said, small point.

Does the datafile load? When do you get the seg fault?

Try renaming INST_BACK to something else like INST_BACK_1 and test it.

AceBlkwell

:-/Well I found my immediate issue. The grabber header file doesn't match the data file. I believe you were right Daniel, I have a revision level difference between the header and the data file. The compiling issue with the macro name INST_BACK was fixed with typing in the macro value. I traced the seq 11 issue (step by step) to a font macro Old_Eng_24. I changed them to the macro value (30) and the seq 11 stopped. The program came up. The sounds are off and the fonts wrong but it runs. What further supports your mismatch theory is the last BMP was INST_BACK. The next macro was a sound sample. Old_Eng_24 font was the first font after the sound samples. Everything seems off by one.

I'm going to create a new grabber file with header and see what happens. Thanks for the help

** UPDATE ** I found the latest source code and data file for the game and was able to create a new program. It runs fine. The issue was as you suggested Daniel. It was multiple revisions of the source code, header, and data files causing the issue.

Thread #618859. Printed from Allegro.cc