Right now, whether the models/textures are readable will not have an effect on whether the game can compile your script code, so unless you have actual syntax errors (which you do in either islands_loader.c, or another included program) the validity of the model or texture files themselves are not yet the issue. The first place to look is the islands_loader.c program and if nothing wrong there, look at the top of that program and any of the includes it contains (they might have the syntax error, instead). Of course if those includes themselves have includes, the problem could reside in those. It can get tricky to figure out the problem.
Often, the line number indicated is the problem, but a fair amount of time (especially with missing close braces, or parens, or quotes) it is misleading and the error is somewhere else. One technique is to make a copy for saving original state, then remove entire body of functions (retain the actual function definition, as it needs to stay...just remove the 'guts' of the function), save, then relaunch. Keep doing that until the error goes away and the very last removal you did contains a syntax error.
Often, the line number indicated is the problem, but a fair amount of time (especially with missing close braces, or parens, or quotes) it is misleading and the error is somewhere else. One technique is to make a copy for saving original state, then remove entire body of functions (retain the actual function definition, as it needs to stay...just remove the 'guts' of the function), save, then relaunch. Keep doing that until the error goes away and the very last removal you did contains a syntax error.