#define PRAGMA_BIND "1.lvl"; #define PRAGMA_BIND "2.lvl"; #define PRAGMA_BIND "3.lvl"; ... ... and so on..
for these to be included in the published folder. Indeed when I publish my codes in SED with just Compile EXE being checked all these files are copied on the .cd folder and the game runs successfully, but I don't want to published it that way, I need those files to be in resource file so during publish I checked Resource but unfortunately *.lvl are not copied successfully in .wrs file that's I got a pointer error when running the game.
Any idea how to include these files in the resource file.?
First of all, I think filenames shouldn't begin with numbers.
Your *.lvl-files are a file format you made yourself, isn't it? Then I guess you open them by file_open_read/file_open_write? This is only possible if the files aren't in a resource. I know that although I don't even have Pro.
@Lukas: Yes, I'm the one making my *.lvl files and just access it through file_open_read.. Actually that's what I think also that files starting with number are not possible in a resource file, then I've tried yesterday before your replies by just renaming 1.lvl to sample.lvl but still the same result.
take your files and put them in a text sections and just read the lines from the text section. That is the only way to read a text file from a resource as far as I know.