The goal is to load a special type of file into memory and then assign all of its data to an object in an array known as spec[]. Everything that WILL get reassigned to that. The problem is that for whatever reason, I'm not getting my object identification code working. special.type refers to what type of file it is, and is defined in my file, but it is throwing an exception saying that special is a nil value. Special = {type = 0} and a function under special does exist though, so I have no idea what it's on about. From this, can you figure out what's wrong, or do I need to bring in more data?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I'm a tad rusty, so I need some help on this. My code roughly looks something like this.
The goal is to load a special type of file into memory and then assign all of its data to an object in an array known as spec[]. Everything that WILL get reassigned to that. The problem is that for whatever reason, I'm not getting my object identification code working. special.type refers to what type of file it is, and is defined in my file, but it is throwing an exception saying that special is a nil value. Special = {type = 0} and a function under special does exist though, so I have no idea what it's on about. From this, can you figure out what's wrong, or do I need to bring in more data?
Link to post
Share on other sites