|
|
| Grabber Vs Defines |
|
AceBlkwell
Member #13,038
July 2011
|
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
Member #934
January 2001
|
AceBlkwell said: 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
Member #13,038
July 2011
|
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
Member #934
January 2001
|
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
Member #13,038
July 2011
|
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. |
|
|